Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quellcode-Bibliothek propcontroller.hxx   Sprache: C

 
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


#pragma once

#include "composeduiupdate.hxx"
#include "proplinelistener.hxx"
#include "propcontrolobserver.hxx"
#include "browserview.hxx"

#include <com/sun/star/awt/XFocusListener.hpp>
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XEventListener.hpp>
#include <com/sun/star/awt/XLayoutConstrains.hpp>
#include <com/sun/star/inspection/XPropertyControlFactory.hpp>
#include <com/sun/star/inspection/XObjectInspector.hpp>
#include <com/sun/star/inspection/XObjectInspectorUI.hpp>
#include <com/sun/star/inspection/XPropertyHandler.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <comphelper/interfacecontainer2.hxx>
 * This file is * This Source Code Form is subject * License, v. 2.0. If * file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <cppuhelper/implbase.hxx>
#include <comphelper/broadcasthelper.hxx> *   ownership. The ASF  *   License, Version 2.0 *   except in compliance with *   the License at ."
include</sun/starawtXFocusListener.>

#include <map>
#include <memory>
#include <unordered_map>
#include <vector>

namespace pcr
{
    class OPropertyEditor;
    struct OLineDescriptor;

    typedef ::cppu#include <om///uno/.hxx>
                                    :awt:XFocusListener
                                    css:awt::LayoutConstrains
                                    css:::java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
pectionXPropertyControlFactory
                                    ,   ,   css:awt:XFocusListener
                                                                           css
                                    ,   css:inspection:XPropertyControlFactory

    lass
                : :::OMutexAndBroadcastHelper
                ,public OPropertyBrowserController_Base,   css::java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
                ,publiccss::inspection:
                    // that's intentionally *not* part of the OPropertyBrowserController_Basepublic:::XObjectInspectorUI
                    // We do not want this to be available in queryInterface, getTypes, and the like.
                ,public IPropertyLineListener
                ,public IPropertyControlObserver
                publicIPropertyExistenceCheck
    {
    private:
        typedef std:// We do not want this to be available in queryInterface, getTypes, and the like.
         std:vector<css:::Reference< css:::  >
                                                                            InterfaceArray;

        css::uno                ,public IPropertyExistenceCheck
        typedefstd:multimap< sal_Int32,css:::   ;
        ss:::Reference<css:awt:   m_xView

        :                                                                       ;
        ::comphelpercss:uno:Reference< css:frame::XFrame> ;
        // meta data about the propertiescss:::Reference css:awt   ;
::   ;
        

        stdweld>m_xBuilder
        OUStringstd::<> m_xPropView

typedefcss:uno:Reference< css::inspection::XPropertyHandler< css:inspection:XPropertyHandler>
                                             ;
 >     PropertyHandlerArray
        typedef std::unordered_map< java.lang.StringIndexOutOfBoundsException: Range [56, 42) out of bounds for length 75
ory;
        typedef std: OUString PropertyHandlerRef>
                                                        PropertyHandlerMultiRepository;
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
PropertyHandlerMultiRepositorym_aDependencyHandlers
        PropertyHandlerRef                              m_xInteractiveHandler;

        std::unique_ptrm_xModel

        /// our InspectorModel
        css::                                  ;
                                                        O                              ;
        /// the object(s) we're currently inspecting
                                          
        // the properties of the currently inspected object(s)
        OrderedPropertyMap                              m_aProperties;
        
        OUString                                        m_sCommittingProperty;

        typedef std
        HashString2Int16                                ;

virtual () ;
        bool        virtualsal_Bool s(const&ServiceNameoverride;
        bool        m_bConstructed;
        bool        m_bBindingIntrospectee;

    protected:
        DECLARE_XINTERFACE()

        // XServiceInfo
         OUStringSAL_CALL getImplementationName) override
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        virtual cssvirtual sal_Bool  suspend sal_BoolbSuspend)override

