Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef HELPLINKER_HXX
30 : : #define HELPLINKER_HXX
31 : :
32 : : #include <l10ntools/dllapi.h>
33 : : #include <libxslt/transform.h>
34 : :
35 : : #ifdef AIX
36 : : # undef _THREAD_SAFE
37 : : #endif
38 : :
39 : : #define DBHELP_ONLY
40 : :
41 : : class L10N_DLLPUBLIC IndexerPreProcessor
42 : : {
43 : : private:
44 : : std::string m_aModuleName;
45 : : fs::path m_fsIndexBaseDir;
46 : : fs::path m_fsCaptionFilesDirName;
47 : : fs::path m_fsContentFilesDirName;
48 : :
49 : : xsltStylesheetPtr m_xsltStylesheetPtrCaption;
50 : : xsltStylesheetPtr m_xsltStylesheetPtrContent;
51 : :
52 : : public:
53 : : IndexerPreProcessor( const std::string& aModuleName, const fs::path& fsIndexBaseDir,
54 : : const fs::path& idxCaptionStylesheet, const fs::path& idxContentStylesheet );
55 : : ~IndexerPreProcessor();
56 : :
57 : : void processDocument( xmlDocPtr doc, const std::string& EncodedDocPath );
58 : : };
59 : :
60 : : class L10N_DLLPUBLIC HelpLinker
61 : : {
62 : : public:
63 : : void main(std::vector<std::string> &args,
64 : : std::string* pExtensionPath = NULL,
65 : : std::string* pDestination = NULL,
66 : : const rtl::OUString* pOfficeHelpPath = NULL )
67 : :
68 : : throw( HelpProcessingException );
69 : :
70 : 71 : HelpLinker()
71 [ + - ][ + - ]: 71 : : m_pIndexerPreProcessor(NULL)
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
72 : 71 : {}
73 : 71 : ~HelpLinker()
74 [ + + ][ + - ]: 71 : { delete m_pIndexerPreProcessor; }
75 : :
76 : : private:
77 : : Stringtable additionalFiles;
78 : : HashSet helpFiles;
79 : : fs::path sourceRoot;
80 : : fs::path embeddStylesheet;
81 : : fs::path idxCaptionStylesheet;
82 : : fs::path idxContentStylesheet;
83 : : fs::path zipdir;
84 : : fs::path outputFile;
85 : : std::string extsource;
86 : : std::string extdestination;
87 : : std::string module;
88 : : std::string lang;
89 : : std::string extensionPath;
90 : : std::string extensionDestination;
91 : : bool bExtensionMode;
92 : : fs::path indexDirName;
93 : : fs::path indexDirParentName;
94 : : IndexerPreProcessor* m_pIndexerPreProcessor;
95 : : void initIndexerPreProcessor();
96 : : void link() throw( HelpProcessingException );
97 : : void addBookmark( DB* dbBase, FILE* pFile_DBHelp, std::string thishid,
98 : : const std::string& fileB, const std::string& anchorB,
99 : : const std::string& jarfileB, const std::string& titleB );
100 : : };
101 : :
102 : : #endif
103 : :
104 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|