LibreOffice Module svx (master)  1
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SvxStyleToolBoxControl Class Referencefinal

#include <tbcontrl.hxx>

Inheritance diagram for SvxStyleToolBoxControl:
[legend]
Collaboration diagram for SvxStyleToolBoxControl:
[legend]

Classes

struct  Impl
 

Public Member Functions

 SFX_DECL_TOOLBOX_CONTROL ()
 
 SvxStyleToolBoxControl (sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rToolBox)
 
virtual ~SvxStyleToolBoxControl () override
 
virtual VclPtr< vcl::WindowCreateItemWindow (vcl::Window *pParent) override
 
virtual void StateChanged (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
 
 DECL_LINK (VisibilityNotification, SvxStyleBox_Impl &, void)
 
- Public Member Functions inherited from SfxToolBoxControl
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &Event) override
 
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 > &rParent) override
 
 SFX_DECL_TOOLBOX_CONTROL ()
 
 SfxToolBoxControl (sal_uInt16 nSlotID, sal_uInt16 nId, ToolBox &rBox, bool bShowStrings=false)
 
virtual ~SfxToolBoxControl () override
 
ToolBoxGetToolBox () const
 
unsigned short GetId () const
 
unsigned short GetSlotId () const
 
void Dispatch (const OUString &aCommand, css::uno::Sequence< css::beans::PropertyValue > const &aArgs)
 

Private Member Functions

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
 
SVX_DLLPRIVATE void Update ()
 
SVX_DLLPRIVATE void FillStyleBox ()
 
SVX_DLLPRIVATE void SelectStyle (const OUString &rStyleName)
 
SVX_DLLPRIVATE void SetFamilyState (sal_uInt16 nIdx, const SfxTemplateItem *pItem)
 
SVX_DLLPRIVATE SfxStyleFamily GetActFamily () const
 

Private Attributes

std::unique_ptr< ImplpImpl
 
SfxStyleSheetBasePoolpStyleSheetPool
 
SfxStyleControllerItem_ImplpBoundItems [MAX_FAMILIES]
 
css::uno::Reference< css::lang::XComponent > m_xBoundItems [MAX_FAMILIES]
 
std::unique_ptr< SfxTemplateItempFamilyState [MAX_FAMILIES]
 
sal_uInt16 nActFamily
 

Friends

class SfxStyleControllerItem_Impl
 

Additional Inherited Members

- Static Public Member Functions inherited from SfxToolBoxControl
static void Dispatch (const css::uno::Reference< css::frame::XDispatchProvider > &rDispatchProvider, const OUString &rCommand, css::uno::Sequence< css::beans::PropertyValue > const &aArgs)
 
static SfxItemState GetItemState (const SfxPoolItem *pState)
 
static SfxToolBoxControlCreateControl (sal_uInt16 nSlotId, sal_uInt16 nTbxId, ToolBox *pBox, SfxModule const *pMod)
 
static void RegisterToolBoxControl (SfxModule *, const SfxTbxCtrlFactory &)
 
- Protected Member Functions inherited from SfxToolBoxControl
 DECL_LINK (PopupModeEndHdl, FloatingWindow *, void)
 
 DECL_LINK (ClosePopupWindow, SfxPopupWindow *, void)
 
virtual void Select (sal_uInt16 nSelectModifier)
 
virtual void DoubleClick ()
 
virtual void Click ()
 
virtual VclPtr< SfxPopupWindowCreatePopupWindow ()
 
void SetPopupWindow (SfxPopupWindow *pWindow)
 

Detailed Description

Definition at line 156 of file tbcontrl.hxx.

Constructor & Destructor Documentation

SvxStyleToolBoxControl::SvxStyleToolBoxControl ( sal_uInt16  nSlotId,
sal_uInt16  nId,
ToolBox rToolBox 
)

Definition at line 2952 of file tbcontrl.cxx.

References m_xBoundItems, MAX_FAMILIES, pBoundItems, and pFamilyState.

SvxStyleToolBoxControl::~SvxStyleToolBoxControl ( )
overridevirtual

Definition at line 2967 of file tbcontrl.cxx.

Member Function Documentation

VclPtr< vcl::Window > SvxStyleToolBoxControl::CreateItemWindow ( vcl::Window pParent)
overridevirtual
SvxStyleToolBoxControl::DECL_LINK ( VisibilityNotification  ,
SvxStyleBox_Impl ,
void   
)
void SAL_CALL SvxStyleToolBoxControl::dispose ( void  )
overrideprivatevirtual
void SvxStyleToolBoxControl::FillStyleBox ( )
private
SfxStyleFamily SvxStyleToolBoxControl::GetActFamily ( ) const
private

Definition at line 3033 of file tbcontrl.cxx.

References nActFamily.

Referenced by FillStyleBox().

void SAL_CALL SvxStyleToolBoxControl::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overrideprivatevirtual
void SvxStyleToolBoxControl::SelectStyle ( const OUString &  rStyleName)
private
void SvxStyleToolBoxControl::SetFamilyState ( sal_uInt16  nIdx,
const SfxTemplateItem pItem 
)
private

Definition at line 3227 of file tbcontrl.cxx.

References pFamilyState, and Update().

Referenced by SfxStyleControllerItem_Impl::StateChanged().

SvxStyleToolBoxControl::SFX_DECL_TOOLBOX_CONTROL ( )
void SvxStyleToolBoxControl::StateChanged ( sal_uInt16  nSID,
SfxItemState  eState,
const SfxPoolItem pState 
)
overridevirtual
void SAL_CALL SvxStyleToolBoxControl::update ( )
overrideprivatevirtual
void SvxStyleToolBoxControl::Update ( )
private

Friends And Related Function Documentation

friend class SfxStyleControllerItem_Impl
friend

Definition at line 196 of file tbcontrl.hxx.

Referenced by initialize().

Member Data Documentation

css::uno::Reference<css::lang::XComponent> SvxStyleToolBoxControl::m_xBoundItems[MAX_FAMILIES]
private

Definition at line 188 of file tbcontrl.hxx.

Referenced by dispose(), initialize(), and SvxStyleToolBoxControl().

sal_uInt16 SvxStyleToolBoxControl::nActFamily
private

Definition at line 190 of file tbcontrl.hxx.

Referenced by FillStyleBox(), GetActFamily(), and Update().

SfxStyleControllerItem_Impl* SvxStyleToolBoxControl::pBoundItems[MAX_FAMILIES]
private

Definition at line 187 of file tbcontrl.hxx.

Referenced by dispose(), initialize(), SvxStyleToolBoxControl(), and update().

std::unique_ptr<SfxTemplateItem> SvxStyleToolBoxControl::pFamilyState[MAX_FAMILIES]
private

Definition at line 189 of file tbcontrl.hxx.

Referenced by dispose(), initialize(), SetFamilyState(), SvxStyleToolBoxControl(), and Update().

std::unique_ptr<Impl> SvxStyleToolBoxControl::pImpl
private

Definition at line 158 of file tbcontrl.hxx.

Referenced by CreateItemWindow(), dispose(), FillStyleBox(), and initialize().

SfxStyleSheetBasePool* SvxStyleToolBoxControl::pStyleSheetPool
private

Definition at line 186 of file tbcontrl.hxx.

Referenced by dispose(), FillStyleBox(), and Update().


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