LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
GalleryTheme Class Referencefinal

#include <galtheme.hxx>

Inheritance diagram for GalleryTheme:
Collaboration diagram for GalleryTheme:

Public Member Functions

SAL_DLLPRIVATE GalleryTheme (Gallery *pGallery, GalleryThemeEntry *pThemeEntry)
virtual SAL_DLLPRIVATE ~GalleryTheme () override
SAL_DLLPRIVATE sal_uInt32 GetObjectCount () const
std::unique_ptr< SgaObject > AcquireObject (sal_uInt32 nPos)
bool InsertObject (const SgaObject &rObj, sal_uInt32 nPos=SAL_MAX_UINT32)
void RemoveObject (sal_uInt32 nPos)
bool ChangeObjectPos (sal_uInt32 nOldPos, sal_uInt32 nNewPos)
const OUString & GetName () const
void SetDestDir (const OUString &rDestDir, bool bRelative)
sal_uInt32 GetId () const
SAL_DLLPRIVATE void SetId (sal_uInt32 nNewId, bool bResetThemeName)
SAL_DLLPRIVATE void SetDragging (bool bSet)
SAL_DLLPRIVATE bool IsDragging () const
SAL_DLLPRIVATE void LockTheme ()
SAL_DLLPRIVATE bool UnlockTheme ()
SAL_DLLPRIVATE void LockBroadcaster ()
void UnlockBroadcaster ()
SAL_DLLPRIVATE bool IsBroadcasterLocked () const
SAL_DLLPRIVATE void SetDragPos (sal_uInt32 nPos)
SAL_DLLPRIVATE sal_uInt32 GetDragPos () const
bool IsReadOnly () const
bool IsDefault () const
void Actualize (const Link< const INetURLObject &, void > &rActualizeLink, GalleryProgress *pProgress=nullptr)
SAL_DLLPRIVATE void AbortActualize ()
SAL_DLLPRIVATE GalleryGetParent () const
SAL_DLLPRIVATE SgaObjKind GetObjectKind (sal_uInt32 nPos) const
SAL_DLLPRIVATE const INetURLObjectGetObjectURL (sal_uInt32 nPos) const
SAL_DLLPRIVATE bool GetThumb (sal_uInt32 nPos, BitmapEx &rBmp)
bool GetGraphic (sal_uInt32 nPos, Graphic &rGraphic)
bool InsertGraphic (const Graphic &rGraphic, sal_uInt32 nInsertPos)
bool GetModel (sal_uInt32 nPos, SdrModel &rModel)
bool InsertModel (const FmFormModel &rModel, sal_uInt32 nInsertPos)
SAL_DLLPRIVATE bool GetModelStream (sal_uInt32 nPos, tools::SvRef< SotTempStream > const &rModelStreamRef)
SAL_DLLPRIVATE bool InsertModelStream (const tools::SvRef< SotTempStream > &rModelStream, sal_uInt32 nInsertPos)
SAL_DLLPRIVATE bool GetURL (sal_uInt32 nPos, INetURLObject &rURL)
bool InsertURL (const INetURLObject &rURL, sal_uInt32 nInsertPos=SAL_MAX_UINT32)
SAL_DLLPRIVATE bool InsertFileOrDirURL (const INetURLObject &rFileOrDirURL, sal_uInt32 nInsertPos)
SAL_DLLPRIVATE bool InsertTransferable (const css::uno::Reference< css::datatransfer::XTransferable > &rxTransferable, sal_uInt32 nInsertPos)
SAL_DLLPRIVATE void CopyToClipboard (const weld::Widget &rWidget, sal_uInt32 nPos)
DateTime getModificationDate () const
const INetURLObjectgetThemeURL () const
SAL_DLLPRIVATE SvStreamReadData (SvStream &rIn)
SAL_DLLPRIVATE void GetPreviewBitmapExAndStrings (sal_uInt32 nPos, BitmapEx &rBitmapEx, Size &rSize, OUString &rTitle, OUString &rPath)
SAL_DLLPRIVATE void SetPreviewBitmapExAndStrings (sal_uInt32 nPos, const BitmapEx &rBitmapEx, const Size &rSize, const OUString &rTitle, const OUString &rPath)
- 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
size_t GetSizeOfVector () const
SfxListenerGetListener (size_t nNo) const

Static Public Member Functions

static void InsertAllThemes (weld::ComboBox &rListBox)

Private Member Functions

const std::unique_ptr< GalleryBinaryEngine > & getGalleryStorageEngine () const
SAL_DLLPRIVATE void ImplSetModified (bool bModified)
SAL_DLLPRIVATE void ImplBroadcast (sal_uInt32 nUpdatePos)
 GalleryTheme (GalleryTheme const &)=delete
void operator= (GalleryTheme const &)=delete

Private Attributes

