summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-07-15 08:53:14 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-07-15 09:39:39 +0200
commitc6695a4aabeaae99174b7658f2b813788ecff7f0 (patch)
treed3604cc44562378792da2e17e6edc2bda35aa62b /writerfilter
parenteea6033404aebcba6f6473dda6c6d435bd31e831 (diff)
writerfilter: improve comments around compat flags
Make it more explicit which list is shared and which list is DOCX-only. See <https://gerrit.libreoffice.org/c/core/+/118960/3#message-09a4a96aa2d09e2182dac80bb4857a875155fff9>. Change-Id: I287dfe799eb8597ca0a8ad65ec677d8da79bf1e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118966 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper.cxx2
-rw-r--r--writerfilter/source/filter/WriterFilter.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index 5f179de3a595..a3e8b0009c43 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -219,7 +219,7 @@ DomainMapper::~DomainMapper()
}
- // Apply the document settings after everything else
+ // Apply the document settings for both DOCX and RTF after everything else
m_pImpl->GetSettingsTable()->ApplyProperties( m_pImpl->GetTextDocument( ) );
// now that importing is finished, re-enable default styles for any that were never defined/imported.
diff --git a/writerfilter/source/filter/WriterFilter.cxx b/writerfilter/source/filter/WriterFilter.cxx
index 2d20ab1ef0c3..0d9326c41fe0 100644
--- a/writerfilter/source/filter/WriterFilter.cxx
+++ b/writerfilter/source/filter/WriterFilter.cxx
@@ -299,7 +299,7 @@ void WriterFilter::setTargetDocument(const uno::Reference<lang::XComponent>& xDo
{
m_xDstDoc = xDoc;
- // Set some compatibility options that are valid for all the formats
+ // Set some compatibility options that are valid for the DOCX format
uno::Reference<lang::XMultiServiceFactory> xFactory(xDoc, uno::UNO_QUERY);
uno::Reference<beans::XPropertySet> xSettings(
xFactory->createInstance("com.sun.star.document.Settings"), uno::UNO_QUERY);