LibreOffice Module forms (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
frm::ONavigationBarPeer Class Referencefinal

#include <navbarcontrol.hxx>

Inheritance diagram for frm::ONavigationBarPeer:
[legend]
Collaboration diagram for frm::ONavigationBarPeer:
[legend]

Public Member Functions

virtual void SAL_CALL setDesignMode (sal_Bool _bOn) override
 
sal_Bool SAL_CALL isEnabled () override
 
- Public Member Functions inherited from VCLXWindow
 VCLXWindow (bool bWithDefaultProps=false)
 
virtual ~VCLXWindow () override
 
virtual void SetWindow (const VclPtr< vcl::Window > &pWindow)
 
derived_type * GetAs () const
 
derived_type * GetAsDynamic () const
 
vcl::WindowGetWindow () const
 
void suspendVclEventListening ()
 
void resumeVclEventListening ()
 
void notifyWindowRemoved (vcl::Window const &_rWindow)
 
bool IsDisposed () const
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
void SAL_CALL dispose () override
 
void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &rxListener) override
 
void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &rxListener) override
 
void SAL_CALL setPosSize (sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int16 Flags) override
 
css::awt::Rectangle SAL_CALL getPosSize () override
 
void SAL_CALL setVisible (sal_Bool Visible) override
 
void SAL_CALL setEnable (sal_Bool Enable) override
 
void SAL_CALL setFocus () override
 
void SAL_CALL addWindowListener (const css::uno::Reference< css::awt::XWindowListener > &rrxListener) override
 
void SAL_CALL removeWindowListener (const css::uno::Reference< css::awt::XWindowListener > &rrxListener) override
 
void SAL_CALL addFocusListener (const css::uno::Reference< css::awt::XFocusListener > &rrxListener) override
 
void SAL_CALL removeFocusListener (const css::uno::Reference< css::awt::XFocusListener > &rrxListener) override
 
void SAL_CALL addKeyListener (const css::uno::Reference< css::awt::XKeyListener > &rrxListener) override
 
void SAL_CALL removeKeyListener (const css::uno::Reference< css::awt::XKeyListener > &rrxListener) override
 
void SAL_CALL addMouseListener (const css::uno::Reference< css::awt::XMouseListener > &rrxListener) override
 
void SAL_CALL removeMouseListener (const css::uno::Reference< css::awt::XMouseListener > &rrxListener) override
 
void SAL_CALL addMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &rrxListener) override
 
void SAL_CALL removeMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &rrxListener) override
 
void SAL_CALL addPaintListener (const css::uno::Reference< css::awt::XPaintListener > &rrxListener) override
 
void SAL_CALL removePaintListener (const css::uno::Reference< css::awt::XPaintListener > &rrxListener) override
 
css::uno::Reference< css::awt::XToolkit > SAL_CALL getToolkit () override
 
void SAL_CALL setPointer (const css::uno::Reference< css::awt::XPointer > &Pointer) override
 
void SAL_CALL setBackground (sal_Int32 Color) override
 
void SAL_CALL invalidate (sal_Int16 Flags) override
 
void SAL_CALL invalidateRect (const css::awt::Rectangle &Rect, sal_Int16 Flags) override
 
sal_Bool SAL_CALL isChild (const css::uno::Reference< css::awt::XWindowPeer > &Peer) override
 
void SAL_CALL setDesignMode (sal_Bool bOn) override
 
sal_Bool SAL_CALL isDesignMode () override
 
void SAL_CALL enableClipSiblings (sal_Bool bClip) override
 
void SAL_CALL setForeground (sal_Int32 Color) override
 
void SAL_CALL setControlFont (const css::awt::FontDescriptor &aFont) override
 
void SAL_CALL getStyles (sal_Int16 nType, css::awt::FontDescriptor &Font, sal_Int32 &ForegroundColor, sal_Int32 &BackgroundColor) override
 
void SAL_CALL setProperty (const OUString &PropertyName, const css::uno::Any &Value) override
 
css::uno::Any SAL_CALL getProperty (const OUString &PropertyName) override
 
css::awt::Size SAL_CALL getMinimumSize () override
 
css::awt::Size SAL_CALL getPreferredSize () override
 
