fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / inc / dlgsnap.hxx
blob31d5726bc7638ce28daf27759f5c5568fe8e7a88
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 .
21 #ifndef _SD_DLGSNAP_HXX
22 #define _SD_DLGSNAP_HXX
25 #include <vcl/button.hxx>
26 #include <vcl/fixed.hxx>
27 #include <vcl/field.hxx>
28 #include <vcl/group.hxx>
29 #include <vcl/layout.hxx>
30 #include <tools/fract.hxx>
31 #include <vcl/dialog.hxx>
32 #include "sdenumdef.hxx"
33 /************************************************************************/
35 class SfxItemSet;
36 namespace sd {
37 class View;
40 /**
41 * dialog to adjust snap- lines and points
43 class SdSnapLineDlg : public ModalDialog
45 private:
46 FixedText* m_pFtX;
47 MetricField* m_pMtrFldX;
48 FixedText* m_pFtY;
49 MetricField* m_pMtrFldY;
50 VclContainer* m_pRadioGroup;
51 RadioButton* m_pRbPoint;
52 RadioButton* m_pRbVert;
53 RadioButton* m_pRbHorz;
54 PushButton* m_pBtnDelete;
55 long nXValue;
56 long nYValue;
57 FieldUnit eUIUnit;
58 Fraction aUIScale;
60 DECL_LINK( ClickHdl, Button * );
62 public:
63 SdSnapLineDlg(Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView);
65 void GetAttr(SfxItemSet& rOutAttrs);
67 void HideRadioGroup();
68 void HideDeleteBtn() { m_pBtnDelete->Hide(); }
69 void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY);
74 #endif // _SD_DLGSNAP_HXX
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */