LCOV - code coverage report
Current view: top level - libreoffice/hwpfilter/source - formula.h (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 14 0.0 %
Date: 2012-12-27 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef __FORMULA_H__
      21             : #define __FORMULA_H__
      22             : 
      23             : // DVO: remove DEBUG dependency
      24             : // #ifndef DEBUG
      25             : #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
      26             : #include "attributes.hxx"
      27             : // DVO: remove DEBUG dependency
      28             : // #endif
      29             : 
      30             : class Node;
      31             : 
      32             : // DVO: remove DEBUG dependency
      33             : // #ifndef DEBUG
      34             : using namespace ::com::sun::star::xml::sax;
      35             : // #endif
      36             : 
      37             : class Formula
      38             : {
      39             : public:
      40           0 :     Formula(char *_eq, int _ishwpeq = 1)
      41           0 :         : pList(NULL)
      42             :     {
      43           0 :         eq = _eq;
      44           0 :         isHwpEQ = _ishwpeq;
      45           0 :         trim();
      46           0 :     }
      47           0 :     virtual ~Formula(){ }
      48             : 
      49           0 :     void setDocumentHandler(Reference < XDocumentHandler > xHandler )
      50             :     {
      51           0 :           m_rxDocumentHandler = xHandler;
      52           0 :     }
      53           0 :     void setAttributeListImpl( AttributeListImpl *p )
      54             :     {
      55           0 :         pList = p;
      56           0 :         rList = (XAttributeList *) pList;
      57           0 :     }
      58             :     int parse();
      59             : private:
      60             :      void trim();
      61             :      void makeMathML(Node *res);
      62             :      void makeLines(Node *res);
      63             :      void makeLine(Node *res);
      64             :      void makeExprList(Node *res);
      65             :      void makeExpr(Node *res);
      66             :      void makePrimary(Node *res);
      67             :      void makeIdentifier(Node *res);
      68             :      void makeSubSup(Node *res);
      69             :      void makeFraction(Node *res);
      70             :      void makeDecoration(Node *res);
      71             :      void makeFunction(Node *res);
      72             :      void makeRoot(Node *res);
      73             :      void makeArrow(Node *res);
      74             :      void makeAccent(Node *res);
      75             :      void makeParenth(Node *res);
      76             :      void makeFence(Node *res);
      77             :      void makeBracket(Node *res);
      78             :      void makeBlock(Node *res);
      79             :      void makeBegin(Node *res);
      80             :      void makeEnd(Node *res);
      81             : 
      82             : private:
      83             :      Reference< XDocumentHandler >  m_rxDocumentHandler;
      84             :      Reference< XAttributeList > rList;
      85             :      AttributeListImpl *pList;
      86             :      char *eq;
      87             :      int isHwpEQ;
      88             : };
      89             : 
      90             : #endif
      91             : 
      92             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10