1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef _SVX_CONNECT_HXX 28 #define _SVX_CONNECT_HXX 29 30 // include --------------------------------------------------------------- 31 32 #include <svx/connctrl.hxx> 33 #include <sfx2/tabdlg.hxx> 34 #include <vcl/fixed.hxx> 35 #include <vcl/field.hxx> 36 #include <vcl/lstbox.hxx> 37 #include <vcl/group.hxx> 38 #include <sfx2/basedlgs.hxx> 39 40 class SdrView; 41 42 /************************************************************************* 43 |* 44 |* Dialog zum Aendern von Konnektoren (Connectors) 45 |* 46 \************************************************************************/ 47 48 class SvxConnectionPage : public SfxTabPage 49 { 50 private: 51 FixedText aFtType; 52 ListBox aLbType; 53 54 FixedLine aFlDelta; 55 FixedText aFtLine1; 56 MetricField aMtrFldLine1; 57 FixedText aFtLine2; 58 MetricField aMtrFldLine2; 59 FixedText aFtLine3; 60 MetricField aMtrFldLine3; 61 62 FixedLine aFlDistance; 63 FixedText aFtHorz1; 64 MetricField aMtrFldHorz1; 65 FixedText aFtVert1; 66 MetricField aMtrFldVert1; 67 FixedText aFtHorz2; 68 MetricField aMtrFldHorz2; 69 FixedText aFtVert2; 70 MetricField aMtrFldVert2; 71 72 SvxXConnectionPreview aCtlPreview; 73 74 const SfxItemSet& rOutAttrs; 75 SfxItemSet aAttrSet; 76 const SdrView* pView; 77 SfxMapUnit eUnit; 78 79 #ifdef _SVX_CONNECT_CXX 80 void FillTypeLB(); 81 82 DECL_LINK( ChangeAttrHdl_Impl, void * ); 83 #endif 84 85 public: 86 87 SvxConnectionPage( Window* pWindow, const SfxItemSet& rInAttrs ); 88 ~SvxConnectionPage(); 89 90 static SfxTabPage* Create( Window*, const SfxItemSet& ); 91 static sal_uInt16* GetRanges(); 92 93 virtual sal_Bool FillItemSet( SfxItemSet& ); 94 virtual void Reset( const SfxItemSet & ); 95 96 void Construct(); 97 void SetView( const SdrView* pSdrView ) { pView = pSdrView; } 98 virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001 99 }; 100 101 /************************************************************************* 102 |* 103 |* Von SfxSingleTabDialog abgeleitet, um vom Control "uber virtuelle Methode 104 |* benachrichtigt werden zu k"onnen. 105 |* 106 \************************************************************************/ 107 108 class SvxConnectionDialog : public SfxSingleTabDialog 109 { 110 public: 111 SvxConnectionDialog( Window* pParent, const SfxItemSet& rAttr, 112 const SdrView* pView ); 113 ~SvxConnectionDialog(); 114 }; 115 116 117 #endif // _SVX_CONNECT_HXX 118 119