update credits
[LibreOffice.git] / extensions / source / propctrlr / listselectiondlg.hxx
blob79c4e9c589c6b5d25350922ca0fad5f520163c46
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 .
20 #ifndef EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX
21 #define EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX
23 #include <vcl/dialog.hxx>
24 #include <vcl/fixed.hxx>
25 #include <vcl/button.hxx>
26 #include <vcl/lstbox.hxx>
28 #include <com/sun/star/beans/XPropertySet.hpp>
30 //........................................................................
31 namespace pcr
33 //........................................................................
35 //====================================================================
36 //= ListSelectionDialog
37 //====================================================================
38 class ListSelectionDialog : public ModalDialog
40 private:
41 FixedText m_aLabel;
42 ListBox m_aEntries;
43 OKButton m_aOK;
44 CancelButton m_aCancel;
45 HelpButton m_aHelp;
47 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
48 m_xListBox;
49 OUString m_sPropertyName;
51 public:
52 ListSelectionDialog(
53 Window* _pParent,
54 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxListBox,
55 const OUString& _rPropertyName,
56 const String& _rPropertyUIName
59 // Dialog overridables
60 virtual short Execute();
62 private:
63 void initialize( );
64 void commitSelection();
66 void fillEntryList ( const ::com::sun::star::uno::Sequence< OUString >& _rListEntries );
68 void selectEntries ( const ::com::sun::star::uno::Sequence< sal_Int16 >& /* [in ] */ _rSelection );
69 void collectSelection( ::com::sun::star::uno::Sequence< sal_Int16 >& /* [out] */ _rSelection );
72 //........................................................................
73 } // namespacepcr
74 //........................................................................
76 #endif // EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */