[Libreoffice-commits] core.git: writerfilter/source

Miklos Vajna vmiklos at collabora.co.uk
Fri Mar 14 07:02:46 PDT 2014


 writerfilter/source/resourcemodel/resourcemodel.cxx |   88 --------------------
 1 file changed, 88 deletions(-)

New commits:
commit d5f0d2667412f79c2c5e5fe9f73891a865d14247
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Mar 14 14:48:03 2014 +0100

    writerfilter: unused WW8TableDataHandler
    
    I guess this didn't show up in the unused method lists as all of its
    methods are virtual.
    
    Change-Id: I445e28cc47a85e499d12c0873fc19c217e3e9b88

diff --git a/writerfilter/source/resourcemodel/resourcemodel.cxx b/writerfilter/source/resourcemodel/resourcemodel.cxx
index 24b6aa1..c6779db 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


More information about the Libreoffice-commits mailing list