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