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

#include <galleryfilestorage.hxx>

Collaboration diagram for GalleryFileStorage:
[legend]

Public Member Functions

 GalleryFileStorage (const GalleryStorageLocations &rGalleryStorageLocations, GalleryObjectCollection &rGalleryObjectCollection, bool bReadOnly)
 
SAL_DLLPRIVATE ~GalleryFileStorage ()
 
void clearSotStorage ()
 
void setDestDir (const OUString &rDestDir, bool bRelative)
 
SAL_DLLPRIVATE void ImplCreateSvDrawStorage ()
 
SAL_DLLPRIVATE const tools::SvRef< SotStorage > & GetSvDrawStorage () const
 
const INetURLObjectgetThemeURL () const
 
SAL_DLLPRIVATE bool implWrite (const GalleryTheme &rTheme, const GalleryThemeEntry *pThm)
 
void insertObject (const SgaObject &rObj, GalleryObject *pFoundEntry, sal_uInt32 nInsertPos)
 
void removeObject (const std::unique_ptr< GalleryObject > &pEntry)
 
std::unique_ptr< SgaObject > implReadSgaObject (GalleryObject const *pEntry)
 
bool implWriteSgaObject (const SgaObject &rObj, sal_uInt32 nPos, GalleryObject *pExistentEntry)
 
bool readModel (const GalleryObject *pObject, SdrModel &rModel)
 
SgaObjectSvDraw insertModel (const FmFormModel &rModel, const INetURLObject &rUserURL)
 
bool readModelStream (const GalleryObject *pObject, tools::SvRef< SotTempStream > const &rxModelStream)
 
SgaObjectSvDraw insertModelStream (const tools::SvRef< SotTempStream > &rxModelStream, const INetURLObject &rUserURL)
 
INetURLObject implCreateUniqueURL (SgaObjKind eObjKind, const INetURLObject &rUserURL, ConvertDataFormat nFormat=ConvertDataFormat::Unknown)
 
SgaObjectBmp insertGraphic (const Graphic &rGraphic, const GfxLink &aGfxLink, const ConvertDataFormat &nExportFormat, const INetURLObject &rUserURL)
 
SgaObjectSvDraw updateSvDrawObject (const GalleryObject *pEntry)
 
void updateTheme ()
 
SvStreamwriteGalleryTheme (SvStream &rOStm, const GalleryTheme &rTheme, const GalleryThemeEntry *pThm)
 
DateTime getModificationDate () const
 

Static Public Member Functions

static void insertFileOrDirURL (const INetURLObject &rFileOrDirURL, std::vector< INetURLObject > &rURLVector)
 

Private Member Functions

const INetURLObjectGetSdgURL () const
 
const INetURLObjectGetSdvURL () const
 
const INetURLObjectGetThmURL () const
 

Private Attributes

tools::SvRef< SotStoragem_aSvDrawStorageRef
 
const GalleryStorageLocationsmaGalleryStorageLocations
 
GalleryObjectCollectionmrGalleryObjectCollection
 
bool mbReadOnly
 
OUString m_aDestDir
 
bool m_bDestDirRelative
 

Detailed Description

Definition at line 45 of file galleryfilestorage.hxx.

Constructor & Destructor Documentation

◆ GalleryFileStorage()

GalleryFileStorage::GalleryFileStorage ( const GalleryStorageLocations rGalleryStorageLocations,
GalleryObjectCollection rGalleryObjectCollection,
bool  bReadOnly 
)

Definition at line 53 of file galleryfilestorage.cxx.

References ImplCreateSvDrawStorage().

◆ ~GalleryFileStorage()

GalleryFileStorage::~GalleryFileStorage ( )

Definition at line 64 of file galleryfilestorage.cxx.

References clearSotStorage().

Member Function Documentation

◆ clearSotStorage()

void GalleryFileStorage::clearSotStorage ( )

◆ getModificationDate()

DateTime GalleryFileStorage::getModificationDate ( ) const

◆ GetSdgURL()

const INetURLObject & GalleryFileStorage::GetSdgURL ( ) const
inlineprivate

◆ GetSdvURL()

const INetURLObject & GalleryFileStorage::GetSdvURL ( ) const
inlineprivate

Definition at line 56 of file galleryfilestorage.hxx.

References GalleryStorageLocations::GetSdvURL().

Referenced by ImplCreateSvDrawStorage(), and updateTheme().

◆ GetSvDrawStorage()

const tools::SvRef< SotStorage > & GalleryFileStorage::GetSvDrawStorage ( ) const

◆ getThemeURL()

