LCOV - code coverage report
Current view: top level - libreoffice/cui/source/tabpages - swpossizetabpage.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-12-27 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 _SVX_SWPOSSIZETABPAGE_HXX
      20             : #define _SVX_SWPOSSIZETABPAGE_HXX
      21             : 
      22             : #include <sfx2/tabdlg.hxx>
      23             : #include <vcl/fixed.hxx>
      24             : #include <vcl/field.hxx>
      25             : #include <vcl/lstbox.hxx>
      26             : #include <svx/swframeposstrings.hxx>
      27             : #include <svx/swframeexample.hxx>
      28             : 
      29             : // SvxSwPosSizeTabPage - position and size page for Writer drawing objects
      30             : struct FrmMap;
      31             : class SdrView;
      32             : class SvxSwPosSizeTabPage : public SfxTabPage
      33             : {
      34             :     using TabPage::DeactivatePage;
      35             : 
      36             :     FixedLine   m_aSizeFL;
      37             :     FixedText   m_aWidthFT;
      38             :     MetricField m_aWidthMF;
      39             :     FixedText   m_aHeightFT;
      40             :     MetricField m_aHeightMF;
      41             :     CheckBox    m_aKeepRatioCB;
      42             : 
      43             :     FixedLine   m_aSeparatorFL;
      44             : 
      45             :     FixedLine   m_aAnchorFL;
      46             :     RadioButton m_aToPageRB;
      47             :     RadioButton m_aToParaRB;
      48             :     RadioButton m_aToCharRB;
      49             :     RadioButton m_aAsCharRB;
      50             :     RadioButton m_aToFrameRB;
      51             : 
      52             :     FixedLine   m_aProtectionFL;
      53             :     TriStateBox m_aPositionCB;
      54             :     TriStateBox m_aSizeCB;
      55             : 
      56             :     FixedLine   m_aPositionFL;
      57             :     FixedText   m_aHoriFT;
      58             :     ListBox     m_aHoriLB;
      59             :     FixedText   m_aHoriByFT;
      60             :     MetricField m_aHoriByMF;
      61             :     FixedText   m_aHoriToFT;
      62             :     ListBox     m_aHoriToLB;
      63             : 
      64             :     CheckBox    m_aHoriMirrorCB;
      65             : 
      66             :     FixedText   m_aVertFT;
      67             :     ListBox     m_aVertLB;
      68             :     FixedText   m_aVertByFT;
      69             :     MetricField m_aVertByMF;
      70             :     FixedText   m_aVertToFT;
      71             :     ListBox     m_aVertToLB;
      72             : 
      73             :     CheckBox    m_aFollowCB;
      74             : 
      75             :     SvxSwFrameExample m_aExampleWN;
      76             : 
      77             :     Link        m_aValidateLink;
      78             : 
      79             :     //'string provider'
      80             :     SvxSwFramePosString m_aFramePosString;
      81             : 
      82             :     Rectangle           m_aRect; //size of all selected objects
      83             :     Rectangle           m_aWorkArea;
      84             :     Point               m_aAnchorPos;
      85             : 
      86             :     FrmMap* m_pVMap;
      87             :     FrmMap* m_pHMap;
      88             :     const SdrView*      m_pSdrView;
      89             : 
      90             :     // initial values
      91             :     short   m_nOldH;
      92             :     short   m_nOldHRel;
      93             :     short   m_nOldV;
      94             :     short   m_nOldVRel;
      95             : 
      96             :     double  m_fWidthHeightRatio; //width-to-height ratio to support the KeepRatio button
      97             :     sal_uInt16  m_nHtmlMode;
      98             :     bool    m_bHtmlMode;
      99             :     bool    m_bAtHoriPosModified;
     100             :     bool    m_bAtVertPosModified;
     101             :     bool    m_bIsVerticalFrame;
     102             :     bool    m_bPositioningDisabled;
     103             :     bool    m_bIsMultiSelection;
     104             :     bool    m_bIsInRightToLeft;
     105             : 
     106             : 
     107             : 
     108             :     DECL_LINK(RangeModifyHdl, void *);
     109             :     DECL_LINK(AnchorTypeHdl, void *);
     110             :     DECL_LINK( PosHdl, ListBox * );
     111             :     DECL_LINK( RelHdl, ListBox * );
     112             :     DECL_LINK(MirrorHdl, void *);
     113             :     DECL_LINK( ModifyHdl, Edit * );
     114             :     DECL_LINK(ProtectHdl, void *);
     115             : 
     116             :     void            InitPos(short nAnchorType, sal_uInt16 nH, sal_uInt16 nHRel,
     117             :                             sal_uInt16 nV,  sal_uInt16 nVRel,
     118             :                             long   nX,  long   nY);
     119             :     sal_uInt16          GetMapPos(FrmMap *pMap, ListBox &rAlignLB);
     120             :     short           GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox &rAlignLB, ListBox &rRelationLB);
     121             :     short           GetRelation(FrmMap *pMap, ListBox &rRelationLB);
     122             :     short           GetAnchorType(bool* pbHasChanged = 0);
     123             :     sal_uLong           FillRelLB(FrmMap *pMap, sal_uInt16 nLBSelPos, sal_uInt16 nAlign, sal_uInt16 nRel, ListBox &rLB, FixedText &rFT);
     124             :     sal_uInt16          FillPosLB(FrmMap *pMap, sal_uInt16 nAlign, const sal_uInt16 _nRel, ListBox &rLB);
     125             : 
     126             :     void            UpdateExample();
     127             : 
     128             : public:
     129             :     SvxSwPosSizeTabPage( Window* pParent, const SfxItemSet& rInAttrs  );
     130             :     ~SvxSwPosSizeTabPage();
     131             : 
     132             :     static SfxTabPage* Create( Window*, const SfxItemSet& );
     133             :     static sal_uInt16*     GetRanges();
     134             : 
     135             :     virtual sal_Bool FillItemSet( SfxItemSet& );
     136             :     virtual void Reset( const SfxItemSet & );
     137             : 
     138             :     virtual int  DeactivatePage( SfxItemSet* pSet );
     139             : 
     140             :     void    EnableAnchorTypes(sal_uInt16 nAnchorEnable);
     141             : 
     142           0 :     void SetValidateFramePosLink( const Link& rLink )
     143           0 :             {m_aValidateLink = rLink;}
     144             : 
     145             :     void SetView( const SdrView* pSdrView );
     146             : };
     147             : 
     148             : #endif
     149             : 
     150             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10