Update ooo320-m1
[ooovba.git] / xml2cmp / source / xcd / cr_index.hxx
blobbba61492ce3395efb4021f2d129c30b9f2dc7f07
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: cr_index.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef X2C_CR_INDEX_HXX
32 #define X2C_CR_INDEX_HXX
34 #include "../support/sistr.hxx"
35 #include "../support/heap.hxx"
36 #include "../support/list.hxx"
37 #include "../support/syshelp.hxx"
40 class ModuleDescription;
43 class Index
45 public:
46 Index(
47 const char * i_sOutputDirectory,
48 const char * i_sIdlRootPath,
49 const List<Simstr> &
50 i_rTagList );
51 ~Index();
53 void GatherData(
54 const List<Simstr> &
55 i_rInputFileList );
56 void WriteOutput(
57 const char * i_sOuputFile );
59 void InsertSupportedService(
60 const Simstr & i_sService );
61 private:
62 void ReadFile(
63 const char * i_sFilename );
64 void CreateHtmlFileName(
65 char * o_sOutputHtml,
66 const ModuleDescription &
67 i_rModule );
68 void WriteTableFromHeap(
69 std::ostream & o_rOut,
70 Heap & i_rHeap,
71 const char * i_sIndexKey,
72 const char * i_sIndexReference,
73 E_LinkType i_eLinkType );
74 void WriteHeap(
75 std::ostream & o_rOut,
76 Heap & i_rHeap,
77 E_LinkType i_eLinkType );
79 // DATA
80 Heap aService2Module;
81 Heap aModule2Service;
83 Simstr sOutputDirectory;
84 Simstr sIdlRootPath;
86 // Temporary Data
87 Simstr sCurModule;
93 #endif