LCOV - code coverage report
Current view: top level - sw/source/core/text - porftn.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 12 0.0 %
Date: 2014-04-14 Functions: 0 14 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             : #ifndef INCLUDED_SW_SOURCE_CORE_TEXT_PORFTN_HXX
      20             : #define INCLUDED_SW_SOURCE_CORE_TEXT_PORFTN_HXX
      21             : 
      22             : #include "porfld.hxx"
      23             : 
      24             : class SwTxtFrm;
      25             : class SwTxtFtn;
      26             : 
      27             : /*************************************************************************
      28             :  *                      class SwFtnPortion
      29             :  *************************************************************************/
      30             : 
      31           0 : class SwFtnPortion : public SwFldPortion
      32             : {
      33             :     SwTxtFtn *pFtn;
      34             :     KSHORT nOrigHeight;
      35             :     // #i98418#
      36             :     bool mbPreferredScriptTypeSet;
      37             :     sal_uInt8 mnPreferredScriptType;
      38             : public:
      39             :     SwFtnPortion( const OUString &rExpand, SwTxtFtn *pFtn,
      40             :                   KSHORT nOrig = KSHRT_MAX );
      41           0 :     KSHORT& Orig() { return nOrigHeight; }
      42             : 
      43             :     virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE;
      44             :     virtual bool GetExpTxt( const SwTxtSizeInfo &rInf, OUString &rTxt ) const SAL_OVERRIDE;
      45             :     virtual SwPosSize GetTxtSize( const SwTxtSizeInfo &rInfo ) const SAL_OVERRIDE;
      46             :     virtual bool Format( SwTxtFormatInfo &rInf ) SAL_OVERRIDE;
      47             : 
      48             :     // #i98418#
      49             :     void SetPreferredScriptType( sal_uInt8 nPreferredScriptType );
      50             : 
      51           0 :     const SwTxtFtn* GetTxtFtn() const { return pFtn; };
      52             :     OUTPUT_OPERATOR_OVERRIDE
      53             : };
      54             : 
      55             : /*************************************************************************
      56             :  *                      class SwFtnNumPortion
      57             :  *************************************************************************/
      58             : 
      59           0 : class SwFtnNumPortion : public SwNumberPortion
      60             : {
      61             : public:
      62           0 :     SwFtnNumPortion( const OUString &rExpand, SwFont *pFntL )
      63           0 :          : SwNumberPortion( rExpand, pFntL, true, false, 0, false )
      64           0 :          { SetWhichPor( POR_FTNNUM ); }
      65             : 
      66             :     OUTPUT_OPERATOR_OVERRIDE
      67             : };
      68             : 
      69             : /*************************************************************************
      70             :  *                      class SwQuoVadisPortion
      71             :  *************************************************************************/
      72             : 
      73           0 : class SwQuoVadisPortion : public SwFldPortion
      74             : {
      75             :     OUString   aErgo;
      76             : public:
      77             :     SwQuoVadisPortion( const OUString &rExp, const OUString& rStr );
      78             :     virtual bool Format( SwTxtFormatInfo &rInf ) SAL_OVERRIDE;
      79             :     virtual void Paint( const SwTxtPaintInfo &rInf ) const SAL_OVERRIDE;
      80             :     virtual bool GetExpTxt( const SwTxtSizeInfo &rInf, OUString &rTxt ) const SAL_OVERRIDE;
      81             : 
      82           0 :     void SetNumber( const OUString& rStr ) { aErgo = rStr; }
      83           0 :     const OUString GetQuoTxt() const { return aExpand; }
      84           0 :     const OUString &GetContTxt() const { return aErgo; }
      85             : 
      86             :     // Field cloner for SplitGlue
      87             :     virtual SwFldPortion *Clone( const OUString &rExpand ) const SAL_OVERRIDE;
      88             : 
      89             :     // Accessibility: pass information about this portion to the PortionHandler
      90             :     virtual void HandlePortion( SwPortionHandler& rPH ) const SAL_OVERRIDE;
      91             : 
      92             :     OUTPUT_OPERATOR_OVERRIDE
      93             : };
      94             : 
      95             : /*************************************************************************
      96             :  *                      class SwErgoSumPortion
      97             :  *************************************************************************/
      98             : 
      99           0 : class SwErgoSumPortion : public SwFldPortion
     100             : {
     101             : public:
     102             :     SwErgoSumPortion( const OUString &rExp, const OUString& rStr );
     103             :     virtual sal_Int32 GetCrsrOfst( const KSHORT nOfst ) const SAL_OVERRIDE;
     104             :     virtual bool Format( SwTxtFormatInfo &rInf ) SAL_OVERRIDE;
     105             : 
     106             :     // Field cloner for SplitGlue
     107             :     virtual SwFldPortion *Clone( const OUString &rExpand ) const SAL_OVERRIDE;
     108             :     OUTPUT_OPERATOR_OVERRIDE
     109             : };
     110             : 
     111             : #endif
     112             : 
     113             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10