LCOV - code coverage report
Current view: top level - libreoffice/autodoc/inc/ary/info - all_dts.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 13 0.0 %
Date: 2012-12-27 Functions: 0 17 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 ARY_INFO_ALL_DTS_HXX
      21             : #define ARY_INFO_ALL_DTS_HXX
      22             : 
      23             : 
      24             : 
      25             : // USED SERVICES
      26             :     // BASE CLASSES
      27             :     // COMPONENTS
      28             :     // PARAMETERS
      29             : 
      30             : 
      31             : namespace ary
      32             : {
      33             : namespace info
      34             : {
      35             : 
      36             : class DocuDisplay;
      37             : 
      38           0 : class DocuToken
      39             : {
      40             :   public:
      41           0 :     virtual             ~DocuToken() {}
      42             : 
      43             :     void                StoreAt(
      44             :                             DocuDisplay &       o_rDisplay ) const;
      45             :     bool                IsWhite() const;
      46             : 
      47             :   private:
      48             :     virtual void        do_StoreAt(
      49             :                             DocuDisplay &       o_rDisplay ) const = 0;
      50             :     virtual bool        inq_IsWhite() const = 0;
      51             : };
      52             : 
      53           0 : class DT_Text : public DocuToken
      54             : {
      55             :   public:
      56           0 :                         DT_Text(
      57             :                             const char *        i_sText )
      58           0 :                                                 :   sText( i_sText ) {}
      59             : 
      60             :     const String  &     Text() const            { return sText; }
      61             : 
      62             :   private:
      63             :     virtual void        do_StoreAt(
      64             :                             DocuDisplay &       o_rDisplay ) const;
      65             :     virtual bool        inq_IsWhite() const;
      66             : 
      67             :     String              sText;
      68             : };
      69             : 
      70           0 : class DT_MaybeLink : public DocuToken
      71             : {
      72             :   public:
      73           0 :                         DT_MaybeLink(
      74             :                             const char *        i_sText,
      75             :                             bool                i_bIsGlobal,
      76             :                             bool                i_bIsFunction  )
      77             :                                                 :   sText( i_sText ),
      78             :                                                     bIsGlobal(i_bIsGlobal),
      79           0 :                                                     bIsFunction(i_bIsFunction) { }
      80             : 
      81             :     const String  &     Text() const            { return sText; }
      82             :     bool                IsAbsolute() const      { return bIsGlobal; }
      83             :     bool                IsFunction() const      { return bIsFunction; }
      84             : 
      85             :   private:
      86             :     virtual void        do_StoreAt(
      87             :                             DocuDisplay &       o_rDisplay ) const;
      88             :     virtual bool        inq_IsWhite() const;
      89             : 
      90             :     String              sText;
      91             :     bool                bIsGlobal;
      92             :     bool                bIsFunction;
      93             : };
      94             : 
      95           0 : class DT_Whitespace : public DocuToken
      96             : {
      97             :   public:
      98           0 :                         DT_Whitespace(
      99             :                             UINT8               i_nLength )
     100           0 :                                                 :   nLength( i_nLength ) {}
     101             :     UINT8               Length() const          { return nLength; }
     102             : 
     103             :   private:
     104             :     virtual void        do_StoreAt(
     105             :                             DocuDisplay &       o_rDisplay ) const;
     106             :     virtual bool        inq_IsWhite() const;
     107             : 
     108             :     UINT8               nLength;
     109             : };
     110             : 
     111             : 
     112           0 : class DT_Eol : public DocuToken
     113             : {
     114             :     virtual void        do_StoreAt(
     115             :                             DocuDisplay &       o_rDisplay ) const;
     116             :     virtual bool        inq_IsWhite() const;
     117             : };
     118             : 
     119           0 : class DT_Xml : public DocuToken
     120             : {
     121             :   public:
     122             :                         DT_Xml(
     123             :                             const char *        i_sText )
     124             :                                                 :   sText( i_sText ) {}
     125             : 
     126             :     const String  &     Text() const            { return sText; }
     127             : 
     128             :   private:
     129             :     virtual void        do_StoreAt(
     130             :                             DocuDisplay &       o_rDisplay ) const;
     131             :     virtual bool        inq_IsWhite() const;
     132             : 
     133             :     String              sText;
     134             : };
     135             : 
     136             : 
     137             : // IMPLEMENTATION
     138             : 
     139             : inline void
     140             : DocuToken::StoreAt( DocuDisplay & o_rDisplay ) const
     141             :     { do_StoreAt(o_rDisplay); }
     142             : inline bool
     143             : DocuToken::IsWhite() const
     144             :     { return inq_IsWhite(); }
     145             : 
     146             : 
     147             : 
     148             : }
     149             : }
     150             : 
     151             : #endif
     152             : 
     153             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10