LCOV - code coverage report
Current view: top level - cui/source/inc - textattr.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 1 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_CUI_SOURCE_INC_TEXTATTR_HXX
      20             : #define INCLUDED_CUI_SOURCE_INC_TEXTATTR_HXX
      21             : 
      22             : #include <svx/dlgctrl.hxx>
      23             : 
      24             : #include <vcl/group.hxx>
      25             : 
      26             : #include <vcl/fixed.hxx>
      27             : #include <sfx2/basedlgs.hxx>
      28             : 
      29             : class SdrView;
      30             : 
      31             : /*************************************************************************
      32             : |*
      33             : |* Dialog for changing TextAttributes
      34             : |*
      35             : \************************************************************************/
      36             : 
      37             : class SvxTextAttrPage : public SvxTabPage
      38             : {
      39             : private:
      40             :     TriStateBox*         m_pTsbAutoGrowWidth;
      41             :     TriStateBox*         m_pTsbAutoGrowHeight;
      42             :     TriStateBox*         m_pTsbFitToSize;
      43             :     TriStateBox*         m_pTsbContour;
      44             :     TriStateBox*         m_pTsbWordWrapText;
      45             :     TriStateBox*         m_pTsbAutoGrowSize;
      46             : 
      47             :     VclFrame*            m_pFlDistance;
      48             :     MetricField*         m_pMtrFldLeft;
      49             :     MetricField*         m_pMtrFldRight;
      50             :     MetricField*         m_pMtrFldTop;
      51             :     MetricField*         m_pMtrFldBottom;
      52             : 
      53             :     VclFrame*            m_pFlPosition;
      54             :     SvxRectCtl*          m_pCtlPosition;
      55             :     TriStateBox*         m_pTsbFullWidth;
      56             : 
      57             :     const SfxItemSet&   rOutAttrs;
      58             :     const SdrView*      pView;
      59             : 
      60             :     sal_Bool                bAutoGrowSizeEnabled;
      61             :     sal_Bool                bContourEnabled;
      62             :     sal_Bool                bAutoGrowWidthEnabled;
      63             :     sal_Bool                bAutoGrowHeightEnabled;
      64             :     sal_Bool                bWordWrapTextEnabled;
      65             :     sal_Bool                bFitToSizeEnabled;
      66             : 
      67             :     DECL_LINK( ClickFullWidthHdl_Impl, void * );
      68             :     DECL_LINK( ClickHdl_Impl, void * );
      69             : 
      70             :     /** Return whether the text direction is from left to right (</sal_True>) or
      71             :         top to bottom (</sal_False>).
      72             :     */
      73             :     bool IsTextDirectionLeftToRight (void) const;
      74             : 
      75             : public:
      76             : 
      77             :     SvxTextAttrPage( Window* pWindow, const SfxItemSet& rInAttrs );
      78             :     virtual ~SvxTextAttrPage();
      79             : 
      80             :     static SfxTabPage*  Create( Window*, const SfxItemSet& );
      81             :     static  sal_uInt16*     GetRanges();
      82             : 
      83             :     virtual bool        FillItemSet( SfxItemSet& ) SAL_OVERRIDE;
      84             :     virtual void        Reset( const SfxItemSet & ) SAL_OVERRIDE;
      85             : 
      86             :     virtual void        PointChanged( Window* pWindow, RECT_POINT eRP ) SAL_OVERRIDE;
      87             : 
      88             :     void         Construct();
      89           0 :     void         SetView( const SdrView* pSdrView ) { pView = pSdrView; }
      90             :     virtual void PageCreated(SfxAllItemSet aSet) SAL_OVERRIDE;
      91             : };
      92             : 
      93             : #endif // INCLUDED_CUI_SOURCE_INC_TEXTATTR_HXX
      94             : 
      95             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10