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(std::u16string_view aName);
61 OUString GetGlossaryShortName(sal_uInt16);
63 bool Rename(
const OUString& rOldShortName,
const OUString& rNewShortName,
64 const OUString& rNewName);
65 bool CopyOrMove(
const OUString& rSourceGroupName, OUString& rSourceShortName,
66 const OUString& rDestGroupName,
const OUString& rLongName,
bool bMove );
67 bool HasShortName(
const OUString &rShortName)
const;
70 bool NewGlossary(
const OUString &rName,
const OUString &rShortName,
71 bool bApiCall =
false,
bool bNoAttr =
false );
72 bool DelGlossary(
const OUString&);
73 bool CopyToClipboard(
SwWrtShell& rSh,
const OUString& rShortName);
76 bool InsertGlossary(
const OUString &rName);
78 void SetMacros(
const OUString& rName,
82 void GetMacros(
const OUString& rShortName,
87 bool IsReadOnly(
const OUString* =
nullptr )
const;
90 bool FindGroupName(OUString& rGroup);
92 bool ImportGlossaries(
const OUString& rName );
SwGlossaries & m_rStatGlossaries
std::unique_ptr< SwTextBlocks > m_pCurGrp
SfxViewFrame & m_rViewFrame
Used by the UI to modify the document model.
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
static std::unique_ptr< SwGlossaries > pGlossaries