20#ifndef INCLUDED_SVX_GALTHEME_HXX
21#define INCLUDED_SVX_GALTHEME_HXX
28#include <tools/datetime.hxx>
55 friend class ::unogallery::GalleryTheme;
56 friend class ::unogallery::GalleryItem;
72 SAL_DLLPRIVATE
void ImplSetModified(
bool bModified );
73 SAL_DLLPRIVATE
void ImplBroadcast(sal_uInt32 nUpdatePos);
85 std::unique_ptr<SgaObject> AcquireObject(sal_uInt32 nPos);
87 bool InsertObject(
const SgaObject& rObj, sal_uInt32 nPos = SAL_MAX_UINT32);
88 void RemoveObject(sal_uInt32 nPos);
89 bool ChangeObjectPos(sal_uInt32 nOldPos, sal_uInt32 nNewPos);
91 const OUString&
GetName()
const;
94 void SetDestDir(
const OUString& rDestDir,
bool bRelative);
96 sal_uInt32
GetId()
const;
97 SAL_DLLPRIVATE
void SetId( sal_uInt32 nNewId,
bool bResetThemeName );
99 SAL_DLLPRIVATE
void SetDragging(
bool bSet ) { bDragging = bSet; }
103 SAL_DLLPRIVATE
bool UnlockTheme();
106 void UnlockBroadcaster();
110 SAL_DLLPRIVATE sal_uInt32
GetDragPos()
const {
return nDragPos; }
113 bool IsDefault()
const;
124 if (
nPos < GetObjectCount())
135 SAL_DLLPRIVATE
bool GetThumb(sal_uInt32 nPos,
BitmapEx& rBmp);
137 bool GetGraphic(sal_uInt32 nPos,
Graphic& rGraphic);
140 bool GetModel(sal_uInt32 nPos,
SdrModel& rModel);
141 bool InsertModel(
const FmFormModel& rModel, sal_uInt32 nInsertPos);
147 bool InsertURL(
const INetURLObject& rURL, sal_uInt32 nInsertPos = SAL_MAX_UINT32);
148 SAL_DLLPRIVATE
bool InsertFileOrDirURL(
const INetURLObject& rFileOrDirURL, sal_uInt32 nInsertPos);
150 SAL_DLLPRIVATE
bool InsertTransferable(
const css::uno::Reference< css::datatransfer::XTransferable >& rxTransferable, sal_uInt32 nInsertPos);
152 SAL_DLLPRIVATE
void CopyToClipboard(
const weld::Widget& rWidget, sal_uInt32 nPos);
154 DateTime getModificationDate()
const;
164 SAL_DLLPRIVATE
void GetPreviewBitmapExAndStrings(sal_uInt32 nPos,
BitmapEx& rBitmapEx,
Size& rSize, OUString& rTitle, OUString& rPath);
165 SAL_DLLPRIVATE
void SetPreviewBitmapExAndStrings(sal_uInt32 nPos,
const BitmapEx& rBitmapEx,
const Size& rSize,
const OUString& rTitle,
const OUString& rPath);
const GalleryObject * getForPosition(sal_uInt32 nPos) const
const INetURLObject & getURLForPosition(sal_uInt32 nPos) const
SAL_DLLPRIVATE void LockBroadcaster()
GalleryObjectCollection maGalleryObjectCollection
GalleryTheme(GalleryTheme const &)=delete
SAL_DLLPRIVATE void LockTheme()
sal_uInt32 mnThemeLockCount
sal_uInt32 mnBroadcasterLockCount
const std::unique_ptr< GalleryFileStorage > & getGalleryStorageEngine() const
SAL_DLLPRIVATE void SetDragging(bool bSet)
SAL_DLLPRIVATE void AbortActualize()
SAL_DLLPRIVATE sal_uInt32 GetDragPos() const
SAL_DLLPRIVATE const INetURLObject & GetObjectURL(sal_uInt32 nPos) const
SAL_DLLPRIVATE sal_uInt32 GetObjectCount() const
SAL_DLLPRIVATE Gallery * GetParent() const
SAL_DLLPRIVATE bool IsDragging() const
std::unique_ptr< GalleryFileStorage > mpGalleryStorageEngine
SAL_DLLPRIVATE bool IsBroadcasterLocked() const
SAL_DLLPRIVATE void SetDragPos(sal_uInt32 nPos)
SAL_DLLPRIVATE SgaObjKind GetObjectKind(sal_uInt32 nPos) const
const SfxBroadcaster & operator=(const SfxBroadcaster &)=delete
#define DBG_ASSERT(sCon, aError)
virtual OUString GetName() const override
virtual OUString GetURL() const override
virtual sal_uInt32 GetId() const override
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
#define SVXCORE_DLLPUBLIC