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