const INetURLObject & GalleryFileStorage::getThemeURL ( ) const
inline

Definition at line 71 of file galleryfilestorage.hxx.

References GalleryStorageLocations::getThemeURL().

◆ GetThmURL()

const INetURLObject & GalleryFileStorage::GetThmURL ( ) const
inlineprivate

Definition at line 57 of file galleryfilestorage.hxx.

References GalleryStorageLocations::GetThmURL().

Referenced by getModificationDate(), and implWrite().

◆ ImplCreateSvDrawStorage()

void GalleryFileStorage::ImplCreateSvDrawStorage ( )

◆ implCreateUniqueURL()

INetURLObject GalleryFileStorage::implCreateUniqueURL ( SgaObjKind  eObjKind,
const INetURLObject rUserURL,
ConvertDataFormat  nFormat = ConvertDataFormat::Unknown 
)

◆ implReadSgaObject()

std::unique_ptr< SgaObject > GalleryFileStorage::implReadSgaObject ( GalleryObject const *  pEntry)

◆ implWrite()

bool GalleryFileStorage::implWrite ( const GalleryTheme rTheme,
const GalleryThemeEntry pThm 
)

◆ implWriteSgaObject()

bool GalleryFileStorage::implWriteSgaObject ( const SgaObject &  rObj,
sal_uInt32  nPos,
GalleryObject pExistentEntry 
)

◆ insertFileOrDirURL()

void GalleryFileStorage::insertFileOrDirURL ( const INetURLObject rFileOrDirURL,
std::vector< INetURLObject > &  rURLVector 
)
static

◆ insertGraphic()

SgaObjectBmp GalleryFileStorage::insertGraphic ( const Graphic rGraphic,
const GfxLink aGfxLink,
const ConvertDataFormat nExportFormat,
const INetURLObject rUserURL 
)

◆ insertModel()

SgaObjectSvDraw GalleryFileStorage::insertModel ( const FmFormModel rModel,
const INetURLObject rUserURL 
)

◆ insertModelStream()

SgaObjectSvDraw GalleryFileStorage::insertModelStream ( const tools::SvRef< SotTempStream > &  rxModelStream,
const INetURLObject rUserURL 
)

◆ insertObject()

void GalleryFileStorage::insertObject ( const SgaObject &  rObj,
GalleryObject pFoundEntry,
sal_uInt32  nInsertPos 
)

◆ readModel()

bool GalleryFileStorage::readModel ( const GalleryObject pObject,
SdrModel rModel 
)

◆ readModelStream()

bool GalleryFileStorage::readModelStream ( const GalleryObject pObject,
tools::SvRef< SotTempStream > const &  rxModelStream 
)

◆ removeObject()

void GalleryFileStorage::removeObject ( const std::unique_ptr< GalleryObject > &  pEntry)

◆ setDestDir()

void GalleryFileStorage::setDestDir ( const OUString &  rDestDir,
bool  bRelative 
)

Definition at line 66 of file galleryfilestorage.cxx.

References m_aDestDir, and m_bDestDirRelative.

◆ updateSvDrawObject()

SgaObjectSvDraw GalleryFileStorage::updateSvDrawObject ( const GalleryObject pEntry)

◆ updateTheme()

void GalleryFileStorage::updateTheme ( )

◆ writeGalleryTheme()

SvStream & GalleryFileStorage::writeGalleryTheme ( SvStream rOStm,
const GalleryTheme rTheme,
const GalleryThemeEntry pThm 
)

Member Data Documentation

◆ m_aDestDir

OUString GalleryFileStorage::m_aDestDir
private

Definition at line 52 of file galleryfilestorage.hxx.

Referenced by implWriteSgaObject(), setDestDir(), and writeGalleryTheme().

◆ m_aSvDrawStorageRef

tools::SvRef<SotStorage> GalleryFileStorage::m_aSvDrawStorageRef
private

◆ m_bDestDirRelative

bool GalleryFileStorage::m_bDestDirRelative
private

Definition at line 53 of file galleryfilestorage.hxx.

Referenced by setDestDir(), and writeGalleryTheme().

◆ maGalleryStorageLocations

const GalleryStorageLocations& GalleryFileStorage::maGalleryStorageLocations
private

Definition at line 49 of file galleryfilestorage.hxx.

◆ mbReadOnly

bool GalleryFileStorage::mbReadOnly
private

Definition at line 51 of file galleryfilestorage.hxx.

Referenced by ImplCreateSvDrawStorage().

◆ mrGalleryObjectCollection

GalleryObjectCollection& GalleryFileStorage::mrGalleryObjectCollection
private

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