19#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_GLOSDOC_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_GLOSDOC_HXX
22#include <rtl/ustring.hxx>
24#include <com/sun/star/text/XAutoTextGroup.hpp>
29#ifndef SW_DECL_SWDOCSHELL_DEFINED
30#define SW_DECL_SWDOCSHELL_DEFINED
45#define GLOS_DELIM u'*'
58 SAL_DLLPRIVATE std::unique_ptr<SwTextBlocks> GetGlosDoc(
const OUString &rName,
bool bCreate =
true)
const;
59 SAL_DLLPRIVATE std::vector<OUString> & GetNameList();
62 SAL_DLLPRIVATE
void RemoveFileFromList(
const OUString& rGroup );
63 SAL_DLLPRIVATE
void InvalidateUNOOjects();
78 css::uno::Reference< css::text::XAutoTextGroup >
80 std::u16string_view _rGroupName
96 css::uno::Reference< css::text::XAutoTextEntry >
98 const OUString& _rCompleteGroupName,
99 const OUString& _rGroupName,
100 const OUString& _rEntryName
103 size_t GetGroupCnt();
104 OUString
const & GetGroupName(
size_t);
105 OUString GetGroupTitle(
const OUString& rGroupName );
107 bool FindGroupName(OUString& rGroup);
109 std::unique_ptr<SwTextBlocks>
110 GetGroupDoc(
const OUString &rName,
111 bool bCreate =
false);
112 static OUString GetDefName();
113 static OUString GetExtension();
115 OUString GetCompleteGroupName( std::u16string_view GroupName );
117 bool NewGroupDoc(OUString &rGroupName,
const OUString& rTitle);
118 bool RenameGroupDoc(
const OUString& sOldGroup, OUString& sNewGroup,
const OUString& rNewTitle);
119 bool DelGroupDoc(std::u16string_view);
120 SwDocShellRef EditGroupDoc(
const OUString &rGrpName,
const OUString& rShortName,
bool bShow =
true );
121 void UpdateGlosPath(
bool bFull);
124 std::vector<OUString>
const&
GetPathArray()
const {
return m_PathArr; }
std::vector< OUString > const & GetPathArray() const
std::vector< OUString > m_PathArr
std::vector< OUString > m_aInvalidPaths
UnoAutoTextGroups m_aGlossaryGroups
UnoAutoTextEntries m_aGlossaryEntries
bool IsGlosPathErr() const
std::vector< OUString > m_GlosArr
std::vector< unotools::WeakReference< SwXAutoTextEntry > > UnoAutoTextEntries
tools::SvRef< SwDocShell > SwDocShellRef
std::vector< unotools::WeakReference< SwXAutoTextGroup > > UnoAutoTextGroups