xref: /aoo42x/main/sd/source/ui/inc/prltempl.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 
28 
29 #ifndef SD_PRLTEMPL_HXX
30 #define SD_PRLTEMPL_HXX
31 
32 #ifndef _SD_SDRESID_HXX
33 #include "sdresid.hxx"
34 #endif
35 #include <sfx2/tabdlg.hxx>
36 #include <svx/tabarea.hxx>
37 
38 #include "prlayout.hxx" // fuer enum PresentationObjects
39 
40 
41 class XColorTable;
42 class XGradientList;
43 class XHatchList;
44 class XBitmapList;
45 class XDashList;
46 class XLineEndList;
47 class SfxObjectShell;
48 class SfxStyleSheetBase;
49 class SfxStyleSheetBasePool;
50 
51 /*************************************************************************
52 |*
53 |* Vorlagen-Tab-Dialog
54 |*
55 \************************************************************************/
56 class SdPresLayoutTemplateDlg : public SfxTabDialog
57 {
58 private:
59 	const SfxObjectShell*	mpDocShell;
60 
61 	XColorTable*		pColorTab;
62 	XGradientList*		pGradientList;
63 	XHatchList*			pHatchingList;
64 	XBitmapList*		pBitmapList;
65 	XDashList*			pDashList;
66 	XLineEndList*		pLineEndList;
67 
68 	sal_uInt16				nPageType;
69 	sal_uInt16				nDlgType;
70 	sal_uInt16				nPos;
71 
72 	ChangeType			nColorTableState;
73 	ChangeType			nBitmapListState;
74 	ChangeType			nGradientListState;
75 	ChangeType			nHatchingListState;
76 	ChangeType			nLineEndListState;
77 	ChangeType			nDashListState;
78 
79 	PresentationObjects	ePO;
80 
81 	virtual void		PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
82 
83 	// fuers Maping mit dem neuen SvxNumBulletItem
84 	SfxItemSet aInputSet;
85 	SfxItemSet* pOutSet;
86 	const SfxItemSet* pOrgSet;
87 
88 	sal_uInt16 GetOutlineLevel() const;
89 
90 	using SfxTabDialog::GetOutputItemSet;
91 
92 public:
93 	SdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool );
94 	~SdPresLayoutTemplateDlg();
95 
96 	const SfxItemSet* GetOutputItemSet() const;
97 };
98 
99 
100 #endif // SD_PRLTEMPL_HXX
101 
102