xref: /aoo41x/main/sw/source/ui/inc/cnttab.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _CNTTAB_HXX
28 #define _CNTTAB_HXX
29 
30 #include <svx/stddlg.hxx>
31 
32 #ifndef _BUTTON_HXX //autogen
33 #include <vcl/button.hxx>
34 #endif
35 
36 #ifndef _EDIT_HXX //autogen
37 #include <vcl/edit.hxx>
38 #endif
39 
40 #ifndef _FIXED_HXX //autogen
41 #include <vcl/fixed.hxx>
42 #endif
43 
44 #ifndef _FIELD_HXX //autogen
45 #include <vcl/field.hxx>
46 #endif
47 #include <vcl/lstbox.hxx>
48 #include <sfx2/tabdlg.hxx>
49 
50 #include "tox.hxx"
51 #include <tools/list.hxx>
52 #include <toxmgr.hxx>
53 #include <svx/checklbx.hxx>
54 #include <tools/resary.hxx>
55 #include <svtools/svtreebx.hxx>
56 #include <vcl/menubtn.hxx>
57 #include <svx/langbox.hxx>
58 #define TOX_PAGE_SELECT 1
59 #define TOX_PAGE_ENTRY  2
60 #define TOX_PAGE_STYLES 3
61 
62 struct CurTOXType
63 {
64 	TOXTypes 	eType;
65 	sal_uInt16 		nIndex; //for TOX_USER only
66 
67 	sal_Bool operator==(const CurTOXType aCmp)
68    	{
69 		return eType == aCmp.eType && nIndex == aCmp.nIndex;
70    	}
71 	sal_uInt16 GetFlatIndex() const;
72 
73 	CurTOXType () : eType (TOX_INDEX), nIndex (0) {};
74 
75 	CurTOXType (TOXTypes t, sal_uInt16 i) : eType (t), nIndex (i) {};
76 };
77 
78 class SwOLENames : public Resource
79 {
80 	ResStringArray		aNamesAry;
81 public:
82 	SwOLENames(const ResId& rResId) :
83 		Resource(rResId),
84 		aNamesAry(ResId(1,*rResId.GetResMgr())){FreeResource();}
85 
86 	ResStringArray& 	GetNames() { return aNamesAry;}
87 
88 };
89 
90 #endif
91