Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef INCLUDED_CUI_SOURCE_INC_ZOOM_HXX
20 : #define INCLUDED_CUI_SOURCE_INC_ZOOM_HXX
21 :
22 : #include <sfx2/basedlgs.hxx>
23 : #include <vcl/button.hxx>
24 : #include <vcl/field.hxx>
25 : #include <vcl/fixed.hxx>
26 :
27 : class SvxZoomDialog : public SfxModalDialog
28 : {
29 : private:
30 : RadioButton* m_pOptimalBtn;
31 : RadioButton* m_pWholePageBtn;
32 : RadioButton* m_pPageWidthBtn;
33 : RadioButton* m_p100Btn;
34 : RadioButton* m_pUserBtn;
35 : MetricField* m_pUserEdit;
36 :
37 : VclContainer* m_pViewFrame;
38 : RadioButton* m_pAutomaticBtn;
39 : RadioButton* m_pSingleBtn;
40 : RadioButton* m_pColumnsBtn;
41 : NumericField* m_pColumnsEdit;
42 : CheckBox* m_pBookModeChk;
43 :
44 : OKButton* m_pOKBtn;
45 :
46 : const SfxItemSet& rSet;
47 : SfxItemSet* pOutSet;
48 : bool bModified;
49 :
50 : DECL_LINK( UserHdl, RadioButton* );
51 : DECL_LINK(SpinHdl, void *);
52 : DECL_LINK( ViewLayoutUserHdl, RadioButton* );
53 : DECL_LINK( ViewLayoutSpinHdl, NumericField* );
54 : DECL_LINK( ViewLayoutCheckHdl, CheckBox* );
55 : DECL_LINK( OKHdl, Button* );
56 :
57 : public:
58 : SvxZoomDialog( vcl::Window* pParent, const SfxItemSet& rCoreSet );
59 : virtual ~SvxZoomDialog();
60 :
61 0 : const SfxItemSet* GetOutputItemSet() const { return pOutSet; }
62 :
63 : sal_uInt16 GetFactor() const;
64 : void SetFactor( sal_uInt16 nNewFactor, sal_uInt16 nBtnId = 0 );
65 :
66 : void HideButton( sal_uInt16 nBtnId );
67 : void SetLimits( sal_uInt16 nMin, sal_uInt16 nMax );
68 : };
69 :
70 : #endif
71 :
72 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|