20#include <libxml/xmlwriter.h>
45OUString CurrGlosGroup;
61std::vector<OUString>* pAuthFieldNameList =
nullptr;
62std::vector<OUString>* pAuthFieldTypeList =
nullptr;
80 delete pAuthFieldNameList;
81 delete pAuthFieldTypeList;
108 : aPostItAuthor(
SwResId( STR_POSTIT_AUTHOR ) ),
109 aPostItPage(
SwResId( STR_POSTIT_PAGE ) ),
110 aPostItLine(
SwResId( STR_POSTIT_LINE ) ),
112 aCalc_Syntax(
SwResId( STR_CALC_SYNTAX ) ),
113 aCalc_ZeroDiv(
SwResId( STR_CALC_ZERODIV ) ),
114 aCalc_Brack(
SwResId( STR_CALC_BRACK ) ),
115 aCalc_Pow(
SwResId( STR_CALC_POW ) ),
116 aCalc_Overflow(
SwResId( STR_CALC_OVERFLOW ) ),
117 aCalc_Default(
SwResId( STR_CALC_DEFAULT ) ),
118 aCalc_Error(
SwResId( STR_CALC_ERROR ) ),
121 aGetRefField_RefItemNotFound(
SwResId( STR_GETREFFLD_REFITEMNOTFOUND ) ),
122 aStrNone(
SwResId( STR_TEMPLATE_NONE )),
123 aFixedStr(
SwResId( STR_FIELD_FIXED )),
124 sDurationFormat(
SwResId( STR_DURATION_FORMAT )),
126 aTOXIndexName(
SwResId(STR_TOI)),
127 aTOXUserName(
SwResId(STR_TOU)),
128 aTOXContentName(
SwResId(STR_TOC)),
129 aTOXIllustrationsName(
SwResId(STR_TOX_ILL)),
130 aTOXObjectsName(
SwResId(STR_TOX_OBJ)),
131 aTOXTablesName(
SwResId(STR_TOX_TBL)),
132 aTOXAuthoritiesName(
SwResId(STR_TOX_AUTH)),
133 aTOXCitationName(
SwResId(STR_TOX_CITATION)),
134 sPageDescFirstName(
SwResId(STR_PAGEDESC_FIRSTNAME)),
135 sPageDescFollowName(
SwResId(STR_PAGEDESC_FOLLOWNAME)),
136 sPageDescName(
SwResId(STR_PAGEDESC_NAME))
159 return sRet.replaceFirst(
"$(ARG1)", OUString::number( nNo ));
191 OUString
p(
SwResId(RID_SHELLRES_AUTOFMTSTRS[
n]));
207 STR_AUTH_FIELD_IDENTIFIER,
208 STR_AUTH_FIELD_AUTHORITY_TYPE,
209 STR_AUTH_FIELD_ADDRESS,
210 STR_AUTH_FIELD_ANNOTE,
211 STR_AUTH_FIELD_AUTHOR,
212 STR_AUTH_FIELD_BOOKTITLE,
213 STR_AUTH_FIELD_CHAPTER,
214 STR_AUTH_FIELD_EDITION,
215 STR_AUTH_FIELD_EDITOR,
216 STR_AUTH_FIELD_HOWPUBLISHED,
217 STR_AUTH_FIELD_INSTITUTION,
218 STR_AUTH_FIELD_JOURNAL,
219 STR_AUTH_FIELD_MONTH,
221 STR_AUTH_FIELD_NUMBER,
222 STR_AUTH_FIELD_ORGANIZATIONS,
223 STR_AUTH_FIELD_PAGES,
224 STR_AUTH_FIELD_PUBLISHER,
225 STR_AUTH_FIELD_SCHOOL,
226 STR_AUTH_FIELD_SERIES,
227 STR_AUTH_FIELD_TITLE,
229 STR_AUTH_FIELD_VOLUME,
232 STR_AUTH_FIELD_CUSTOM1,
233 STR_AUTH_FIELD_CUSTOM2,
234 STR_AUTH_FIELD_CUSTOM3,
235 STR_AUTH_FIELD_CUSTOM4,
236 STR_AUTH_FIELD_CUSTOM5,
238 STR_AUTH_FIELD_LOCAL_URL,
239 STR_AUTH_FIELD_TARGET_TYPE,
240 STR_AUTH_FIELD_TARGET_URL,
246 if(!pAuthFieldNameList)
248 pAuthFieldNameList =
new std::vector<OUString>;
251 pAuthFieldNameList->push_back(
SwResId(STR_AUTH_FIELD_ARY[
i]));
253 return (*pAuthFieldNameList)[
static_cast< sal_uInt16
>(
eType)];
258 STR_AUTH_TYPE_ARTICLE,
260 STR_AUTH_TYPE_BOOKLET,
261 STR_AUTH_TYPE_CONFERENCE,
262 STR_AUTH_TYPE_INBOOK,
263 STR_AUTH_TYPE_INCOLLECTION,
264 STR_AUTH_TYPE_INPROCEEDINGS,
265 STR_AUTH_TYPE_JOURNAL,
266 STR_AUTH_TYPE_MANUAL,
267 STR_AUTH_TYPE_MASTERSTHESIS,
269 STR_AUTH_TYPE_PHDTHESIS,
270 STR_AUTH_TYPE_PROCEEDINGS,
271 STR_AUTH_TYPE_TECHREPORT,
272 STR_AUTH_TYPE_UNPUBLISHED,
275 STR_AUTH_TYPE_CUSTOM1,
276 STR_AUTH_TYPE_CUSTOM2,
277 STR_AUTH_TYPE_CUSTOM3,
278 STR_AUTH_TYPE_CUSTOM4,
279 STR_AUTH_TYPE_CUSTOM5
284 if(!pAuthFieldTypeList)
286 pAuthFieldTypeList =
new std::vector<OUString>;
291 return (*pAuthFieldTypeList)[
static_cast< sal_uInt16
>(
eType)];
296 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwAuthorityFieldType"));
299 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"DataArr"));
302 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"AuthEntry"));
303 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"ptr"),
"%p", xAuthEntry.get());
304 (void)xmlTextWriterEndElement(pWriter);
306 (void)xmlTextWriterEndElement(pWriter);
308 (void)xmlTextWriterEndElement(pWriter);
const OUString & getDoubleQuotationMarkStart() const
const OUString & getDoubleQuotationMarkEnd() const
const LocaleDataWrapper & GetLocaleData() const
static OUString const & GetAuthFieldName(ToxAuthorityField eType)
static OUString const & GetAuthTypeName(ToxAuthorityType eType)
void dumpAsXml(xmlTextWriterPtr pWriter) const override
static void FinitStaticData()
static void InitStaticData()
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
static std::vector< OUString > * s_pFieldNames
field names
static ShellResource * GetShellRes()
static void SetShellRes(ShellResource *pRes)
#define STR_AUTOFMTREDL_END
#define STR_AUTOFMTREDL_TYPO
struct _xmlTextWriter * xmlTextWriterPtr
static std::unique_ptr< SwGlossaries > pGlossaries
SwGlossaries * GetGlossaries()
const OUString & GetCurrGlosGroup()
static SwGlossaryList * pGlossaryList
void SetCurrGlosGroup(const OUString &sStr)
const TranslateId STR_AUTH_TYPE_ARY[]
const TranslateId FLD_DOCINFO_ARY[]
SwGlossaryList * GetGlossaryList()
#define SAL_N_ELEMENTS(arr)
OUString sPageDescFirstName
OUString GetPageDescName(sal_uInt16 nNo, PageNameMode eMode)
OUString sPageDescFollowName
void GetAutoFormatNameLst_() const
std::vector< OUString > aDocInfoLst
std::optional< std::vector< OUString > > mxAutoFormatNameLst
OUString SwResId(TranslateId aId)