LibreOffice Module svx (master) 1
|
#include <gallery1.hxx>
Public Member Functions | |
Gallery (std::u16string_view rMultiPath) | |
virtual | ~Gallery () override |
size_t | GetThemeCount () const |
SAL_DLLPRIVATE const GalleryThemeEntry * | GetThemeInfo (size_t nPos) |
const GalleryThemeEntry * | GetThemeInfo (std::u16string_view rThemeName) |
bool | HasTheme (std::u16string_view rThemeName) |
SAL_DLLPRIVATE OUString | GetThemeName (sal_uInt32 nThemeId) const |
bool | CreateTheme (const OUString &rThemeName) |
void | RenameTheme (const OUString &rOldName, const OUString &rNewName) |
bool | RemoveTheme (const OUString &rThemeName) |
GalleryTheme * | AcquireTheme (std::u16string_view rThemeName, SfxListener &rListener) |
void | ReleaseTheme (GalleryTheme *pTheme, SfxListener &rListener) |
SAL_DLLPRIVATE const INetURLObject & | GetUserURL () const |
SAL_DLLPRIVATE const INetURLObject & | GetRelativeURL () const |
Public Member Functions inherited from SfxBroadcaster | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
void | ForAllListeners (std::function< bool(SfxListener *)> f) const |
Static Public Member Functions | |
static Gallery * | GetGalleryInstance () |
Private Types | |
typedef std::vector< GalleryThemeCacheEntry * > | GalleryCacheThemeList |
Private Member Functions | |
SAL_DLLPRIVATE void | ImplLoad (std::u16string_view rMultiPath) |
SAL_DLLPRIVATE void | ImplLoadSubDirs (const INetURLObject &rBaseURL, bool &rbIsReadOnly) |
GalleryThemeEntry * | ImplGetThemeEntry (std::u16string_view rThemeName) |
SAL_DLLPRIVATE GalleryTheme * | ImplGetCachedTheme (GalleryThemeEntry *pThemeEntry) |
SAL_DLLPRIVATE void | ImplDeleteCachedTheme (GalleryTheme const *pTheme) |
Gallery & | operator= (Gallery const &)=delete |
Gallery (Gallery const &)=delete | |
Private Attributes | |
std::vector< std::unique_ptr< GalleryThemeEntry > > | aThemeList |
GalleryCacheThemeList | aThemeCache |
INetURLObject | aRelURL |
INetURLObject | aUserURL |
bool | bMultiPath |
Additional Inherited Members | |
Protected Member Functions inherited from SfxBroadcaster | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
Definition at line 93 of file gallery1.hxx.
|
private |
Definition at line 95 of file gallery1.hxx.
|
privatedelete |
Referenced by GetGalleryInstance().
Gallery::Gallery | ( | std::u16string_view | rMultiPath | ) |
Definition at line 232 of file gallery1.cxx.
References ImplLoad().
|
overridevirtual |
Definition at line 238 of file gallery1.cxx.
GalleryTheme * Gallery::AcquireTheme | ( | std::u16string_view | rThemeName, |
SfxListener & | rListener | ||
) |
Definition at line 697 of file gallery1.cxx.
References ImplGetCachedTheme(), ImplGetThemeEntry(), and SfxListener::StartListening().
Referenced by GalleryExplorer::BeginLocking(), GalleryExplorer::EndLocking(), GalleryExplorer::FillObjList(), GalleryExplorer::FillObjListTitle(), unogallery::GalleryTheme::GalleryTheme(), GalleryExplorer::GetGraphicObj(), GalleryExplorer::GetSdrObj(), GalleryExplorer::GetSdrObjCount(), GalleryBrowser1::ImplExecute(), GalleryBrowser1::ImplGalleryThemeProperties(), GalleryBrowser1::ImplGetExecuteVector(), GalleryExplorer::InsertURL(), RemoveTheme(), RenameTheme(), and GalleryBrowser2::SelectTheme().
bool Gallery::CreateTheme | ( | const OUString & | rThemeName | ) |
Definition at line 578 of file gallery1.cxx.
References aThemeList, aURL, SfxBroadcaster::Broadcast(), GalleryThemeEntry::createGalleryTheme(), GetUserURL(), HasTheme(), and THEME_CREATED.
|
static |
Definition at line 242 of file gallery1.cxx.
References Gallery(), and utl::ConfigManager::IsFuzzing().
Referenced by GalleryExplorer::BeginLocking(), GalleryExplorer::EndLocking(), GalleryExplorer::FillObjList(), GalleryExplorer::FillObjListTitle(), GalleryExplorer::FillThemeList(), unogallery::GalleryTheme::GalleryTheme(), GalleryExplorer::GetGraphicObj(), GalleryExplorer::GetSdrObj(), GalleryExplorer::GetSdrObjCount(), and GalleryExplorer::InsertURL().
|
inline |
Definition at line 141 of file gallery1.hxx.
Referenced by GalleryFileStorage::writeGalleryTheme().
|
inline |
Definition at line 123 of file gallery1.hxx.
Referenced by GalleryExplorer::FillThemeList(), and GalleryBrowser1::GalleryBrowser1().
|
inline |
Definition at line 124 of file gallery1.hxx.
References nPos.
Referenced by GalleryExplorer::FillThemeList(), GalleryBrowser1::GalleryBrowser1(), and GalleryBrowser1::Notify().
|
inline |
Definition at line 126 of file gallery1.hxx.
OUString Gallery::GetThemeName | ( | sal_uInt32 | nThemeId | ) | const |
Definition at line 494 of file gallery1.cxx.
References aThemeList, GALLERY_THEME_3D, GALLERY_THEME_BULLETS, GALLERY_THEME_FONTWORK, GALLERY_THEME_FONTWORK_VERTICAL, GALLERY_THEME_HOMEPAGE, GALLERY_THEME_POWERPOINT, GALLERY_THEME_SOUNDS, GalleryThemeEntry::GetId(), GalleryThemeEntry::GetThemeName(), i, ImplGetThemeEntry(), n, RID_GALLERY_THEME_ARROWS, RID_GALLERY_THEME_COMPUTERS, RID_GALLERY_THEME_DIAGRAMS, RID_GALLERY_THEME_EDUCATION, RID_GALLERY_THEME_ENVIRONMENT, RID_GALLERY_THEME_FINANCE, RID_GALLERY_THEME_PEOPLE, RID_GALLERY_THEME_SYMBOLS, RID_GALLERY_THEME_TRANSPORT, RID_GALLERY_THEME_TXTSHAPES, RID_GALLERYSTR_THEME_FONTWORK, RID_GALLERYSTR_THEME_FONTWORK_VERTICAL, RID_GALLERYSTR_THEME_POWERPOINT, and SvxResId().
Referenced by GalleryExplorer::BeginLocking(), GalleryExplorer::EndLocking(), GalleryExplorer::FillObjList(), GalleryExplorer::FillObjListTitle(), GalleryExplorer::GetGraphicObj(), GalleryExplorer::GetSdrObj(), GalleryExplorer::GetSdrObjCount(), ImplGetThemeEntry(), and GalleryExplorer::InsertURL().
|
inline |
Definition at line 140 of file gallery1.hxx.
Referenced by CreateTheme(), GalleryBrowser1::GalleryBrowser1(), and GalleryFileStorage::writeGalleryTheme().
bool Gallery::HasTheme | ( | std::u16string_view | rThemeName | ) |
Definition at line 573 of file gallery1.cxx.
References ImplGetThemeEntry().
Referenced by CreateTheme(), GalleryBrowser1::ImplEndGalleryThemeProperties(), GalleryBrowser1::ImplExecute(), and RenameTheme().
|
private |
|
private |
Definition at line 661 of file gallery1.cxx.
References aThemeCache, and GalleryThemeEntry::getCachedTheme().
Referenced by AcquireTheme().
|
private |
Definition at line 482 of file gallery1.cxx.
References aThemeList, GetThemeName(), i, and n.
Referenced by AcquireTheme(), GetThemeName(), HasTheme(), RemoveTheme(), and RenameTheme().
|
private |
Definition at line 252 of file gallery1.cxx.
References aRelURL, aUserURL, bMultiPath, DBG_ASSERT, INetURLObject::GetProtocol(), o3tl::getToken(), and ImplLoadSubDirs().
Referenced by Gallery().
|
private |
Definition at line 291 of file gallery1.cxx.
References INetURLObject::Append(), aThemeList, bReadOnly, ucbhelper::Content::createCursor(), utl::UcbStreamHelper::CreateStream(), GalleryFileStorageEntry::CreateThemeEntry(), INetURLObject::GetFileExtension(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), ucbhelper::Content::getPropertyValue(), INetURLObject::GetProtocol(), INetURLObject::GetURLPath(), KillFile(), INetURLObject::NONE, INetURLObject::SetExtension(), and u.
Referenced by ImplLoad().
void Gallery::ReleaseTheme | ( | GalleryTheme * | pTheme, |
SfxListener & | rListener | ||
) |
Definition at line 711 of file gallery1.cxx.
References SfxListener::EndListening(), SfxBroadcaster::HasListeners(), and ImplDeleteCachedTheme().
Referenced by GalleryExplorer::EndLocking(), GalleryExplorer::FillObjList(), GalleryExplorer::FillObjListTitle(), GalleryExplorer::GetGraphicObj(), GalleryExplorer::GetSdrObj(), GalleryExplorer::GetSdrObjCount(), GalleryBrowser1::ImplEndGalleryThemeProperties(), GalleryBrowser1::ImplExecute(), GalleryBrowser1::ImplGetExecuteVector(), GalleryExplorer::InsertURL(), unogallery::GalleryTheme::Notify(), RemoveTheme(), RenameTheme(), GalleryBrowser2::SelectTheme(), GalleryBrowser2::~GalleryBrowser2(), and unogallery::GalleryTheme::~GalleryTheme().
bool Gallery::RemoveTheme | ( | const OUString & | rThemeName | ) |
Definition at line 622 of file gallery1.cxx.
References AcquireTheme(), aThemeList, SfxBroadcaster::Broadcast(), CLOSE_THEME, ImplGetThemeEntry(), GalleryThemeEntry::IsReadOnly(), ReleaseTheme(), GalleryThemeEntry::removeTheme(), and THEME_REMOVED.
Referenced by GalleryBrowser1::ImplEndGalleryThemeProperties(), and GalleryBrowser1::ImplExecute().
void Gallery::RenameTheme | ( | const OUString & | rOldName, |
const OUString & | rNewName | ||
) |
Definition at line 599 of file gallery1.cxx.
References AcquireTheme(), SfxBroadcaster::Broadcast(), GalleryTheme::GetName(), HasTheme(), ImplGetThemeEntry(), GalleryTheme::ImplSetModified(), GalleryThemeEntry::IsModified(), GalleryThemeEntry::IsReadOnly(), GalleryTheme::mpGalleryStorageEngine, GalleryTheme::pThm, ReleaseTheme(), GalleryThemeEntry::SetName(), and THEME_RENAMED.
Referenced by GalleryBrowser1::ImplEndGalleryThemeProperties(), and GalleryBrowser1::ImplExecute().
|
private |
Definition at line 101 of file gallery1.hxx.
Referenced by ImplLoad().
|
private |
Definition at line 100 of file gallery1.hxx.
Referenced by ImplDeleteCachedTheme(), and ImplGetCachedTheme().
|
private |
Definition at line 99 of file gallery1.hxx.
Referenced by CreateTheme(), GetThemeName(), ImplGetThemeEntry(), ImplLoadSubDirs(), and RemoveTheme().
|
private |
Definition at line 102 of file gallery1.hxx.
Referenced by ImplLoad().
|
private |
Definition at line 103 of file gallery1.hxx.
Referenced by ImplLoad().