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_OP_HXX 29 #define ADC_DISPLAY_HTML_DSPLY_OP_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 Function; 42 } 43 } 44 namespace csi 45 { 46 namespace xml 47 { 48 class Element; 49 } 50 } 51 52 class OuputPage_Environment; 53 class PageDisplay; 54 class Docu_Display; 55 56 57 58 59 class OperationsDisplay : public ary::Display, 60 public csv::ConstProcessor<ary::cpp::Function> 61 { 62 public: 63 OperationsDisplay( 64 OuputPage_Environment & 65 io_rInfo ); 66 virtual ~OperationsDisplay(); 67 68 void PrepareForStdMembers(); 69 void PrepareForStaticMembers(); 70 void Create_Files(); 71 72 private: 73 // Interface csv::ConstProcessor<>: 74 virtual void do_Process( 75 const ary::cpp::Function & 76 i_rData ); 77 // Interface ary::Display: 78 virtual const ary::cpp::Gate * 79 inq_Get_ReFinder() const; 80 81 // Locals 82 typedef ary::cpp::Lid SourceFileId; 83 typedef std::map< SourceFileId, DYN PageDisplay* > Map_FileId2PagePtr; 84 85 PageDisplay & FindPage_for( 86 const ary::cpp::Function & 87 i_rData ); 88 void Display_SglOperation( 89 csi::xml::Element & rOut, 90 const ary::cpp::Function & 91 i_rData ); 92 // DATA 93 Map_FileId2PagePtr aMap_GlobalFunctionsDisplay; 94 Dyn<PageDisplay> pClassMembersDisplay; 95 96 OuputPage_Environment * 97 pEnv; 98 Dyn<Docu_Display> pDocuShow; 99 }; 100 101 102 103 104 #endif 105