23#include <com/sun/star/style/NumberingType.hpp>
30#include <rtl/ustring.hxx>
31#include <rtl/ustrbuf.hxx>
40using css::style::NumberingType::ARABIC;
46 const vector<XMLPropertyState> *pProperties,
52 bool bNumRestart =
false;
53 sal_Int16 nNumRestartAt = 0;
54 sal_Int16 nNumberingType =
ARABIC;
60 sal_uInt32
nCount = pProperties->size();
65 sal_Int16 nContextId = rMapper->GetEntryContextId(rState.
mnIndex);
77 rState.
maValue >>= nNumRestartAt;
80 rState.
maValue >>= nNumberingType;
90 "received wrong property state index" );
103 rState.
maValue >>= bNumRestart;
106 rState.
maValue >>= nNumRestartAt;
109 rState.
maValue >>= nNumberingType;
119 "received wrong property state index" );
138 OUString::number(nNumRestartAt+1));
144 if (!sNumPrefix.isEmpty())
149 if (!sNumSuffix.isEmpty())
160 sBuf.makeStringAndClear());
164 sBuf, nNumberingType );
169 sBuf.makeStringAndClear());
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
const SvXMLUnitConverter & GetMM100UnitConverter() const
bool convertNumFormat(sal_Int16 &rType, const OUString &rNumFormat, std::u16string_view rNumLetterSync, bool bNumberNone=false) const
convert num-format and num-letter-sync values to NumberingType
static void convertNumLetterSync(OUStringBuffer &rBuffer, sal_Int16 nType)
#define SAL_WARN_IF(condition, area, stream)
Handling of tokens in XML:
@ XML_NOTES_CONFIGURATION
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken
Smart struct to transport an Any with an index to the appropriate property-name.
#define CTF_SECTION_ENDNOTE_NUM_SUFFIX
#define CTF_SECTION_ENDNOTE_NUM_RESTART_AT
#define CTF_SECTION_FOOTNOTE_NUM_SUFFIX
#define CTF_SECTION_FOOTNOTE_NUM_OWN
#define CTF_SECTION_ENDNOTE_NUM_OWN
#define CTF_SECTION_ENDNOTE_NUM_RESTART
#define CTF_SECTION_FOOTNOTE_NUM_RESTART_AT
#define CTF_SECTION_ENDNOTE_END
#define CTF_SECTION_ENDNOTE_NUM_TYPE
#define CTF_SECTION_FOOTNOTE_NUM_TYPE
#define CTF_SECTION_ENDNOTE_NUM_PREFIX
#define CTF_SECTION_FOOTNOTE_END
#define CTF_SECTION_FOOTNOTE_NUM_PREFIX
#define CTF_SECTION_FOOTNOTE_NUM_RESTART
constexpr sal_uInt16 XML_NAMESPACE_TEXT
constexpr sal_uInt16 XML_NAMESPACE_STYLE