LibreOffice Module svx (master) 1
|
#include <galbrws1.hxx>
Public Member Functions | |
GalleryBrowser1 (weld::Builder &rBuilder, Gallery *pGallery, ::std::function< void()> aThemeSelectionHandler) | |
~GalleryBrowser1 () | |
void | SelectTheme (sal_uInt16 nThemePos) |
OUString | GetSelectedTheme () const |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Private Member Functions | |
void | ImplInsertThemeEntry (const GalleryThemeEntry *pEntry) |
void | ImplGetExecuteVector (std::vector< OUString > &o_aExec) |
void | ImplExecute (std::u16string_view rIdent) |
void | ImplGalleryThemeProperties (std::u16string_view rThemeName, bool bCreateNew) |
void | EndNewThemePropertiesDlgHdl (sal_Int32 nResult) |
void | EndThemePropertiesDlgHdl (sal_Int32 nResult) |
void | ImplEndGalleryThemeProperties (bool bCreateNew, sal_Int32 nResult) |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
DECL_LINK (ClickNewThemeHdl, weld::Button &, void) | |
DECL_LINK (SelectThemeHdl, weld::TreeView &, void) | |
DECL_LINK (PopupMenuHdl, const CommandEvent &, bool) | |
DECL_LINK (KeyInputHdl, const KeyEvent &, bool) | |
DECL_STATIC_LINK (GalleryBrowser1, OnMoreGalleriesClick, weld::Button &, void) | |
Static Private Member Functions | |
static void | ImplFillExchangeData (const GalleryTheme *pThm, ExchangeData &rData) |
Private Attributes | |
std::unique_ptr< weld::Button > | mxNewTheme |
std::unique_ptr< weld::TreeView > | mxThemes |
std::unique_ptr< weld::Button > | mxMoreGalleries |
Gallery * | mpGallery |
std::unique_ptr< ExchangeData > | mpExchangeData |
std::unique_ptr< SfxItemSet > | mpThemePropsDlgItemSet |
OUString | aImgNormal |
OUString | aImgDefault |
OUString | aImgReadOnly |
::std::function< void()> | maThemeSelectionHandler |
Friends | |
class | GalleryBrowser |
class | svx::sidebar::GalleryControl |
Definition at line 40 of file galbrws1.hxx.
GalleryBrowser1::GalleryBrowser1 | ( | weld::Builder & | rBuilder, |
Gallery * | pGallery, | ||
::std::function< void()> | aThemeSelectionHandler | ||
) |
Definition at line 47 of file galbrws1.cxx.
References INetURLObject::GetProtocol(), Gallery::GetThemeCount(), Gallery::GetThemeInfo(), Gallery::GetUserURL(), HID_GALLERY_NEWTHEME, HID_GALLERY_THEMELIST, i, ImplInsertThemeEntry(), LINK, mpGallery, mxMoreGalleries, mxNewTheme, mxThemes, nCount, and SfxListener::StartListening().
GalleryBrowser1::~GalleryBrowser1 | ( | ) |
Definition at line 84 of file galbrws1.cxx.
References SfxListener::EndListening(), mpExchangeData, and mpGallery.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 231 of file galbrws1.cxx.
References ImplEndGalleryThemeProperties().
Referenced by ImplGalleryThemeProperties().
|
private |
Definition at line 236 of file galbrws1.cxx.
References ImplEndGalleryThemeProperties().
Referenced by ImplGalleryThemeProperties().
|
inline |
Definition at line 88 of file galbrws1.hxx.
References mxThemes.
Referenced by ImplExecute(), and ImplGetExecuteVector().
|
private |
Definition at line 196 of file galbrws1.cxx.
References aName, Gallery::HasTheme(), mpExchangeData, mpGallery, mxThemes, nCount, Gallery::ReleaseTheme(), Gallery::RemoveTheme(), Gallery::RenameTheme(), and RET_OK.
Referenced by EndNewThemePropertiesDlgHdl(), and EndThemePropertiesDlgHdl().
|
private |
Definition at line 241 of file galbrws1.cxx.
References Gallery::AcquireTheme(), aName, SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateActualizeProgressDialog(), Application::CreateBuilder(), SvxAbstractDialogFactory::CreateGalleryIdDialog(), SvxAbstractDialogFactory::CreateTitleDialog(), GalleryTheme::GetName(), GetSelectedTheme(), Gallery::HasTheme(), ImplGalleryThemeProperties(), GalleryTheme::IsReadOnly(), mpGallery, mxThemes, nCount, Gallery::ReleaseTheme(), Gallery::RemoveTheme(), Gallery::RenameTheme(), RET_OK, RET_YES, GalleryTheme::SetId(), and u.
|
staticprivate |
Definition at line 109 of file galbrws1.cxx.
References ExchangeData::aEditedTitle, ExchangeData::aThemeChangeDate, ExchangeData::aThemeChangeTime, GalleryTheme::getModificationDate(), GalleryTheme::GetName(), and ExchangeData::pTheme.
Referenced by ImplGalleryThemeProperties().
|
private |
Definition at line 169 of file galbrws1.cxx.
References Gallery::AcquireTheme(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateGalleryThemePropertiesDialog(), DBG_ASSERT, EndNewThemePropertiesDlgHdl(), EndThemePropertiesDlgHdl(), ImplFillExchangeData(), mpExchangeData, mpGallery, mpThemePropsDlgItemSet, mxThemes, and SfxGetpApp().
Referenced by ImplExecute().
|
private |
Definition at line 132 of file galbrws1.cxx.
References Gallery::AcquireTheme(), GalleryTheme::GetObjectCount(), GetSelectedTheme(), GalleryTheme::IsDefault(), GalleryTheme::IsReadOnly(), mpGallery, and Gallery::ReleaseTheme().
|
private |
Definition at line 90 of file galbrws1.cxx.
References aImgDefault, aImgNormal, aImgReadOnly, GalleryThemeEntry::GetThemeName(), GalleryThemeEntry::IsDefault(), GalleryThemeEntry::IsHidden(), GalleryThemeEntry::IsReadOnly(), and mxThemes.
Referenced by GalleryBrowser1(), and Notify().
|
overrideprivatevirtual |
Reimplemented from SfxListener.
Definition at line 308 of file galbrws1.cxx.
References CLOSE_THEME, GalleryHint::GetStringData(), Gallery::GetThemeInfo(), GalleryHint::GetThemeName(), GalleryHint::GetType(), ImplInsertThemeEntry(), mpGallery, mxThemes, THEME_CREATED, THEME_REMOVED, and THEME_RENAMED.
|
inline |
Definition at line 87 of file galbrws1.hxx.
References mxThemes.
|
friend |
Definition at line 42 of file galbrws1.hxx.
|
friend |
Definition at line 43 of file galbrws1.hxx.
|
private |
Definition at line 55 of file galbrws1.hxx.
Referenced by ImplInsertThemeEntry().
|
private |
Definition at line 54 of file galbrws1.hxx.
Referenced by ImplInsertThemeEntry().
|
private |
Definition at line 56 of file galbrws1.hxx.
Referenced by ImplInsertThemeEntry().
|
private |
Definition at line 58 of file galbrws1.hxx.
|
private |
Definition at line 51 of file galbrws1.hxx.
Referenced by ImplEndGalleryThemeProperties(), ImplGalleryThemeProperties(), and ~GalleryBrowser1().
|
private |
Definition at line 50 of file galbrws1.hxx.
Referenced by GalleryBrowser1(), ImplEndGalleryThemeProperties(), ImplExecute(), ImplGalleryThemeProperties(), ImplGetExecuteVector(), Notify(), and ~GalleryBrowser1().
|
private |
Definition at line 52 of file galbrws1.hxx.
Referenced by ImplGalleryThemeProperties().
|
private |
Definition at line 49 of file galbrws1.hxx.
Referenced by GalleryBrowser1().
|
private |
Definition at line 47 of file galbrws1.hxx.
Referenced by GalleryBrowser1().
|
private |
Definition at line 48 of file galbrws1.hxx.
Referenced by GalleryBrowser1(), GetSelectedTheme(), ImplEndGalleryThemeProperties(), ImplExecute(), ImplGalleryThemeProperties(), ImplInsertThemeEntry(), Notify(), and SelectTheme().