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< OUString > &aDefaultStyles, css::uno::Reference< css::frame::XDispatchProvider > &xDispatchProvider)
 
 ~StylesPreviewWindow_Base ()
 
void Select (const OUString &rStyleName)
 

Protected Member Functions

 DECL_LINK (GoUp, const OString &, void)
 
 DECL_LINK (GoDown, const OString &, void)
 

Protected Attributes

std::unique_ptr< StyleItemControllerm_xStyleControllers [STYLES_COUNT]
 
std::unique_ptr< weld::CustomWeldm_xStyleControllersWeld [STYLES_COUNT]
 
StyleStatusListenerm_pStatusListener
 
css::uno::Reference< css::lang::XComponent > m_xStatusListener
 
std::unique_ptr< weld::Toolbarm_xUp
 
std::unique_ptr< weld::Toolbarm_xDown
 
std::vector< OUString > m_aDefaultStyles
 
std::vector< OUString > m_aAllStyles
 
unsigned m_nStyleIterator
 
OUString m_sSelectedStyle
 

Static Protected Attributes

static constexpr unsigned STYLES_COUNT = 4
 

Private Member Functions

void Update ()
 
void UpdateStylesList ()
 
void MakeCurrentStyleVisible ()
 
OUString GetVisibleStyle (unsigned nPosition)
 

Detailed Description

Definition at line 72 of file StylesPreviewWindow.hxx.

Constructor & Destructor Documentation

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

Definition at line 378 of file StylesPreviewWindow.cxx.

References m_pStatusListener, and m_xStatusListener.

Member Function Documentation

StylesPreviewWindow_Base::DECL_LINK ( GoUp  ,
const OString &  ,
void   
)
protected
StylesPreviewWindow_Base::DECL_LINK ( GoDown  ,
const OString &  ,
void   
)
protected
OUString StylesPreviewWindow_Base::GetVisibleStyle ( unsigned  nPosition)
private

Definition at line 393 of file StylesPreviewWindow.cxx.

References m_aAllStyles, m_nStyleIterator, and STYLES_COUNT.

Referenced by Update().

void StylesPreviewWindow_Base::MakeCurrentStyleVisible ( )
private

Definition at line 410 of file StylesPreviewWindow.cxx.

References m_aAllStyles, m_nStyleIterator, m_sSelectedStyle, and STYLES_COUNT.

Referenced by Select().

void StylesPreviewWindow_Base::Select ( const OUString &  rStyleName)
void StylesPreviewWindow_Base::Update ( )
private
void StylesPreviewWindow_Base::UpdateStylesList ( )
private

Member Data Documentation

std::vector<OUString> StylesPreviewWindow_Base::m_aAllStyles
protected
std::vector<OUString> StylesPreviewWindow_Base::m_aDefaultStyles
protected

Definition at line 86 of file StylesPreviewWindow.hxx.

Referenced by UpdateStylesList().

unsigned StylesPreviewWindow_Base::m_nStyleIterator
protected

Definition at line 89 of file StylesPreviewWindow.hxx.

Referenced by GetVisibleStyle(), and MakeCurrentStyleVisible().

StyleStatusListener* StylesPreviewWindow_Base::m_pStatusListener
protected

Definition at line 80 of file StylesPreviewWindow.hxx.

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

OUString StylesPreviewWindow_Base::m_sSelectedStyle
protected

Definition at line 90 of file StylesPreviewWindow.hxx.

Referenced by MakeCurrentStyleVisible(), Select(), and Update().

std::unique_ptr<weld::Toolbar> StylesPreviewWindow_Base::m_xDown
protected
css::uno::Reference<css::lang::XComponent> StylesPreviewWindow_Base::m_xStatusListener
protected

Definition at line 81 of file StylesPreviewWindow.hxx.

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

std::unique_ptr<StyleItemController> StylesPreviewWindow_Base::m_xStyleControllers[STYLES_COUNT]
protected

Definition at line 77 of file StylesPreviewWindow.hxx.

Referenced by StylesPreviewWindow_Base(), and Update().

std::unique_ptr<weld::CustomWeld> StylesPreviewWindow_Base::m_xStyleControllersWeld[STYLES_COUNT]
protected
std::unique_ptr<weld::Toolbar> StylesPreviewWindow_Base::m_xUp
protected
constexpr unsigned StylesPreviewWindow_Base::STYLES_COUNT = 4
staticprotected

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