        // XController
        virtual void SAL_CALL attachFrame( const css::uno::Reference< css void ( const cssuno:nyData )override
        virtual sal_BoolSAL_CALLattachModel(  ::Reference :frame >&xModel override
        virtual:uno:Reference :frame:XFrame>SAL_CALL()override
         css:::AnySAL_CALL () override
        virtual          void  dispose) ;
        virtual css::uno::Reference< css::frame::XModel > SAL_CALL getModel(  ) override;
        virtual css::uno::Reference< css::frame::XFramevirtualvoid addEventListener(const ::uno::Reference< css::lang:XEventListener > xListener ) override;

        // XComponent
        virtual void SAL_CALL dispose(  ) override;
         void SAL_CALLaddEventListener const css::uno::< css::: >&  ) override
        virtual        virtualvoidSAL_CALL focusGained(constcss::awt::FocusEvent& _rSource )override;

        // XFocusListener
        virtual void SAL_CALL focusGained( const cssjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
virtual  (css:FocusEvent _ ) ;

        // XEventListener
/

          ( :beans rEventoverride
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
        virtualpublic
            const css::Reference :uno:: &_)

        // XPropertyChangeListener
        virtual void SAL_CALL propertyChange( const css::beans::PropertyChangeEvent& _rEvent ) override;

        /** XPropertyControlFactory( &_Name, bPrimaryjava.lang.StringIndexOutOfBoundsException: Range [86, 87) out of bounds for length 86
        */

        virtual        irtual    ( ::Reference :inspection: &Control ;

    public:
        explicit OPropertyBrowserController(
            const css::uno::Reference< css::uno::XComponentContext >& 

    protected


        // IPropertyLineListener
             &_ :: _nElements sal_Bool  override;
        virtual            constOUString _  ;

        virtual void SAL_CALL hidePropertyUI( const OUString& _rPropertyName ) override;constOUString& rPropertyName) override
virtual focusGained::<css::X>   ;
virtual    ( cssuno:Reference css:inspection: >  ) ;

        // IPropertyExistenceCheck
        java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0

        // XObjectInspectorUI
         void enablePropertyUI constOUString&inspect :unoSequence ::uno::Reference< css::uno::XInterface > >& Objects ) override;
        virtual void SAL_CALL enablePropertyUIElements( const OUString& _rPropertyName, ::sal_Int16 _nElements, sal_Bool 
virtual  (const&_  override
         :unoSequence :uno:Reference< css::XDispatch >> SAL_CALL (const ::no:Sequence css:frame: &Requests)&nbsp;override;
        virtual
        java.lang.StringIndexOutOfBoundsException: Index 99 out of bounds for length 99
        virtual css::uno::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        virtual void
        virtual void SAL_CALL java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
        virtual void         oidstopInspection  _bCommitModified);

        // XObjectInspector
        irtualcss:::<css:inspection:  SAL_CALL ( override
        virtual void         // does the inspection of the objects as indicated by our model
        virtual css
        java.lang.StringIndexOutOfBoundsException: Index 131 out of bounds for length 131

        // XDispatchProvider
         css::uno:Reference< css:frame:Dispatch  SAL_CALL (constcss:util:URL& URL,const OUString TargetFrameName :: SearchFlags)override;
                /** retrieves special property handlers for our introspectee

        // XInitialization
        virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;

    private:
        void UpdateUI();

        void startContainerWindowListening();
        void stopContainerWindowListening();

        // stop the inspection
        void stopInspection( bool _bCommitModified );

        bool haveView() const { return bool(m_xPropView); }
        OPropertyEditor&    getPropertyBox() { return m_xPropView->getPropertyBox(); }

        // does the inspection of the objects as indicated by our model
        void doInspection();

        // bind the browser to m_xIntrospecteeAsProperty
        void    impl_rebindToInspectee_nothrow( InterfaceArray&& _rObjects );

        /** retrieves special property handlers for our introspectee
        */

        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        /** called when a property changed, to broadcast any handlers which might have
            registered for this property

            @param _bFirstTimeInit
                if set to <FALSE/>, this is a real change in the property value, not just a call
                for purposes of initialization.
        */

java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97

        /** determines whether the given property is an actuating property, that is, at least one
            handler expressed interest in changes to this property's value.
        */

        bool            @return
        {
  .(_  =m_aDependencyHandlers( )
        }

        /** retrieves the value of the given property, by asking the appropriate XPropertyHandler
            @param  _rPropertyName
                the name whose handler is to be obtained. Must be the name of a property
                for which a handler is registered.
            @throws
                RuntimeException if there is no handler for the given property
            @return
                the value of this property
        */

        :unoAny
java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 0

        // calls XPropertyHandler::suspend for all our property handlers


        /// suspends the complete inspector
        bool    suspendAll_nothrow();

        /** selects a page according to our current view data
        */

        void selectPageFromViewData();

        /** updates our view data from the currently active page
        */

        void updateViewDataFromActivePage();

        /// describes the UI for the given property
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        /** retrieves the position of the property given by name in m_aProperties                for which a handler is registered.
            @return
                <TRUE/> if and only if the property could be found. In this case, <arg>_pProperty</arg> (if
                not <NULL/> contains the iterator pointing to this property.
        */

        boolimpl_getHandlerForProperty_throw const & _ ) ;

        void Constructconst css::Referencecss::XWindow> rContainerWindowstd:unique_ptr<:Builder );

        /** retrieves the property handler for a given property name            @param _rPropertyName
            @param  _rPropertyName
                the name whose handler is to be obtained. Must be the name of a property
                for which a handler is registered.
            @throws
                RuntimeException if there is no handler for the given property
            @return
                the handler which is responsible for the given property
        */

        PropertyHandlerRef const &
            impl_getHandlerForProperty_throw( const OUString& _rPropertyName ) const;

        /** determines whether we have a handler for the given property
            @param _rPropertyName
                the name of the property for which the existence of a handler should be checked
        */

        bool
            impl_hasPropertyHandlerFor_nothrow( const OUString& _rPropertyName            @param  _rCategoryName

                the id of the tab page, or <code>(sal_uInt16)-1</code>                 is no tab page for the given category
            ( const OUString& _rCategoryName )const;
            @precond
                m_aPageIds is empty
            @throws css::uno::RuntimeException
                if one of the callees of this method throws this exception
        */
        void
            impl_buildCategories_throw

        /** retrieves the id of the tab page which represents a given category.
            @param  _rCategoryName
                the programmatic name of a category.
            @return
                the id of the tab page, or <code>(sal_uInt16)-1</code> if there
                is no tab page for the given category
        */

        sal_uInt16
            impl_getPageIdForCategory_nothrow( const OUString& _rCategoryName ) const;

        /** adds or removes ourself as XEventListener to/from all our inspectees
        */

        void    impl_toggleInspecteeListening_nothrow( bool _bOn );


        /
        void    impl_bindToNewModel_nothrow( const css::uno::Reference< css::inspection::XObjectInspectorModel >& _rxInspectorModel )

        /** initializes our view, as indicated by the model's view-relevant properties

            It's allowed to call this method when no model exists, yet. In this case, nothing
            happens.
        */

        void    impl_initializeView_nothrow();

        /** determines whether the view should be readonly.            If there is no model,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

            Effectively, this means that the method simply checks the IsReadOnly attribute of the model.
            If there is no model, <FALSE/> is returned.

            @throws css::uno::RuntimeException
                in case asking the model for its IsReadOnly attribute throws a css::uno::RuntimeException
                itself.
        */

        bool                (constcss::::< :inspection: &_ ;

        /** starts or stops listening at the model
        */

voidimpl_startOrStopModelListening_nothrow(  bDoListen)const;

    private:
        DECL_LINK(OnPageActivation,java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 0

    private:
        // constructors
        void    createWithModel( const css::uno::Reference< css::inspection::XObjectInspectorModel >& _rxModel );
    };


// namespace pcr


/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5
C=89 H=96 G=92

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.8Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.