1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _COLEX_HXX 24 #define _COLEX_HXX 25 26 #include <svx/pagectrl.hxx> 27 #include <editeng/paperinf.hxx> 28 #include "swdllapi.h" 29 #include <fmtclds.hxx> 30 #include "frmatr.hxx" 31 32 class SwColMgr; 33 class SfxItemSet; 34 35 /* -----------------------------08.02.2002 11:32------------------------------ 36 37 ---------------------------------------------------------------------------*/ 38 class SW_DLLPUBLIC SwPageExample : public SvxPageWindow 39 { 40 public: SwPageExample(Window * pPar,const ResId & rResId)41 SwPageExample(Window* pPar, const ResId& rResId ) : 42 SvxPageWindow(pPar, rResId ) 43 {SetSize(SvxPaperInfo::GetPaperSize(PAPER_A4));/*DIN A4*/} 44 45 void UpdateExample( const SfxItemSet& rSet ); 46 }; 47 /* -----------------------------08.02.2002 11:34------------------------------ 48 49 ---------------------------------------------------------------------------*/ 50 class SwTextGridItem; 51 class SW_DLLPUBLIC SwPageGridExample : public SwPageExample 52 { 53 SwTextGridItem* pGridItem; 54 sal_Bool m_bVertical; 55 protected: 56 virtual void DrawPage( const Point& rPoint, 57 const sal_Bool bSecond, 58 const sal_Bool bEnabled ); 59 public: SwPageGridExample(Window * pPar,const ResId & rResId)60 SwPageGridExample(Window* pPar, const ResId& rResId ) : 61 SwPageExample(pPar, rResId ), 62 pGridItem(0), 63 m_bVertical(sal_False){} 64 ~SwPageGridExample(); 65 void UpdateExample( const SfxItemSet& rSet ); 66 }; 67 /*-------------------------------------------------------------------- 68 Beschreibung: 69 --------------------------------------------------------------------*/ 70 71 class SW_DLLPUBLIC SwColExample : public SwPageExample 72 { 73 SwColMgr* pColMgr; 74 75 using SwPageExample::UpdateExample; 76 77 protected: 78 virtual void DrawPage( const Point& rPoint, 79 const sal_Bool bSecond, 80 const sal_Bool bEnabled ); 81 82 public: SwColExample(Window * pPar,const ResId & rResId)83 SwColExample(Window* pPar, const ResId& rResId ) : 84 SwPageExample(pPar, rResId ), 85 pColMgr(0){} 86 UpdateExample(const SfxItemSet & rSet,SwColMgr * pMgr)87 void UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr ) 88 { pColMgr = pMgr; 89 SwPageExample::UpdateExample(rSet); 90 } 91 }; 92 93 /*-----------------25.10.96 08.23------------------- 94 95 --------------------------------------------------*/ 96 class SW_DLLPUBLIC SwColumnOnlyExample : public Window 97 { 98 private: 99 Size m_aWinSize; 100 101 Size m_aFrmSize; 102 SwFmtCol m_aCols; 103 104 protected: 105 virtual void Paint( const Rectangle& rRect ); 106 107 public: 108 SwColumnOnlyExample( Window* , const ResId& ); 109 110 void SetColumns(const SwFmtCol& rCol); 111 112 }; 113 114 #endif // _COLEX_HXX 115