LCOV - code coverage report
Current view: top level - cui/source/inc - labdlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 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_LABDLG_HXX
      29                 :            : #define _SVX_LABDLG_HXX
      30                 :            : 
      31                 :            : #include <vcl/field.hxx>
      32                 :            : #include <vcl/lstbox.hxx>
      33                 :            : #include <vcl/fixed.hxx>
      34                 :            : #include <svtools/valueset.hxx>
      35                 :            : #include <sfx2/tabdlg.hxx>
      36                 :            : class SdrView;
      37                 :            : 
      38                 :            : // class SvxCaptionTabPage -----------------------------------------------
      39                 :            : 
      40                 :            : const sal_uInt16 CAPTYPE_BITMAPS_COUNT = 3;
      41                 :            : 
      42                 :            : class SvxCaptionTabPage : public SfxTabPage
      43                 :            : {
      44                 :            : private:
      45                 :            :     ValueSet        aCT_CAPTTYPE;
      46                 :            :     FixedText       aFT_ABSTAND;
      47                 :            :     MetricField     aMF_ABSTAND;
      48                 :            :     FixedText       aFT_WINKEL;
      49                 :            :     ListBox         aLB_WINKEL;
      50                 :            :     FixedText       aFT_ANSATZ;
      51                 :            :     ListBox         aLB_ANSATZ;
      52                 :            :     FixedText       aFT_UM;
      53                 :            :     MetricField     aMF_ANSATZ;
      54                 :            :     FixedText       aFT_ANSATZ_REL;
      55                 :            :     ListBox         aLB_ANSATZ_REL;
      56                 :            :     FixedText       aFT_LAENGE;
      57                 :            :     MetricField     aMF_LAENGE;
      58                 :            :     CheckBox        aCB_LAENGE;
      59                 :            : 
      60                 :            :     Image*          mpBmpCapTypes[CAPTYPE_BITMAPS_COUNT];
      61                 :            : 
      62                 :            :     String          aStrHorzList;
      63                 :            :     String          aStrVertList;
      64                 :            : 
      65                 :            :     short           nCaptionType;
      66                 :            :     sal_Bool            bFixedAngle;
      67                 :            :     sal_Int32           nFixedAngle;
      68                 :            :     sal_Int32           nGap;
      69                 :            :     short           nEscDir;
      70                 :            :     sal_Bool            bEscRel;
      71                 :            :     sal_Int32           nEscAbs;
      72                 :            :     sal_Int32           nEscRel;
      73                 :            :     sal_Int32           nLineLen;
      74                 :            :     sal_Bool            bFitLineLen;
      75                 :            : 
      76                 :            :     sal_uInt16          nAnsatzRelPos;
      77                 :            :     sal_uInt16          nAnsatzTypePos;
      78                 :            :     sal_uInt16          nWinkelTypePos;
      79                 :            : 
      80                 :            : #ifdef _SVX_LABDLG_CXX
      81                 :            :     void            SetupAnsatz_Impl( sal_uInt16 nType );
      82                 :            :     void            SetupType_Impl( sal_uInt16 nType );
      83                 :            :     DECL_LINK( AnsatzSelectHdl_Impl, ListBox * );
      84                 :            :     DECL_LINK( AnsatzRelSelectHdl_Impl, ListBox * );
      85                 :            :     DECL_LINK( LineOptHdl_Impl, Button * );
      86                 :            :     DECL_LINK( SelectCaptTypeHdl_Impl, void * );
      87                 :            : #endif
      88                 :            : 
      89                 :            :     const SfxItemSet&   rOutAttrs;
      90                 :            :     const SdrView*      pView;
      91                 :            : 
      92                 :            : public:
      93                 :            :     SvxCaptionTabPage( Window* pParent, const SfxItemSet& rInAttrs  );
      94                 :            :     virtual ~SvxCaptionTabPage();
      95                 :            : 
      96                 :            :     static SfxTabPage*  Create( Window*, const SfxItemSet& );
      97                 :            :     static sal_uInt16*      GetRanges();
      98                 :            : 
      99                 :            :     virtual sal_Bool        FillItemSet( SfxItemSet& );
     100                 :            :     virtual void        Reset( const SfxItemSet & );
     101                 :            :     void                Construct();
     102                 :          0 :     void                SetView( const SdrView* pSdrView )
     103                 :          0 :                             { pView = pSdrView; }
     104                 :            : 
     105                 :            :     virtual void DataChanged( const DataChangedEvent& rDCEvt );
     106                 :            :     void FillValueSet();
     107                 :            : };
     108                 :            : 
     109                 :            : // class SvxCaptionTabDialog ---------------------------------------------
     110                 :            : 
     111                 :            : class SvxCaptionTabDialog : public SfxTabDialog
     112                 :            : {
     113                 :            : private:
     114                 :            :     const SdrView*      pView;
     115                 :            :     sal_uInt16              nAnchorCtrls;
     116                 :            : 
     117                 :            :     Link                aValidateLink;
     118                 :            : 
     119                 :            :     virtual void        PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
     120                 :            : 
     121                 :            : public:
     122                 :            : 
     123                 :            :             SvxCaptionTabDialog(Window* pParent, const SdrView* pView,
     124                 :            :                                     sal_uInt16 nAnchorTypes = 0 );
     125                 :            : 
     126                 :            :             ~SvxCaptionTabDialog();
     127                 :            : 
     128                 :            :             /// link for the Writer to validate positions
     129                 :            :             void SetValidateFramePosLink( const Link& rLink );
     130                 :            : };
     131                 :            : 
     132                 :            : 
     133                 :            : #endif //_SVX_LABDLG_HXX
     134                 :            : 
     135                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10