29#include <com/sun/star/ucb/ContentCreationException.hpp>
34 aURL.setExtension(rExt);
56 static sal_Int32 nIdx = 0;
61 aURL.setName(Concat2View(
aURL.getName() + OUString::number(nIdx)));
85 bool bThemeNameFromResource =
false;
86 sal_uInt32 nThemeId = 0;
89 OUString aThemeName = OStringToOUString(aTmpStr, RTL_TEXTENCODING_UTF8);
97 pIStm->ReadUInt32(
nCount).ReadUInt16(nTemp16);
103 if (pIStm->Tell() >= 520)
105 sal_uInt32 nId1, nId2;
107 pIStm->SeekRel(-520);
108 pIStm->ReadUInt32(nId1).ReadUInt32(nId2);
115 pIStm->ReadUInt32(nThemeId);
119 pIStm->ReadCharAsBool(bThemeNameFromResource);
126 bThemeNameFromResource);
147std::unique_ptr<GalleryTheme>&
152 DBG_ASSERT(
aURL.GetProtocol() != INetProtocol::NotValid,
"invalid URL");
165 if (pIStm->GetError())
168 catch (
const css::ucb::ContentCreationException&)
std::unique_ptr< GalleryFileStorage > createGalleryStorageEngine(GalleryObjectCollection &mrGalleryObjectCollection, bool &bReadOnly)
const INetURLObject & GetThmURL() const
GalleryFileStorageEntry()
const INetURLObject & GetSdvURL() const
std::unique_ptr< GalleryTheme > & getCachedTheme(std::unique_ptr< GalleryTheme > &pNewTheme)
GalleryStorageLocations maGalleryStorageLocations
void setStorageLocations(INetURLObject &rURL)
static GalleryThemeEntry * CreateThemeEntry(const INetURLObject &rURL, bool bReadOnly)
const INetURLObject & GetSdgURL() const
static void CreateUniqueURL(const INetURLObject &rBaseURL, INetURLObject &aURL)
const INetURLObject & GetStrURL() const
static INetURLObject ImplGetURLIgnoreCase(const INetURLObject &rURL)
void SetStorageLocations(INetURLObject &aURL)
SAL_DLLPRIVATE SvStream & ReadData(SvStream &rIn)
OUString GetMainURL(DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
INetProtocol GetProtocol() const
sal_uInt16 GetVersion() const
static std::unique_ptr< SvStream > CreateStream(const OUString &rFileName, StreamMode eOpenMode, css::uno::Reference< css::awt::XWindow > xParentWin=nullptr)
#define DBG_ASSERT(sCon, aError)
static bool FileExists(const INetURLObject &rURL, std::u16string_view rExt)
SvStream & ReadGalleryTheme(SvStream &rIn, GalleryTheme &rTheme)
bool KillFile(const INetURLObject &rURL)
OString read_uInt16_lenPrefixed_uInt8s_ToOString(SvStream &rStrm)
#define STREAM_SEEK_TO_END
sal_uInt32 COMPAT_FORMAT(char char1, char char2, char char3, char char4)