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_HTML_DSPLY_DA_HXX 29 #define ADC_DISPLAY_HTML_DSPLY_DA_HXX 30 31 // BASE CLASSES 32 #include <ary/ary_disp.hxx> 33 #include <cosv/tpl/processor.hxx> 34 // USED SERVICES 35 #include <ary/cpp/c_ce.hxx> 36 37 namespace ary 38 { 39 namespace cpp 40 { 41 class Variable; 42 } 43 } 44 namespace csi 45 { 46 namespace xml 47 { 48 class Element; 49 } 50 } 51 52 53 54 55 class OuputPage_Environment; 56 class PageDisplay; 57 class Docu_Display; 58 59 class DataDisplay : public ary::Display, 60 public csv::ConstProcessor<ary::cpp::Variable> 61 { 62 public: 63 DataDisplay( 64 OuputPage_Environment & 65 io_rInfo ); 66 virtual ~DataDisplay(); 67 68 void PrepareForConstants(); 69 void PrepareForVariables(); 70 void PrepareForStdMembers(); 71 void PrepareForStaticMembers(); 72 73 void Create_Files(); 74 75 private: 76 // Interface csv::ConstProcessor<>: 77 virtual void do_Process( 78 const ary::cpp::Variable & 79 i_rData ); 80 // Interface ary::cpp::Display: 81 virtual const ary::cpp::Gate * 82 inq_Get_ReFinder() const; 83 84 // Locals 85 typedef ary::cpp::Lid SourceFileId; 86 typedef std::map< SourceFileId, DYN PageDisplay* > Map_FileId2PagePtr; 87 88 PageDisplay & FindPage_for( 89 const ary::cpp::Variable & 90 i_rData ); 91 void Display_SglDatum( 92 csi::xml::Element & rOut, 93 const ary::cpp::Variable & 94 i_rData ); 95 // DATA 96 Map_FileId2PagePtr aMap_GlobalDataDisplay; 97 Dyn<PageDisplay> pClassMembersDisplay; 98 99 OuputPage_Environment * 100 pEnv; 101 Dyn<Docu_Display> pDocuShow; 102 }; 103 104 105 106 107 #endif 108