LibreOffice Module cui (master) 1
zoom.hxx
Go to the documentation of this file.
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#pragma once
20
21#include <memory>
22#include <sfx2/basedlgs.hxx>
23#include <svl/itemset.hxx>
24#include <svx/zoom_def.hxx>
25#include <vcl/weld.hxx>
26
28{
29private:
31 std::unique_ptr<SfxItemSet> m_pOutSet;
33
34 std::unique_ptr<weld::RadioButton> m_xOptimalBtn;
35 std::unique_ptr<weld::RadioButton> m_xWholePageBtn;
36 std::unique_ptr<weld::RadioButton> m_xPageWidthBtn;
37 std::unique_ptr<weld::RadioButton> m_x100Btn;
38 std::unique_ptr<weld::RadioButton> m_xUserBtn;
39 std::unique_ptr<weld::MetricSpinButton> m_xUserEdit;
40 std::unique_ptr<weld::Widget> m_xViewFrame;
41 std::unique_ptr<weld::RadioButton> m_xAutomaticBtn;
42 std::unique_ptr<weld::RadioButton> m_xSingleBtn;
43 std::unique_ptr<weld::RadioButton> m_xColumnsBtn;
44 std::unique_ptr<weld::SpinButton> m_xColumnsEdit;
45 std::unique_ptr<weld::CheckButton> m_xBookModeChk;
46 std::unique_ptr<weld::Button> m_xOKBtn;
47
48 DECL_LINK(UserHdl, weld::Toggleable&, void);
50 DECL_LINK(ViewLayoutUserHdl, weld::Toggleable&, void);
51 DECL_LINK(ViewLayoutSpinHdl, weld::SpinButton&, void);
52 DECL_LINK(ViewLayoutCheckHdl, weld::Toggleable&, void);
53 DECL_LINK(OKHdl, weld::Button&, void);
54
55public:
56 SvxZoomDialog(weld::Window* pParent, const SfxItemSet& rCoreSet);
57
58 const SfxItemSet* GetOutputItemSet() const;
59
60 sal_uInt16 GetFactor() const;
61 void SetFactor(sal_uInt16 nNewFactor, ZoomButtonId nButtonId = ZoomButtonId::NONE);
62
63 void HideButton(ZoomButtonId nButtonId);
64 void SetLimits(sal_uInt16 nMin, sal_uInt16 nMax);
65};
66
67/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const SfxItemSet * GetOutputItemSet() const
Definition: zoom.cxx:121
std::unique_ptr< weld::RadioButton > m_xOptimalBtn
Definition: zoom.hxx:34
std::unique_ptr< weld::RadioButton > m_xColumnsBtn
Definition: zoom.hxx:43
std::unique_ptr< weld::Widget > m_xViewFrame
Definition: zoom.hxx:40
std::unique_ptr< weld::RadioButton > m_xSingleBtn
Definition: zoom.hxx:42
void HideButton(ZoomButtonId nButtonId)
Definition: zoom.cxx:94
std::unique_ptr< weld::CheckButton > m_xBookModeChk
Definition: zoom.hxx:45
DECL_LINK(ViewLayoutSpinHdl, weld::SpinButton &, void)
std::unique_ptr< weld::RadioButton > m_xUserBtn
Definition: zoom.hxx:38
bool m_bModified
Definition: zoom.hxx:32
SvxZoomDialog(weld::Window *pParent, const SfxItemSet &rCoreSet)
Definition: zoom.cxx:123
std::unique_ptr< SfxItemSet > m_pOutSet
Definition: zoom.hxx:31
void SetLimits(sal_uInt16 nMin, sal_uInt16 nMax)
Definition: zoom.cxx:115
DECL_LINK(SpinHdl, weld::MetricSpinButton &, void)
void SetFactor(sal_uInt16 nNewFactor, ZoomButtonId nButtonId=ZoomButtonId::NONE)
Definition: zoom.cxx:46
DECL_LINK(ViewLayoutUserHdl, weld::Toggleable &, void)
DECL_LINK(UserHdl, weld::Toggleable &, void)
std::unique_ptr< weld::MetricSpinButton > m_xUserEdit
Definition: zoom.hxx:39
std::unique_ptr< weld::Button > m_xOKBtn
Definition: zoom.hxx:46
DECL_LINK(ViewLayoutCheckHdl, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xPageWidthBtn
Definition: zoom.hxx:36
std::unique_ptr< weld::SpinButton > m_xColumnsEdit
Definition: zoom.hxx:44
std::unique_ptr< weld::RadioButton > m_xAutomaticBtn
Definition: zoom.hxx:41
const SfxItemSet & m_rSet
Definition: zoom.hxx:30
sal_uInt16 GetFactor() const
Definition: zoom.cxx:35
std::unique_ptr< weld::RadioButton > m_xWholePageBtn
Definition: zoom.hxx:35
DECL_LINK(OKHdl, weld::Button &, void)
std::unique_ptr< weld::RadioButton > m_x100Btn
Definition: zoom.hxx:37
ZoomButtonId