LibreOffice Module svx (master) 1
|
#include <StylesPreviewWindow.hxx>
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< VirtualDevice > | GetCachedPreview (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::IconView > | m_xStylesView |
StylesListUpdateTask | m_aUpdateTask |
rtl::Reference< StyleStatusListener > | m_xStatusListener |
std::unique_ptr< StylePoolChangeListener > | m_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 |
Definition at line 92 of file StylesPreviewWindow.hxx.
StylesPreviewWindow_Base::StylesPreviewWindow_Base | ( | weld::Builder & | xBuilder, |
std::vector< std::pair< OUString, OUString > > && | aDefaultStyles, | ||
const css::uno::Reference< css::frame::XFrame > & | xFrame | ||
) |
Definition at line 445 of file StylesPreviewWindow.cxx.
References LINK, m_pStylePoolChangeListener, m_xFrame, m_xFrame, m_xStatusListener, m_xStylesView, RequestStylesListUpdate(), Selected, and xFrame.
StylesPreviewWindow_Base::~StylesPreviewWindow_Base | ( | ) |
Definition at line 503 of file StylesPreviewWindow.cxx.
References m_aUpdateTask, m_xStatusListener, and Task::Stop().
|
private |
Definition at line 197 of file StylesPreviewWindow.cxx.
References Application::CreateBuilder(), SfxToolBoxControl::Dispatch(), CommandEvent::GetCommand(), CommandEvent::GetMousePosPixel(), m_xFrame, and m_xStylesView.
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
Definition at line 590 of file StylesPreviewWindow.cxx.
References VclPtr< class reference_type >::Create(), end, EnhancedCustomShapeTypeNames::Get(), and StyleItemController::Paint().
Referenced by GetCachedPreviewJson(), and UpdateStylesList().
|
static |
Definition at line 609 of file StylesPreviewWindow.cxx.
References end, extractPngString(), and GetCachedPreview().
void StylesPreviewWindow_Base::RequestStylesListUpdate | ( | ) |
Definition at line 541 of file StylesPreviewWindow.cxx.
References m_aUpdateTask, and Idle::Start().
Referenced by StylePoolChangeListener::Notify(), and StylesPreviewWindow_Base().
void StylesPreviewWindow_Base::Select | ( | const OUString & | rStyleName | ) |
Definition at line 522 of file StylesPreviewWindow.cxx.
References m_sSelectedStyle, and UpdateSelection().
Referenced by StyleStatusListener::StateChangedAtStatusListener().
|
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().
|
private |
Definition at line 622 of file StylesPreviewWindow.cxx.
References SfxStyleSheetBasePool::CreateIterator(), SfxObjectShell::Current(), GetCachedPreview(), SfxStyleSheetBase::GetName(), SfxObjectShell::GetStyleSheetPool(), comphelper::LibreOfficeKit::isActive(), m_aAllStyles, m_aDefaultStyles, m_xStylesView, and sName.
Referenced by StylesListUpdateTask::Invoke().
|
friend |
Definition at line 94 of file StylesPreviewWindow.hxx.
|
protected |
Definition at line 109 of file StylesPreviewWindow.hxx.
Referenced by UpdateSelection(), and UpdateStylesList().
|
protected |
Definition at line 108 of file StylesPreviewWindow.hxx.
Referenced by UpdateStylesList().
|
protected |
Definition at line 103 of file StylesPreviewWindow.hxx.
Referenced by RequestStylesListUpdate(), and ~StylesPreviewWindow_Base().
|
protected |
Definition at line 106 of file StylesPreviewWindow.hxx.
Referenced by StylesPreviewWindow_Base().
|
protected |
Definition at line 111 of file StylesPreviewWindow.hxx.
Referenced by Select(), and UpdateSelection().
|
protected |
Definition at line 99 of file StylesPreviewWindow.hxx.
Referenced by Command(), and StylesPreviewWindow_Base().
|
protected |
Definition at line 105 of file StylesPreviewWindow.hxx.
Referenced by StylesPreviewWindow_Base(), and ~StylesPreviewWindow_Base().
|
protected |
Definition at line 101 of file StylesPreviewWindow.hxx.
Referenced by Command(), StylesPreviewWindow_Impl::dispose(), StylesPreviewWindow_Base(), UpdateSelection(), and UpdateStylesList().
|
staticconstexprprotected |
Definition at line 97 of file StylesPreviewWindow.hxx.