xref: /aoo41x/main/sw/source/ui/inc/cnttab.hxx (revision 1d2dbeb0)
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 _CNTTAB_HXX
24 #define _CNTTAB_HXX
25 
26 #include <svx/stddlg.hxx>
27 
28 #ifndef _BUTTON_HXX //autogen
29 #include <vcl/button.hxx>
30 #endif
31 
32 #ifndef _EDIT_HXX //autogen
33 #include <vcl/edit.hxx>
34 #endif
35 
36 #ifndef _FIXED_HXX //autogen
37 #include <vcl/fixed.hxx>
38 #endif
39 
40 #ifndef _FIELD_HXX //autogen
41 #include <vcl/field.hxx>
42 #endif
43 #include <vcl/lstbox.hxx>
44 #include <sfx2/tabdlg.hxx>
45 
46 #include "tox.hxx"
47 #include <tools/list.hxx>
48 #include <toxmgr.hxx>
49 #include <svx/checklbx.hxx>
50 #include <tools/resary.hxx>
51 #include <svtools/svtreebx.hxx>
52 #include <vcl/menubtn.hxx>
53 #include <svx/langbox.hxx>
54 #define TOX_PAGE_SELECT 1
55 #define TOX_PAGE_ENTRY  2
56 #define TOX_PAGE_STYLES 3
57 
58 struct CurTOXType
59 {
60 	TOXTypes 	eType;
61 	sal_uInt16 		nIndex; //for TOX_USER only
62 
operator ==CurTOXType63 	sal_Bool operator==(const CurTOXType aCmp)
64    	{
65 		return eType == aCmp.eType && nIndex == aCmp.nIndex;
66    	}
67 	sal_uInt16 GetFlatIndex() const;
68 
CurTOXTypeCurTOXType69 	CurTOXType () : eType (TOX_INDEX), nIndex (0) {};
70 
CurTOXTypeCurTOXType71 	CurTOXType (TOXTypes t, sal_uInt16 i) : eType (t), nIndex (i) {};
72 };
73 
74 class SwOLENames : public Resource
75 {
76 	ResStringArray		aNamesAry;
77 public:
SwOLENames(const ResId & rResId)78 	SwOLENames(const ResId& rResId) :
79 		Resource(rResId),
80 		aNamesAry(ResId(1,*rResId.GetResMgr())){FreeResource();}
81 
GetNames()82 	ResStringArray& 	GetNames() { return aNamesAry;}
83 
84 };
85 
86 #endif
87