loplugin:mergeclasses, OOXMLTableImpl into OOXMLTable
Change-Id: I28f6d317ca02cf23341358f9520de273af603bd7
This commit is contained in:
@@ -397,7 +397,6 @@ merge writerfilter::ooxml::OOXMLFastContextHandlerLinear with writerfilter::ooxm
|
||||
merge writerfilter::ooxml::OOXMLProperty with writerfilter::ooxml::OOXMLPropertyImpl
|
||||
merge writerfilter::ooxml::OOXMLPropertySet with writerfilter::ooxml::OOXMLPropertySetImpl
|
||||
merge writerfilter::ooxml::OOXMLStream with writerfilter::ooxml::OOXMLStreamImpl
|
||||
merge writerfilter::ooxml::OOXMLTable with writerfilter::ooxml::OOXMLTableImpl
|
||||
merge writerfilter::rtftok::RTFDocument with writerfilter::rtftok::RTFDocumentImpl
|
||||
merge ww8::WW8Struct with ww8::WW8Sttb
|
||||
merge xforms::OXSDDataType with xforms::OValueLimitedType_Base
|
||||
|
@@ -1089,7 +1089,7 @@ void OOXMLFastContextHandlerPropertyTable::lcl_endFastElement
|
||||
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
|
||||
{
|
||||
OOXMLPropertySet::Pointer_t pPropSet(mpPropertySet->clone());
|
||||
OOXMLTableImpl::ValuePointer_t pTmpVal
|
||||
OOXMLTable::ValuePointer_t pTmpVal
|
||||
(new OOXMLPropertySetValue(pPropSet));
|
||||
|
||||
mTable.add(pTmpVal);
|
||||
@@ -1218,7 +1218,7 @@ void OOXMLFastContextHandlerTable::addCurrentChild()
|
||||
|
||||
if (pValue.get() != nullptr)
|
||||
{
|
||||
OOXMLTableImpl::ValuePointer_t pTmpVal(pValue->clone());
|
||||
OOXMLTable::ValuePointer_t pTmpVal(pValue->clone());
|
||||
mTable.add(pTmpVal);
|
||||
}
|
||||
}
|
||||
|
@@ -305,7 +305,7 @@ public:
|
||||
virtual ~OOXMLFastContextHandlerPropertyTable();
|
||||
|
||||
protected:
|
||||
OOXMLTableImpl mTable;
|
||||
OOXMLTable mTable;
|
||||
|
||||
virtual void lcl_endFastElement(Token_t Element)
|
||||
throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
|
||||
@@ -346,7 +346,7 @@ public:
|
||||
throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
|
||||
|
||||
protected:
|
||||
OOXMLTableImpl mTable;
|
||||
OOXMLTable mTable;
|
||||
|
||||
css::uno::Reference<css::xml::sax::XFastContextHandler> mCurrentChild;
|
||||
|
||||
|
@@ -20,6 +20,7 @@
|
||||
#define INCLUDED_WRITERFILTER_SOURCE_OOXML_OOXMLPROPERTYSET_HXX
|
||||
|
||||
#include <dmapper/resourcemodel.hxx>
|
||||
#include <vector>
|
||||
|
||||
namespace writerfilter {
|
||||
namespace ooxml
|
||||
@@ -59,14 +60,23 @@ public:
|
||||
#endif
|
||||
};
|
||||
|
||||
class OOXMLValue;
|
||||
|
||||
class OOXMLTable : public writerfilter::Reference<Table>
|
||||
{
|
||||
public:
|
||||
typedef std::shared_ptr<OOXMLValue> ValuePointer_t;
|
||||
OOXMLTable();
|
||||
virtual ~OOXMLTable();
|
||||
|
||||
virtual void resolve(Table & rTable) override = 0;
|
||||
virtual OOXMLTable * clone() const = 0;
|
||||
void resolve(Table & rTable);
|
||||
void add(ValuePointer_t pPropertySet);
|
||||
OOXMLTable * clone() const;
|
||||
private:
|
||||
typedef std::vector<ValuePointer_t> PropertySets_t;
|
||||
PropertySets_t mPropertySets;
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
#endif // INCLUDED_WRITERFILTER_SOURCE_OOXML_OOXMLPROPERTYSET_HXX
|
||||
|
@@ -38,10 +38,6 @@ OOXMLPropertySet::~OOXMLPropertySet()
|
||||
{
|
||||
}
|
||||
|
||||
OOXMLTable::~OOXMLTable()
|
||||
{
|
||||
}
|
||||
|
||||
OOXMLPropertyImpl::OOXMLPropertyImpl(Id id, OOXMLValue::Pointer_t pValue,
|
||||
OOXMLPropertyImpl::Type_t eType)
|
||||
: mId(id), mpValue(pValue), meType(eType)
|
||||
@@ -722,15 +718,16 @@ OOXMLValue * OOXMLStarMathValue::clone() const
|
||||
class OOXMLTableImpl
|
||||
*/
|
||||
|
||||
OOXMLTableImpl::OOXMLTableImpl()
|
||||
OOXMLTable::OOXMLTable()
|
||||
{
|
||||
}
|
||||
|
||||
OOXMLTableImpl::~OOXMLTableImpl()
|
||||
OOXMLTable::~OOXMLTable()
|
||||
{
|
||||
}
|
||||
|
||||
void OOXMLTableImpl::resolve(Table & rTable)
|
||||
|
||||
void OOXMLTable::resolve(Table & rTable)
|
||||
{
|
||||
Table * pTable = &rTable;
|
||||
|
||||
@@ -752,15 +749,15 @@ void OOXMLTableImpl::resolve(Table & rTable)
|
||||
}
|
||||
}
|
||||
|
||||
void OOXMLTableImpl::add(ValuePointer_t pPropertySet)
|
||||
void OOXMLTable::add(ValuePointer_t pPropertySet)
|
||||
{
|
||||
if (pPropertySet.get() != nullptr)
|
||||
mPropertySets.push_back(pPropertySet);
|
||||
}
|
||||
|
||||
OOXMLTable * OOXMLTableImpl::clone() const
|
||||
OOXMLTable * OOXMLTable::clone() const
|
||||
{
|
||||
return new OOXMLTableImpl(*this);
|
||||
return new OOXMLTable(*this);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -271,23 +271,6 @@ public:
|
||||
virtual OOXMLValue * clone() const override;
|
||||
};
|
||||
|
||||
class OOXMLTableImpl : public OOXMLTable
|
||||
{
|
||||
public:
|
||||
typedef std::shared_ptr<OOXMLValue> ValuePointer_t;
|
||||
private:
|
||||
typedef std::vector<ValuePointer_t> PropertySets_t;
|
||||
PropertySets_t mPropertySets;
|
||||
|
||||
public:
|
||||
OOXMLTableImpl();
|
||||
virtual ~OOXMLTableImpl();
|
||||
|
||||
virtual void resolve(Table & rTable) override;
|
||||
void add(ValuePointer_t pPropertySet);
|
||||
virtual OOXMLTable * clone() const override;
|
||||
};
|
||||
|
||||
class OOXMLPropertySetEntryToString : public Properties
|
||||
{
|
||||
Id mnId;
|
||||
|
Reference in New Issue
Block a user