make the element names in dumpAsXml match the class names
Change-Id: I955facfe3e901fcb76798dab342f96a67d5ac63f Reviewed-on: https://gerrit.libreoffice.org/30894 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
7cca2c7fb3
commit
72ffa98e89
@ -71,7 +71,7 @@ void EditCharAttrib::SetFont( SvxFont&, OutputDevice* )
|
||||
|
||||
void EditCharAttrib::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("editCharAttrib"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("EditCharAttrib"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("nStart"), "%d", nStart);
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("nEnd"), "%d", nEnd);
|
||||
pItem->dumpAsXml(pWriter);
|
||||
|
@ -1859,7 +1859,7 @@ void ContentNode::DestroyWrongList()
|
||||
|
||||
void ContentNode::dumpAsXml(struct _xmlTextWriter* pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("contentNode"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("ContentNode"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("maString"), BAD_CAST(maString.toUtf8().getStr()));
|
||||
aContentAttribs.dumpAsXml(pWriter);
|
||||
aCharAttribList.dumpAsXml(pWriter);
|
||||
@ -1943,7 +1943,7 @@ bool ContentAttribs::HasItem( sal_uInt16 nWhich ) const
|
||||
|
||||
void ContentAttribs::dumpAsXml(struct _xmlTextWriter* pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("contentAttribs"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("ContentAttribs"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("style"), "%s", pStyle->GetName().toUtf8().getStr());
|
||||
aAttribSet.dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -2749,7 +2749,7 @@ void EditDoc::dumpAsXml(struct _xmlTextWriter* pWriter) const
|
||||
bOwns = true;
|
||||
}
|
||||
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("editDoc"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("EditDoc"));
|
||||
for (auto const & i : maContents)
|
||||
{
|
||||
i->dumpAsXml(pWriter);
|
||||
@ -3065,7 +3065,7 @@ void CharAttribList::DbgCheckAttribs(CharAttribList const& rAttribs)
|
||||
|
||||
void CharAttribList::dumpAsXml(struct _xmlTextWriter* pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("charAttribList"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("CharAttribList"));
|
||||
for (auto const & i : aAttribs) {
|
||||
i->dumpAsXml(pWriter);
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ void ContentInfo::SetText( const OUString& rStr )
|
||||
|
||||
void ContentInfo::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("contentInfo"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("ContentInfo"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("style"), BAD_CAST(aStyle.toUtf8().getStr()));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("text"));
|
||||
xmlTextWriterWriteString(pWriter, BAD_CAST(GetText().toUtf8().getStr()));
|
||||
@ -458,7 +458,7 @@ void EditTextObject::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
bOwns = true;
|
||||
}
|
||||
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("editTextObject"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("EditTextObject"));
|
||||
sal_Int32 nCount = GetParagraphCount();
|
||||
for (sal_Int32 i = 0; i < nCount; ++i)
|
||||
{
|
||||
|
@ -823,7 +823,7 @@ bool SvxLRSpaceItem::HasMetrics() const
|
||||
|
||||
void SvxLRSpaceItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxLRSpaceItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxLRSpaceItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nFirstLineOfst"), BAD_CAST(OString::number(nFirstLineOfst).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nTxtLeft"), BAD_CAST(OString::number(nTxtLeft).getStr()));
|
||||
@ -1088,7 +1088,7 @@ bool SvxULSpaceItem::HasMetrics() const
|
||||
|
||||
void SvxULSpaceItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxULSpaceItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxULSpaceItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nUpper"), BAD_CAST(OString::number(nUpper).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nLower"), BAD_CAST(OString::number(nLower).getStr()));
|
||||
@ -1280,7 +1280,7 @@ SfxPoolItem* SvxProtectItem::Create( SvStream& rStrm, sal_uInt16 ) const
|
||||
|
||||
void SvxProtectItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxProtectItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxProtectItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("content"), BAD_CAST(OString::boolean(bCntnt).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("size"), BAD_CAST(OString::boolean(bSize).getStr()));
|
||||
@ -1570,7 +1570,7 @@ void SvxShadowItem::SetEnumValue( sal_uInt16 nVal )
|
||||
|
||||
void SvxShadowItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxShadowItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxShadowItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("aShadowColor"), BAD_CAST(aShadowColor.AsRGBHexString().toUtf8().getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nWidth"), BAD_CAST(OString::number(nWidth).getStr()));
|
||||
@ -4033,7 +4033,7 @@ void SvxBrushItem::ApplyGraphicTransparency_Impl()
|
||||
|
||||
void SvxBrushItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxBrushItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxBrushItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("color"), BAD_CAST(aColor.AsRGBHexString().toUtf8().getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("shadingValue"), BAD_CAST(OString::number(nShadingValue).getStr()));
|
||||
|
@ -686,7 +686,7 @@ void SvxNumRule::Store( SvStream &rStream )
|
||||
|
||||
void SvxNumRule::dumpAsXml(struct _xmlTextWriter* pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxNumRule"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxNumRule"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("levelCount"), BAD_CAST(OUString::number(nLevelCount).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("continuousNumbering"), BAD_CAST(OUString::boolean(bContinuousNumbering).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("numberingType"), BAD_CAST(OUString::number((int)eNumberingType).getStr()));
|
||||
@ -981,7 +981,7 @@ bool SvxNumBulletItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberI
|
||||
|
||||
void SvxNumBulletItem::dumpAsXml(struct _xmlTextWriter* pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxNumBulletItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxNumBulletItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
pNumRule->dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -439,7 +439,7 @@ void SvxFontItem::EnableStoreUnicodeNames( bool bEnable )
|
||||
|
||||
void SvxFontItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxFontItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxFontItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("familyName"), BAD_CAST(aFamilyName.toUtf8().getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("styleName"), BAD_CAST(aStyleName.toUtf8().getStr()));
|
||||
@ -575,7 +575,7 @@ void SvxPostureItem::SetBoolValue( bool bVal )
|
||||
|
||||
void SvxPostureItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxPostureItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxPostureItem"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which());
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("value"), "%d", GetValue());
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("presentation"), BAD_CAST(GetValueTextByPos(GetValue()).toUtf8().getStr()));
|
||||
@ -698,7 +698,7 @@ bool SvxWeightItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
|
||||
|
||||
void SvxWeightItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxWeightItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxWeightItem"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which());
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("value"), "%d", GetValue());
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("presentation"), BAD_CAST(GetValueTextByPos(GetValue()).toUtf8().getStr()));
|
||||
@ -1087,7 +1087,7 @@ void SvxFontHeightItem::SetHeight( sal_uInt32 nNewHeight, sal_uInt16 nNewProp,
|
||||
|
||||
void SvxFontHeightItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxFontHeightItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxFontHeightItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("height"), BAD_CAST(OString::number(nHeight).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("prop"), BAD_CAST(OString::number(nProp).getStr()));
|
||||
@ -2986,7 +2986,7 @@ bool SvxCharRotateItem::operator==( const SfxPoolItem& rItem ) const
|
||||
|
||||
void SvxCharRotateItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxCharRotateItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxCharRotateItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("fitToLine"), BAD_CAST(OString::boolean(IsFitToLine()).getStr()));
|
||||
@ -3438,7 +3438,7 @@ SfxPoolItem* SvxRsidItem::Create(SvStream& rIn, sal_uInt16 ) const
|
||||
|
||||
void SvxRsidItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("svxRsidItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxRsidItem"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which());
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("value"), "%" SAL_PRIuUINT32, GetValue());
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -2184,7 +2184,7 @@ void Outliner::dumpAsXml(struct _xmlTextWriter* pWriter) const
|
||||
bOwns = true;
|
||||
}
|
||||
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("outliner"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("Outliner"));
|
||||
pParaList->dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
||||
|
@ -225,7 +225,7 @@ void OutlinerParaObject::SetStyleSheets(sal_uInt16 nLevel, const OUString& rNewN
|
||||
|
||||
void OutlinerParaObject::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("outlinerParaObject"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("OutlinerParaObject"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
mpImpl->mpEditTextObject->dumpAsXml(pWriter);
|
||||
for (Paragraph const & p : mpImpl->maParagraphDataVector)
|
||||
|
@ -99,7 +99,7 @@ void Paragraph::SetParaIsNumberingRestart( bool bParaIsNumberingRestart )
|
||||
|
||||
void Paragraph::dumpAsXml(struct _xmlTextWriter* pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("paragraph"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("Paragraph"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("nDepth"), "%" SAL_PRIdINT32, (sal_Int32)nDepth);
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("mnNumberingStartValue"), "%" SAL_PRIdINT32, (sal_Int32)mnNumberingStartValue);
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("mbParaIsNumberingRestart"), "%" SAL_PRIdINT32, (sal_Int32)mbParaIsNumberingRestart);
|
||||
@ -266,7 +266,7 @@ sal_Int32 ParagraphList::GetAbsPos( Paragraph* pParent ) const
|
||||
|
||||
void ParagraphList::dumpAsXml(struct _xmlTextWriter* pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("paragraphList"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("ParagraphList"));
|
||||
for (const Paragraph* pParagraph : maEntries)
|
||||
pParagraph->dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -1093,7 +1093,7 @@ void ScCondFormatItem::SetCondFormatData( const std::vector<sal_uInt32>& rIndex
|
||||
|
||||
void ScCondFormatItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("condFormatItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("ScCondFormatItem"));
|
||||
for (const auto& nItem : maIndex)
|
||||
{
|
||||
std::string aStrVal = std::to_string(nItem);
|
||||
|
@ -837,9 +837,9 @@ void SdTiledRenderingTest::testResizeTableColumn()
|
||||
|
||||
// Remember the original cell widths.
|
||||
xmlDocPtr pXmlDoc = parseXmlDump();
|
||||
OString aPrefix = "/sdDrawDocument/sdrModel/sdPage/sdrObjList/sdrTableObj/sdrTableObjImpl/tableLayouter/columns/";
|
||||
sal_Int32 nExpectedColumn1 = getXPath(pXmlDoc, aPrefix + "layout[1]", "size").toInt32();
|
||||
sal_Int32 nExpectedColumn2 = getXPath(pXmlDoc, aPrefix + "layout[2]", "size").toInt32();
|
||||
OString aPrefix = "/SdDrawDocument/SdrModel/SdPage/SdrObjList/SdrTableObj/SdrTableObjImpl/TableLayouter/columns/";
|
||||
sal_Int32 nExpectedColumn1 = getXPath(pXmlDoc, aPrefix + "TableLayouter_Layout[1]", "size").toInt32();
|
||||
sal_Int32 nExpectedColumn2 = getXPath(pXmlDoc, aPrefix + "TableLayouter_Layout[2]", "size").toInt32();
|
||||
xmlFreeDoc(pXmlDoc);
|
||||
pXmlDoc = nullptr;
|
||||
|
||||
@ -850,9 +850,9 @@ void SdTiledRenderingTest::testResizeTableColumn()
|
||||
|
||||
// Remember the resized column widths.
|
||||
pXmlDoc = parseXmlDump();
|
||||
sal_Int32 nResizedColumn1 = getXPath(pXmlDoc, aPrefix + "layout[1]", "size").toInt32();
|
||||
sal_Int32 nResizedColumn1 = getXPath(pXmlDoc, aPrefix + "TableLayouter_Layout[1]", "size").toInt32();
|
||||
CPPUNIT_ASSERT(nResizedColumn1 < nExpectedColumn1);
|
||||
sal_Int32 nResizedColumn2 = getXPath(pXmlDoc, aPrefix + "layout[2]", "size").toInt32();
|
||||
sal_Int32 nResizedColumn2 = getXPath(pXmlDoc, aPrefix + "TableLayouter_Layout[2]", "size").toInt32();
|
||||
CPPUNIT_ASSERT(nResizedColumn2 > nExpectedColumn2);
|
||||
xmlFreeDoc(pXmlDoc);
|
||||
pXmlDoc = nullptr;
|
||||
@ -862,10 +862,10 @@ void SdTiledRenderingTest::testResizeTableColumn()
|
||||
|
||||
// Check the undo result.
|
||||
pXmlDoc = parseXmlDump();
|
||||
sal_Int32 nActualColumn1 = getXPath(pXmlDoc, aPrefix + "layout[1]", "size").toInt32();
|
||||
sal_Int32 nActualColumn1 = getXPath(pXmlDoc, aPrefix + "TableLayouter_Layout[1]", "size").toInt32();
|
||||
// Expected was 7049, actual was 6048, i.e. the first column width after undo was 1cm smaller than expected.
|
||||
CPPUNIT_ASSERT_EQUAL(nExpectedColumn1, nActualColumn1);
|
||||
sal_Int32 nActualColumn2 = getXPath(pXmlDoc, aPrefix + "layout[2]", "size").toInt32();
|
||||
sal_Int32 nActualColumn2 = getXPath(pXmlDoc, aPrefix + "TableLayouter_Layout[2]", "size").toInt32();
|
||||
CPPUNIT_ASSERT_EQUAL(nExpectedColumn2, nActualColumn2);
|
||||
xmlFreeDoc(pXmlDoc);
|
||||
pXmlDoc = nullptr;
|
||||
|
@ -1101,7 +1101,7 @@ void SdDrawDocument::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
xmlTextWriterStartDocument(pWriter, nullptr, nullptr, nullptr);
|
||||
bOwns = true;
|
||||
}
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sdDrawDocument"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SdDrawDocument"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
|
||||
if (mpOutliner)
|
||||
|
@ -631,7 +631,7 @@ void SdPage::removeAnnotation( const Reference< XAnnotation >& xAnnotation )
|
||||
|
||||
void SdPage::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sdPage"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SdPage"));
|
||||
|
||||
const char* pPageKind = nullptr;
|
||||
switch (mePageKind)
|
||||
|
@ -1526,7 +1526,7 @@ void SfxViewShell::NotifyOtherView(OutlinerViewShell* pOther, int nType, const O
|
||||
|
||||
void SfxViewShell::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxViewShell"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxViewShell"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("id"), BAD_CAST(OString::number(GetViewShellId()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -177,7 +177,7 @@ bool SfxBoolItem::GetPresentation(SfxItemPresentation,
|
||||
|
||||
void SfxBoolItem::dumpAsXml(struct _xmlTextWriter* pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxBoolItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxBoolItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(GetValueTextByVal(m_bValue).toUtf8().getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -123,7 +123,7 @@ SfxPoolItem* SfxUInt16Item::CreateDefault()
|
||||
|
||||
void SfxUInt16Item::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxUInt16Item"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxUInt16Item"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -992,7 +992,7 @@ const SfxItemPool* SfxItemPool::pStoringPool_ = nullptr;
|
||||
|
||||
void SfxItemPool::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxItemPool"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxItemPool"));
|
||||
for (auto const & rArrayPtr : pImpl->maPoolItems)
|
||||
if (rArrayPtr)
|
||||
for (auto const & rItem : *rArrayPtr)
|
||||
|
@ -1634,7 +1634,7 @@ OString SfxItemSet::stringify() const
|
||||
|
||||
void SfxItemSet::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxItemSet"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxItemSet"));
|
||||
SfxItemIter aIter(*this);
|
||||
for (const SfxPoolItem* pItem = aIter.FirstItem(); pItem; pItem = aIter.NextItem())
|
||||
pItem->dumpAsXml(pWriter);
|
||||
|
@ -191,7 +191,7 @@ bool SfxPoolItem::GetPresentation
|
||||
|
||||
void SfxPoolItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxPoolItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxPoolItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("typeName"), BAD_CAST(typeid(*this).name()));
|
||||
OUString rText;
|
||||
@ -247,7 +247,7 @@ bool SfxVoidItem::GetPresentation
|
||||
|
||||
void SfxVoidItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxVoidItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxVoidItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ SfxPoolItem * SfxStringItem::Clone(SfxItemPool *) const
|
||||
|
||||
void SfxStringItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxStringItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxStringItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(GetValue().toUtf8().getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -133,7 +133,7 @@ bool SfxUndoAction::CanRepeat(SfxRepeatTarget&) const
|
||||
|
||||
void SfxUndoAction::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxUndoAction"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxUndoAction"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("symbol"), BAD_CAST(typeid(*this).name()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("comment"), BAD_CAST(GetComment().toUtf8().getStr()));
|
||||
@ -1275,7 +1275,7 @@ void SfxUndoManager::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
bOwns = true;
|
||||
}
|
||||
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxUndoManager"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxUndoManager"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nUndoActionCount"), BAD_CAST(OString::number(GetUndoActionCount()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nRedoActionCount"), BAD_CAST(OString::number(GetRedoActionCount()).getStr()));
|
||||
|
||||
@ -1460,7 +1460,7 @@ bool SfxListUndoAction::Merge( SfxUndoAction *pNextAction )
|
||||
|
||||
void SfxListUndoAction::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sfxListUndoAction"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SfxListUndoAction"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("size"), BAD_CAST(OString::number(aUndoActions.size()).getStr()));
|
||||
SfxUndoAction::dumpAsXml(pWriter);
|
||||
|
||||
|
@ -222,7 +222,7 @@ namespace sdr
|
||||
|
||||
void DefaultProperties::dumpAsXml(struct _xmlTextWriter * pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("defaultProperties"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("DefaultProperties"));
|
||||
mpItemSet->dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
}
|
||||
|
@ -2055,7 +2055,7 @@ void SdrModel::SetSdrUndoFactory( SdrUndoFactory* pUndoFactory )
|
||||
|
||||
void SdrModel::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sdrModel"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SdrModel"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
|
||||
sal_uInt16 nPageCount = GetPageCount();
|
||||
|
@ -1730,7 +1730,7 @@ OString SdrObject::stringify() const
|
||||
|
||||
void SdrObject::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sdrObject"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SdrObject"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("symbol"), "%s", BAD_CAST(typeid(*this).name()));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("name"), "%s", BAD_CAST(GetName().toUtf8().getStr()));
|
||||
|
@ -754,7 +754,7 @@ SdrObject* SdrObjGroup::DoConvertToPolyObj(bool bBezier, bool bAddText) const
|
||||
|
||||
void SdrObjGroup::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sdrObjGroup"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SdrObjGroup"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
|
||||
SdrObject::dumpAsXml(pWriter);
|
||||
|
@ -980,7 +980,7 @@ void SdrObjList::RemoveObjectFromContainer (
|
||||
|
||||
void SdrObjList::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sdrObjList"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SdrObjList"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("symbol"), "%s", BAD_CAST(typeid(*this).name()));
|
||||
|
||||
|
@ -204,7 +204,7 @@ SfxStyleSheet* SdrText::GetStyleSheet() const
|
||||
|
||||
void SdrText::dumpAsXml(struct _xmlTextWriter * pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sdrText"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SdrText"));
|
||||
mpOutlinerParaObject->dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
}
|
||||
|
@ -1644,7 +1644,7 @@ void SAL_CALL Cell::disposing( const EventObject& /*Source*/ ) throw (RuntimeExc
|
||||
|
||||
void Cell::dumpAsXml(struct _xmlTextWriter * pWriter, sal_Int32 nRow, sal_Int32 nCol) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("cell"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("Cell"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("row"), "%" SAL_PRIdINT32, nRow);
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("col"), "%" SAL_PRIdINT32, nCol);
|
||||
SdrText::dumpAsXml(pWriter);
|
||||
|
@ -632,7 +632,7 @@ bool SdrTableObjImpl::isInUse()
|
||||
|
||||
void SdrTableObjImpl::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sdrTableObjImpl"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SdrTableObjImpl"));
|
||||
if (mpLayouter)
|
||||
mpLayouter->dumpAsXml(pWriter);
|
||||
mxTable->dumpAsXml(pWriter);
|
||||
@ -2457,7 +2457,7 @@ void SdrTableObj::uno_unlock()
|
||||
|
||||
void SdrTableObj::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("sdrTableObj"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SdrTableObj"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
|
||||
SdrObject::dumpAsXml(pWriter);
|
||||
|
@ -1124,7 +1124,7 @@ void TableLayouter::DistributeRows( ::Rectangle& rArea, sal_Int32 nFirstRow, sal
|
||||
|
||||
void TableLayouter::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("tableLayouter"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("TableLayouter"));
|
||||
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("columns"));
|
||||
for (const auto& rColumn : maColumns)
|
||||
@ -1141,7 +1141,7 @@ void TableLayouter::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
|
||||
void TableLayouter::Layout::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("layout"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("TableLayouter_Layout"));
|
||||
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("pos"), BAD_CAST(OString::number(mnPos).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("size"), BAD_CAST(OString::number(mnSize).getStr()));
|
||||
|
@ -1126,7 +1126,7 @@ void TableModel::updateColumns()
|
||||
|
||||
void TableModel::dumpAsXml(struct _xmlTextWriter * pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("tableModel"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("TableModel"));
|
||||
for (sal_Int32 nRow = 0; nRow < getRowCountImpl(); ++nRow)
|
||||
for (sal_Int32 nCol = 0; nCol < getColumnCountImpl(); ++nCol)
|
||||
{
|
||||
|
@ -260,7 +260,7 @@ OUString NameOrIndex::CheckNamedItem( const NameOrIndex* pCheckItem, const sal_u
|
||||
|
||||
void NameOrIndex::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("nameOrIndex"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("NameOrIndex"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("isIndex"), BAD_CAST(OString::boolean(IsIndex()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr()));
|
||||
@ -2203,7 +2203,7 @@ bool XFillStyleItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberId*
|
||||
|
||||
void XFillStyleItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("xFillStyleItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("XFillStyleItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr()));
|
||||
|
||||
@ -2273,7 +2273,7 @@ bool XFillColorItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberId*
|
||||
|
||||
void XFillColorItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("xFillColorItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("XFillColorItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(GetColorValue().AsRGBHexString().toUtf8().getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -442,7 +442,7 @@ bool XFillTransparenceItem::GetPresentation
|
||||
|
||||
void XFillTransparenceItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("xFillTransparenceItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("XFillTransparenceItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -546,7 +546,7 @@ bool XFillBmpTileItem::GetPresentation
|
||||
|
||||
void XFillBmpTileItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("xFillBmpTileItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("XFillBmpTileItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -596,7 +596,7 @@ sal_uInt16 XFillBmpPosItem::GetValueCount() const
|
||||
|
||||
void XFillBmpPosItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("xFillBmpPosItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("XFillBmpPosItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number((int)GetValue()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -830,7 +830,7 @@ bool XFillBmpStretchItem::GetPresentation
|
||||
|
||||
void XFillBmpStretchItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("xFillBmpStretchItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("XFillBmpStretchItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -544,7 +544,7 @@ XFillBitmapItem* XFillBitmapItem::checkForUniqueItem( SdrModel* pModel ) const
|
||||
|
||||
void XFillBitmapItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("xFillBitmapItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("XFillBitmapItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
|
||||
NameOrIndex::dumpAsXml(pWriter);
|
||||
|
@ -687,7 +687,7 @@ DECLARE_OOXMLEXPORT_TEST(testNumOverrideLvltext, "num-override-lvltext.docx")
|
||||
CPPUNIT_ASSERT_EQUAL(sal_Int16(2), comphelper::SequenceAsHashMap(xRules->getByIndex(1))["ParentNumbering"].get<sal_Int16>());
|
||||
|
||||
// The paragraph marker's red font color was inherited by the number portion, this was ff0000.
|
||||
CPPUNIT_ASSERT_EQUAL(OUString("00000a"), parseDump("//Special[@nType='POR_NUMBER']/pFont", "color"));
|
||||
CPPUNIT_ASSERT_EQUAL(OUString("00000a"), parseDump("//Special[@nType='POR_NUMBER']/SwFont", "color"));
|
||||
}
|
||||
|
||||
DECLARE_OOXMLEXPORT_TEST(testNumOverrideStart, "num-override-start.docx")
|
||||
|
@ -3742,13 +3742,13 @@ void SwUiWriterTest::testTdf98987()
|
||||
createDoc("tdf98987.docx");
|
||||
calcLayout();
|
||||
xmlDocPtr pXmlDoc = parseLayoutDump();
|
||||
assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[2]/sdrObject", "name", "Rectangle 1");
|
||||
assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[2]/SdrObject", "name", "Rectangle 1");
|
||||
sal_Int32 nRectangle1 = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[2]/bounds", "top").toInt32();
|
||||
assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/sdrObject", "name", "Rectangle 2");
|
||||
assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/SdrObject", "name", "Rectangle 2");
|
||||
sal_Int32 nRectangle2 = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/bounds", "top").toInt32();
|
||||
CPPUNIT_ASSERT(nRectangle1 < nRectangle2);
|
||||
|
||||
assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[3]/sdrObject", "name", "Rectangle 3");
|
||||
assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[3]/SdrObject", "name", "Rectangle 3");
|
||||
sal_Int32 nRectangle3 = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[3]/bounds", "top").toInt32();
|
||||
// This failed: the 3rd rectangle had a smaller "top" value than the 2nd one, it even overlapped with the 1st one.
|
||||
CPPUNIT_ASSERT(nRectangle2 < nRectangle3);
|
||||
@ -3763,7 +3763,7 @@ void SwUiWriterTest::testTdf99004()
|
||||
sal_Int32 nTextBox1Height = getXPath(pXmlDoc, "/root/page/body/txt/anchored/fly/infos/bounds", "height").toInt32();
|
||||
sal_Int32 nTextBox1Bottom = nTextbox1Top + nTextBox1Height;
|
||||
|
||||
assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/sdrObject", "name", "Rectangle 2");
|
||||
assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/SdrObject", "name", "Rectangle 2");
|
||||
sal_Int32 nRectangle2Top = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/bounds", "top").toInt32();
|
||||
// This was 3291 and 2531, should be now around 2472 and 2531, i.e. the two rectangles should not overlap anymore.
|
||||
CPPUNIT_ASSERT(nTextBox1Bottom < nRectangle2Top);
|
||||
|
@ -140,7 +140,7 @@ sal_Int16 SwFormatWrapInfluenceOnObjPos::GetWrapInfluenceOnObjPos(
|
||||
|
||||
void SwFormatWrapInfluenceOnObjPos::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatWrapInfluenceOnObjPos"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatWrapInfluenceOnObjPos"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nWrapInfluenceOnPosition"), BAD_CAST(OString::number(mnWrapInfluenceOnPosition).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -178,7 +178,7 @@ namespace sw { namespace mark
|
||||
|
||||
void MarkBase::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("markBase"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("MarkBase"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(m_aName.toUtf8().getStr()));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("markPos"));
|
||||
GetMarkPos().dumpAsXml(pWriter);
|
||||
@ -379,7 +379,7 @@ namespace sw { namespace mark
|
||||
|
||||
void Fieldmark::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("fieldmark"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("Fieldmark"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("fieldname"), BAD_CAST(m_aFieldname.toUtf8().getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("fieldHelptext"), BAD_CAST(m_aFieldHelptext.toUtf8().getStr()));
|
||||
MarkBase::dumpAsXml(pWriter);
|
||||
|
@ -3357,7 +3357,7 @@ OUString SwCursorShell::GetCursorDescr() const
|
||||
|
||||
void SwCursorShell::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swCursorShell"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwCursorShell"));
|
||||
|
||||
SwViewShell::dumpAsXml(pWriter);
|
||||
|
||||
|
@ -180,7 +180,7 @@ SwDoc * SwPosition::GetDoc() const
|
||||
|
||||
void SwPosition::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swPosition"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwPosition"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nNode"), BAD_CAST(OString::number(nNode.GetIndex()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nContent"), BAD_CAST(OString::number(nContent.GetIndex()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -1045,7 +1045,7 @@ void SwPaM::InvalidatePaM()
|
||||
|
||||
void SwPaM::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swPaM"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwPaM"));
|
||||
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("point"));
|
||||
GetPoint()->dumpAsXml(pWriter);
|
||||
|
@ -1165,7 +1165,7 @@ void MarkManager::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{"annotationmarks", &m_vAnnotationMarks}
|
||||
};
|
||||
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("markManager"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("MarkManager"));
|
||||
for (const auto & rContainer : aContainers)
|
||||
{
|
||||
if (!rContainer.pContainer->empty())
|
||||
|
@ -1925,7 +1925,7 @@ void SwDoc::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
xmlTextWriterStartDocument(pWriter, nullptr, nullptr, nullptr);
|
||||
bOwns = true;
|
||||
}
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swDoc"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwDoc"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
|
||||
m_pNodes->dumpAsXml(pWriter);
|
||||
@ -1958,7 +1958,7 @@ void SwDoc::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
|
||||
void SwDBData::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swDBData"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwDBData"));
|
||||
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("sDataSource"), BAD_CAST(sDataSource.toUtf8().getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("sCommand"), BAD_CAST(sCommand.toUtf8().getStr()));
|
||||
|
@ -87,13 +87,13 @@ SwExtraRedlineTable::~SwExtraRedlineTable()
|
||||
|
||||
void SwExtraRedlineTable::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swExtraRedlineTable"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwExtraRedlineTable"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
|
||||
for (sal_uInt16 nCurExtraRedlinePos = 0; nCurExtraRedlinePos < GetSize(); ++nCurExtraRedlinePos)
|
||||
{
|
||||
const SwExtraRedline* pExtraRedline = GetRedline(nCurExtraRedlinePos);
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swExtraRedline"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwExtraRedline"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("symbol"), "%s", BAD_CAST(typeid(*pExtraRedline).name()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -625,7 +625,7 @@ const SwRangeRedline* SwRedlineTable::FindAtPosition( const SwPosition& rSttPos,
|
||||
|
||||
void SwRedlineTable::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swRedlineTable"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwRedlineTable"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
|
||||
for (SwRedlineTable::size_type nCurRedlinePos = 0; nCurRedlinePos < size(); ++nCurRedlinePos)
|
||||
@ -1699,7 +1699,7 @@ OUString SwRangeRedline::GetDescr()
|
||||
|
||||
void SwRangeRedline::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swRangeRedline"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwRangeRedline"));
|
||||
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("id"), BAD_CAST(OString::number(GetSeqNo()).getStr()));
|
||||
|
@ -461,7 +461,7 @@ bool SwTextFormatColl::AreListLevelIndentsApplicable() const
|
||||
|
||||
void SwTextFormatColl::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swTextFormatColl"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextFormatColl"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr()));
|
||||
GetAttrSet().dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -469,7 +469,7 @@ void SwTextFormatColl::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
|
||||
void SwTextFormatColls::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swTextFormatColls"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextFormatColls"));
|
||||
for (size_t i = 0; i < size(); ++i)
|
||||
GetFormat(i)->dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -1011,7 +1011,7 @@ void SwNumRule::RemoveParagraphStyle( SwTextFormatColl& rTextFormatColl )
|
||||
|
||||
void SwNumRule::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swNumRule"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwNumRule"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("msName"), BAD_CAST(msName.toUtf8().getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("mnPoolFormatId"), BAD_CAST(OString::number(mnPoolFormatId).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("mbAutoRuleFlag"), BAD_CAST(OString::boolean(mbAutoRuleFlag).getStr()));
|
||||
@ -1414,7 +1414,7 @@ namespace numfunc
|
||||
|
||||
void SwNumRuleTable::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swNumRuleTable"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwNumRuleTable"));
|
||||
for (SwNumRule* pNumRule : *this)
|
||||
pNumRule->dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -2356,7 +2356,7 @@ bool SwNodes::IsDocNodes() const
|
||||
|
||||
void SwNodes::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swNodes"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwNodes"));
|
||||
for (sal_uLong i = 0; i < Count(); ++i)
|
||||
(*this)[i]->dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -1079,7 +1079,7 @@ SwSectionFormat::MakeUnoObject()
|
||||
|
||||
void SwSectionFormat::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swSectionFormat"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwSectionFormat"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr()));
|
||||
GetAttrSet().dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -1087,7 +1087,7 @@ void SwSectionFormat::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
|
||||
void SwSectionFormats::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swSectionFormats"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwSectionFormats"));
|
||||
for (size_t i = 0; i < size(); ++i)
|
||||
GetFormat(i)->dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -1837,7 +1837,7 @@ bool SwPostItField::PutValue( const uno::Any& rAny, sal_uInt16 nWhichId )
|
||||
|
||||
void SwPostItField::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swPostItField"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwPostItField"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr()));
|
||||
|
||||
SwField::dumpAsXml(pWriter);
|
||||
|
@ -156,7 +156,7 @@ bool SwFieldType::PutValue( const uno::Any& , sal_uInt16 )
|
||||
|
||||
void SwFieldTypes::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFieldTypes"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFieldTypes"));
|
||||
sal_uInt16 nCount = size();
|
||||
for (sal_uInt16 nType = 0; nType < nCount; ++nType)
|
||||
{
|
||||
@ -760,7 +760,7 @@ bool SwField::IsClickable() const
|
||||
|
||||
void SwField::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swField"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwField"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("symbol"), "%s", BAD_CAST(typeid(*this).name()));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
|
||||
|
@ -405,7 +405,7 @@ bool SwFormatFrameSize::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
|
||||
|
||||
void SwFormatFrameSize::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatFrameSize"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatFrameSize"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
|
||||
std::stringstream aSize;
|
||||
@ -568,7 +568,7 @@ SfxPoolItem* SwFormatContent::Clone( SfxItemPool* ) const
|
||||
|
||||
void SwFormatContent::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatContent"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatContent"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("startNode"), BAD_CAST(OString::number(pStartNode->GetNode().GetIndex()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -761,7 +761,7 @@ bool SwFormatPageDesc::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
|
||||
|
||||
void SwFormatPageDesc::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatPageDesc"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatPageDesc"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
if (oNumOffset)
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("oNumOffset"), BAD_CAST(OString::number(*oNumOffset).getStr()));
|
||||
@ -792,7 +792,7 @@ bool SwColumn::operator==( const SwColumn &rCmp ) const
|
||||
|
||||
void SwColumn::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swColumn"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwColumn"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nWish"), BAD_CAST(OString::number(m_nWish).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nUpper"), BAD_CAST(OString::number(0).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nLower"), BAD_CAST(OString::number(0).getStr()));
|
||||
@ -1126,7 +1126,7 @@ bool SwFormatCol::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
|
||||
|
||||
void SwFormatCol::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatCol"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatCol"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("eLineStyle"), BAD_CAST(OString::number(m_eLineStyle).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nLineWidth"), BAD_CAST(OString::number(m_nLineWidth).getStr()));
|
||||
@ -1272,7 +1272,7 @@ bool SwFormatSurround::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
|
||||
|
||||
void SwFormatSurround::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatSurround"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatSurround"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr()));
|
||||
|
||||
@ -1401,7 +1401,7 @@ bool SwFormatVertOrient::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
|
||||
|
||||
void SwFormatVertOrient::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatVertOrient"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatVertOrient"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nYPos"), BAD_CAST(OString::number(m_nYPos).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("eOrient"), BAD_CAST(OString::number(m_eOrient).getStr()));
|
||||
@ -1502,7 +1502,7 @@ bool SwFormatHoriOrient::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
|
||||
|
||||
void SwFormatHoriOrient::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatHoriOrient"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatHoriOrient"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nXPos"), BAD_CAST(OString::number(m_nXPos).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("eOrient"), BAD_CAST(OString::number(m_eOrient).getStr()));
|
||||
@ -1714,7 +1714,7 @@ bool SwFormatAnchor::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
|
||||
|
||||
void SwFormatAnchor::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatAnchor"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatAnchor"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
|
||||
if (m_pContentAnchor)
|
||||
@ -1911,7 +1911,7 @@ SfxPoolItem* SwFormatNoBalancedColumns::Clone( SfxItemPool* ) const
|
||||
|
||||
void SwFormatNoBalancedColumns::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatNoBalancedColumns"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatNoBalancedColumns"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -2846,7 +2846,7 @@ OUString SwFrameFormat::GetDescription() const
|
||||
|
||||
void SwFrameFormat::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFrameFormat"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFrameFormat"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr()));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which());
|
||||
|
@ -238,7 +238,7 @@ bool SwNumRuleItem::PutValue( const uno::Any& rVal, sal_uInt8 )
|
||||
|
||||
void SwNumRuleItem::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swNumRuleItem"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwNumRuleItem"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(GetValue().toUtf8().getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -441,7 +441,7 @@ void SwAnchoredObject::dumpAsXml( xmlTextWriterPtr writer ) const
|
||||
|
||||
void SwFont::dumpAsXml(xmlTextWriterPtr writer) const
|
||||
{
|
||||
xmlTextWriterStartElement(writer, BAD_CAST("pFont"));
|
||||
xmlTextWriterStartElement(writer, BAD_CAST("SwFont"));
|
||||
xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("color"), "%s", GetColor().AsRGBHexString().toUtf8().getStr());
|
||||
xmlTextWriterEndElement(writer);
|
||||
|
@ -333,7 +333,7 @@ bool SwFormatField::IsProtect() const
|
||||
|
||||
void SwFormatField::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatField"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatField"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("mpTextField"), "%p", mpTextField);
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
void SwCharFormat::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swCharFormat"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwCharFormat"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr()));
|
||||
GetAttrSet().dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -33,7 +33,7 @@ void SwCharFormat::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
|
||||
void SwCharFormats::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swCharFormats"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwCharFormats"));
|
||||
for (size_t i = 0; i < size(); ++i)
|
||||
GetFormat(i)->dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
@ -151,7 +151,7 @@ bool SwFormatAutoFormat::PutValue( const uno::Any& , sal_uInt8 )
|
||||
|
||||
void SwFormatAutoFormat::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatAutoFormat"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatAutoFormat"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
mpHandle->dumpAsXml(pWriter);
|
||||
|
@ -4846,7 +4846,7 @@ sal_uInt16 SwTextNode::ResetAllAttr()
|
||||
|
||||
void SwTextNode::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swTextNode"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextNode"));
|
||||
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("index"), BAD_CAST(OString::number(GetIndex()).getStr()));
|
||||
|
||||
@ -4859,21 +4859,21 @@ void SwTextNode::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
|
||||
if (GetFormatColl())
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swTextFormatColl"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextFormatColl"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetFormatColl()->GetName().toUtf8().getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
}
|
||||
|
||||
if (HasSwAttrSet())
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swAttrSet"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwAttrSet"));
|
||||
GetSwAttrSet().dumpAsXml(pWriter);
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
}
|
||||
|
||||
if (HasHints())
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swpHints"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwpHints"));
|
||||
const SwpHints& rHints = GetSwpHints();
|
||||
for (size_t i = 0; i < rHints.Count(); ++i)
|
||||
rHints.Get(i)->dumpAsXml(pWriter);
|
||||
|
@ -77,7 +77,7 @@ sal_Int32* SwTextAttrEnd::GetEnd()
|
||||
|
||||
void SwTextAttr::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swTextAttr"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextAttr"));
|
||||
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("start"), BAD_CAST(OString::number(m_nStart).getStr()));
|
||||
if (End())
|
||||
|
@ -127,7 +127,7 @@ bool SwViewShell::isOutputToWindow() const
|
||||
|
||||
void SwViewShell::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swViewShell"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwViewShell"));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
}
|
||||
|
||||
|
@ -262,7 +262,7 @@ int SwView::getPart() const
|
||||
|
||||
void SwView::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swView"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwView"));
|
||||
SfxViewShell::dumpAsXml(pWriter);
|
||||
if (m_pWrtShell)
|
||||
m_pWrtShell->dumpAsXml(pWriter);
|
||||
|
@ -548,7 +548,7 @@ bool SwFormatEditInReadonly::GetPresentation
|
||||
|
||||
void SwFormatEditInReadonly::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatEditInReadonly"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatEditInReadonly"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
@ -842,7 +842,7 @@ bool SwFormatFollowTextFlow::GetPresentation( SfxItemPresentation ePres,
|
||||
|
||||
void SwFormatFollowTextFlow::dumpAsXml(xmlTextWriterPtr pWriter) const
|
||||
{
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatFollowTextFlow"));
|
||||
xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatFollowTextFlow"));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
|
||||
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr()));
|
||||
xmlTextWriterEndElement(pWriter);
|
||||
|
Loading…
x
Reference in New Issue
Block a user