1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _EXTENSIONS_PROPCTRLR_SELECTLABELDIALOG_HXX_
30 #define _EXTENSIONS_PROPCTRLR_SELECTLABELDIALOG_HXX_
32 #include <vcl/fixed.hxx>
33 #include <svtools/svtreebx.hxx>
34 #include <vcl/button.hxx>
35 #include <vcl/image.hxx>
36 #include <vcl/dialog.hxx>
37 #include <com/sun/star/beans/XPropertySet.hpp>
38 #include "modulepcr.hxx"
40 //............................................................................
43 //............................................................................
45 //========================================================================
47 //========================================================================
48 class OSelectLabelDialog
52 FixedText m_aMainDesc
;
53 SvTreeListBox m_aControlTree
;
54 CheckBox m_aNoAssignment
;
55 FixedLine m_aSeparator
;
57 CancelButton m_aCancel
;
59 ImageList m_aModelImages
;
60 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> m_xControlModel
;
61 ::rtl::OUString m_sRequiredService
;
62 Image m_aRequiredControlImage
;
63 SvLBoxEntry
* m_pInitialSelection
;
64 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> m_xInitialLabelControl
;
66 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> m_xSelectedControl
;
67 SvLBoxEntry
* m_pLastSelected
;
68 sal_Bool m_bHaveAssignableControl
;
71 OSelectLabelDialog(Window
* pParent
, ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> _xControlModel
);
72 ~OSelectLabelDialog();
74 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> GetSelected() const { return m_aNoAssignment
.IsChecked() ? ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> () : m_xSelectedControl
; }
77 sal_Int32
InsertEntries(const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
>& _xContainer
, SvLBoxEntry
* pContainerEntry
);
79 DECL_LINK(OnEntrySelected
, SvTreeListBox
*);
80 DECL_LINK(OnNoAssignmentClicked
, Button
*);
83 //............................................................................
85 //............................................................................
87 #endif // _EXTENSIONS_PROPCTRLR_SELECTLABELDIALOG_HXX_
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */