summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/docxtablestyleexport.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-27 10:50:38 +0200
committerNoel Grandin <noel@peralex.com>2015-03-27 10:51:08 +0200
commit1a08ce70788fe3d8938627aa21bde1861cd94181 (patch)
tree0854d10f83309b02d9a1661131f067c183cf1fd8 /sw/source/filter/ww8/docxtablestyleexport.cxx
parentaa7a829e7df30a5356fca2bae0bb7eb51367f08d (diff)
loplugin:staticfunction
Change-Id: I10c30ef28e7321882a720d1e7869a75a89febfc5
Diffstat (limited to 'sw/source/filter/ww8/docxtablestyleexport.cxx')
-rw-r--r--sw/source/filter/ww8/docxtablestyleexport.cxx23
1 files changed, 12 insertions, 11 deletions
diff --git a/sw/source/filter/ww8/docxtablestyleexport.cxx b/sw/source/filter/ww8/docxtablestyleexport.cxx
index f3113e94698f..9641a5e72c42 100644
--- a/sw/source/filter/ww8/docxtablestyleexport.cxx
+++ b/sw/source/filter/ww8/docxtablestyleexport.cxx
@@ -16,6 +16,7 @@
using namespace com::sun::star;
using namespace oox;
+using namespace sax_fastparser;
/// Methods in this class handle values in a table style.
struct DocxTableStyleExport::Impl
@@ -67,7 +68,7 @@ void DocxTableStyleExport::CharFormat(css::uno::Sequence<css::beans::PropertyVal
void DocxTableStyleExport::CnfStyle(uno::Sequence<beans::PropertyValue>& rAttributeList)
{
- sax_fastparser::FastAttributeList* pAttributeList = m_pImpl->m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
for (sal_Int32 j = 0; j < rAttributeList.getLength(); ++j)
{
@@ -177,7 +178,7 @@ void DocxTableStyleExport::Impl::tableStyleTcBorder(sal_Int32 nToken, const uno:
if (!rTcBorder.hasElements())
return;
- sax_fastparser::FastAttributeList* pAttributeList = m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
for (sal_Int32 i = 0; i < rTcBorder.getLength(); ++i)
if (sal_Int32 nAttrToken = DocxStringGetToken(aTcBorderTokens, rTcBorder[i].Name))
pAttributeList->add(FSNS(XML_w, nAttrToken), rTcBorder[i].Value.get<OUString>().toUtf8());
@@ -218,7 +219,7 @@ void DocxTableStyleExport::Impl::tableStyleShd(uno::Sequence<beans::PropertyValu
if (!rShd.hasElements())
return;
- sax_fastparser::FastAttributeList* pAttributeList = m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
for (sal_Int32 i = 0; i < rShd.getLength(); ++i)
{
if (rShd[i].Name == "val")
@@ -243,7 +244,7 @@ void DocxTableStyleExport::Impl::tableStyleRColor(uno::Sequence<beans::PropertyV
if (!rColor.hasElements())
return;
- sax_fastparser::FastAttributeList* pAttributeList = m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
for (sal_Int32 i = 0; i < rColor.getLength(); ++i)
{
if (rColor[i].Name == "val")
@@ -264,7 +265,7 @@ void DocxTableStyleExport::Impl::tableStyleRLang(uno::Sequence<beans::PropertyVa
if (!rLang.hasElements())
return;
- sax_fastparser::FastAttributeList* pAttributeList = m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
for (sal_Int32 i = 0; i < rLang.getLength(); ++i)
{
if (rLang[i].Name == "eastAsia")
@@ -283,7 +284,7 @@ void DocxTableStyleExport::Impl::tableStyleRRFonts(uno::Sequence<beans::Property
if (!rRFonts.hasElements())
return;
- sax_fastparser::FastAttributeList* pAttributeList = m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
for (sal_Int32 i = 0; i < rRFonts.getLength(); ++i)
{
if (rRFonts[i].Name == "eastAsiaTheme")
@@ -304,7 +305,7 @@ void DocxTableStyleExport::Impl::tableStylePSpacing(uno::Sequence<beans::Propert
if (!rSpacing.hasElements())
return;
- sax_fastparser::FastAttributeList* pAttributeList = m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
for (sal_Int32 i = 0; i < rSpacing.getLength(); ++i)
{
if (rSpacing[i].Name == "after")
@@ -335,7 +336,7 @@ void DocxTableStyleExport::Impl::tableStylePInd(uno::Sequence<beans::PropertyVal
if (!rInd.hasElements())
return;
- sax_fastparser::FastAttributeList* pAttributeList = m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
for (sal_Int32 i = 0; i < rInd.getLength(); ++i)
{
if (rInd[i].Name == "rightChars")
@@ -352,7 +353,7 @@ void DocxTableStyleExport::Impl::tableStyleTblInd(uno::Sequence<beans::PropertyV
if (!rTblInd.hasElements())
return;
- sax_fastparser::FastAttributeList* pAttributeList = m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
for (sal_Int32 i = 0; i < rTblInd.getLength(); ++i)
{
if (rTblInd[i].Name == "w")
@@ -368,7 +369,7 @@ void DocxTableStyleExport::Impl::handleBoolean(const OUString& aValue, sal_Int32
{
if (aValue.isEmpty())
return;
- sax_fastparser::FastAttributeList* pAttributeList = m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
if (aValue != "1")
pAttributeList->add(FSNS(XML_w, XML_val), aValue.toUtf8());
sax_fastparser::XFastAttributeListRef xAttributeList(pAttributeList);
@@ -633,7 +634,7 @@ void DocxTableStyleExport::Impl::TableStyle(uno::Sequence<beans::PropertyValue>&
aTblStylePrs.push_back(rStyle[i].Value.get< uno::Sequence<beans::PropertyValue> >());
}
- sax_fastparser::FastAttributeList* pAttributeList = m_pSerializer->createAttrList();
+ sax_fastparser::FastAttributeList* pAttributeList = FastSerializerHelper::createAttrList();
pAttributeList->add(FSNS(XML_w, XML_type), "table");
if (bDefault)
pAttributeList->add(FSNS(XML_w, XML_default), "1");