LibreOffice Module forms (master) 1
|
#include <navbarcontrol.hxx>
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::Window * | GetWindow () 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< ONavigationBarPeer > | Create (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::IAccessibleFactory & | getAccessibleFactory () |
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) |
Definition at line 73 of file navbarcontrol.hxx.
|
explicitprivate |
Definition at line 239 of file navbarcontrol.cxx.
Referenced by Create().
|
overrideprivatevirtual |
Definition at line 245 of file navbarcontrol.cxx.
|
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().
|
static |
factory method
Definition at line 202 of file navbarcontrol.cxx.
References DBG_TESTSOLARMUTEX, AllSettings::GetMouseSettings(), frm::getXModel(), ONavigationBarPeer(), MouseSettings::SetButtonRepeat(), and AllSettings::SetMouseSettings().
Referenced by frm::ONavigationBarControl::createPeer().
|
overrideprivate |
Definition at line 256 of file navbarcontrol.cxx.
References frm::OFormNavigationHelper::dispose(), and VCLXWindow::dispose().
|
overrideprivatevirtual |
Reimplemented from VCLXWindow.
Definition at line 460 of file navbarcontrol.cxx.
References VCLXWindow::disposing(), and frm::OFormNavigationHelper::disposing().
|
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.
_nFeatureId | the id of the feature |
_bEnabled | determines if the features is enabled or disabled |
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().
|
overrideprivate |
Definition at line 342 of file navbarcontrol.cxx.
References Any, frm::NavigationToolBar::eFilterSort, frm::NavigationToolBar::eLarge, frm::NavigationToolBar::eNavigation, frm::NavigationToolBar::ePosition, frm::NavigationToolBar::eRecordActions, VCLXWindow::getProperty(), PROPERTY_BACKGROUNDCOLOR, PROPERTY_ICONSIZE, PROPERTY_SHOW_FILTERSORT, PROPERTY_SHOW_NAVIGATION, PROPERTY_SHOW_POSITION, PROPERTY_SHOW_RECORDACTIONS, and PROPERTY_TEXTLINECOLOR.
|
overrideprivatevirtual |
retrieves the list of supported features
To be overridden by derived classes
_rFeatureIds | the 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.
|
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().
sal_Bool SAL_CALL VCLXWindow::isEnabled | ( | ) |
|
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().
|
overridevirtual |
Definition at line 448 of file navbarcontrol.cxx.
References frm::OFormNavigationHelper::connectDispatchers(), frm::OFormNavigationHelper::disconnectDispatchers(), and VCLXWindow::setDesignMode().
|
overrideprivate |
Definition at line 263 of file navbarcontrol.cxx.
References COL_TRANSPARENT(), frm::NavigationToolBar::eFilterSort, frm::NavigationToolBar::eLarge, frm::NavigationToolBar::eNavigation, frm::NavigationToolBar::ePosition, frm::NavigationToolBar::eRecordActions, frm::NavigationToolBar::eSmall, PROPERTY_BACKGROUNDCOLOR, PROPERTY_ICONSIZE, PROPERTY_SHOW_FILTERSORT, PROPERTY_SHOW_NAVIGATION, PROPERTY_SHOW_POSITION, PROPERTY_SHOW_RECORDACTIONS, PROPERTY_TEXTLINECOLOR, and VCLXWindow::setProperty().