LCOV - code coverage report
Current view: top level - cui/source/inc - align.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 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_ALIGN_HXX
      20             : #define INCLUDED_CUI_SOURCE_INC_ALIGN_HXX
      21             : 
      22             : // list box indexes
      23             : #define ALIGNDLG_HORALIGN_STD       0
      24             : #define ALIGNDLG_HORALIGN_LEFT      1
      25             : #define ALIGNDLG_HORALIGN_CENTER    2
      26             : #define ALIGNDLG_HORALIGN_RIGHT     3
      27             : #define ALIGNDLG_HORALIGN_BLOCK     4
      28             : #define ALIGNDLG_HORALIGN_FILL      5
      29             : #define ALIGNDLG_HORALIGN_DISTRIBUTED 6
      30             : 
      31             : #define ALIGNDLG_VERALIGN_STD         0
      32             : #define ALIGNDLG_VERALIGN_TOP         1
      33             : #define ALIGNDLG_VERALIGN_MID         2
      34             : #define ALIGNDLG_VERALIGN_BOTTOM      3
      35             : #define ALIGNDLG_VERALIGN_BLOCK       4
      36             : #define ALIGNDLG_VERALIGN_DISTRIBUTED 5
      37             : 
      38             : 
      39             : #include <svx/orienthelper.hxx>
      40             : #include <vcl/field.hxx>
      41             : #include <vcl/button.hxx>
      42             : #include <vcl/fixed.hxx>
      43             : #include <vcl/layout.hxx>
      44             : #include <vcl/lstbox.hxx>
      45             : #include <sfx2/tabdlg.hxx>
      46             : #include <svtools/valueset.hxx>
      47             : #include <svx/dialcontrol.hxx>
      48             : #include <svx/frmdirlbox.hxx>
      49             : 
      50             : namespace svx {
      51             : 
      52             : 
      53             : 
      54             : class AlignmentTabPage : public SfxTabPage
      55             : {
      56             :     using TabPage::DeactivatePage;
      57             :     friend class VclPtr<AlignmentTabPage>;
      58             :     static const sal_uInt16 s_pRanges[];
      59             : 
      60             : public:
      61             :     virtual             ~AlignmentTabPage();
      62             :     virtual void        dispose() SAL_OVERRIDE;
      63             : 
      64             :     static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rAttrSet );
      65           0 :     static const sal_uInt16*  GetRanges() { return s_pRanges; }
      66             : 
      67             :     virtual bool        FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
      68             :     virtual void        Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
      69             :     virtual sfxpg       DeactivatePage( SfxItemSet* pSet ) SAL_OVERRIDE;
      70             :     virtual void        DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
      71             : 
      72             : private:
      73             :     explicit            AlignmentTabPage( vcl::Window* pParent, const SfxItemSet& rCoreSet );
      74             : 
      75             :     void                InitVsRefEgde();
      76             :     void                UpdateEnableControls();
      77             : 
      78             :     bool                HasAlignmentChanged( const SfxItemSet& rNew, sal_uInt16 nWhich ) const;
      79             : 
      80             :     DECL_LINK( UpdateEnableHdl, void* );
      81             : 
      82             : private:
      83             :     VclPtr<ListBox>             m_pLbHorAlign;
      84             :     VclPtr<FixedText>           m_pFtIndent;
      85             :     VclPtr<MetricField>         m_pEdIndent;
      86             :     VclPtr<FixedText>           m_pFtVerAlign;
      87             :     VclPtr<ListBox>             m_pLbVerAlign;
      88             : 
      89             :     VclPtr<DialControl>         m_pCtrlDial;
      90             :     VclPtr<FixedText>           m_pFtRotate;
      91             :     VclPtr<NumericField>        m_pNfRotate;
      92             :     VclPtr<FixedText>           m_pFtRefEdge;
      93             :     VclPtr<ValueSet>            m_pVsRefEdge;
      94             :     VclPtr<TriStateBox>         m_pCbStacked;
      95             :     VclPtr<TriStateBox>         m_pCbAsianMode;
      96             :     OrientationHelper*   m_pOrientHlp;
      97             : 
      98             :     VclPtr<VclHBox>             m_pBoxDirection;
      99             :     VclPtr<TriStateBox>         m_pBtnWrap;
     100             :     VclPtr<TriStateBox>         m_pBtnHyphen;
     101             :     VclPtr<TriStateBox>         m_pBtnShrink;
     102             :     VclPtr<FrameDirListBox>     m_pLbFrameDir;
     103             : 
     104             :     // hidden labels/string
     105             :     VclPtr<FixedText>           m_pFtBotLock;
     106             :     VclPtr<FixedText>           m_pFtTopLock;
     107             :     VclPtr<FixedText>           m_pFtCelLock;
     108             :     VclPtr<FixedText>           m_pFtABCD;
     109             : 
     110             :     VclPtr<VclContainer>        m_pAlignmentFrame;
     111             :     VclPtr<VclContainer>        m_pOrientFrame;
     112             :     VclPtr<VclContainer>        m_pPropertiesFrame;
     113             : };
     114             : 
     115             : 
     116             : 
     117             : }
     118             : 
     119             : #endif
     120             : 
     121             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11