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 154 of file tbcontrl.hxx.

Constructor & Destructor Documentation

◆ SvxStyleToolBoxControl()

SvxStyleToolBoxControl::SvxStyleToolBoxControl ( )

Definition at line 3031 of file tbcontrl.cxx.

References i, m_xBoundItems, MAX_FAMILIES, and pFamilyState.

◆ ~SvxStyleToolBoxControl()

SvxStyleToolBoxControl::~SvxStyleToolBoxControl ( )
overridevirtual

Definition at line 3043 of file tbcontrl.cxx.

Member Function Documentation

◆ createItemWindow()

css::uno::Reference< css::awt::XWindow > SvxStyleToolBoxControl::createItemWindow ( const css::uno::Reference< css::awt::XWindow > &  rParent)
overridevirtual

◆ dispose()

void SAL_CALL SvxStyleToolBoxControl::dispose ( void  )
overridevirtual

◆ FillStyleBox()

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 3152 of file tbcontrl.cxx.

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

Referenced by Update().

◆ GetActFamily()

SfxStyleFamily SvxStyleToolBoxControl::GetActFamily ( ) const
private

Definition at line 3136 of file tbcontrl.cxx.

References nActFamily.

Referenced by FillStyleBox().

◆ getImplementationName()

OUString SvxStyleToolBoxControl::getImplementationName ( )
overridevirtual

Definition at line 3106 of file tbcontrl.cxx.

◆ getSupportedServiceNames()

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

Definition at line 3116 of file tbcontrl.cxx.

◆ initialize()

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

◆ SelectStyle()

void SvxStyleToolBoxControl::SelectStyle ( const OUString &  rStyleName)
private

Definition at line 3233 of file tbcontrl.cxx.

References DBG_ASSERT, and pImpl.

Referenced by Update().

◆ SetFamilyState()

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

Definition at line 3306 of file tbcontrl.cxx.

References pFamilyState, and Update().

Referenced by SfxStyleControllerItem_Impl::StateChangedAtStatusListener().

◆ statusChanged()

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

Definition at line 3313 of file tbcontrl.cxx.

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

◆ supportsService()

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

Definition at line 3111 of file tbcontrl.cxx.

References cppu::supportsService().

◆ Update()

void SvxStyleToolBoxControl::Update ( )
private

◆ update()

void SAL_CALL SvxStyleToolBoxControl::update ( )
overridevirtual

Definition at line 3129 of file tbcontrl.cxx.

References m_xBoundItems.

Friends And Related Function Documentation

◆ SfxStyleControllerItem_Impl

friend class SfxStyleControllerItem_Impl
friend

Definition at line 196 of file tbcontrl.hxx.

Referenced by initialize().

Member Data Documentation

◆ m_xBoundItems

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

Definition at line 188 of file tbcontrl.hxx.

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

◆ nActFamily

sal_uInt16 SvxStyleToolBoxControl::nActFamily
private

Definition at line 190 of file tbcontrl.hxx.

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

◆ pFamilyState

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().

◆ pImpl

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

Definition at line 158 of file tbcontrl.hxx.

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

◆ pStyleSheetPool

SfxStyleSheetBasePool* SvxStyleToolBoxControl::pStyleSheetPool
private

Definition at line 187 of file tbcontrl.hxx.

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


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