LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/helpcompiler - HelpLinker.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 5 5 100.0 %
Date: 2012-12-27 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      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 .
      18             :  */
      19             : 
      20             : #ifndef HELPLINKER_HXX
      21             : #define HELPLINKER_HXX
      22             : 
      23             : #include <helpcompiler/dllapi.h>
      24             : #include <libxslt/transform.h>
      25             : 
      26             : #ifdef AIX
      27             : #    undef _THREAD_SAFE
      28             : #endif
      29             : 
      30             : class L10N_DLLPUBLIC IndexerPreProcessor
      31             : {
      32             : private:
      33             :     std::string       m_aModuleName;
      34             :     fs::path          m_fsIndexBaseDir;
      35             :     fs::path          m_fsCaptionFilesDirName;
      36             :     fs::path          m_fsContentFilesDirName;
      37             : 
      38             :     xsltStylesheetPtr m_xsltStylesheetPtrCaption;
      39             :     xsltStylesheetPtr m_xsltStylesheetPtrContent;
      40             : 
      41             : public:
      42             :     IndexerPreProcessor( const std::string& aModuleName, const fs::path& fsIndexBaseDir,
      43             :          const fs::path& idxCaptionStylesheet, const fs::path& idxContentStylesheet );
      44             :     ~IndexerPreProcessor();
      45             : 
      46             :     void processDocument( xmlDocPtr doc, const std::string& EncodedDocPath );
      47             : };
      48             : 
      49             : class L10N_DLLPUBLIC HelpLinker
      50             : {
      51             : public:
      52             :     void main(std::vector<std::string> &args,
      53             :               std::string* pExtensionPath = NULL,
      54             :               std::string* pDestination = NULL,
      55             :               const rtl::OUString* pOfficeHelpPath = NULL )
      56             : 
      57             :             throw( HelpProcessingException );
      58             : 
      59           9 :     HelpLinker()
      60           9 :         : m_pIndexerPreProcessor(NULL)
      61           9 :     {}
      62           9 :     ~HelpLinker()
      63           9 :         { delete m_pIndexerPreProcessor; }
      64             : 
      65             : private:
      66             :     Stringtable additionalFiles;
      67             :     HashSet helpFiles;
      68             :     fs::path sourceRoot;
      69             :     fs::path embeddStylesheet;
      70             :     fs::path idxCaptionStylesheet;
      71             :     fs::path idxContentStylesheet;
      72             :     fs::path zipdir;
      73             :     fs::path outputFile;
      74             :     std::string extsource;
      75             :     std::string extdestination;
      76             :     std::string module;
      77             :     std::string lang;
      78             :     std::string extensionPath;
      79             :     std::string extensionDestination;
      80             :     bool bExtensionMode;
      81             :     fs::path indexDirName;
      82             :     fs::path indexDirParentName;
      83             :     IndexerPreProcessor* m_pIndexerPreProcessor;
      84             :     void initIndexerPreProcessor();
      85             :     void link() throw( HelpProcessingException );
      86             :     void addBookmark( FILE* pFile_DBHelp, std::string thishid,
      87             :         const std::string& fileB, const std::string& anchorB,
      88             :         const std::string& jarfileB, const std::string& titleB );
      89             : };
      90             : 
      91             : #endif
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10