LibreOffice Module svx (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | 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 UpdateStylesList ()
 

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
 
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 Update ()
 
bool Command (const CommandEvent &rEvent)
 

Detailed Description

Definition at line 77 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 404 of file StylesPreviewWindow.cxx.

References m_xStatusListener.

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::Select ( const OUString &  rStyleName)
void StylesPreviewWindow_Base::Update ( )
private

Definition at line 426 of file StylesPreviewWindow.cxx.

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

Referenced by Select(), and StylesPreviewWindow_Base().

void StylesPreviewWindow_Base::UpdateStylesList ( )

Member Data Documentation

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

Definition at line 90 of file StylesPreviewWindow.hxx.

Referenced by Update(), and UpdateStylesList().

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

Definition at line 89 of file StylesPreviewWindow.hxx.

Referenced by UpdateStylesList().

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

Definition at line 87 of file StylesPreviewWindow.hxx.

Referenced by StylesPreviewWindow_Base().

OUString StylesPreviewWindow_Base::m_sSelectedStyle
protected

Definition at line 92 of file StylesPreviewWindow.hxx.

Referenced by Select(), and Update().

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

Definition at line 82 of file StylesPreviewWindow.hxx.

Referenced by Command().

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

Definition at line 86 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 80 of file StylesPreviewWindow.hxx.


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