summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--writerfilter/source/resourcemodel/resourcemodel.cxx88
1 files changed, 0 insertions, 88 deletions
diff --git a/writerfilter/source/resourcemodel/resourcemodel.cxx b/writerfilter/source/resourcemodel/resourcemodel.cxx
index 24b6aa1a8741..c6779db934d0 100644
--- a/writerfilter/source/resourcemodel/resourcemodel.cxx
+++ b/writerfilter/source/resourcemodel/resourcemodel.cxx
@@ -41,94 +41,6 @@ public:
ResourceModelOutputWithDepth output;
-// ------- WW8TableDataHandler ---------
-
-class TablePropsRef : public writerfilter::Reference<Properties>
-{
-public:
- typedef boost::shared_ptr<TablePropsRef> Pointer_t;
-
- TablePropsRef() {}
- virtual ~TablePropsRef() {}
-
- virtual void resolve(Properties & /*rHandler*/) {}
-
- virtual string getType() const { return "TableProps"; }
- void reset() {}
- void InsertProps(Pointer_t /* pTablePropsRef */) {}
-};
-
-typedef TablePropsRef::Pointer_t TablePropsRef_t;
-
-class WW8TableDataHandler : public TableDataHandler<string,
- TablePropsRef_t>
-{
-public:
- virtual ~WW8TableDataHandler() {}
-
- typedef boost::shared_ptr<WW8TableDataHandler> Pointer_t;
- virtual void startTable(unsigned int nRows, unsigned int nDepth,
- TablePropsRef_t pProps);
- virtual void endTable(unsigned int nestedTableLevel);
- virtual void startRow(unsigned int nCols,
- TablePropsRef_t pProps);
- virtual void endRow();
- virtual void startCell(const string & start, TablePropsRef_t pProps);
- virtual void endCell(const string & end);
-};
-
-void WW8TableDataHandler::startTable(unsigned int nRows, unsigned int nDepth,
- TablePropsRef_t /*pProps*/)
-{
- char sBuffer[256];
-
- string tmpStr = "<tabledata.table rows=\"";
- snprintf(sBuffer, sizeof(sBuffer), "%u", nRows);
- tmpStr += sBuffer;
- tmpStr += "\" depth=\"";
- snprintf(sBuffer, sizeof(sBuffer), "%u", nDepth);
- tmpStr += sBuffer;
- tmpStr += "\">";
-
- output.addItem(tmpStr);
-}
-
-void WW8TableDataHandler::endTable(unsigned int /*nestedTableLevel*/)
-{
- output.addItem("</tabledata.table>");
-}
-
-void WW8TableDataHandler::startRow
-(unsigned int nCols, TablePropsRef_t /*pProps*/)
-{
- char sBuffer[256];
-
- snprintf(sBuffer, sizeof(sBuffer), "%u", nCols);
- string tmpStr = "<tabledata.row cells=\"";
- tmpStr += sBuffer;
- tmpStr += "\">";
- output.addItem(tmpStr);
-}
-
-void WW8TableDataHandler::endRow()
-{
- output.addItem("</tabledata.row>");
-}
-
-void WW8TableDataHandler::startCell(const string & start,
- TablePropsRef_t /*pProps*/)
-{
- output.addItem("<tabledata.cell>");
- output.addItem(start);
- output.addItem(", ");
-}
-
-void WW8TableDataHandler::endCell(const string & end)
-{
- output.addItem(end);
- output.addItem("</tabledata.cell>");
-}
-
// ----- WW8TableDataManager -------------------------------
void WW8BinaryObjHandler::data