[Libreoffice-commits] core.git: Branch 'private/Rosemary/change-tracking' - xmloff/source
Rosemary Sebastian
rosemaryseb8 at gmail.com
Thu Jun 16 03:52:54 UTC 2016
xmloff/source/text/XMLRedlineExport.cxx | 35 --------------------------------
xmloff/source/text/XMLRedlineExport.hxx | 5 ----
2 files changed, 40 deletions(-)
New commits:
commit 7b2d588fa7dd162c132103500774b278fc149e80
Author: Rosemary Sebastian <rosemaryseb8 at gmail.com>
Date: Thu Jun 16 09:19:51 2016 +0530
No need to export changes inline
Change-Id: I11340715aa40fa490339e03c09509d334dc289dd
diff --git a/xmloff/source/text/XMLRedlineExport.cxx b/xmloff/source/text/XMLRedlineExport.cxx
index daa0f0b..b4451fd 100644
--- a/xmloff/source/text/XMLRedlineExport.cxx
+++ b/xmloff/source/text/XMLRedlineExport.cxx
@@ -115,10 +115,6 @@ void XMLRedlineExport::ExportChange(
if (pCurrentChangesList != nullptr)
ExportChangeAutoStyle(rPropSet);
}
- else
- {
- ExportChangeInline(rPropSet);
- }
}
@@ -324,37 +320,6 @@ void XMLRedlineExport::ExportChangesListAutoStyles()
}
}
-void XMLRedlineExport::ExportChangeInline(
- const Reference<XPropertySet> & rPropSet)
-{
- // determine element name (depending on collapsed, start/end)
- enum XMLTokenEnum eElement = XML_TOKEN_INVALID;
- Any aAny = rPropSet->getPropertyValue(sIsCollapsed);
- bool bCollapsed = *static_cast<sal_Bool const *>(aAny.getValue());
- if (bCollapsed)
- {
- eElement = XML_CHANGE;
- }
- else
- {
- aAny = rPropSet->getPropertyValue(sIsStart);
- const bool bStart = *static_cast<sal_Bool const *>(aAny.getValue());
- eElement = bStart ? XML_CHANGE_START : XML_CHANGE_END;
- }
-
- if (XML_TOKEN_INVALID != eElement)
- {
- // we always need the ID
- rExport.AddAttribute(XML_NAMESPACE_TEXT, XML_CHANGE_ID,
- GetRedlineID(rPropSet));
-
- // export the element (no whitespace because we're in the text body)
- SvXMLElementExport aChangeElem(rExport, XML_NAMESPACE_TEXT,
- eElement, false, false);
- }
-}
-
-
void XMLRedlineExport::ExportChangedRegion(
const Reference<XPropertySet> & rPropSet)
{
diff --git a/xmloff/source/text/XMLRedlineExport.hxx b/xmloff/source/text/XMLRedlineExport.hxx
index 08e8973..1ece917 100644
--- a/xmloff/source/text/XMLRedlineExport.hxx
+++ b/xmloff/source/text/XMLRedlineExport.hxx
@@ -146,11 +146,6 @@ public:
private:
- /// export the change mark contained in the text body
- void ExportChangeInline(
- /// PropertySet of RedlinePortion
- const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
-
/// export the auto styles used in this change
void ExportChangeAutoStyle(
/// PropertySet of RedlinePortion
More information about the Libreoffice-commits
mailing list