28#include <com/sun/star/ucb/ContentCreationException.hpp>
33 aURL.setExtension(rExt);
58 static sal_Int32 nIdx = 0;
63 aURL.setName(Concat2View(
aURL.getName() + OUString::number(nIdx)));
87 bool bThemeNameFromResource =
false;
88 sal_uInt32 nThemeId = 0;
91 OUString aThemeName = OStringToOUString(aTmpStr, RTL_TEXTENCODING_UTF8);
99 pIStm->ReadUInt32(
nCount).ReadUInt16(nTemp16);
105 if (pIStm->Tell() >= 520)
107 sal_uInt32 nId1, nId2;
109 pIStm->SeekRel(-520);
110 pIStm->ReadUInt32(nId1).ReadUInt32(nId2);
117 pIStm->ReadUInt32(nThemeId);
121 pIStm->ReadCharAsBool(bThemeNameFromResource);
128 bThemeNameFromResource);
149std::unique_ptr<GalleryTheme>&
154 DBG_ASSERT(
aURL.GetProtocol() != INetProtocol::NotValid,
"invalid URL");
167 if (pIStm->GetError())
170 catch (
const css::ucb::ContentCreationException&)
static GalleryThemeEntry * CreateThemeEntry(const INetURLObject &rURL, bool bReadOnly)
static void CreateUniqueURL(const INetURLObject &rBaseURL, INetURLObject &aURL)
std::unique_ptr< GalleryBinaryStorageLocations > mpGalleryStorageLocations
const INetURLObject & GetSdvURL() const
const INetURLObject & GetSdgURL() const
std::unique_ptr< GalleryTheme > & getCachedTheme(std::unique_ptr< GalleryTheme > &pNewTheme)
const INetURLObject & GetThmURL() const
GalleryBinaryEngineEntry()
void setStorageLocations(INetURLObject &rURL)
const INetURLObject & GetStrURL() const
std::unique_ptr< GalleryBinaryEngine > createGalleryStorageEngine(GalleryObjectCollection &mrGalleryObjectCollection, bool &bReadOnly)
static INetURLObject ImplGetURLIgnoreCase(const INetURLObject &rURL)
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)