LibreOffice Module svx (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Friends | List of all members
StylesPreviewWindow_Base Class Reference

#include <StylesPreviewWindow.hxx>

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

Public Member Functions

 StylesPreviewWindow_Base (weld::Builder &xBuilder, std::vector< std::pair< OUString, OUString > > &&aDefaultStyles, const css::uno::Reference< css::frame::XDispatchProvider > &xDispatchProvider)
 
 ~StylesPreviewWindow_Base ()
 
void Select (const OUString &rStyleName)
 
void RequestStylesListUpdate ()
 

Protected Member Functions

 DECL_LINK (Selected, weld::IconView &, void)
 
 DECL_LINK (DoubleClick, weld::IconView &, bool)
 
 DECL_LINK (DoCommand, const CommandEvent &, bool)
 

Protected Attributes

css::uno::Reference< css::frame::XDispatchProvider > m_xDispatchProvider
 
std::unique_ptr< weld::IconViewm_xStylesView
 
StylesListUpdateTask m_aUpdateTask
 
rtl::Reference< StyleStatusListenerm_xStatusListener
 
std::unique_ptr< StylePoolChangeListenerm_pStylePoolChangeListener
 
std::vector< std::pair< OUString, OUString > > m_aDefaultStyles
 
std::vector< std::pair< OUString, OUString > > m_aAllStyles
 
OUString m_sSelectedStyle
 

Static Protected Attributes

static constexpr unsigned STYLES_COUNT = 6
 

Private Member Functions

void UpdateStylesList ()
 
void UpdateSelection ()
 
bool Command (const CommandEvent &rEvent)
 

Friends

class StylesListUpdateTask
 

Detailed Description

Definition at line 91 of file StylesPreviewWindow.hxx.

Constructor & Destructor Documentation

◆ StylesPreviewWindow_Base()

StylesPreviewWindow_Base::StylesPreviewWindow_Base ( weld::Builder xBuilder,
std::vector< std::pair< OUString, OUString > > &&  aDefaultStyles,
const css::uno::Reference< css::frame::XDispatchProvider > &  xDispatchProvider 
)

◆ ~StylesPreviewWindow_Base()

StylesPreviewWindow_Base::~StylesPreviewWindow_Base ( )

Definition at line 419 of file StylesPreviewWindow.cxx.

References m_aUpdateTask, m_xStatusListener, and Task::Stop().

Member Function Documentation

◆ Command()

bool StylesPreviewWindow_Base::Command ( const CommandEvent rEvent)
private

◆ DECL_LINK() [1/3]

StylesPreviewWindow_Base::DECL_LINK ( DoCommand  ,
const CommandEvent ,
bool   
)
protected

◆ DECL_LINK() [2/3]

StylesPreviewWindow_Base::DECL_LINK ( DoubleClick  ,
weld::IconView ,
bool   
)
protected

◆ DECL_LINK() [3/3]

StylesPreviewWindow_Base::DECL_LINK ( Selected  ,
weld::IconView ,
void   
)
protected

◆ RequestStylesListUpdate()

void StylesPreviewWindow_Base::RequestStylesListUpdate ( )

◆ Select()

void StylesPreviewWindow_Base::Select ( const OUString &  rStyleName)

◆ UpdateSelection()

void StylesPreviewWindow_Base::UpdateSelection ( )
private

Definition at line 443 of file StylesPreviewWindow.cxx.

References first, i, m_aAllStyles, m_sSelectedStyle, and m_xStylesView.

Referenced by StylesListUpdateTask::Invoke(), and Select().

◆ UpdateStylesList()

void StylesPreviewWindow_Base::UpdateStylesList ( )
private

Friends And Related Function Documentation

◆ StylesListUpdateTask

friend class StylesListUpdateTask
friend

Definition at line 93 of file StylesPreviewWindow.hxx.

Member Data Documentation

◆ m_aAllStyles

std::vector<std::pair<OUString, OUString> > StylesPreviewWindow_Base::m_aAllStyles
protected

Definition at line 108 of file StylesPreviewWindow.hxx.

Referenced by UpdateSelection(), and UpdateStylesList().

◆ m_aDefaultStyles

std::vector<std::pair<OUString, OUString> > StylesPreviewWindow_Base::m_aDefaultStyles
protected

Definition at line 107 of file StylesPreviewWindow.hxx.

Referenced by UpdateStylesList().

◆ m_aUpdateTask

StylesListUpdateTask StylesPreviewWindow_Base::m_aUpdateTask
protected

Definition at line 102 of file StylesPreviewWindow.hxx.

Referenced by RequestStylesListUpdate(), and ~StylesPreviewWindow_Base().

◆ m_pStylePoolChangeListener

std::unique_ptr<StylePoolChangeListener> StylesPreviewWindow_Base::m_pStylePoolChangeListener
protected

Definition at line 105 of file StylesPreviewWindow.hxx.

Referenced by StylesPreviewWindow_Base().

◆ m_sSelectedStyle

OUString StylesPreviewWindow_Base::m_sSelectedStyle
protected

Definition at line 110 of file StylesPreviewWindow.hxx.

Referenced by Select(), and UpdateSelection().

◆ m_xDispatchProvider

css::uno::Reference<css::frame::XDispatchProvider> StylesPreviewWindow_Base::m_xDispatchProvider
protected

Definition at line 98 of file StylesPreviewWindow.hxx.

Referenced by Command().

◆ m_xStatusListener

rtl::Reference<StyleStatusListener> StylesPreviewWindow_Base::m_xStatusListener
protected

Definition at line 104 of file StylesPreviewWindow.hxx.

Referenced by StylesPreviewWindow_Base(), and ~StylesPreviewWindow_Base().

◆ m_xStylesView

std::unique_ptr<weld::IconView> StylesPreviewWindow_Base::m_xStylesView
protected

◆ STYLES_COUNT

constexpr unsigned StylesPreviewWindow_Base::STYLES_COUNT = 6
staticconstexprprotected

Definition at line 96 of file StylesPreviewWindow.hxx.


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