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::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::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 91 of file StylesPreviewWindow.hxx.
StylesPreviewWindow_Base::StylesPreviewWindow_Base | ( | weld::Builder & | xBuilder, |
std::vector< std::pair< OUString, OUString > > && | aDefaultStyles, | ||
const css::uno::Reference< css::frame::XDispatchProvider > & | xDispatchProvider | ||
) |
Definition at line 371 of file StylesPreviewWindow.cxx.
References LINK, m_pStylePoolChangeListener, m_xStatusListener, m_xStylesView, RequestStylesListUpdate(), and Selected.
StylesPreviewWindow_Base::~StylesPreviewWindow_Base | ( | ) |
Definition at line 419 of file StylesPreviewWindow.cxx.
References m_aUpdateTask, m_xStatusListener, and Task::Stop().
|
private |
Definition at line 125 of file StylesPreviewWindow.cxx.
References Application::CreateBuilder(), SfxToolBoxControl::Dispatch(), CommandEvent::GetCommand(), CommandEvent::GetMousePosPixel(), m_xDispatchProvider, and m_xStylesView.
|
protected |
|
protected |
|
protected |
void StylesPreviewWindow_Base::RequestStylesListUpdate | ( | ) |
Definition at line 455 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 436 of file StylesPreviewWindow.cxx.
References m_sSelectedStyle, and UpdateSelection().
Referenced by StyleStatusListener::StateChangedAtStatusListener().
|
private |
Definition at line 443 of file StylesPreviewWindow.cxx.
References first, i, m_aAllStyles, m_sSelectedStyle, and m_xStylesView.
Referenced by StylesListUpdateTask::Invoke(), and Select().
|
private |
Definition at line 463 of file StylesPreviewWindow.cxx.
References VclPtr< class reference_type >::Create(), SfxStyleSheetBasePool::CreateIterator(), SfxObjectShell::Current(), SfxStyleSheetBase::GetName(), SfxObjectShell::GetStyleSheetPool(), m_aAllStyles, m_aDefaultStyles, m_xStylesView, and StyleItemController::Paint().
Referenced by StylesListUpdateTask::Invoke().
|
friend |
Definition at line 93 of file StylesPreviewWindow.hxx.
|
protected |
Definition at line 108 of file StylesPreviewWindow.hxx.
Referenced by UpdateSelection(), and UpdateStylesList().
|
protected |
Definition at line 107 of file StylesPreviewWindow.hxx.
Referenced by UpdateStylesList().
|
protected |
Definition at line 102 of file StylesPreviewWindow.hxx.
Referenced by RequestStylesListUpdate(), and ~StylesPreviewWindow_Base().
|
protected |
Definition at line 105 of file StylesPreviewWindow.hxx.
Referenced by StylesPreviewWindow_Base().
|
protected |
Definition at line 110 of file StylesPreviewWindow.hxx.
Referenced by Select(), and UpdateSelection().
|
protected |
Definition at line 98 of file StylesPreviewWindow.hxx.
Referenced by Command().
|
protected |
Definition at line 104 of file StylesPreviewWindow.hxx.
Referenced by StylesPreviewWindow_Base(), and ~StylesPreviewWindow_Base().
|
protected |
Definition at line 100 of file StylesPreviewWindow.hxx.
Referenced by Command(), StylesPreviewWindow_Impl::dispose(), StylesPreviewWindow_Base(), UpdateSelection(), and UpdateStylesList().
|
staticconstexprprotected |
Definition at line 96 of file StylesPreviewWindow.hxx.