LibreOffice Module cui (master)  1
connect.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 #ifndef INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
20 #define INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
21 
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>
27 
28 class SdrView;
29 
32 {
33 private:
34  static const sal_uInt16 pRanges[];
37  const SdrView* pView;
39 
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;
53 
54  void FillTypeLB();
55 
56  DECL_LINK(ChangeAttrEditHdl_Impl, weld::MetricSpinButton&, void);
57  DECL_LINK(ChangeAttrListBoxHdl_Impl, weld::ComboBox&, void);
58 
59 public:
60 
61  SvxConnectionPage(TabPageParent pWindow, const SfxItemSet& rInAttrs);
62  virtual ~SvxConnectionPage() override;
63  virtual void dispose() override;
64 
66  static const sal_uInt16* GetRanges() { return pRanges; }
67 
68  virtual bool FillItemSet( SfxItemSet* ) override;
69  virtual void Reset( const SfxItemSet * ) override;
70 
71  void Construct();
72  void SetView( const SdrView* pSdrView ) { pView = pSdrView; }
73  virtual void PageCreated(const SfxAllItemSet& aSet) override;
74 };
75 
76 /* Derived from SfxSingleTabDialogController, in order to be informed about
77  virtual methods by the control. */
79 {
80 public:
81  SvxConnectionDialog(weld::Window* pParent, const SfxItemSet& rAttr,
82  const SdrView* pView);
83 };
84 
85 #endif // INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
86 
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldVert1
Definition: connect.hxx:49
std::unique_ptr< weld::Label > m_xFtLine2
Definition: connect.hxx:44
static const sal_uInt16 pRanges[]
Definition: connect.hxx:34
DECL_LINK(ChangeAttrEditHdl_Impl, weld::MetricSpinButton &, void)
SvxConnectionDialog(weld::Window *pParent, const SfxItemSet &rAttr, const SdrView *pView)
Definition: connect.cxx:49
std::unique_ptr< weld::CustomWeld > m_xCtlPreview
Definition: connect.hxx:52
virtual void dispose() override
Definition: connect.cxx:127
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldVert2
Definition: connect.hxx:51
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldHorz2
Definition: connect.hxx:50
std::unique_ptr< weld::ComboBox > m_xLbType
Definition: connect.hxx:41
SvxConnectionPage(TabPageParent pWindow, const SfxItemSet &rInAttrs)
Definition: connect.cxx:68
const SfxItemSet & rOutAttrs
Definition: connect.hxx:35
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldLine3
Definition: connect.hxx:47
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldLine2
Definition: connect.hxx:45
void SetView(const SdrView *pSdrView)
Definition: connect.hxx:72
const SdrView * pView
Definition: connect.hxx:37
virtual ~SvxConnectionPage() override
Definition: connect.cxx:122
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: connect.cxx:419
Dialog for changing connectors.
Definition: connect.hxx:31
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldLine1
Definition: connect.hxx:43
virtual void Reset(const SfxItemSet *) override
Definition: connect.cxx:139
virtual bool FillItemSet(SfxItemSet *) override
Definition: connect.cxx:234
std::unique_ptr< weld::Label > m_xFtLine3
Definition: connect.hxx:46
static VclPtr< SfxTabPage > Create(TabPageParent, const SfxItemSet *)
Definition: connect.cxx:315
MapUnit
std::unique_ptr< weld::Label > m_xFtLine1
Definition: connect.hxx:42
SfxItemSet aAttrSet
Definition: connect.hxx:36
static const sal_uInt16 * GetRanges()
Definition: connect.hxx:66
SvxXConnectionPreview m_aCtlPreview
Definition: connect.hxx:40
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldHorz1
Definition: connect.hxx:48