summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-10-29 21:39:16 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-10-30 08:38:17 +0100
commitf3a40a66e3150bf0d60a8ea0f9e7c10450e508ac (patch)
tree696533b24796ca2e56f357ec03cf94bc8c172751 /sw
parent9630a2dfc79b08e3417e6e69b083f5124614499c (diff)
sw: make members of DocxTableStyleExport::Impl private
Change-Id: I1d2a1ac7c651a706e4ef03d04df4222d4e2aaba5 Reviewed-on: https://gerrit.libreoffice.org/62525 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxtablestyleexport.cxx20
1 files changed, 15 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/docxtablestyleexport.cxx b/sw/source/filter/ww8/docxtablestyleexport.cxx
index 210be3546852..e6a2ebee8316 100644
--- a/sw/source/filter/ww8/docxtablestyleexport.cxx
+++ b/sw/source/filter/ww8/docxtablestyleexport.cxx
@@ -23,11 +23,21 @@ using namespace oox;
/// Methods in this class handle values in a table style.
struct DocxTableStyleExport::Impl
{
+private:
SwDoc* m_pDoc;
sax_fastparser::FSHelperPtr m_pSerializer;
+public:
void TableStyle(uno::Sequence<beans::PropertyValue>& rStyle);
+ void setSerializer(sax_fastparser::FSHelperPtr pSerializer) { m_pSerializer = pSerializer; }
+
+ sax_fastparser::FSHelperPtr getSerializer() const { return m_pSerializer; }
+
+ void setDoc(SwDoc* pDoc) { m_pDoc = pDoc; }
+
+ SwDoc* getDoc() const { return m_pDoc; }
+
/// Handles a boolean value.
void handleBoolean(const OUString& aValue, sal_Int32 nToken);
@@ -101,13 +111,13 @@ void DocxTableStyleExport::CnfStyle(uno::Sequence<beans::PropertyValue>& rAttrib
}
sax_fastparser::XFastAttributeListRef xAttributeList(pAttributeList);
- m_pImpl->m_pSerializer->singleElementNS(XML_w, XML_cnfStyle, xAttributeList);
+ m_pImpl->getSerializer()->singleElementNS(XML_w, XML_cnfStyle, xAttributeList);
}
void DocxTableStyleExport::TableStyles(sal_Int32 nCountStylesToWrite)
{
// Do we have table styles from InteropGrabBag available?
- uno::Reference<beans::XPropertySet> xPropertySet(m_pImpl->m_pDoc->GetDocShell()->GetBaseModel(), uno::UNO_QUERY_THROW);
+ uno::Reference<beans::XPropertySet> xPropertySet(m_pImpl->getDoc()->GetDocShell()->GetBaseModel(), uno::UNO_QUERY_THROW);
uno::Sequence<beans::PropertyValue> aInteropGrabBag;
xPropertySet->getPropertyValue("InteropGrabBag") >>= aInteropGrabBag;
uno::Sequence<beans::PropertyValue> aTableStyles;
@@ -681,14 +691,14 @@ void DocxTableStyleExport::Impl::TableStyle(uno::Sequence<beans::PropertyValue>&
void DocxTableStyleExport::SetSerializer(const sax_fastparser::FSHelperPtr& pSerializer)
{
- m_pImpl->m_pSerializer = pSerializer;
+ m_pImpl->setSerializer(pSerializer);
}
DocxTableStyleExport::DocxTableStyleExport(SwDoc* pDoc, const sax_fastparser::FSHelperPtr& pSerializer)
: m_pImpl(o3tl::make_unique<Impl>())
{
- m_pImpl->m_pDoc = pDoc;
- m_pImpl->m_pSerializer = pSerializer;
+ m_pImpl->setDoc(pDoc);
+ m_pImpl->setSerializer(pSerializer);
}
DocxTableStyleExport::~DocxTableStyleExport() = default;