diff options
Diffstat (limited to 'svx/source/cui/swpossizetabpage.hxx')
-rw-r--r-- | svx/source/cui/swpossizetabpage.hxx | 163 |
1 files changed, 0 insertions, 163 deletions
diff --git a/svx/source/cui/swpossizetabpage.hxx b/svx/source/cui/swpossizetabpage.hxx deleted file mode 100644 index 34aff3b988..0000000000 --- a/svx/source/cui/swpossizetabpage.hxx +++ /dev/null @@ -1,163 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: swpossizetabpage.hxx,v $ - * $Revision: 1.6 $ - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SVX_SWPOSSIZETABPAGE_HXX -#define _SVX_SWPOSSIZETABPAGE_HXX - -#include <sfx2/tabdlg.hxx> -#ifndef _FIXED_HXX //autogen -#include <vcl/fixed.hxx> -#endif -#include <vcl/field.hxx> -#include <vcl/lstbox.hxx> -#include <swframeposstrings.hxx> -#include <swframeexample.hxx> - -/*-- 01.03.2004 15:45:01--------------------------------------------------- - SvxSwPosSizeTabPage - position and size page for Writer drawing objects - -----------------------------------------------------------------------*/ -struct FrmMap; -class SdrView; -class SvxSwPosSizeTabPage : public SfxTabPage -{ - using TabPage::DeactivatePage; - - FixedLine m_aSizeFL; - FixedText m_aWidthFT; - MetricField m_aWidthMF; - FixedText m_aHeightFT; - MetricField m_aHeightMF; - CheckBox m_aKeepRatioCB; - - FixedLine m_aSeparatorFL; - - FixedLine m_aAnchorFL; - RadioButton m_aToPageRB; - RadioButton m_aToParaRB; - RadioButton m_aToCharRB; - RadioButton m_aAsCharRB; - RadioButton m_aToFrameRB; - - FixedLine m_aProtectionFL; - TriStateBox m_aPositionCB; - TriStateBox m_aSizeCB; - - FixedLine m_aPositionFL; - FixedText m_aHoriFT; - ListBox m_aHoriLB; - FixedText m_aHoriByFT; - MetricField m_aHoriByMF; - FixedText m_aHoriToFT; - ListBox m_aHoriToLB; - - CheckBox m_aHoriMirrorCB; - - FixedText m_aVertFT; - ListBox m_aVertLB; - FixedText m_aVertByFT; - MetricField m_aVertByMF; - FixedText m_aVertToFT; - ListBox m_aVertToLB; - - CheckBox m_aFollowCB; - - SvxSwFrameExample m_aExampleWN; - - Link m_aValidateLink; - - //'string provider' - SvxSwFramePosString m_aFramePosString; - - Rectangle m_aRect; //size of all selected objects - Rectangle m_aWorkArea; - Point m_aAnchorPos; - - FrmMap* m_pVMap; - FrmMap* m_pHMap; - const SdrView* m_pSdrView; - - // initial values - short m_nOldH; - short m_nOldHRel; - short m_nOldV; - short m_nOldVRel; - - double m_fWidthHeightRatio; //width-to-height ratio to support the KeepRatio button - USHORT m_nHtmlMode; - bool m_bHtmlMode; - bool m_bAtHoriPosModified; - bool m_bAtVertPosModified; - bool m_bIsVerticalFrame; - bool m_bPositioningDisabled; - bool m_bIsMultiSelection; - bool m_bIsInRightToLeft; - - - - DECL_LINK( RangeModifyHdl, Edit * ); - DECL_LINK( AnchorTypeHdl, RadioButton * ); - DECL_LINK( PosHdl, ListBox * ); - DECL_LINK( RelHdl, ListBox * ); - DECL_LINK( MirrorHdl, CheckBox * ); - DECL_LINK( ModifyHdl, Edit * ); - DECL_LINK( ProtectHdl, TriStateBox *); - - void InitPos(short nAnchorType, USHORT nH, USHORT nHRel, - USHORT nV, USHORT nVRel, - long nX, long nY); - USHORT GetMapPos(FrmMap *pMap, ListBox &rAlignLB); - short GetAlignment(FrmMap *pMap, USHORT nMapPos, ListBox &rAlignLB, ListBox &rRelationLB); - short GetRelation(FrmMap *pMap, ListBox &rRelationLB); - short GetAnchorType(bool* pbHasChanged = 0); - ULONG FillRelLB(FrmMap *pMap, USHORT nLBSelPos, USHORT nAlign, USHORT nRel, ListBox &rLB, FixedText &rFT); - USHORT FillPosLB(FrmMap *pMap, USHORT nAlign, const USHORT _nRel, ListBox &rLB); - - void UpdateExample(); - -public: - SvxSwPosSizeTabPage( Window* pParent, const SfxItemSet& rInAttrs ); - ~SvxSwPosSizeTabPage(); - - static SfxTabPage* Create( Window*, const SfxItemSet& ); - static USHORT* GetRanges(); - - virtual BOOL FillItemSet( SfxItemSet& ); - virtual void Reset( const SfxItemSet & ); - - virtual int DeactivatePage( SfxItemSet* pSet ); - - void EnableAnchorTypes(USHORT nAnchorEnable); - - void SetValidateFramePosLink( const Link& rLink ) - {m_aValidateLink = rLink;} - - void SetView( const SdrView* pSdrView ); -}; - -#endif |