LibreOffice Module framework (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
framework::SpinfieldToolbarController Class Referencefinal

#include <spinfieldtoolbarcontroller.hxx>

Inheritance diagram for framework::SpinfieldToolbarController:
[legend]
Collaboration diagram for framework::SpinfieldToolbarController:
[legend]

Public Member Functions

 SpinfieldToolbarController (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XFrame > &rFrame, ToolBox *pToolBar, ToolBoxItemId nID, sal_Int32 nWidth, const OUString &aCommand)
 
virtual ~SpinfieldToolbarController () override
 
virtual void SAL_CALL dispose () override
 
void Modify ()
 
void GetFocus ()
 
void LoseFocus ()
 
void Activate ()
 
OUString FormatOutputString (double fValue)
 
- Public Member Functions inherited from framework::ComplexToolbarController
 ComplexToolbarController (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XFrame > &rFrame, ToolBox *pToolBar, ToolBoxItemId nID, const OUString &aCommand)
 
virtual ~ComplexToolbarController () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL execute (sal_Int16 KeyModifier) override
 
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &Event) override
 
 DECL_STATIC_LINK (ComplexToolbarController, ExecuteHdl_Impl, void *, void)
 
 DECL_STATIC_LINK (ComplexToolbarController, Notify_Impl, void *, void)
 
- Public Member Functions inherited from svt::ToolboxController
 ToolboxController (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XFrame > &xFrame, OUString aCommandURL)
 
 ToolboxController ()
 
virtual ~ToolboxController () override
 
css::uno::Reference< css::frame::XFrame > getFrameInterface () const
 
const css::uno::Reference< css::uno::XComponentContext > & getContext () const
 
css::uno::Reference< css::frame::XLayoutManager > getLayoutManager () const
 
void updateStatus (const OUString &aCommandURL)
 
void updateStatus ()
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual void SAL_CALL update () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &Event) override=0
 
virtual void SAL_CALL execute (sal_Int16 KeyModifier) override
 
virtual void SAL_CALL click () override
 
virtual void SAL_CALL doubleClick () override
 
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createPopupWindow () override
 
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createItemWindow (const css::uno::Reference< css::awt::XWindow > &Parent) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
const OUString & getCommandURL () const
 
const OUString & getModuleName () const
 
void dispatchCommand (const OUString &sCommandURL, const css::uno::Sequence< css::beans::PropertyValue > &rArgs, const OUString &rTarget=OUString())
 
void enable (bool bEnable)
 
bool IsInSidebar () const
 

Private Member Functions

virtual void executeControlCommand (const css::frame::ControlCommand &rControlCommand) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > getExecuteArgs (sal_Int16 KeyModifier) const override
 
bool impl_getValue (const css::uno::Any &rAny, sal_Int32 &nValue, double &fValue, bool &bFloat)
 

Private Attributes

bool m_bFloat
 
double m_nMax
 
double m_nMin
 
double m_nValue
 
double m_nStep
 
VclPtr< SpinfieldControlm_pSpinfieldControl
 
OUString m_aOutFormat
 

Additional Inherited Members

- Protected Types inherited from svt::ToolboxController
typedef std::unordered_map< OUString, css::uno::Reference< css::frame::XDispatch > > URLToDispatchMap
 
- Protected Member Functions inherited from framework::ComplexToolbarController
css::uno::Reference< css::frame::XDispatch > getDispatchFromCommand (const OUString &aCommand) const
 
void addNotifyInfo (const OUString &aEventName, const css::uno::Reference< css::frame::XDispatch > &xDispatch, const css::uno::Sequence< css::beans::NamedValue > &rInfo)
 
virtual void executeControlCommand (const css::frame::ControlCommand &rControlCommand)=0
 
virtual css::uno::Sequence< css::beans::PropertyValue > getExecuteArgs (sal_Int16 KeyModifier) const
 
const css::util::URL & getInitializedURL ()
 
void notifyFocusGet ()
 
void notifyFocusLost ()
 
void notifyTextChanged (const OUString &aText)
 
- Protected Member Functions inherited from svt::ToolboxController
bool getToolboxId (ToolBoxItemId &rItemId, ToolBox **ppToolBox)
 
 DECL_DLLPRIVATE_STATIC_LINK (ToolboxController, ExecuteHdl_Impl, void *, void)
 
void addStatusListener (const OUString &aCommandURL)
 
void removeStatusListener (const OUString &aCommandURL)
 
