1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 _SVX_DSTRIBUT_HXX
20 #define _SVX_DSTRIBUT_HXX
22 #include <svx/dlgctrl.hxx>
23 #include <vcl/group.hxx>
24 #include <vcl/fixed.hxx>
25 #include <svx/dstribut_enum.hxx>
27 class SvxDistributePage
: public SvxTabPage
29 SvxDistributeHorizontal meDistributeHor
;
30 SvxDistributeVertical meDistributeVer
;
32 FixedLine maFlHorizontal
;
33 RadioButton maBtnHorNone
;
34 RadioButton maBtnHorLeft
;
35 RadioButton maBtnHorCenter
;
36 RadioButton maBtnHorDistance
;
37 RadioButton maBtnHorRight
;
39 FixedImage maHorCenter
;
40 FixedImage maHorDistance
;
41 FixedImage maHorHigh
;
42 FixedLine maFlVertical
;
43 RadioButton maBtnVerNone
;
44 RadioButton maBtnVerTop
;
45 RadioButton maBtnVerCenter
;
46 RadioButton maBtnVerDistance
;
47 RadioButton maBtnVerBottom
;
49 FixedImage maVerCenter
;
50 FixedImage maVerDistance
;
51 FixedImage maVerHigh
;
54 SvxDistributePage(Window
* pWindow
, const SfxItemSet
& rInAttrs
,
55 SvxDistributeHorizontal eHor
= SvxDistributeHorizontalNone
,
56 SvxDistributeVertical eVer
= SvxDistributeVerticalNone
);
59 static SfxTabPage
* Create(Window
*, const SfxItemSet
&,
60 SvxDistributeHorizontal eHor
, SvxDistributeVertical eVer
);
61 static sal_uInt16
* GetRanges();
62 virtual sal_Bool
FillItemSet(SfxItemSet
&);
63 virtual void Reset(const SfxItemSet
&);
64 virtual void PointChanged(Window
* pWindow
, RECT_POINT eRP
);
66 SvxDistributeHorizontal
GetDistributeHor() const { return meDistributeHor
; }
67 SvxDistributeVertical
GetDistributeVer() const { return meDistributeVer
; }
70 class SvxDistributeDialog
: public SfxSingleTabDialog
72 SvxDistributePage
* mpPage
;
75 SvxDistributeDialog(Window
* pParent
, const SfxItemSet
& rAttr
,
76 SvxDistributeHorizontal eHor
= SvxDistributeHorizontalNone
,
77 SvxDistributeVertical eVer
= SvxDistributeVerticalNone
);
78 ~SvxDistributeDialog();
80 SvxDistributeHorizontal
GetDistributeHor() const { return mpPage
->GetDistributeHor(); }
81 SvxDistributeVertical
GetDistributeVer() const { return mpPage
->GetDistributeVer(); }
85 #endif // _SVX_DSTRIBUT_HXX
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */