LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/drawinglayer/primitive2d - texthierarchyprimitive2d.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 6 8 75.0 %
Date: 2012-08-25 Functions: 11 14 78.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 5 12 41.7 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTHIERARCHYPRIMITIVE2D_HXX
      30                 :            : #define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTHIERARCHYPRIMITIVE2D_HXX
      31                 :            : 
      32                 :            : #include <drawinglayer/drawinglayerdllapi.h>
      33                 :            : 
      34                 :            : #include <drawinglayer/primitive2d/groupprimitive2d.hxx>
      35                 :            : #include <tools/string.hxx>
      36                 :            : 
      37                 :            : //////////////////////////////////////////////////////////////////////////////
      38                 :            : 
      39                 :            : namespace drawinglayer
      40                 :            : {
      41                 :            :     namespace primitive2d
      42                 :            :     {
      43                 :            :         /** TextHierarchyLinePrimitive2D class
      44                 :            : 
      45                 :            :             Text format hierarchy helper class. It decomposes to it's
      46                 :            :             content, so all direct renderers may ignore it. If You need
      47                 :            :             to know more about line hierarchies You may react on it and
      48                 :            :             also need to take care that the source of data uses it.
      49                 :            : 
      50                 :            :             This primitive encapsulates text lines.
      51                 :            :          */
      52         [ -  + ]:      34852 :         class DRAWINGLAYER_DLLPUBLIC TextHierarchyLinePrimitive2D : public GroupPrimitive2D
      53                 :            :         {
      54                 :            :         private:
      55                 :            :         public:
      56                 :            :             /// constructor
      57                 :            :             explicit TextHierarchyLinePrimitive2D(const Primitive2DSequence& rChildren);
      58                 :            : 
      59                 :            :             /// provide unique ID
      60                 :            :             DeclPrimitrive2DIDBlock()
      61                 :            :         };
      62                 :            :     } // end of namespace primitive2d
      63                 :            : } // end of namespace drawinglayer
      64                 :            : 
      65                 :            : //////////////////////////////////////////////////////////////////////////////
      66                 :            : 
      67                 :            : namespace drawinglayer
      68                 :            : {
      69                 :            :     namespace primitive2d
      70                 :            :     {
      71                 :            :         /** TextHierarchyBulletPrimitive2D class
      72                 :            : 
      73                 :            :             This primitive encapsulates text bullets.
      74                 :            :          */
      75         [ -  + ]:        840 :         class DRAWINGLAYER_DLLPUBLIC TextHierarchyBulletPrimitive2D : public GroupPrimitive2D
      76                 :            :         {
      77                 :            :         private:
      78                 :            :         public:
      79                 :            :             /// constructor
      80                 :            :             explicit TextHierarchyBulletPrimitive2D(const Primitive2DSequence& rChildren);
      81                 :            : 
      82                 :            :             /// provide unique ID
      83                 :            :             DeclPrimitrive2DIDBlock()
      84                 :            :         };
      85                 :            :     } // end of namespace primitive2d
      86                 :            : } // end of namespace drawinglayer
      87                 :            : 
      88                 :            : //////////////////////////////////////////////////////////////////////////////
      89                 :            : 
      90                 :            : namespace drawinglayer
      91                 :            : {
      92                 :            :     namespace primitive2d
      93                 :            :     {
      94                 :            :         /** TextHierarchyParagraphPrimitive2D class
      95                 :            : 
      96                 :            :             This primitive encapsulates text paragraphs.
      97                 :            :          */
      98         [ -  + ]:      31736 :         class DRAWINGLAYER_DLLPUBLIC TextHierarchyParagraphPrimitive2D : public GroupPrimitive2D
      99                 :            :         {
     100                 :            :         private:
     101                 :            :         public:
     102                 :            :             /// constructor
     103                 :            :             explicit TextHierarchyParagraphPrimitive2D(const Primitive2DSequence& rChildren);
     104                 :            : 
     105                 :            :             /// provide unique ID
     106                 :            :             DeclPrimitrive2DIDBlock()
     107                 :            :         };
     108                 :            :     } // end of namespace primitive2d
     109                 :            : } // end of namespace drawinglayer
     110                 :            : 
     111                 :            : //////////////////////////////////////////////////////////////////////////////
     112                 :            : 
     113                 :            : namespace drawinglayer
     114                 :            : {
     115                 :            :     namespace primitive2d
     116                 :            :     {
     117                 :            :         /** TextHierarchyBlockPrimitive2D class
     118                 :            : 
     119                 :            :             This primitive encapsulates text blocks.
     120                 :            :          */
     121         [ -  + ]:      27392 :         class DRAWINGLAYER_DLLPUBLIC TextHierarchyBlockPrimitive2D : public GroupPrimitive2D
     122                 :            :         {
     123                 :            :         private:
     124                 :            :         public:
     125                 :            :             /// constructor
     126                 :            :             explicit TextHierarchyBlockPrimitive2D(const Primitive2DSequence& rChildren);
     127                 :            : 
     128                 :            :             /// provide unique ID
     129                 :            :             DeclPrimitrive2DIDBlock()
     130                 :            :         };
     131                 :            :     } // end of namespace primitive2d
     132                 :            : } // end of namespace drawinglayer
     133                 :            : 
     134                 :            : //////////////////////////////////////////////////////////////////////////////
     135                 :            : 
     136                 :            : namespace drawinglayer
     137                 :            : {
     138                 :            :     namespace primitive2d
     139                 :            :     {
     140                 :            :         /** FieldType definition */
     141                 :            :         enum FieldType
     142                 :            :         {
     143                 :            :             /** unspecified. If more info is needed for a FieldType,
     144                 :            :                 create a new type and it's handling
     145                 :            :              */
     146                 :            :             FIELD_TYPE_COMMON,
     147                 :            : 
     148                 :            :             /** uses "FIELD_SEQ_BEGIN;PageField" -> special handling */
     149                 :            :             FIELD_TYPE_PAGE,
     150                 :            : 
     151                 :            :             /** uses URL as string -> special handling */
     152                 :            :             FIELD_TYPE_URL
     153                 :            :         };
     154                 :            : 
     155                 :            :         /** TextHierarchyFieldPrimitive2D class
     156                 :            : 
     157                 :            :             This primitive encapsulates text fields.
     158                 :            :             Also: This type uses a type enum to transport the encapsulated field
     159                 :            :             type. Also added is a String which is type-dependent. E.g. for URL
     160                 :            :             fields, it contains the URL.
     161                 :            :          */
     162         [ -  + ]:       1776 :         class DRAWINGLAYER_DLLPUBLIC TextHierarchyFieldPrimitive2D : public GroupPrimitive2D
     163                 :            :         {
     164                 :            :         private:
     165                 :            :             FieldType                               meType;
     166                 :            :             rtl::OUString                           maString;
     167                 :            : 
     168                 :            :         public:
     169                 :            :             /// constructor
     170                 :            :             TextHierarchyFieldPrimitive2D(
     171                 :            :                 const Primitive2DSequence& rChildren,
     172                 :            :                 const FieldType& rFieldType,
     173                 :            :                 const rtl::OUString& rString);
     174                 :            : 
     175                 :            :             /// data read access
     176                 :          8 :             FieldType getType() const { return meType; }
     177                 :          0 :             const rtl::OUString& getString() const { return maString; }
     178                 :            : 
     179                 :            :             /// compare operator
     180                 :            :             virtual bool operator==(const BasePrimitive2D& rPrimitive) const;
     181                 :            : 
     182                 :            :             /// provide unique ID
     183                 :            :             DeclPrimitrive2DIDBlock()
     184                 :            :         };
     185                 :            :     } // end of namespace primitive2d
     186                 :            : } // end of namespace drawinglayer
     187                 :            : 
     188                 :            : //////////////////////////////////////////////////////////////////////////////
     189                 :            : 
     190                 :            : namespace drawinglayer
     191                 :            : {
     192                 :            :     namespace primitive2d
     193                 :            :     {
     194                 :            :         /** TextHierarchyEditPrimitive2D class
     195                 :            : 
     196                 :            :             #i97628#
     197                 :            :             Primitive to encapsulate text from an active text edit; some
     198                 :            :             renderers need to suppress this output due to painting the
     199                 :            :             edited text in e.g. an OutlinerEditView. It's derived from
     200                 :            :             GroupPrimitive2D, so the implicit decomposition will use the
     201                 :            :             content. To suppress, this primitive needs to be parsed by
     202                 :            :             the renderer without taking any action.
     203                 :            :          */
     204         [ #  # ]:          0 :         class DRAWINGLAYER_DLLPUBLIC TextHierarchyEditPrimitive2D : public GroupPrimitive2D
     205                 :            :         {
     206                 :            :         private:
     207                 :            :         public:
     208                 :            :             /// constructor
     209                 :            :             explicit TextHierarchyEditPrimitive2D(const Primitive2DSequence& rChildren);
     210                 :            : 
     211                 :            :             /// provide unique ID
     212                 :            :             DeclPrimitrive2DIDBlock()
     213                 :            :         };
     214                 :            :     } // end of namespace primitive2d
     215                 :            : } // end of namespace drawinglayer
     216                 :            : 
     217                 :            : //////////////////////////////////////////////////////////////////////////////
     218                 :            : 
     219                 :            : #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTHIERARCHYPRIMITIVE2D_HXX
     220                 :            : 
     221                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10