xref: /AOO41X/main/sw/source/ui/inc/tmpdlg.hxx (revision ff0525f24f03981d56b7579b645949f111420994)
11d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
31d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
41d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
51d2dbeb0SAndrew Rist  * distributed with this work for additional information
61d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
71d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
81d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
91d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
111d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
131d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
141d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
151d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
161d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
171d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
181d2dbeb0SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
201d2dbeb0SAndrew Rist  *************************************************************/
211d2dbeb0SAndrew Rist 
221d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir #ifndef _SWTMPDLG_HXX
24cdf0e10cSrcweir #define _SWTMPDLG_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <sfx2/styledlg.hxx>
27cdf0e10cSrcweir 
28cdf0e10cSrcweir class SfxItemSet;
29cdf0e10cSrcweir class SwWrtShell;
30cdf0e10cSrcweir 
31cdf0e10cSrcweir /*--------------------------------------------------------------------
32cdf0e10cSrcweir    Beschreibung:    Der Tabdialog Traeger der TabPages
33cdf0e10cSrcweir  --------------------------------------------------------------------*/
34cdf0e10cSrcweir 
35cdf0e10cSrcweir class SwTemplateDlg: public SfxStyleDialog
36cdf0e10cSrcweir {
37cdf0e10cSrcweir 
38cdf0e10cSrcweir     sal_uInt16      nType;
39cdf0e10cSrcweir     sal_uInt16      nHtmlMode;
40cdf0e10cSrcweir     SwWrtShell*     pWrtShell;
41cdf0e10cSrcweir     sal_Bool        bNewStyle;
42cdf0e10cSrcweir 
43cdf0e10cSrcweir     DECL_LINK( NumOptionsHdl, PushButton* );
44cdf0e10cSrcweir 
45cdf0e10cSrcweir public:
46*ff0525f2SOliver-Rainer Wittmann     // @param nSlot
47*ff0525f2SOliver-Rainer Wittmann     // Identifies optional Slot by which the creation of the Template (Style) dialog is triggered.
48*ff0525f2SOliver-Rainer Wittmann     // Currently used, if nRegion == SFX_STYLE_FAMILY_PAGE in order to activate certain dialog pane
49cdf0e10cSrcweir     SwTemplateDlg(  Window*             pParent,
50cdf0e10cSrcweir                     SfxStyleSheetBase&  rBase,
51cdf0e10cSrcweir                     sal_uInt16          nRegion,
52*ff0525f2SOliver-Rainer Wittmann                     const sal_uInt16    nSlot = 0,
53cdf0e10cSrcweir                     SwWrtShell*         pActShell = 0,
54cdf0e10cSrcweir                     sal_Bool            bNew = sal_False );
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     ~SwTemplateDlg();
57cdf0e10cSrcweir     const SfxItemSet* GetRefreshedSet();
58cdf0e10cSrcweir 
59cdf0e10cSrcweir     virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
60cdf0e10cSrcweir     virtual short Ok();
61cdf0e10cSrcweir };
62cdf0e10cSrcweir 
63cdf0e10cSrcweir 
64cdf0e10cSrcweir #endif
65cdf0e10cSrcweir 
66