LCOV - code coverage report
Current view: top level - lotuswordpro/source/filter - lwpfribmark.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 2 12 16.7 %
Date: 2014-11-03 Functions: 3 14 21.4 %
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             :  *
       4             :  *  The Contents of this file are made available subject to the terms of
       5             :  *  either of the following licenses
       6             :  *
       7             :  *         - GNU Lesser General Public License Version 2.1
       8             :  *         - Sun Industry Standards Source License Version 1.1
       9             :  *
      10             :  *  Sun Microsystems Inc., October, 2000
      11             :  *
      12             :  *  GNU Lesser General Public License Version 2.1
      13             :  *  =============================================
      14             :  *  Copyright 2000 by Sun Microsystems, Inc.
      15             :  *  901 San Antonio Road, Palo Alto, CA 94303, USA
      16             :  *
      17             :  *  This library is free software; you can redistribute it and/or
      18             :  *  modify it under the terms of the GNU Lesser General Public
      19             :  *  License version 2.1, as published by the Free Software Foundation.
      20             :  *
      21             :  *  This library is distributed in the hope that it will be useful,
      22             :  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
      23             :  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      24             :  *  Lesser General Public License for more details.
      25             :  *
      26             :  *  You should have received a copy of the GNU Lesser General Public
      27             :  *  License along with this library; if not, write to the Free Software
      28             :  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
      29             :  *  MA  02111-1307  USA
      30             :  *
      31             :  *
      32             :  *  Sun Industry Standards Source License Version 1.1
      33             :  *  =================================================
      34             :  *  The contents of this file are subject to the Sun Industry Standards
      35             :  *  Source License Version 1.1 (the "License"); You may not use this file
      36             :  *  except in compliance with the License. You may obtain a copy of the
      37             :  *  License at http://www.openoffice.org/license.html.
      38             :  *
      39             :  *  Software provided under this License is provided on an "AS IS" basis,
      40             :  *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
      41             :  *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
      42             :  *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
      43             :  *  See the License for the specific provisions governing your rights and
      44             :  *  obligations concerning the Software.
      45             :  *
      46             :  *  The Initial Developer of the Original Code is: IBM Corporation
      47             :  *
      48             :  *  Copyright: 2008 by IBM Corporation
      49             :  *
      50             :  *  All Rights Reserved.
      51             :  *
      52             :  *  Contributor(s): _______________________________________
      53             :  *
      54             :  *
      55             :  ************************************************************************/
      56             : /*************************************************************************
      57             :  * @file
      58             :  *  For LWP filter architecture prototype
      59             :  ************************************************************************/
      60             : /*************************************************************************
      61             :  * Change History
      62             :  May 2005           Created
      63             :  ************************************************************************/
      64             : 
      65             : #ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPFRIBMARK_HXX
      66             : #define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPFRIBMARK_HXX
      67             : 
      68             : #include "lwpfrib.hxx"
      69             : #include "lwpstory.hxx"
      70             : #include "lwpmarker.hxx"
      71             : #include "xfilter/xftextspan.hxx"
      72             : #include "xfilter/xfbookmark.hxx"
      73             : 
      74             : class LwpFribCHBlock : public LwpFrib
      75             : {
      76             : public:
      77           0 :     LwpFribCHBlock( LwpPara* pPara )
      78             :         : LwpFrib(pPara)
      79           0 :         , m_nType(0)
      80           0 :         {}
      81           0 :     virtual ~LwpFribCHBlock(){}
      82             :     void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
      83             :     LwpCHBlkMarker* GetMarker();
      84           0 :     sal_uInt8 GetType(){return m_nType;}
      85             :     enum{MARKER_START=1,MARKER_END,MARKER_NONE};
      86             :     void XFConvert(XFContentContainer* pXFPara,LwpStory* pStory);
      87             : private:
      88             :     sal_uInt8 m_nType;
      89             :     LwpObjectID m_objMarker;
      90             : };
      91             : 
      92             : class LwpFribBookMark : public LwpFrib
      93             : {
      94             : public:
      95             :     LwpFribBookMark( LwpPara* pPara );
      96           0 :     virtual ~LwpFribBookMark(){}
      97             :     void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
      98           0 :     LwpObjectID GetMarkerID(){return m_objMarker;}
      99           0 :     sal_uInt8 GetType(){return m_nType;}
     100             :     enum{MARKER_START=1,MARKER_END,MARKER_NONE};
     101             :     void XFConvert(XFContentContainer* pXFPara);
     102             :     void RegisterStyle(LwpFoundry* pFoundry) SAL_OVERRIDE;
     103             : private:
     104             :     sal_uInt8 m_nType;
     105             :     LwpObjectID m_objMarker;
     106             :     XFBookmarkStart* m_pStart;
     107             :     XFBookmarkEnd* m_pEnd;
     108             : };
     109             : 
     110             : class LwpFribField : public LwpFrib
     111             : {
     112             : public:
     113             :     LwpFribField( LwpPara* pPara );
     114          24 :     virtual ~LwpFribField(){}
     115             :     void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
     116             :     LwpFieldMark* GetMarker();
     117          20 :     sal_uInt8 GetType(){return m_nType;}
     118             :     enum{MARKER_START=1,MARKER_END,MARKER_NONE};
     119             :     void XFConvert(XFContentContainer* pXFPara);
     120             :     void RegisterStyle(LwpFoundry* pFoundry) SAL_OVERRIDE;
     121             :     enum{
     122             :         SUBFIELD_INVALID = 0,
     123             :         SUBFIELD_DATETIME = 1,
     124             :         SUBFIELD_CROSSREF = 2,
     125             :         SUBFIELD_DOCPOWER = 3,
     126             :     };
     127             : private:
     128             :     sal_uInt8 m_nType;
     129             :     LwpObjectID m_objMarker;
     130             :     OUString m_TimeStyle;
     131             : 
     132             :     sal_uInt8 m_nSubType;//datetime/crossref/other
     133             :     OUString m_sFormula;
     134             : 
     135             :     sal_uInt8 m_nCrossRefType;
     136             :     sal_uInt8 m_nDateTimeType;
     137             :     sal_uInt8 m_nDocPowerType;
     138             : 
     139             :     void RegisterTimeField(LwpFieldMark* pFieldMark);
     140             :     void RegisterDateTimeStyle(const OUString& sFormula);
     141             :     void RegisterTotalTimeStyle();
     142             :     void CheckFieldType(LwpFieldMark* pFieldMark);
     143             :     void ConvertDocFieldStart(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
     144             :     void ConvertDocFieldEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
     145             :     void ConvertDateTimeStart(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
     146             :     void ConvertDateTimeEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
     147             :     void ConvertCrossRefEnd(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
     148             :     void ConvertCrossRefStart(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark);
     149             : };
     150             : 
     151             : class LwpFribRubyMarker : public LwpFrib
     152             : {
     153             : public:
     154             :     LwpFribRubyMarker( LwpPara* pPara );
     155           0 :     virtual ~LwpFribRubyMarker(){}
     156             :     void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) SAL_OVERRIDE;
     157             :     LwpRubyMarker* GetMarker();
     158           0 :     sal_uInt8 GetType(){return m_nType;}
     159             :     enum{MARKER_START=1,MARKER_END,MARKER_NONE};
     160             :     void XFConvert(XFContentContainer* pXFPara);
     161             :     void RegisterStyle(LwpFoundry* pFoundry) SAL_OVERRIDE;
     162             : private:
     163             :     sal_uInt8 m_nType;
     164             :     LwpObjectID m_objMarker;
     165             : };
     166             : 
     167             : #endif
     168             : 
     169             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10