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 ( weld::Builder xBuilder,
std::vector< std::pair< OUString, OUString >> &&  aDefaultStyles,
const css::uno::Reference< css::frame::XDispatchProvider > &  xDispatchProvider 
)
StylesPreviewWindow_Base::~StylesPreviewWindow_Base ( )

Definition at line 417 of file StylesPreviewWindow.cxx.

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

Member Function Documentation

bool StylesPreviewWindow_Base::Command ( const CommandEvent rEvent)
private
StylesPreviewWindow_Base::DECL_LINK ( Selected  ,
weld::IconView ,
void   
)
protected
StylesPreviewWindow_Base::DECL_LINK ( DoubleClick  ,
weld::IconView ,
bool   
)
protected
StylesPreviewWindow_Base::DECL_LINK ( DoCommand  ,
const CommandEvent ,
bool   
)
protected
void StylesPreviewWindow_Base::RequestStylesListUpdate ( )
void StylesPreviewWindow_Base::Select ( const OUString &  rStyleName)
void StylesPreviewWindow_Base::UpdateSelection ( )
private

Definition at line 441 of file StylesPreviewWindow.cxx.

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

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

void StylesPreviewWindow_Base::UpdateStylesList ( )
private

Friends And Related Function Documentation

friend class StylesListUpdateTask
friend

Definition at line 93 of file StylesPreviewWindow.hxx.

Member Data Documentation

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

Definition at line 108 of file StylesPreviewWindow.hxx.

Referenced by UpdateSelection(), and UpdateStylesList().

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

Definition at line 107 of file StylesPreviewWindow.hxx.

Referenced by UpdateStylesList().

StylesListUpdateTask StylesPreviewWindow_Base::m_aUpdateTask
protected

Definition at line 102 of file StylesPreviewWindow.hxx.

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

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

Definition at line 105 of file StylesPreviewWindow.hxx.

Referenced by StylesPreviewWindow_Base().

OUString StylesPreviewWindow_Base::m_sSelectedStyle
protected

Definition at line 110 of file StylesPreviewWindow.hxx.

Referenced by Select(), and UpdateSelection().

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

Definition at line 98 of file StylesPreviewWindow.hxx.

Referenced by Command().

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

Definition at line 104 of file StylesPreviewWindow.hxx.

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

std::unique_ptr<weld::IconView> StylesPreviewWindow_Base::m_xStylesView
protected
constexpr unsigned StylesPreviewWindow_Base::STYLES_COUNT = 6
staticprotected

Definition at line 96 of file StylesPreviewWindow.hxx.


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