Linux x86 build fix
[LibreOffice.git] / extensions / source / propctrlr / listselectiondlg.hxx
blobca9a118c06f98c39346d2fe36c356a2a1d752aab
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 INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX
21 #define INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX
23 #include <vcl/dialog.hxx>
24 #include <vcl/layout.hxx>
25 #include <vcl/lstbox.hxx>
27 #include <com/sun/star/beans/XPropertySet.hpp>
29 namespace pcr
31 class ListSelectionDialog : public ModalDialog
33 private:
34 VclPtr<ListBox> m_pEntries;
36 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
37 m_xListBox;
38 OUString m_sPropertyName;
40 public:
41 ListSelectionDialog(
42 vcl::Window* _pParent,
43 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxListBox,
44 const OUString& _rPropertyName,
45 const OUString& _rPropertyUIName
47 virtual ~ListSelectionDialog();
48 virtual void dispose() SAL_OVERRIDE;
50 // Dialog overridables
51 virtual short Execute() SAL_OVERRIDE;
53 private:
54 void initialize( );
55 void commitSelection();
57 void fillEntryList ( const ::com::sun::star::uno::Sequence< OUString >& _rListEntries );
59 void selectEntries ( const ::com::sun::star::uno::Sequence< sal_Int16 >& /* [in ] */ _rSelection );
60 void collectSelection( ::com::sun::star::uno::Sequence< sal_Int16 >& /* [out] */ _rSelection );
64 } // namespacepcr
67 #endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */