bump product version to 5.0.4.1
[LibreOffice.git] / cui / source / inc / connect.hxx
blob875ff89baf9b2a09cdd00cceb34bb5e015b660e9
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/fixed.hxx>
25 #include <vcl/field.hxx>
26 #include <vcl/lstbox.hxx>
27 #include <vcl/group.hxx>
28 #include <sfx2/basedlgs.hxx>
30 class SdrView;
32 /// Dialog for changing connectors.
33 class SvxConnectionPage : public SfxTabPage
35 private:
36 static const sal_uInt16 pRanges[];
37 VclPtr<ListBox> m_pLbType;
39 VclPtr<FixedText> m_pFtLine1;
40 VclPtr<MetricField> m_pMtrFldLine1;
41 VclPtr<FixedText> m_pFtLine2;
42 VclPtr<MetricField> m_pMtrFldLine2;
43 VclPtr<FixedText> m_pFtLine3;
44 VclPtr<MetricField> m_pMtrFldLine3;
46 VclPtr<MetricField> m_pMtrFldHorz1;
47 VclPtr<MetricField> m_pMtrFldVert1;
48 VclPtr<MetricField> m_pMtrFldHorz2;
49 VclPtr<MetricField> m_pMtrFldVert2;
51 VclPtr<SvxXConnectionPreview> m_pCtlPreview;
53 const SfxItemSet& rOutAttrs;
54 SfxItemSet aAttrSet;
55 const SdrView* pView;
56 SfxMapUnit eUnit;
58 void FillTypeLB();
60 DECL_LINK( ChangeAttrHdl_Impl, void * );
62 public:
64 SvxConnectionPage( vcl::Window* pWindow, const SfxItemSet& rInAttrs );
65 virtual ~SvxConnectionPage();
66 virtual void dispose() SAL_OVERRIDE;
68 static VclPtr<SfxTabPage> Create( vcl::Window*, const SfxItemSet* );
69 static const sal_uInt16* GetRanges() { return pRanges; }
71 virtual bool FillItemSet( SfxItemSet* ) SAL_OVERRIDE;
72 virtual void Reset( const SfxItemSet * ) SAL_OVERRIDE;
74 void Construct();
75 void SetView( const SdrView* pSdrView ) { pView = pSdrView; }
76 virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE;
79 /* Derived from SfxSingleTabDialog, in order to be informed about
80 virtual methods by the control. */
81 class SvxConnectionDialog : public SfxSingleTabDialog
83 public:
84 SvxConnectionDialog( vcl::Window* pParent, const SfxItemSet& rAttr,
85 const SdrView* pView );
88 #endif // INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */