1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
20 #ifndef INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_SELECTLABELDIALOG_HXX
21 #define INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_SELECTLABELDIALOG_HXX
23 #include <vcl/fixed.hxx>
24 #include <svtools/treelistbox.hxx>
25 #include <vcl/button.hxx>
26 #include <vcl/image.hxx>
27 #include <vcl/dialog.hxx>
28 #include <com/sun/star/beans/XPropertySet.hpp>
29 #include "modulepcr.hxx"
39 class OSelectLabelDialog
43 VclPtr
<FixedText
> m_pMainDesc
;
44 VclPtr
<SvTreeListBox
> m_pControlTree
;
45 VclPtr
<CheckBox
> m_pNoAssignment
;
47 ImageList m_aModelImages
;
48 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> m_xControlModel
;
49 OUString m_sRequiredService
;
50 Image m_aRequiredControlImage
;
51 SvTreeListEntry
* m_pInitialSelection
;
52 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> m_xInitialLabelControl
;
54 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> m_xSelectedControl
;
55 SvTreeListEntry
* m_pLastSelected
;
56 bool m_bHaveAssignableControl
;
59 OSelectLabelDialog(vcl::Window
* pParent
, ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> _xControlModel
);
60 virtual ~OSelectLabelDialog();
61 virtual void dispose() SAL_OVERRIDE
;
63 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> GetSelected() const { return m_pNoAssignment
->IsChecked() ? ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> () : m_xSelectedControl
; }
66 sal_Int32
InsertEntries(const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
>& _xContainer
, SvTreeListEntry
* pContainerEntry
);
68 DECL_LINK(OnEntrySelected
, SvTreeListBox
*);
69 DECL_LINK(OnNoAssignmentClicked
, Button
*);
76 #endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_SELECTLABELDIALOG_HXX
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */