diff options
author | Rosemary Sebastian <rosemaryseb8@gmail.com> | 2016-06-14 21:59:32 +0530 |
---|---|---|
committer | Rosemary Sebastian <rosemaryseb8@gmail.com> | 2016-06-14 21:59:32 +0530 |
commit | baf57f89f63d24aa4592ed52c6cc9236fcde6635 (patch) | |
tree | 5d01bd3a91fb74be27e40b9da810e750169c5373 /xmloff/source/text/XMLRedlineExport.cxx | |
parent | Remove all TODO's (diff) | |
download | core-baf57f89f63d24aa4592ed52c6cc9236fcde6635.tar.gz core-baf57f89f63d24aa4592ed52c6cc9236fcde6635.zip |
Rework the placeholder XML
Change-Id: I54d813588910bc2ea324873c8b41977e7ad6340c
Diffstat (limited to 'xmloff/source/text/XMLRedlineExport.cxx')
-rw-r--r-- | xmloff/source/text/XMLRedlineExport.cxx | 74 |
1 files changed, 2 insertions, 72 deletions
diff --git a/xmloff/source/text/XMLRedlineExport.cxx b/xmloff/source/text/XMLRedlineExport.cxx index abb346726211..70883eca06f9 100644 --- a/xmloff/source/text/XMLRedlineExport.cxx +++ b/xmloff/source/text/XMLRedlineExport.cxx @@ -39,7 +39,6 @@ #include <xmloff/xmlexp.hxx> #include <xmloff/xmluconv.hxx> - using namespace ::com::sun::star; using namespace ::xmloff::token; @@ -359,22 +358,16 @@ void XMLRedlineExport::ExportChangeInline( void XMLRedlineExport::ExportChangedRegion( const Reference<XPropertySet> & rPropSet) { - // Redline-ID - rExport.AddAttributeIdLegacy(XML_NAMESPACE_TEXT, GetRedlineID(rPropSet)); - // merge-last-paragraph Any aAny = rPropSet->getPropertyValue(sMergeLastPara); if( ! *static_cast<sal_Bool const *>(aAny.getValue()) ) rExport.AddAttribute(XML_NAMESPACE_TEXT, XML_MERGE_LAST_PARAGRAPH, XML_FALSE); - // export change region element - SvXMLElementExport aChangedRegion(rExport, XML_NAMESPACE_TEXT, - XML_CHANGED_REGION, true, true); - - // scope for (first) change element { + rExport.AddAttribute(XML_NAMESPACE_C, XML_START, "2"); + rExport.AddAttribute(XML_NAMESPACE_DC, XML_TYPE, XML_PARAGRAPH); aAny = rPropSet->getPropertyValue(sRedlineType); OUString sType; aAny >>= sType; @@ -487,69 +480,6 @@ void XMLRedlineExport::ExportChangeInfo( rExport.Characters(sBuf.makeStringAndClear()); } - aAny = rPropSet->getPropertyValue(sRedlineType); - OUString sType; - aAny >>= sType; - if(sType == sFormat) - { - { - SvXMLElementExport aTypeElem( rExport, XML_NAMESPACE_DC, - XML_TYPE, true, false ); - rExport.Characters("style"); - } - { - SvXMLElementExport aNameElem( rExport, XML_NAMESPACE_DC, - XML_NAME, true, false ); - rExport.Characters("bold"); - } - { - SvXMLElementExport aStartElem( rExport, XML_NAMESPACE_DC, - XML_START, true, false ); - rExport.Characters("/"); - } - { - SvXMLElementExport aEndElem( rExport, XML_NAMESPACE_DC, - XML_END, true, false ); - rExport.Characters("/"); - } - } - else if(sType == sInsert) - { - { - SvXMLElementExport aTypeElem( rExport, XML_NAMESPACE_DC, - XML_TYPE, true, false ); - rExport.Characters("text"); - } - { - SvXMLElementExport aStartElem( rExport, XML_NAMESPACE_DC, - XML_START, true, false ); - rExport.Characters("/"); - } - { - SvXMLElementExport aEndElem( rExport, XML_NAMESPACE_DC, - XML_END, true, false ); - } - } - else if(sType == sDelete) - { - { - SvXMLElementExport aTypeElem( rExport, XML_NAMESPACE_DC, - XML_TYPE, true, false ); - rExport.Characters("paragraph"); - } - { - SvXMLElementExport aStartElem( rExport, XML_NAMESPACE_DC, - XML_START, true, false ); - OUString paraPos = "2"; - rExport.Characters("/" + paraPos); - } - { - SvXMLElementExport aEndElem( rExport, XML_NAMESPACE_DC, - XML_END, true, false ); - rExport.Characters("/"); - } - } - // comment as <text:p> sequence aAny = rPropSet->getPropertyValue(sRedlineComment); aAny >>= sTmp; |