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

void Update ()
 
void FillStyleBox ()
 
void SelectStyle (const OUString &rStyleName)
 
void SetFamilyState (sal_uInt16 nIdx, const SfxTemplateItem *pItem)
 
SfxStyleFamily GetActFamily () const
 

Private Attributes

std::unique_ptr< ImplpImpl
 
SfxStyleSheetBasePoolpStyleSheetPool
 
rtl::Reference< SfxStyleControllerItem_Implm_xBoundItems [MAX_FAMILIES]
 
std::unique_ptr< SfxTemplateItempFamilyState [MAX_FAMILIES]
 
sal_uInt16 nActFamily
 

Friends

class SfxStyleControllerItem_Impl
 

Detailed Description

Definition at line 155 of file tbcontrl.hxx.

Constructor & Destructor Documentation

SvxStyleToolBoxControl::SvxStyleToolBoxControl ( )

Definition at line 2719 of file tbcontrl.cxx.

References m_xBoundItems, MAX_FAMILIES, and pFamilyState.

SvxStyleToolBoxControl::~SvxStyleToolBoxControl ( )
overridevirtual

Definition at line 2731 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 2840 of file tbcontrl.cxx.

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

Referenced by Update().

SfxStyleFamily SvxStyleToolBoxControl::GetActFamily ( ) const
private

Definition at line 2824 of file tbcontrl.cxx.

References nActFamily.

Referenced by FillStyleBox().

OUString SvxStyleToolBoxControl::getImplementationName ( )
overridevirtual

Definition at line 2794 of file tbcontrl.cxx.

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

Definition at line 2804 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 2942 of file tbcontrl.cxx.

References DBG_ASSERT, if(), and pImpl.

Referenced by Update().

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

Definition at line 3015 of file tbcontrl.cxx.

References pFamilyState, and Update().

Referenced by SfxStyleControllerItem_Impl::StateChangedAtStatusListener().

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

Definition at line 3022 of file tbcontrl.cxx.

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

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

Definition at line 2799 of file tbcontrl.cxx.

References cppu::supportsService().

void SAL_CALL SvxStyleToolBoxControl::update ( )
overridevirtual

Definition at line 2817 of file tbcontrl.cxx.

References m_xBoundItems.

void SvxStyleToolBoxControl::Update ( )
private

Friends And Related Function Documentation

friend class SfxStyleControllerItem_Impl
friend

Definition at line 197 of file tbcontrl.hxx.

Referenced by initialize().

Member Data Documentation

rtl::Reference<SfxStyleControllerItem_Impl> SvxStyleToolBoxControl::m_xBoundItems[MAX_FAMILIES]
private

Definition at line 189 of file tbcontrl.hxx.

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

sal_uInt16 SvxStyleToolBoxControl::nActFamily
private

Definition at line 191 of file tbcontrl.hxx.

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

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

Definition at line 190 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(), initialize(), and SelectStyle().

SfxStyleSheetBasePool* SvxStyleToolBoxControl::pStyleSheetPool
private

Definition at line 188 of file tbcontrl.hxx.

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


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