void bindListener ()
 
void unbindListener ()
 
const css::uno::Reference< css::util::XURLTransformer > & getURLTransformer () const
 
const css::uno::Reference< css::awt::XWindow > & getParent () const
 
- Protected Attributes inherited from framework::ComplexToolbarController
VclPtr< ToolBoxm_xToolbar
 
ToolBoxItemId m_nID
 
bool m_bMadeInvisible
 
css::util::URL m_aURL
 
css::uno::Reference< css::util::XURLTransformer > m_xURLTransformer
 
- Protected Attributes inherited from svt::ToolboxController
bool m_bInitialized
 
bool m_bDisposed
 
bool m_bSidebar
 
ToolBoxItemId m_nToolBoxId
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
OUString m_aCommandURL
 
URLToDispatchMap m_aListenerMap
 
comphelper::OMultiTypeInterfaceContainerHelper2 m_aListenerContainer
 
css::uno::Reference< css::awt::XWindow > m_xParentWindow
 
css::uno::Reference< css::util::XURLTransformer > m_xUrlTransformer
 
OUString m_sModuleName
 
weld::Toolbarm_pToolbar
 
weld::Builderm_pBuilder
 

Detailed Description

Definition at line 34 of file spinfieldtoolbarcontroller.hxx.

Constructor & Destructor Documentation

◆ SpinfieldToolbarController()

framework::SpinfieldToolbarController::SpinfieldToolbarController ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Reference< css::frame::XFrame > &  rFrame,
ToolBox pToolBar,
ToolBoxItemId  nID,
sal_Int32  nWidth,
const OUString &  aCommand 
)

◆ ~SpinfieldToolbarController()

framework::SpinfieldToolbarController::~SpinfieldToolbarController ( )
overridevirtual

Definition at line 194 of file spinfieldtoolbarcontroller.cxx.

Member Function Documentation

◆ Activate()

void framework::SpinfieldToolbarController::Activate ( )

◆ dispose()

void SAL_CALL framework::SpinfieldToolbarController::dispose ( void  )
overridevirtual

◆ executeControlCommand()

void framework::SpinfieldToolbarController::executeControlCommand ( const css::frame::ControlCommand &  rControlCommand)
overrideprivatevirtual

◆ FormatOutputString()

OUString framework::SpinfieldToolbarController::FormatOutputString ( double  fValue)

◆ getExecuteArgs()

Sequence< PropertyValue > framework::SpinfieldToolbarController::getExecuteArgs ( sal_Int16  KeyModifier) const
overrideprivatevirtual

◆ GetFocus()

void framework::SpinfieldToolbarController::GetFocus ( )

◆ impl_getValue()

bool framework::SpinfieldToolbarController::impl_getValue ( const css::uno::Any &  rAny,
sal_Int32 &  nValue,
double &  fValue,
bool &  bFloat 
)
private

Definition at line 388 of file spinfieldtoolbarcontroller.cxx.

References nValue.

Referenced by executeControlCommand().

◆ LoseFocus()

void framework::SpinfieldToolbarController::LoseFocus ( )

◆ Modify()

void framework::SpinfieldToolbarController::Modify ( )

Member Data Documentation

◆ m_aOutFormat

OUString framework::SpinfieldToolbarController::m_aOutFormat
private

Definition at line 68 of file spinfieldtoolbarcontroller.hxx.

Referenced by executeControlCommand(), and FormatOutputString().

◆ m_bFloat

bool framework::SpinfieldToolbarController::m_bFloat
private

◆ m_nMax

double framework::SpinfieldToolbarController::m_nMax
private

Definition at line 63 of file spinfieldtoolbarcontroller.hxx.

Referenced by executeControlCommand().

◆ m_nMin

double framework::SpinfieldToolbarController::m_nMin
private

Definition at line 64 of file spinfieldtoolbarcontroller.hxx.

Referenced by executeControlCommand().

◆ m_nStep

double framework::SpinfieldToolbarController::m_nStep
private

Definition at line 66 of file spinfieldtoolbarcontroller.hxx.

Referenced by executeControlCommand().

◆ m_nValue

double framework::SpinfieldToolbarController::m_nValue
private

Definition at line 65 of file spinfieldtoolbarcontroller.hxx.

Referenced by executeControlCommand().

◆ m_pSpinfieldControl

VclPtr<SpinfieldControl> framework::SpinfieldToolbarController::m_pSpinfieldControl
private

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