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 :
20 :
21 : #ifndef INCLUDED_SD_SOURCE_UI_INC_DLGSNAP_HXX
22 : #define INCLUDED_SD_SOURCE_UI_INC_DLGSNAP_HXX
23 :
24 :
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 : /************************************************************************/
34 :
35 : class SfxItemSet;
36 : namespace sd {
37 : class View;
38 : }
39 :
40 : /**
41 : * dialog to adjust snap- lines and points
42 : */
43 0 : class SdSnapLineDlg : public ModalDialog
44 : {
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;
59 :
60 : DECL_LINK( ClickHdl, Button * );
61 :
62 : public:
63 : SdSnapLineDlg(Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView);
64 :
65 : void GetAttr(SfxItemSet& rOutAttrs);
66 :
67 : void HideRadioGroup();
68 0 : void HideDeleteBtn() { m_pBtnDelete->Hide(); }
69 : void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY);
70 : };
71 :
72 :
73 :
74 : #endif // INCLUDED_SD_SOURCE_UI_INC_DLGSNAP_HXX
75 :
76 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|