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:
[legend]
Collaboration diagram for GalleryTheme:
[legend]

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
 
void ForAllListeners (std::function< bool(SfxListener *)> f) const
 

Static Public Member Functions

static void InsertAllThemes (weld::ComboBox &rListBox)
 

Private Member Functions

const std::unique_ptr< GalleryFileStorage > & 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< GalleryFileStoragempGalleryStorageEngine
 
GalleryObjectCollection maGalleryObjectCollection
 
GallerypParent
 
GalleryThemeEntrypThm
 
sal_uInt32 mnThemeLockCount
 
sal_uInt32 mnBroadcasterLockCount
 
sal_uInt32 nDragPos
 
bool bDragging
 
bool bAbortActualize
 

Friends

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 51 of file galtheme.hxx.

Constructor & Destructor Documentation

◆ GalleryTheme() [1/2]

GalleryTheme::GalleryTheme ( GalleryTheme const &  )
privatedelete

◆ GalleryTheme() [2/2]

GalleryTheme::GalleryTheme ( Gallery pGallery,
GalleryThemeEntry pThemeEntry 
)

◆ ~GalleryTheme()

GalleryTheme::~GalleryTheme ( )
overridevirtual

Member Function Documentation

◆ AbortActualize()

SAL_DLLPRIVATE void GalleryTheme::AbortActualize ( )
inline

Definition at line 116 of file galtheme.hxx.

◆ AcquireObject()

std::unique_ptr< SgaObject > GalleryTheme::AcquireObject ( sal_uInt32  nPos)

◆ Actualize()

void GalleryTheme::Actualize ( const Link< const INetURLObject &, void > &  rActualizeLink,
GalleryProgress pProgress = nullptr 
)

◆ ChangeObjectPos()

bool GalleryTheme::ChangeObjectPos ( sal_uInt32  nOldPos,
sal_uInt32  nNewPos 
)

◆ CopyToClipboard()

void GalleryTheme::CopyToClipboard ( const weld::Widget rWidget,
sal_uInt32  nPos 
)

Definition at line 631 of file galtheme.cxx.

References weld::Widget::get_clipboard(), and nPos.

Referenced by GalleryBrowser2::Execute().

◆ GetDragPos()

SAL_DLLPRIVATE sal_uInt32 GalleryTheme::GetDragPos ( ) const
inline

Definition at line 110 of file galtheme.hxx.

Referenced by GalleryBrowser2::ExecuteDrop().

◆ getGalleryStorageEngine()

const std::unique_ptr< GalleryFileStorage > & GalleryTheme::getGalleryStorageEngine ( ) const
inlineprivate

Definition at line 70 of file galtheme.hxx.

Referenced by unogallery::GalleryItem::_setPropertyValues().

◆ GetGraphic()

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

◆ GetId()

sal_uInt32 GalleryTheme::GetId ( ) const

Definition at line 772 of file galtheme.cxx.

References GalleryThemeEntry::GetId(), and pThm.

Referenced by GalleryFileStorage::writeGalleryTheme().

◆ GetModel()

bool GalleryTheme::GetModel ( sal_uInt32  nPos,
SdrModel rModel 
)

◆ GetModelStream()

bool GalleryTheme::GetModelStream ( sal_uInt32  nPos,
tools::SvRef< SotTempStream > const &  rModelStreamRef 
)

◆ getModificationDate()

DateTime GalleryTheme::getModificationDate ( ) const

Definition at line 637 of file galtheme.cxx.

References mpGalleryStorageEngine.

Referenced by GalleryBrowser1::ImplFillExchangeData().

◆ GetName()

const OUString & GalleryTheme::GetName ( ) const

◆ GetObjectCount()

SAL_DLLPRIVATE sal_uInt32 GalleryTheme::GetObjectCount ( ) const
inline

◆ GetObjectKind()

SAL_DLLPRIVATE SgaObjKind GalleryTheme::GetObjectKind ( sal_uInt32  nPos) const
inline

◆ GetObjectURL()

SAL_DLLPRIVATE const INetURLObject & GalleryTheme::GetObjectURL ( sal_uInt32  nPos) const
inline

◆ GetParent()

SAL_DLLPRIVATE Gallery * GalleryTheme::GetParent ( ) const
inline

◆ GetPreviewBitmapExAndStrings()

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

◆ getThemeURL()

const INetURLObject & GalleryTheme::getThemeURL ( ) const

Definition at line 778 of file galtheme.cxx.

References mpGalleryStorageEngine.

◆ GetThumb()

bool GalleryTheme::GetThumb ( sal_uInt32  nPos,
BitmapEx rBmp 
)

Definition at line 297 of file galtheme.cxx.

References AcquireObject(), and nPos.

Referenced by GalleryExplorer::GetSdrObj().

◆ GetURL()

bool GalleryTheme::GetURL ( sal_uInt32  nPos,
INetURLObject rURL 
)

◆ ImplBroadcast()

void GalleryTheme::ImplBroadcast ( sal_uInt32  nUpdatePos)
private

◆ ImplSetModified()

void GalleryTheme::ImplSetModified ( bool  bModified)
private

◆ InsertAllThemes()

void GalleryTheme::InsertAllThemes ( weld::ComboBox rListBox)
static

◆ InsertFileOrDirURL()

bool GalleryTheme::InsertFileOrDirURL ( const INetURLObject rFileOrDirURL,
sal_uInt32  nInsertPos 
)

Definition at line 522 of file galtheme.cxx.

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

Referenced by InsertTransferable().

◆ InsertGraphic()

bool GalleryTheme::InsertGraphic ( const Graphic rGraphic,
sal_uInt32  nInsertPos 
)

◆ InsertModel()

bool GalleryTheme::InsertModel ( const FmFormModel rModel,
sal_uInt32  nInsertPos 
)

Definition at line 450 of file galtheme.cxx.

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

Referenced by InsertTransferable().

◆ InsertModelStream()

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

Definition at line 472 of file galtheme.cxx.

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

Referenced by InsertTransferable().

◆ InsertObject()

bool GalleryTheme::InsertObject ( const SgaObject &  rObj,
sal_uInt32  nPos = SAL_MAX_UINT32 
)

◆ InsertTransferable()

bool GalleryTheme::InsertTransferable ( const css::uno::Reference< css::datatransfer::XTransferable > &  rxTransferable,
sal_uInt32  nInsertPos 
)

◆ InsertURL()

bool GalleryTheme::InsertURL ( const INetURLObject rURL,
sal_uInt32  nInsertPos = SAL_MAX_UINT32 
)

◆ IsBroadcasterLocked()

SAL_DLLPRIVATE bool GalleryTheme::IsBroadcasterLocked ( ) const
inline

Definition at line 107 of file galtheme.hxx.

Referenced by ImplBroadcast().

◆ IsDefault()

bool GalleryTheme::IsDefault ( ) const

Definition at line 775 of file galtheme.cxx.

References GalleryThemeEntry::IsDefault(), and pThm.

Referenced by GalleryBrowser1::ImplGetExecuteVector().

◆ IsDragging()

SAL_DLLPRIVATE bool GalleryTheme::IsDragging ( ) const
inline

Definition at line 100 of file galtheme.hxx.

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

◆ IsReadOnly()

bool GalleryTheme::IsReadOnly ( ) const

◆ LockBroadcaster()

SAL_DLLPRIVATE void GalleryTheme::LockBroadcaster ( )
inline

Definition at line 105 of file galtheme.hxx.

Referenced by Actualize().

◆ LockTheme()

SAL_DLLPRIVATE void GalleryTheme::LockTheme ( )
inline

Definition at line 102 of file galtheme.hxx.

Referenced by GalleryExplorer::BeginLocking().

◆ operator=()

void GalleryTheme::operator= ( GalleryTheme const &  )
privatedelete

◆ ReadData()

SvStream & GalleryTheme::ReadData ( SvStream rIn)

◆ RemoveObject()

void GalleryTheme::RemoveObject ( sal_uInt32  nPos)

◆ SetDestDir()

void GalleryTheme::SetDestDir ( const OUString &  rDestDir,
bool  bRelative 
)

Definition at line 79 of file galtheme.cxx.

References mpGalleryStorageEngine.

Referenced by createTheme().

◆ SetDragging()

SAL_DLLPRIVATE void GalleryTheme::SetDragging ( bool  bSet)
inline

◆ SetDragPos()

SAL_DLLPRIVATE void GalleryTheme::SetDragPos ( sal_uInt32  nPos)
inline

Definition at line 109 of file galtheme.hxx.

References nPos.

Referenced by GalleryTransferable::DragFinished(), and GalleryTransferable::StartDrag().

◆ SetId()

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().

◆ SetPreviewBitmapExAndStrings()

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

◆ UnlockBroadcaster()

void GalleryTheme::UnlockBroadcaster ( )

Definition at line 110 of file galtheme.cxx.

References DBG_ASSERT, ImplBroadcast(), and mnBroadcasterLockCount.

Referenced by Actualize().

◆ UnlockTheme()

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

◆ ::unogallery::GalleryItem

friend class ::unogallery::GalleryItem
friend

Definition at line 56 of file galtheme.hxx.

◆ ::unogallery::GalleryTheme

friend class ::unogallery::GalleryTheme
friend

Definition at line 55 of file galtheme.hxx.

◆ Gallery

friend class Gallery
friend

Definition at line 53 of file galtheme.hxx.

◆ GalleryThemeCacheEntry

friend class GalleryThemeCacheEntry
friend

Definition at line 54 of file galtheme.hxx.

Member Data Documentation

◆ bAbortActualize

bool GalleryTheme::bAbortActualize
private

Definition at line 68 of file galtheme.hxx.

Referenced by Actualize().

◆ bDragging

bool GalleryTheme::bDragging
private

Definition at line 67 of file galtheme.hxx.

◆ maGalleryObjectCollection

GalleryObjectCollection GalleryTheme::maGalleryObjectCollection
private

◆ mnBroadcasterLockCount

sal_uInt32 GalleryTheme::mnBroadcasterLockCount
private

Definition at line 65 of file galtheme.hxx.

Referenced by UnlockBroadcaster().

◆ mnThemeLockCount

sal_uInt32 GalleryTheme::mnThemeLockCount
private

Definition at line 64 of file galtheme.hxx.

Referenced by UnlockTheme().

◆ mpGalleryStorageEngine

std::unique_ptr<GalleryFileStorage> GalleryTheme::mpGalleryStorageEngine
private

◆ nDragPos

sal_uInt32 GalleryTheme::nDragPos
private

Definition at line 66 of file galtheme.hxx.

◆ pParent

Gallery* GalleryTheme::pParent
private

Definition at line 62 of file galtheme.hxx.

◆ pThm

GalleryThemeEntry* GalleryTheme::pThm
private

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