LCOV - code coverage report
Current view: top level - libreoffice/autodoc/inc/ary/info - ci_attag.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-12-27 Functions: 0 3 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_CI_ATTAG_HXX
      21             : #define ARY_INFO_CI_ATTAG_HXX
      22             : 
      23             : 
      24             : 
      25             : // USED SERVICES
      26             :     // BASE CLASSES
      27             :     // COMPONENTS
      28             :     // PARAMETERS
      29             : 
      30             : 
      31             : 
      32             : namespace ary
      33             : {
      34             : namespace info
      35             : {
      36             : 
      37             : class DocuText;
      38             : class DocuDisplay;
      39             : 
      40           0 : class AtTag
      41             : {
      42             :   public:
      43           0 :     virtual             ~AtTag() {}
      44             : 
      45             :     virtual bool        Add_SpecialMeaningToken(    /// @return false, if token was not spüecial.
      46             :                             const char *        i_sText,
      47             :                             intt                i_nNr ) = 0;
      48             :     virtual void        Add_Token(
      49             :                             const char *        i_sText );
      50             :     virtual void        Add_PotentialLink(
      51             :                             const char *        i_sText,
      52             :                             bool                i_bIsGlobal,
      53             :                             bool                i_bIsFunction );
      54             :     virtual void        Add_Whitespace(
      55             :                             UINT8               i_nLength );
      56             :     virtual void        Add_Eol();
      57             : 
      58             :     virtual UINT8       NrOfSpecialMeaningTokens() const = 0;
      59             :     virtual AtTag *     GetFollower() = 0;
      60             : 
      61             :     void                StoreAt(
      62             :                             DocuDisplay &       o_rDisplay ) const;
      63             :     const DocuText &    CText() const;
      64             : 
      65             :   private:
      66             :     virtual void        do_StoreAt(
      67             :                             DocuDisplay &       o_rDisplay ) const;   // later becoming abstract
      68             : 
      69             :     virtual DocuText *  Text() = 0;
      70             : };
      71             : 
      72             : 
      73             : 
      74             : // IMPLEMENTATION
      75             : 
      76             : inline void
      77             : AtTag::StoreAt( DocuDisplay & o_rDisplay ) const
      78             :     { do_StoreAt(o_rDisplay); }
      79             : inline const DocuText &
      80             : AtTag::CText() const
      81             :     { DocuText * ret = const_cast< AtTag* >(this)->Text();
      82             :       csv_assert( ret != 0 );
      83             :       return *ret;
      84             :     }
      85             : 
      86             : 
      87             : }
      88             : }
      89             : 
      90             : #endif
      91             : 
      92             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10