bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / inc / colex.hxx
blob6d786c1e128c5f3c5edd55f0d4fa2e2c8318c87e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef _COLEX_HXX
20 #define _COLEX_HXX
22 #include <svx/pagectrl.hxx>
23 #include <editeng/paperinf.hxx>
24 #include "swdllapi.h"
25 #include <fmtclds.hxx>
26 #include "frmatr.hxx"
28 class SwColMgr;
29 class SfxItemSet;
31 class SW_DLLPUBLIC SwPageExample : public SvxPageWindow
33 public:
34 SwPageExample(Window* pPar, const ResId& rResId)
35 : SvxPageWindow(pPar, rResId)
37 SetSize(SvxPaperInfo::GetPaperSize(PAPER_A4));
40 SwPageExample(Window* pPar)
41 : SvxPageWindow(pPar)
43 SetSize(SvxPaperInfo::GetPaperSize(PAPER_A4));
46 void UpdateExample( const SfxItemSet& rSet );
49 class SwTextGridItem;
51 class SW_DLLPUBLIC SwPageGridExample : public SwPageExample
53 SwTextGridItem* pGridItem;
54 bool m_bVertical;
55 protected:
56 virtual void DrawPage( const Point& rPoint,
57 const sal_Bool bSecond,
58 const sal_Bool bEnabled );
59 public:
60 SwPageGridExample(Window* pPar, const ResId& rResId ) :
61 SwPageExample(pPar, rResId ),
62 pGridItem(0),
63 m_bVertical(false){}
64 SwPageGridExample(Window* pPar) :
65 SwPageExample(pPar),
66 pGridItem(0),
67 m_bVertical(false){}
69 ~SwPageGridExample();
70 void UpdateExample( const SfxItemSet& rSet );
73 class SW_DLLPUBLIC SwColExample : public SwPageExample
75 SwColMgr* pColMgr;
77 using SwPageExample::UpdateExample;
79 protected:
80 virtual void DrawPage( const Point& rPoint,
81 const sal_Bool bSecond,
82 const sal_Bool bEnabled );
84 public:
85 SwColExample(Window* pPar, const ResId& rResId)
86 : SwPageExample(pPar, rResId)
87 , pColMgr(0)
91 SwColExample(Window* pPar)
92 : SwPageExample(pPar)
93 , pColMgr(0)
97 void UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr )
99 pColMgr = pMgr;
100 SwPageExample::UpdateExample(rSet);
104 class SW_DLLPUBLIC SwColumnOnlyExample : public Window
106 private:
107 Size m_aWinSize;
109 Size m_aFrmSize;
110 SwFmtCol m_aCols;
112 protected:
113 virtual void Paint( const Rectangle& rRect );
115 public:
116 SwColumnOnlyExample(Window*);
118 void SetColumns(const SwFmtCol& rCol);
120 virtual Size GetOptimalSize() const;
123 #endif // _COLEX_HXX
125 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */