19#ifndef INCLUDED_SFX2_DOCTEMPL_HXX
20#define INCLUDED_SFX2_DOCTEMPL_HXX
26#include <rtl/ustring.hxx>
42 SAL_DLLPRIVATE
bool CopyOrMove( sal_uInt16 nTargetRegion, sal_uInt16 nTargetIdx,
43 sal_uInt16 nSourceRegion, sal_uInt16 nSourceIdx,
bool bMove );
51 void ReInitFromComponent();
53 sal_uInt16 GetRegionCount()
const;
54 OUString GetRegionName(sal_uInt16 nIdx)
const;
55 OUString GetFullRegionName(sal_uInt16 nIdx)
const;
57 sal_uInt16 GetCount(sal_uInt16 nRegion)
const;
58 OUString
GetName(sal_uInt16 nRegion, sal_uInt16 nIdx)
const;
59 OUString
GetPath(sal_uInt16 nRegion, sal_uInt16 nIdx)
const;
62 OUString GetTemplateTargetURLFromComponent(std::u16string_view aGroupName,
63 std::u16string_view aTitle );
67 static OUString ConvertResourceString(
const OUString& rString);
69 bool Copy(sal_uInt16 nTargetRegion,
70 sal_uInt16 nTargetIdx,
71 sal_uInt16 nSourceRegion,
72 sal_uInt16 nSourceIdx);
73 bool Move(sal_uInt16 nTargetRegion,
74 sal_uInt16 nTargetIdx,
75 sal_uInt16 nSourceRegion,
76 sal_uInt16 nSourceIdx);
77 bool Delete(sal_uInt16 nRegion, sal_uInt16 nIdx);
78 bool InsertDir(
const OUString &rText, sal_uInt16 nRegion);
80 bool InsertTemplate (sal_uInt16 nSourceRegion, sal_uInt16 nIdx,
const OUString &rName,
const OUString &rPath);
95 bool SetName(
const OUString &rName, sal_uInt16 nRegion, sal_uInt16 nIdx);
97 bool CopyTo(sal_uInt16 nRegion, sal_uInt16 nIdx, std::u16string_view rName)
const;
98 bool CopyFrom(sal_uInt16 nRegion, sal_uInt16 nIdx, OUString &rName);
101 std::u16string_view rRegion, std::u16string_view rName, OUString& rPath );
102 bool GetLogicNames( std::u16string_view rPath, OUString& rRegion, OUString& rName )
const;
SfxDocumentTemplates(const SfxDocumentTemplates &)
const SfxDocumentTemplates & operator=(const SfxDocumentTemplates &)
tools::SvRef< SfxDocTemplate_Impl > pImp
virtual OUString GetName() const override
virtual OUString GetPath() const override