css::awt::Size SAL_CALL calcAdjustedSize (const css::awt::Size &aNewSize) override
 
sal_Bool SAL_CALL setGraphics (const css::uno::Reference< css::awt::XGraphics > &aDevice) override
 
css::uno::Reference< css::awt::XGraphics > SAL_CALL getGraphics () override
 
css::awt::Size SAL_CALL getSize () override
 
void SAL_CALL draw (sal_Int32 nX, sal_Int32 nY) override
 
void SAL_CALL setZoom (float fZoomX, float fZoomY) override
 
css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () override
 
void SAL_CALL addDockableWindowListener (const css::uno::Reference< css::awt::XDockableWindowListener > &xListener) override
 
void SAL_CALL removeDockableWindowListener (const css::uno::Reference< css::awt::XDockableWindowListener > &xListener) override
 
void SAL_CALL enableDocking (sal_Bool bEnable) override
 
sal_Bool SAL_CALL isFloating () override
 
void SAL_CALL setFloatingMode (sal_Bool bFloating) override
 
void SAL_CALL lock () override
 
void SAL_CALL unlock () override
 
sal_Bool SAL_CALL isLocked () override
 
void SAL_CALL startPopupMode (const css::awt::Rectangle &WindowRect) override
 
sal_Bool SAL_CALL isInPopupMode () override
 
void SAL_CALL setOutputSize (const css::awt::Size &aSize) override
 
css::awt::Size SAL_CALL getOutputSize () override
 
sal_Bool SAL_CALL isVisible () override
 
sal_Bool SAL_CALL isActive () override
 
sal_Bool SAL_CALL isEnabled () override
 
sal_Bool SAL_CALL hasFocus () override
 
css::uno::Sequence< css::beans::Property > SAL_CALL getProperties () override
 
css::beans::Property SAL_CALL getPropertyByName (const OUString &aName) override
 
sal_Bool SAL_CALL hasPropertyByName (const OUString &Name) override
 
virtual css::uno::Reference< css::awt::XStyleSettings > SAL_CALL getStyleSettings () override
 
- Public Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
virtual void dispatch (sal_Int16 _nFeatureId) const =0
 dispatches a feature More...
 
virtual void dispatchWithArgument (sal_Int16 _nFeatureId, const char *_pParamName, const css::uno::Any &_rParamValue) const =0
 dispatches a feature, with an additional named parameter More...
 
virtual bool isEnabled (sal_Int16 _nFeatureId) const =0
 checks whether a given feature is enabled More...
 
virtual bool getBooleanState (sal_Int16 _nFeatureId) const =0
 returns the boolean state of a feature More...
 
virtual OUString getStringState (sal_Int16 _nFeatureId) const =0
 returns the string state of a feature More...
 
virtual sal_Int32 getIntegerState (sal_Int16 _nFeatureId) const =0
 returns the integer state of a feature More...
 

Static Public Member Functions

static rtl::Reference< ONavigationBarPeerCreate (const css::uno::Reference< css::uno::XComponentContext > &_rxORB, vcl::Window *_pParentWindow, const css::uno::Reference< css::awt::XControlModel > &_rxModel)
 factory method More...
 