std::unique_ptr< GalleryBinaryEnginempGalleryStorageEngine
GalleryObjectCollection maGalleryObjectCollection
sal_uInt32 mnThemeLockCount
sal_uInt32 mnBroadcasterLockCount
sal_uInt32 nDragPos
bool bDragging
bool bAbortActualize


class Gallery
class GalleryThemeCacheEntry
class ::unogallery::GalleryTheme
class ::unogallery::GalleryItem

Additional Inherited Members

- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)

Detailed Description

Definition at line 50 of file galtheme.hxx.

Constructor & Destructor Documentation

GalleryTheme::GalleryTheme ( GalleryTheme const &  )
GalleryTheme::GalleryTheme ( Gallery pGallery,
GalleryThemeEntry pThemeEntry 
GalleryTheme::~GalleryTheme ( )

Member Function Documentation

SAL_DLLPRIVATE void GalleryTheme::AbortActualize ( )

Definition at line 115 of file galtheme.hxx.

std::unique_ptr< SgaObject > GalleryTheme::AcquireObject ( sal_uInt32  nPos)
void GalleryTheme::Actualize ( const Link< const INetURLObject &, void > &  rActualizeLink,
GalleryProgress pProgress = nullptr 
bool GalleryTheme::ChangeObjectPos ( sal_uInt32  nOldPos,
sal_uInt32  nNewPos 
void GalleryTheme::CopyToClipboard ( const weld::Widget rWidget,
sal_uInt32  nPos 

Definition at line 630 of file galtheme.cxx.

References weld::Widget::get_clipboard().

Referenced by GalleryBrowser2::Execute().

SAL_DLLPRIVATE sal_uInt32 GalleryTheme::GetDragPos ( ) const

Definition at line 109 of file galtheme.hxx.

Referenced by GalleryBrowser2::ExecuteDrop().

const std::unique_ptr<GalleryBinaryEngine>& GalleryTheme::getGalleryStorageEngine ( ) const

Definition at line 69 of file galtheme.hxx.

bool GalleryTheme::GetGraphic ( sal_uInt32  nPos,
Graphic rGraphic 
sal_uInt32 GalleryTheme::GetId ( ) const

Definition at line 772 of file galtheme.cxx.

References GalleryThemeEntry::GetId(), and pThm.

Referenced by GalleryBinaryEngine::writeGalleryTheme().

bool GalleryTheme::GetModel ( sal_uInt32  nPos,
SdrModel rModel 
bool GalleryTheme::GetModelStream ( sal_uInt32  nPos,
tools::SvRef< SotTempStream > const &  rModelStreamRef 
DateTime GalleryTheme::getModificationDate ( ) const

Definition at line 636 of file galtheme.cxx.

References mpGalleryStorageEngine.

Referenced by GalleryBrowser1::ImplFillExchangeData().

const OUString & GalleryTheme::GetName ( ) const
SAL_DLLPRIVATE sal_uInt32 GalleryTheme::GetObjectCount ( ) const
SAL_DLLPRIVATE SgaObjKind GalleryTheme::GetObjectKind ( sal_uInt32  nPos) const
SAL_DLLPRIVATE const INetURLObject& GalleryTheme::GetObjectURL ( sal_uInt32  nPos) const
SAL_DLLPRIVATE Gallery* GalleryTheme::GetParent ( ) const
void GalleryTheme::GetPreviewBitmapExAndStrings ( sal_uInt32  nPos,
BitmapEx rBitmapEx,
Size rSize,
OUString &  rTitle,
OUString &  rPath 
const INetURLObject& GalleryTheme::getThemeURL ( ) const

Definition at line 155 of file galtheme.hxx.

bool GalleryTheme::GetThumb ( sal_uInt32  nPos,
BitmapEx rBmp 

Definition at line 297 of file galtheme.cxx.

References AcquireObject().

Referenced by GalleryExplorer::GetSdrObj().

bool GalleryTheme::GetURL ( sal_uInt32  nPos,
INetURLObject rURL 
void GalleryTheme::ImplBroadcast ( sal_uInt32  nUpdatePos)
void GalleryTheme::ImplSetModified ( bool  bModified)
void GalleryTheme::InsertAllThemes ( weld::ComboBox rListBox)
bool GalleryTheme::InsertFileOrDirURL ( const INetURLObject rFileOrDirURL,
sal_uInt32  nInsertPos 

Definition at line 521 of file galtheme.cxx.

References GalleryBinaryEngine::insertFileOrDirURL(), and InsertURL().

Referenced by InsertTransferable().

bool GalleryTheme::InsertGraphic ( const Graphic rGraphic,
sal_uInt32  nInsertPos 
bool GalleryTheme::InsertModel ( const FmFormModel rModel,
sal_uInt32  nInsertPos 

Definition at line 449 of file galtheme.cxx.

References GetParent(), InsertObject(), and mpGalleryStorageEngine.

Referenced by InsertTransferable().

bool GalleryTheme::InsertModelStream ( const tools::SvRef< SotTempStream > &  rModelStream,
sal_uInt32  nInsertPos 

Definition at line 471 of file galtheme.cxx.

References GetParent(), InsertObject(), and mpGalleryStorageEngine.

Referenced by InsertTransferable().

bool GalleryTheme::InsertObject ( const SgaObject &  rObj,
sal_uInt32  nPos = SAL_MAX_UINT32 
bool GalleryTheme::InsertTransferable ( const css::uno::Reference< css::datatransfer::XTransferable > &  rxTransferable,
sal_uInt32  nInsertPos 
bool GalleryTheme::InsertURL ( const INetURLObject rURL,
sal_uInt32  nInsertPos = SAL_MAX_UINT32 
SAL_DLLPRIVATE bool GalleryTheme::IsBroadcasterLocked ( ) const

Definition at line 106 of file galtheme.hxx.

Referenced by ImplBroadcast().

bool GalleryTheme::IsDefault ( ) const

Definition at line 775 of file galtheme.cxx.

References GalleryThemeEntry::IsDefault(), and pThm.

Referenced by GalleryBrowser1::ImplGetExecuteVector().

SAL_DLLPRIVATE bool GalleryTheme::IsDragging ( ) const

Definition at line 99 of file galtheme.hxx.

Referenced by GalleryBrowser2::AcceptDrop(), and GalleryBrowser2::ExecuteDrop().

bool GalleryTheme::IsReadOnly ( ) const
SAL_DLLPRIVATE void GalleryTheme::LockBroadcaster ( )

Definition at line 104 of file galtheme.hxx.

Referenced by Actualize().

SAL_DLLPRIVATE void GalleryTheme::LockTheme ( )

Definition at line 101 of file galtheme.hxx.

Referenced by GalleryExplorer::BeginLocking().

void GalleryTheme::operator= ( GalleryTheme const &  )
SvStream & GalleryTheme::ReadData ( SvStream rIn)
void GalleryTheme::RemoveObject ( sal_uInt32  nPos)
void GalleryTheme::SetDestDir ( const OUString &  rDestDir,
bool  bRelative 

Definition at line 79 of file galtheme.cxx.

References mpGalleryStorageEngine.

SAL_DLLPRIVATE void GalleryTheme::SetDragging ( bool  bSet)
SAL_DLLPRIVATE void GalleryTheme::SetDragPos ( sal_uInt32  nPos)
void GalleryTheme::SetId ( sal_uInt32  nNewId,
bool  bResetThemeName 

Definition at line 773 of file galtheme.cxx.

References pThm, and GalleryThemeEntry::SetId().

Referenced by GalleryBrowser1::ImplExecute(), and ReadData().

void GalleryTheme::SetPreviewBitmapExAndStrings ( sal_uInt32  nPos,
const BitmapEx rBitmapEx,
const Size rSize,
const OUString &  rTitle,
const OUString &  rPath 
void GalleryTheme::UnlockBroadcaster ( )

Definition at line 110 of file galtheme.cxx.

References DBG_ASSERT, ImplBroadcast(), and mnBroadcasterLockCount.

Referenced by Actualize().

bool GalleryTheme::UnlockTheme ( )

Definition at line 95 of file galtheme.cxx.

References DBG_ASSERT, and mnThemeLockCount.

Referenced by GalleryExplorer::EndLocking().

Friends And Related Function Documentation

friend class ::unogallery::GalleryItem

Definition at line 55 of file galtheme.hxx.

friend class ::unogallery::GalleryTheme

Definition at line 54 of file galtheme.hxx.

friend class Gallery

Definition at line 52 of file galtheme.hxx.

friend class GalleryThemeCacheEntry

Definition at line 53 of file galtheme.hxx.

Member Data Documentation

bool GalleryTheme::bAbortActualize

Definition at line 67 of file galtheme.hxx.

Referenced by Actualize().

bool GalleryTheme::bDragging

Definition at line 66 of file galtheme.hxx.

GalleryObjectCollection GalleryTheme::maGalleryObjectCollection
sal_uInt32 GalleryTheme::mnBroadcasterLockCount

Definition at line 64 of file galtheme.hxx.

Referenced by UnlockBroadcaster().

sal_uInt32 GalleryTheme::mnThemeLockCount

Definition at line 63 of file galtheme.hxx.

Referenced by UnlockTheme().

std::unique_ptr<GalleryBinaryEngine> GalleryTheme::mpGalleryStorageEngine
sal_uInt32 GalleryTheme::nDragPos

Definition at line 65 of file galtheme.hxx.

Gallery* GalleryTheme::pParent

Definition at line 61 of file galtheme.hxx.

GalleryThemeEntry* GalleryTheme::pThm

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