bump product version to 5.0.4.1
[LibreOffice.git] / cui / source / inc / zoom.hxx
blob55bb1dc2adc90fe332335c753f5da3555e2c52dc
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 INCLUDED_CUI_SOURCE_INC_ZOOM_HXX
20 #define INCLUDED_CUI_SOURCE_INC_ZOOM_HXX
22 #include <sfx2/basedlgs.hxx>
23 #include <svx/zoom_def.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/field.hxx>
26 #include <vcl/fixed.hxx>
28 class SvxZoomDialog : public SfxModalDialog
30 private:
31 VclPtr<RadioButton> m_pOptimalBtn;
32 VclPtr<RadioButton> m_pWholePageBtn;
33 VclPtr<RadioButton> m_pPageWidthBtn;
34 VclPtr<RadioButton> m_p100Btn;
35 VclPtr<RadioButton> m_pUserBtn;
36 VclPtr<MetricField> m_pUserEdit;
38 VclPtr<VclContainer> m_pViewFrame;
39 VclPtr<RadioButton> m_pAutomaticBtn;
40 VclPtr<RadioButton> m_pSingleBtn;
41 VclPtr<RadioButton> m_pColumnsBtn;
42 VclPtr<NumericField> m_pColumnsEdit;
43 VclPtr<CheckBox> m_pBookModeChk;
45 VclPtr<OKButton> m_pOKBtn;
47 const SfxItemSet& mrSet;
48 std::unique_ptr<SfxItemSet> mpOutSet;
49 bool mbModified;
51 DECL_LINK(UserHdl, RadioButton*);
52 DECL_LINK(SpinHdl, void*);
53 DECL_LINK(ViewLayoutUserHdl, RadioButton*);
54 DECL_LINK(ViewLayoutSpinHdl, NumericField*);
55 DECL_LINK(ViewLayoutCheckHdl, CheckBox*);
56 DECL_LINK(OKHdl, Button*);
58 public:
59 SvxZoomDialog(vcl::Window* pParent, const SfxItemSet& rCoreSet);
60 virtual ~SvxZoomDialog();
61 virtual void dispose() SAL_OVERRIDE;
63 const SfxItemSet* GetOutputItemSet() const;
65 sal_uInt16 GetFactor() const;
66 void SetFactor(sal_uInt16 nNewFactor, ZoomButtonId nButtonId = ZoomButtonId::NONE);
68 void HideButton(ZoomButtonId nButtonId);
69 void SetLimits(sal_uInt16 nMin, sal_uInt16 nMax);
72 #endif
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */