LCOV - code coverage report
Current view: top level - cui/source/inc - textattr.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           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                 :            : #ifndef _SVX_TEXTATTR_HXX
      29                 :            : #define _SVX_TEXTATTR_HXX
      30                 :            : 
      31                 :            : #include <svx/dlgctrl.hxx>
      32                 :            : 
      33                 :            : #include <vcl/group.hxx>
      34                 :            : 
      35                 :            : #include <vcl/fixed.hxx>
      36                 :            : #include <sfx2/basedlgs.hxx>
      37                 :            : 
      38                 :            : class SdrView;
      39                 :            : 
      40                 :            : /*************************************************************************
      41                 :            : |*
      42                 :            : |* Dialog for changing TextAttributes
      43                 :            : |*
      44                 :            : \************************************************************************/
      45                 :            : 
      46                 :            : class SvxTextAttrPage : public SvxTabPage
      47                 :            : {
      48                 :            : private:
      49                 :            :     FixedLine           aFlText;
      50                 :            :     TriStateBox         aTsbAutoGrowWidth;
      51                 :            :     TriStateBox         aTsbAutoGrowHeight;
      52                 :            :     TriStateBox         aTsbFitToSize;
      53                 :            :     TriStateBox         aTsbContour;
      54                 :            :     TriStateBox         aTsbWordWrapText;
      55                 :            :     TriStateBox         aTsbAutoGrowSize;
      56                 :            : 
      57                 :            : 
      58                 :            :     FixedLine           aFlDistance;
      59                 :            :     FixedText           aFtLeft;
      60                 :            :     MetricField         aMtrFldLeft;
      61                 :            :     FixedText           aFtRight;
      62                 :            :     MetricField         aMtrFldRight;
      63                 :            :     FixedText           aFtTop;
      64                 :            :     MetricField         aMtrFldTop;
      65                 :            :     FixedText           aFtBottom;
      66                 :            :     MetricField         aMtrFldBottom;
      67                 :            : 
      68                 :            :     FixedLine           aFlSeparator;
      69                 :            : 
      70                 :            :     FixedLine           aFlPosition;
      71                 :            :     SvxRectCtl          aCtlPosition;
      72                 :            :     TriStateBox         aTsbFullWidth;
      73                 :            : 
      74                 :            :     const SfxItemSet&   rOutAttrs;
      75                 :            :     const SdrView*      pView;
      76                 :            : 
      77                 :            :     sal_Bool                bAutoGrowSizeEnabled;
      78                 :            :     sal_Bool                bContourEnabled;
      79                 :            :     sal_Bool                bAutoGrowWidthEnabled;
      80                 :            :     sal_Bool                bAutoGrowHeightEnabled;
      81                 :            :     sal_Bool                bWordWrapTextEnabled;
      82                 :            :     sal_Bool                bFitToSizeEnabled;
      83                 :            : 
      84                 :            : 
      85                 :            : #ifdef _SVX_TEXTATTR_CXX
      86                 :            :     DECL_LINK( ClickFullWidthHdl_Impl, void * );
      87                 :            :     DECL_LINK( ClickHdl_Impl, void * );
      88                 :            : #endif
      89                 :            : 
      90                 :            :     /** Return whether the text direction is from left to right (</sal_True>) or
      91                 :            :         top to bottom (</sal_False>).
      92                 :            :     */
      93                 :            :     bool IsTextDirectionLeftToRight (void) const;
      94                 :            : 
      95                 :            : public:
      96                 :            : 
      97                 :            :     SvxTextAttrPage( Window* pWindow, const SfxItemSet& rInAttrs );
      98                 :            :     ~SvxTextAttrPage();
      99                 :            : 
     100                 :            :     static SfxTabPage*  Create( Window*, const SfxItemSet& );
     101                 :            :     static  sal_uInt16*     GetRanges();
     102                 :            : 
     103                 :            :     virtual sal_Bool        FillItemSet( SfxItemSet& );
     104                 :            :     virtual void        Reset( const SfxItemSet & );
     105                 :            : 
     106                 :            :     virtual void        PointChanged( Window* pWindow, RECT_POINT eRP );
     107                 :            : 
     108                 :            :     void         Construct();
     109                 :          0 :     void         SetView( const SdrView* pSdrView ) { pView = pSdrView; }
     110                 :            :     virtual void            PageCreated(SfxAllItemSet aSet); // add CHINA001
     111                 :            : };
     112                 :            : 
     113                 :            : /*************************************************************************
     114                 :            : |*
     115                 :            : |* Von SfxSingleTabDialog abgeleitet, um vom Control "uber virtuelle Methode
     116                 :            : |* benachrichtigt werden zu k"onnen.
     117                 :            : |*
     118                 :            : \************************************************************************/
     119                 :            : 
     120                 :            : //CHINA001 class SvxTextAttrDialog : public SfxSingleTabDialog
     121                 :            : //CHINA001 {
     122                 :            : //CHINA001 public:
     123                 :            : //CHINA001 SvxTextAttrDialog( Window* pParent, const SfxItemSet& rAttr,
     124                 :            : //CHINA001 const SdrView* pView );
     125                 :            : //CHINA001 ~SvxTextAttrDialog();
     126                 :            : //CHINA001 };
     127                 :            : 
     128                 :            : 
     129                 :            : #endif // _SVX_TEXTATTR_HXX
     130                 :            : 
     131                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10