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 #ifndef ADC_DISPLAY_PM_BASE_HXX
29 #define ADC_DISPLAY_PM_BASE_HXX
30 
31 
32 
33 // USED SERVICES
34 	// BASE CLASSES
35 	// COMPONENTS
36 	// PARAMETERS
37 #include "hdimpl.hxx"
38 
39 
40 
41 class OuputPage_Environment;
42 namespace csi
43 {
44     namespace xml
45     {
46         class Element;
47     }
48 }
49 class PageDisplay;
50 
51 
52 /** Interface for making a special kind of HTML-Page
53 */
54 class SpecializedPageMaker
55 {
56   public:
57     virtual             ~SpecializedPageMaker() {}
58 
59     virtual void        MakePage() = 0;
60 
61     virtual void        Write_NavBar();
62     virtual void        Write_TopArea();
63     virtual void        Write_DocuArea();
64 //    virtual void        Write_ChildList(
65 //                            ary::SlotAccessId   i_nSlot,
66 //                            const char *        i_nListTitle,
67 //                            const char *        i_nLabel );
68 
69   protected:
70                         SpecializedPageMaker(
71                             PageDisplay &       io_rPage );
72 
73     OuputPage_Environment &
74                         Env() const             { return *pEnv; }
75     csi::xml::Element & CurOut();
76     PageDisplay &       Page()                  { return *pPage; }
77 
78   private:
79     OuputPage_Environment *
80                         pEnv;
81     csi::xml::Element * pCurOut;
82     PageDisplay *       pPage;
83 };
84 
85 
86 
87 #endif
88 
89