Private Member Functions

 ONavigationBarPeer (const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
 
virtual ~ONavigationBarPeer () override
 
void SAL_CALL dispose () override
 
void SAL_CALL setProperty (const OUString &_rPropertyName, const css::uno::Any &_rValue) override
 
css::uno::Any SAL_CALL getProperty (const OUString &_rPropertyName) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void interceptorsChanged () override
 is called when the interceptors have. More...
 
virtual void featureStateChanged (sal_Int16 _nFeatureId, bool _bEnabled) override
 called when the status of a feature changed More...
 
virtual void allFeatureStatesChanged () override
 notification for (potential) changes in the state of all features More...
 
virtual void getSupportedFeatures (::std::vector< sal_Int16 > &_rFeatureIds) override
 retrieves the list of supported features More...
 
virtual bool isEnabled (sal_Int16 _nFeatureId) const override
 checks whether a given feature is enabled More...
 

Additional Inherited Members

- Public Types inherited from VCLXWindow
typedef ::std::function< void()> Callback
 
- Protected Member Functions inherited from VCLXWindow
Size ImplCalcWindowSize (const Size &rOutSz) const
 
 DECL_DLLPRIVATE_LINK (WindowEventListener, VclWindowEvent &, void)
 
virtual void ProcessWindowEvent (const VclWindowEvent &rVclWindowEvent)
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext ()
 
void SetSynthesizingVCLEvent (bool b)
 
bool IsSynthesizingVCLEvent () const
 
void SetSystemParent_Impl (const css::uno::Any &rHandle)
 
::toolkit::IAccessibleFactorygetAccessibleFactory ()
 
virtual void GetPropertyIds (std::vector< sal_uInt16 > &aIds)
 
ListenerMultiplexerBase< css::awt::XVclContainerListener > & GetContainerListeners ()
 
ListenerMultiplexerBase< css::awt::XTopWindowListener > & GetTopWindowListeners ()
 
void ImplExecuteAsyncWithoutSolarLock (const Callback &i_callback)
 
- Protected Member Functions inherited from frm::OFormNavigationHelper
 OFormNavigationHelper (const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
 
virtual ~OFormNavigationHelper ()
 
void dispose ()
 
virtual void SAL_CALL registerDispatchProviderInterceptor (const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &Interceptor) override
 
virtual void SAL_CALL releaseDispatchProviderInterceptor (const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &Interceptor) override
 
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &State) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void dispatch (sal_Int16 _nFeatureId) const override
 dispatches a feature More...
 
virtual void dispatchWithArgument (sal_Int16 _nFeatureId, const char *_pParamName, const css::uno::Any &_rParamValue) const override
 dispatches a feature, with an additional named parameter More...
 
virtual bool isEnabled (sal_Int16 _nFeatureId) const override
 checks whether a given feature is enabled More...
 
virtual bool getBooleanState (sal_Int16 _nFeatureId) const override
 returns the boolean state of a feature More...
 
virtual OUString getStringState (sal_Int16 _nFeatureId) const override
 returns the string state of a feature More...
 
virtual sal_Int32 getIntegerState (sal_Int16 _nFeatureId) const override
 returns the integer state of a feature More...
 
virtual void interceptorsChanged ()
 is called when the interceptors have. More...
 
virtual void featureStateChanged (sal_Int16 _nFeatureId, bool _bEnabled)
 called when the status of a feature changed More...
 
virtual void allFeatureStatesChanged ()
 notification for (potential) changes in the state of all features More...
 
virtual void getSupportedFeatures (::std::vector< sal_Int16 > &_rFeatureIds)=0
 retrieves the list of supported features More...
 
void updateDispatches ()
 update all our dispatches which are controlled by our dispatch interceptors More...
 
void connectDispatchers ()
 connect to the dispatch interceptors More...
 
void disconnectDispatchers ()
 disconnect from the dispatch interceptors More...
 
css::uno::Reference< css::frame::XDispatch > queryDispatch (const css::util::URL &_rURL)
 queries the interceptor chain for a dispatcher for the given URL More...
 
void invalidateSupportedFeaturesSet ()
 invalidates the set of supported features More...
 
- Protected Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 >
 ~ImplHelper2 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from frm::IFeatureDispatcher
 ~IFeatureDispatcher ()
 
- Static Protected Member Functions inherited from VCLXWindow
static void PushPropertyIds (std::vector< sal_uInt16 > &aIds, int nFirstId,...)
 
static void ImplGetPropertyIds (std::vector< sal_uInt16 > &aIds, bool bWithDefaults=false)
 

Detailed Description

Definition at line 73 of file navbarcontrol.hxx.

Constructor & Destructor Documentation

◆ ONavigationBarPeer()

frm::ONavigationBarPeer::ONavigationBarPeer ( const css::uno::Reference< css::uno::XComponentContext > &  _rxORB)
explicitprivate

Definition at line 239 of file navbarcontrol.cxx.

Referenced by Create().

◆ ~ONavigationBarPeer()

frm::ONavigationBarPeer::~ONavigationBarPeer ( )
overrideprivatevirtual

Definition at line 245 of file navbarcontrol.cxx.

Member Function Documentation

◆ allFeatureStatesChanged()

void frm::ONavigationBarPeer::allFeatureStatesChanged ( )
overrideprivatevirtual

notification for (potential) changes in the state of all features

The base class implementation does nothing. Derived classes could force their peer to update it's state, depending on the result of calls to <member>IFeatureDispatcher::isEnabled</member>.

Reimplemented from frm::OFormNavigationHelper.

Definition at line 424 of file navbarcontrol.cxx.

References frm::OFormNavigationHelper::allFeatureStatesChanged().

◆ Create()

rtl::Reference< ONavigationBarPeer > frm::ONavigationBarPeer::Create ( const css::uno::Reference< css::uno::XComponentContext > &  _rxORB,
vcl::Window _pParentWindow,
const css::uno::Reference< css::awt::XControlModel > &  _rxModel 
)
static

◆ dispose()

void SAL_CALL frm::ONavigationBarPeer::dispose ( void  )
overrideprivate

◆ disposing()

void SAL_CALL frm::ONavigationBarPeer::disposing ( const css::lang::EventObject &  Source)
overrideprivatevirtual

Reimplemented from VCLXWindow.

Definition at line 460 of file navbarcontrol.cxx.

References VCLXWindow::disposing(), and frm::OFormNavigationHelper::disposing().

◆ featureStateChanged()

void frm::ONavigationBarPeer::featureStateChanged ( sal_Int16  _nFeatureId,
bool  _bEnabled 
)
overrideprivatevirtual

called when the status of a feature changed

The default implementation does nothing.

If the feature in question does support more state information that just the enabled/disabled state, then this additional information is to be retrieved in a separate call.

Parameters
_nFeatureIdthe id of the feature
_bEnableddetermines if the features is enabled or disabled
See also
getBooleanState

Reimplemented from frm::OFormNavigationHelper.

Definition at line 396 of file navbarcontrol.cxx.

References frm::OFormNavigationHelper::featureStateChanged(), frm::OFormNavigationHelper::getBooleanState(), frm::OFormNavigationHelper::getIntegerState(), and frm::OFormNavigationHelper::getStringState().

◆ getProperty()

Any SAL_CALL frm::ONavigationBarPeer::getProperty ( const OUString &  _rPropertyName)
overrideprivate

◆ getSupportedFeatures()

void frm::ONavigationBarPeer::getSupportedFeatures ( ::std::vector< sal_Int16 > &  _rFeatureIds)
overrideprivatevirtual

retrieves the list of supported features

To be overridden by derived classes

Parameters
_rFeatureIdsthe array of features to support. Out parameter to fill by the derivee's implementation

Implements frm::OFormNavigationHelper.

Definition at line 467 of file navbarcontrol.cxx.

◆ interceptorsChanged()

void frm::ONavigationBarPeer::interceptorsChanged ( )
overrideprivatevirtual

is called when the interceptors have.

The default implementations simply calls <member>updateDispatches</member>, derived classes can prevent this in certain cases, or do additional handling.

Reimplemented from frm::OFormNavigationHelper.

Definition at line 386 of file navbarcontrol.cxx.

References frm::OFormNavigationHelper::interceptorsChanged(), and VCLXWindow::isDesignMode().

◆ isEnabled() [1/2]

sal_Bool SAL_CALL VCLXWindow::isEnabled ( )

◆ isEnabled() [2/2]

bool frm::ONavigationBarPeer::isEnabled ( sal_Int16  _nFeatureId) const
overrideprivatevirtual

checks whether a given feature is enabled

Reimplemented from frm::OFormNavigationHelper.

Definition at line 439 of file navbarcontrol.cxx.

References VCLXWindow::isDesignMode(), and frm::OFormNavigationHelper::isEnabled().

◆ setDesignMode()

void SAL_CALL frm::ONavigationBarPeer::setDesignMode ( sal_Bool  _bOn)
overridevirtual

◆ setProperty()

void SAL_CALL frm::ONavigationBarPeer::setProperty ( const OUString &  _rPropertyName,
const css::uno::Any &  _rValue 
)
overrideprivate

The documentation for this class was generated from the following files: