1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_HELPCOMPILER_INC_HELPLINKER_HXX
21 #define INCLUDED_HELPCOMPILER_INC_HELPLINKER_HXX
23 #include <helpcompiler/dllapi.h>
24 #include <libxslt/transform.h>
30 class L10N_DLLPUBLIC IndexerPreProcessor
33 std::string m_aModuleName
;
34 fs::path m_fsIndexBaseDir
;
35 fs::path m_fsCaptionFilesDirName
;
36 fs::path m_fsContentFilesDirName
;
38 xsltStylesheetPtr m_xsltStylesheetPtrCaption
;
39 xsltStylesheetPtr m_xsltStylesheetPtrContent
;
42 IndexerPreProcessor( const std::string
& aModuleName
, const fs::path
& fsIndexBaseDir
,
43 const fs::path
& idxCaptionStylesheet
, const fs::path
& idxContentStylesheet
);
44 ~IndexerPreProcessor();
46 void processDocument( xmlDocPtr doc
, const std::string
& EncodedDocPath
);
49 class L10N_DLLPUBLIC HelpLinker
52 void main(std::vector
<std::string
> &args
,
53 std::string
* pExtensionPath
= NULL
,
54 std::string
* pDestination
= NULL
,
55 const OUString
* pOfficeHelpPath
= NULL
)
56 throw( HelpProcessingException
);
59 : bExtensionMode(false)
60 , m_pIndexerPreProcessor(NULL
)
61 , m_bUseLangRoot(true)
62 , m_bCreateIndex(true)
66 delete m_pIndexerPreProcessor
;
70 Stringtable additionalFiles
;
73 fs::path compactStylesheet
;
74 fs::path embeddStylesheet
;
75 fs::path idxCaptionStylesheet
;
76 fs::path idxContentStylesheet
;
79 std::string extsource
;
80 std::string extdestination
;
83 std::string extensionPath
;
84 std::string extensionDestination
;
86 fs::path indexDirName
;
87 fs::path indexDirParentName
;
88 IndexerPreProcessor
* m_pIndexerPreProcessor
;
91 void initIndexerPreProcessor();
92 void link() throw(HelpProcessingException
, BasicCodeTagger::TaggerException
);
93 static void addBookmark( FILE* pFile_DBHelp
, std::string thishid
,
94 const std::string
& fileB
, const std::string
& anchorB
,
95 const std::string
& jarfileB
, const std::string
& titleB
);
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */