xref: /AOO41X/main/sw/source/ui/inc/numberingtypelistbox.hxx (revision 1d2dbeb0b7301723c6d13094e87a8714ef81a328)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _NUMBERINGTYPELISTBOX_HXX
24 #define _NUMBERINGTYPELISTBOX_HXX
25 
26 #include <vcl/lstbox.hxx>
27 #include "swdllapi.h"
28 
29 #define INSERT_NUM_TYPE_NO_NUMBERING                0x01
30 #define INSERT_NUM_TYPE_PAGE_STYLE_NUMBERING        0x02
31 #define INSERT_NUM_TYPE_BITMAP                      0x04
32 #define INSERT_NUM_TYPE_BULLET                      0x08
33 #define INSERT_NUM_EXTENDED_TYPES                   0x10
34 
35 struct SwNumberingTypeListBox_Impl;
36 
37 class SW_DLLPUBLIC SwNumberingTypeListBox : public ListBox
38 {
39     SwNumberingTypeListBox_Impl* pImpl;
40 
41 public:
42     SwNumberingTypeListBox( Window* pWin, const ResId& rResId,
43         sal_uInt16 nTypeFlags = INSERT_NUM_TYPE_PAGE_STYLE_NUMBERING|INSERT_NUM_TYPE_NO_NUMBERING|INSERT_NUM_EXTENDED_TYPES );
44     ~SwNumberingTypeListBox();
45 
46     void        Reload(sal_uInt16 nTypeFlags);
47 
48     sal_Int16   GetSelectedNumberingType();
49     sal_Bool    SelectNumberingType(sal_Int16 nType);
50 };
51 
52 
53 #endif
54 
55