22#include <com/sun/star/uno/Reference.h>
23#include <com/sun/star/uno/Sequence.h>
32 namespace beans {
struct PropertyValue; }
33 namespace text {
class XText; }
34 namespace text {
class XTextContent; }
35 namespace text {
class XTextSection; }
44 css::uno::Reference< css::text::XText>,
83 const css::uno::Reference<css::beans::XPropertySet> & rPropSet,
91 const css::uno::Reference<css::text::XText> & rText,
97 const css::uno::Reference<css::text::XText> & rText);
106 const css::uno::Reference<
107 css::beans::XPropertySet> & rPropSet,
113 const css::uno::Reference<css::text::XTextContent> & rContent,
119 const css::uno::Reference<css::text::XTextSection> & rSection,
127 const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
132 const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
142 const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
146 const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
150 const css::uno::Sequence<css::beans::PropertyValue> & rValues);
157 const css::uno::Reference<css::beans::XPropertySet> & rPropSet);
::std::vector< css::uno::Reference< css::beans::XPropertySet > > ChangesVectorType
::std::map< css::uno::Reference< css::text::XText >, ChangesVectorType > ChangesMapType
This class handles the export of redline portions.
void ExportChangesList(const css::uno::Reference< css::text::XText > &rText, bool bAutoStyles)
export the list of changes (recorded changes for this XText only)
void ExportChangeInline(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
export the change mark contained in the text body
void ExportStartOrEndRedline(const css::uno::Reference< css::text::XTextSection > &rSection, bool bStart)
convenience method, calls XPropertySet-version of this method
void ExportChangeInfo(const css::uno::Sequence< css::beans::PropertyValue > &rValues)
export a change-info element (from PropertyValues)
void ExportChangeAutoStyle(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
export the auto styles used in this change
ChangesVectorType * pCurrentChangesList
map of recorded changes
void SetCurrentXText(const css::uno::Reference< css::text::XText > &rText)
set the current XText for which changes should be recorded.
void ExportChangesListElements()
export the changes list (<text:tracked-changes>)
void ExportChangesListAutoStyles()
export the auto styles needed by the changes list
OUString const & ConvertTypeName(std::u16string_view sApiName)
convert the change type from API to XML names
void WriteComment(std::u16string_view rComment)
write a comment string as sequence of <text:p> elements
void ExportStartOrEndRedline(const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool bStart)
export redline marks which start or end at start nodes, i.e.
static OUString GetRedlineID(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
Get ID string!
void ExportStartOrEndRedline(const css::uno::Reference< css::text::XTextContent > &rContent, bool bStart)
start or end of text entity (e.g. paragraph)?
void ExportChangedRegion(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
export the changed-region element
void ExportChange(const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool bAutoStyle)
export a change
const OUString sFormatChange
void ExportChangeInfo(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
export a change-info element (from a PropertySet)
void SetCurrentXText()
Do not record changes.
void ExportChangesList(bool bAutoStyles)
export the list of changes (complete list minus recorded changed)
ChangesMapType aChangeMap
XMLRedlineExport(SvXMLExport &rExp)
const OUString sInsertion
class SAL_NO_VTABLE XPropertySet