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