xref: /AOO41X/main/sd/source/ui/inc/prltempl.hxx (revision 3ce09a58b0d6873449cda31e55c66dba2dbc8f7f)
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 SfxObjectShell;
38 class SfxStyleSheetBase;
39 class SfxStyleSheetBasePool;
40 
41 /*************************************************************************
42 |*
43 |* Vorlagen-Tab-Dialog
44 |*
45 \************************************************************************/
46 class SdPresLayoutTemplateDlg : public SfxTabDialog
47 {
48 private:
49     const SfxObjectShell*   mpDocShell;
50 
51     XColorListSharedPtr     maColorTab;
52     XGradientListSharedPtr  maGradientList;
53     XHatchListSharedPtr     maHatchingList;
54     XBitmapListSharedPtr    maBitmapList;
55     XDashListSharedPtr      maDashList;
56     XLineEndListSharedPtr   maLineEndList;
57 
58     sal_uInt16              nPageType;
59     sal_uInt16              nDlgType;
60     sal_uInt16              nPos;
61 
62     ChangeType          nColorTableState;
63     ChangeType          nBitmapListState;
64     ChangeType          nGradientListState;
65     ChangeType          nHatchingListState;
66     ChangeType          nLineEndListState;
67     ChangeType          nDashListState;
68 
69     PresentationObjects ePO;
70 
71     virtual void        PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
72 
73     // fuers Maping mit dem neuen SvxNumBulletItem
74     SfxItemSet aInputSet;
75     SfxItemSet* pOutSet;
76     const SfxItemSet* pOrgSet;
77 
78     sal_uInt16 GetOutlineLevel() const;
79 
80     using SfxTabDialog::GetOutputItemSet;
81 
82 public:
83     SdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool );
84     ~SdPresLayoutTemplateDlg();
85 
86     const SfxItemSet* GetOutputItemSet() const;
87 };
88 
89 
90 #endif // SD_PRLTEMPL_HXX
91 
92