Bump version to 6.4.7.2.M8
[LibreOffice.git] / cui / source / inc / connect.hxx
blob1b41851476a1bec1dc49770f60eb8213ea218e01
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_CONNECT_HXX
20 #define INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
22 #include <svx/connctrl.hxx>
23 #include <sfx2/tabdlg.hxx>
24 #include <vcl/customweld.hxx>
25 #include <vcl/weld.hxx>
26 #include <sfx2/basedlgs.hxx>
28 class SdrView;
30 /// Dialog for changing connectors.
31 class SvxConnectionPage : public SfxTabPage
33 private:
34 static const sal_uInt16 pRanges[];
35 const SfxItemSet& rOutAttrs;
36 SfxItemSet aAttrSet;
37 const SdrView* pView;
38 MapUnit eUnit;
40 SvxXConnectionPreview m_aCtlPreview;
41 std::unique_ptr<weld::ComboBox> m_xLbType;
42 std::unique_ptr<weld::Label> m_xFtLine1;
43 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldLine1;
44 std::unique_ptr<weld::Label> m_xFtLine2;
45 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldLine2;
46 std::unique_ptr<weld::Label> m_xFtLine3;
47 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldLine3;
48 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldHorz1;
49 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldVert1;
50 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldHorz2;
51 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldVert2;
52 std::unique_ptr<weld::CustomWeld> m_xCtlPreview;
54 void FillTypeLB();
56 DECL_LINK(ChangeAttrEditHdl_Impl, weld::MetricSpinButton&, void);
57 DECL_LINK(ChangeAttrListBoxHdl_Impl, weld::ComboBox&, void);
59 public:
61 SvxConnectionPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
62 virtual ~SvxConnectionPage() override;
64 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
65 static const sal_uInt16* GetRanges() { return pRanges; }
67 virtual bool FillItemSet( SfxItemSet* ) override;
68 virtual void Reset( const SfxItemSet * ) override;
70 void Construct();
71 void SetView( const SdrView* pSdrView ) { pView = pSdrView; }
72 virtual void PageCreated(const SfxAllItemSet& aSet) override;
75 /* Derived from SfxSingleTabDialogController, in order to be informed about
76 virtual methods by the control. */
77 class SvxConnectionDialog : public SfxSingleTabDialogController
79 public:
80 SvxConnectionDialog(weld::Window* pParent, const SfxItemSet& rAttr,
81 const SdrView* pView);
84 #endif // INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */