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

 SvxStyleToolBoxControl ()
 
virtual ~SvxStyleToolBoxControl () override
 
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &rEvent) override
 
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createItemWindow (const css::uno::Reference< css::awt::XWindow > &rParent) 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 OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &rServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

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
 

Detailed Description

Definition at line 156 of file tbcontrl.hxx.

Constructor & Destructor Documentation

SvxStyleToolBoxControl::SvxStyleToolBoxControl ( )

Definition at line 2617 of file tbcontrl.cxx.

References m_xBoundItems, MAX_FAMILIES, pBoundItems, and pFamilyState.

SvxStyleToolBoxControl::~SvxStyleToolBoxControl ( )
overridevirtual

Definition at line 2630 of file tbcontrl.cxx.

Member Function Documentation

css::uno::Reference< css::awt::XWindow > SvxStyleToolBoxControl::createItemWindow ( const css::uno::Reference< css::awt::XWindow > &  rParent)
overridevirtual
void SAL_CALL SvxStyleToolBoxControl::dispose ( void  )
overridevirtual
void SvxStyleToolBoxControl::FillStyleBox ( )
private

!! TODO: This condition isn't right any longer, because we always show some default entries !! so the list doesn't show the count

Definition at line 2741 of file tbcontrl.cxx.

References aName, SfxStyleSheetBasePool::CreateIterator(), DBG_ASSERT, GetActFamily(), SfxStyleSheetBase::GetName(), nActFamily, pImpl, and pStyleSheetPool.

Referenced by Update().

SfxStyleFamily SvxStyleToolBoxControl::GetActFamily ( ) const
private

Definition at line 2725 of file tbcontrl.cxx.

References nActFamily.

Referenced by FillStyleBox().

OUString SvxStyleToolBoxControl::getImplementationName ( )
overridevirtual

Definition at line 2695 of file tbcontrl.cxx.

css::uno::Sequence< OUString > SvxStyleToolBoxControl::getSupportedServiceNames ( )
overridevirtual

Definition at line 2705 of file tbcontrl.cxx.

void SAL_CALL SvxStyleToolBoxControl::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual
void SvxStyleToolBoxControl::SelectStyle ( const OUString &  rStyleName)
private

Definition at line 2843 of file tbcontrl.cxx.

References DBG_ASSERT, and pImpl.

Referenced by Update().

void SvxStyleToolBoxControl::SetFamilyState ( sal_uInt16  nIdx,
const SfxTemplateItem pItem 
)
private

Definition at line 2907 of file tbcontrl.cxx.

References pFamilyState, and Update().

Referenced by SfxStyleControllerItem_Impl::StateChanged().

void SvxStyleToolBoxControl::statusChanged ( const css::frame::FeatureStateEvent &  rEvent)
overridevirtual

Definition at line 2914 of file tbcontrl.cxx.

References ToolBox::EnableItem(), nId, and Update().

sal_Bool SvxStyleToolBoxControl::supportsService ( const OUString &  rServiceName)
overridevirtual

Definition at line 2700 of file tbcontrl.cxx.

References cppu::supportsService().

void SAL_CALL SvxStyleToolBoxControl::update ( )
overridevirtual

Definition at line 2718 of file tbcontrl.cxx.

References pBoundItems.

void SvxStyleToolBoxControl::Update ( )
private

Friends And Related Function Documentation

friend class SfxStyleControllerItem_Impl
friend

Definition at line 199 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 191 of file tbcontrl.hxx.

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

sal_uInt16 SvxStyleToolBoxControl::nActFamily
private

Definition at line 193 of file tbcontrl.hxx.

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

SfxStyleControllerItem_Impl* SvxStyleToolBoxControl::pBoundItems[MAX_FAMILIES]
private

Definition at line 190 of file tbcontrl.hxx.

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

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

Definition at line 192 of file tbcontrl.hxx.

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

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

Definition at line 159 of file tbcontrl.hxx.

Referenced by createItemWindow(), dispose(), FillStyleBox(), initialize(), and SelectStyle().

SfxStyleSheetBasePool* SvxStyleToolBoxControl::pStyleSheetPool
private

Definition at line 189 of file tbcontrl.hxx.

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


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