bump product version to 6.3.0.0.beta1
[LibreOffice.git] / sd / source / ui / inc / dlgsnap.hxx
blob238c9737c15a930f1b5512dfa7a10f6c15615663
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 .
20 #ifndef INCLUDED_SD_SOURCE_UI_INC_DLGSNAP_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_DLGSNAP_HXX
23 #include <tools/fract.hxx>
24 #include <vcl/weld.hxx>
26 /************************************************************************/
28 class SfxItemSet;
29 namespace sd {
30 class View;
33 /**
34 * dialog to adjust snap- lines and points
36 class SdSnapLineDlg : public weld::GenericDialogController
38 private:
39 int nXValue;
40 int nYValue;
41 Fraction const aUIScale;
43 std::unique_ptr<weld::Label> m_xFtX;
44 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldX;
45 std::unique_ptr<weld::Label> m_xFtY;
46 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldY;
47 std::unique_ptr<weld::Widget> m_xRadioGroup;
48 std::unique_ptr<weld::RadioButton> m_xRbPoint;
49 std::unique_ptr<weld::RadioButton> m_xRbVert;
50 std::unique_ptr<weld::RadioButton> m_xRbHorz;
51 std::unique_ptr<weld::Button> m_xBtnDelete;
53 DECL_LINK(ClickHdl, weld::Button&, void);
55 public:
56 SdSnapLineDlg(weld::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View const * pView);
57 virtual ~SdSnapLineDlg() override;
59 void GetAttr(SfxItemSet& rOutAttrs);
61 void HideRadioGroup();
62 void HideDeleteBtn() { m_xBtnDelete->hide(); }
63 void SetInputFields(bool bEnableX, bool bEnableY);
66 #endif // INCLUDED_SD_SOURCE_UI_INC_DLGSNAP_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */