19 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_GLOSHDL_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_GLOSHDL_HXX
23 #include <rtl/ustring.hxx>
41 std::unique_ptr<SwTextBlocks>
46 std::unique_ptr<SwTextBlocks> pGlossary );
51 size_t GetGroupCnt()
const;
52 OUString GetGroupName(
size_t, OUString* pTitle );
53 void NewGroup(OUString & rGroupName,
const OUString& rTitle);
54 bool DelGroup(
const OUString &);
55 void RenameGroup(
const OUString& rOld, OUString& rNew,
const OUString& rNewTitle);
56 void SetCurGroup(
const OUString &aGrp,
bool bApi =
false,
bool bAlwaysCreateNew =
false);
58 sal_uInt16 GetGlossaryCnt()
const;
59 OUString GetGlossaryName(sal_uInt16);
60 OUString GetGlossaryShortName(
const OUString &rName);
61 OUString GetGlossaryShortName(sal_uInt16);
63 bool Rename(
const OUString& rOldShortName,
const OUString& rNewShortName,
64 const OUString& rNewName);
65 bool HasShortName(
const OUString &rShortName)
const;
68 bool NewGlossary(
const OUString &rName,
const OUString &rShortName,
69 bool bApiCall =
false,
bool bNoAttr =
false );
70 bool DelGlossary(
const OUString&);
71 bool CopyToClipboard(
SwWrtShell& rSh,
const OUString& rShortName);
74 bool InsertGlossary(
const OUString &rName);
76 void SetMacros(
const OUString& rName,
80 void GetMacros(
const OUString& rShortName,
85 bool IsReadOnly(
const OUString* =
nullptr )
const;
88 bool FindGroupName(OUString& rGroup);
90 bool ImportGlossaries(
const OUString& rName );
96 #endif // INCLUDED_SW_SOURCE_UIBASE_INC_GLOSHDL_HXX
std::unique_ptr< SwTextBlocks > pCurGrp
SwGlossaries & rStatGlossaries
Used by the UI to modify the document model.
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
static std::unique_ptr< SwGlossaries > pGlossaries
SfxViewFrame * pViewFrame