20#include <libxml/xmlwriter.h>
28 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwCharFormat"));
29 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"ptr"),
"%p",
this);
30 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"name"),
31 BAD_CAST(
GetName().toUtf8().getStr()));
35 (void)xmlTextWriterWriteAttribute(
40 (void)xmlTextWriterEndElement(pWriter);
54 for (
const auto& pTextFormat : *
GetDoc()->GetTextFormatColls())
56 if (pTextFormat->GetLinkedCharFormat() ==
this)
58 pTextFormat->SetLinkedCharFormat(
nullptr);
65 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwCharFormats"));
66 for (
size_t i = 0;
i <
size(); ++
i)
68 (void)xmlTextWriterEndElement(pWriter);
72 : m_PosIndex(m_Array.
get<0>())
73 , m_NameIndex(m_Array.
get<1>())
107 const int _offset = keepDefault ? 1 : 0;
110 assert(!(*it)->HasName(
u"Character style"));
134 v->SetFormatName(sNewName);
141 return it ==
end() ? SIZE_MAX : it -
begin();
void dumpAsXml(xmlTextWriterPtr pWriter) const
Represents the style of a paragraph.
struct _xmlTextWriter * xmlTextWriterPtr
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)