LibreOffice Module svx (master) 1
Public Member Functions | Static 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::XFrame > &xFrame)
 
 ~StylesPreviewWindow_Base ()
 
void Select (const OUString &rStyleName)
 
void RequestStylesListUpdate ()
 

Static Public Member Functions

static VclPtr< VirtualDeviceGetCachedPreview (const std::pair< OUString, OUString > &rStyle)
 
static OString GetCachedPreviewJson (const std::pair< OUString, OUString > &rStyle)
 

Protected Member Functions

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

Protected Attributes

css::uno::Reference< css::frame::XFrame > m_xFrame
 
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 92 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::XFrame > &  xFrame 
)

◆ ~StylesPreviewWindow_Base()

StylesPreviewWindow_Base::~StylesPreviewWindow_Base ( )

Definition at line 503 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/4]

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

◆ DECL_LINK() [2/4]

StylesPreviewWindow_Base::DECL_LINK ( DoJsonProperty  ,
const weld::json_prop_query ,
bool   
)
protected

◆ DECL_LINK() [3/4]

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

◆ DECL_LINK() [4/4]

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

◆ GetCachedPreview()

VclPtr< VirtualDevice > StylesPreviewWindow_Base::GetCachedPreview ( const std::pair< OUString, OUString > &  rStyle)
static

◆ GetCachedPreviewJson()

OString StylesPreviewWindow_Base::GetCachedPreviewJson ( const std::pair< OUString, OUString > &  rStyle)
static

Definition at line 609 of file StylesPreviewWindow.cxx.

References end, extractPngString(), and GetCachedPreview().

◆ RequestStylesListUpdate()

void StylesPreviewWindow_Base::RequestStylesListUpdate ( )

◆ Select()

void StylesPreviewWindow_Base::Select ( const OUString &  rStyleName)

◆ UpdateSelection()

void StylesPreviewWindow_Base::UpdateSelection ( )
private

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

Member Data Documentation

◆ m_aAllStyles

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

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

Referenced by UpdateStylesList().

◆ m_aUpdateTask

StylesListUpdateTask StylesPreviewWindow_Base::m_aUpdateTask
protected

Definition at line 103 of file StylesPreviewWindow.hxx.

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

◆ m_pStylePoolChangeListener

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

Definition at line 106 of file StylesPreviewWindow.hxx.

Referenced by StylesPreviewWindow_Base().

◆ m_sSelectedStyle

OUString StylesPreviewWindow_Base::m_sSelectedStyle
protected

Definition at line 111 of file StylesPreviewWindow.hxx.

Referenced by Select(), and UpdateSelection().

◆ m_xFrame

css::uno::Reference<css::frame::XFrame> StylesPreviewWindow_Base::m_xFrame
protected

Definition at line 99 of file StylesPreviewWindow.hxx.

Referenced by Command(), and StylesPreviewWindow_Base().

◆ m_xStatusListener

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

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


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