LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/exes/adc_uni - adc_cmds.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 7 9 77.8 %
Date: 2012-12-27 Functions: 3 3 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 ADC_ADC_CMDS_HXX
      21             : #define ADC_ADC_CMDS_HXX
      22             : 
      23             : 
      24             : 
      25             : // USED SERVICES
      26             :     // BASE CLASSES
      27             : #include "adc_cmd.hxx"
      28             :     // COMPONENTS
      29             :     // PARAMETERS
      30             : 
      31             : namespace autodoc
      32             : {
      33             : namespace command
      34             : {
      35             : 
      36             : 
      37             : /** A command that produces HTML output from the Autodoc Repository.
      38             : */
      39             : class CreateHtml : public Command
      40             : {
      41             :   public:
      42             :                         CreateHtml();
      43             :                         ~CreateHtml();
      44             : 
      45             :     const String &      OutputDir() const;
      46           2 :     const String &      DevelopersManual_HtmlRoot() const
      47           2 :                                                 { return sDevelopersManual_HtmlRoot; }
      48             : 
      49             :   private:
      50             :     // Interface Context:
      51             :     virtual void        do_Init(
      52             :                             opt_iter &          i_nCurArgsBegin,
      53             :                             opt_iter            i_nEndOfAllArgs );
      54             :     // Interface Command:
      55             :     virtual bool        do_Run() const;
      56             :     virtual int         inq_RunningRank() const;
      57             : 
      58             :     // Locals
      59             :     void                run_Idl() const;
      60             : 
      61             :     // DATA
      62             :     String              sOutputRootDirectory;
      63             :     String              sDevelopersManual_HtmlRoot;
      64             : };
      65             : 
      66             : inline const String &
      67           1 : CreateHtml::OutputDir() const
      68           1 :     { return sOutputRootDirectory; }
      69             : 
      70             : 
      71             : extern const String C_opt_Verbose;
      72             : 
      73             : extern const String C_opt_Parse;
      74             : extern const String C_opt_Name;
      75             : extern const String C_opt_LangAll;
      76             : extern const String C_opt_ExtensionsAll;
      77             : extern const String C_opt_DevmanFile;
      78             : extern const String C_opt_SinceFile;
      79             : 
      80             : extern const String C_arg_Idl;
      81             : 
      82             : extern const String C_opt_Project;
      83             : //extern const String C_opt_Lang;
      84             : //extern const String C_opt_Extensions;
      85             : extern const String C_opt_SourceTree;
      86             : extern const String C_opt_SourceDir;
      87             : extern const String C_opt_SourceFile;
      88             : 
      89             : extern const String C_opt_CreateHtml;
      90             : extern const String C_opt_DevmanRoot;
      91             : 
      92             : //extern const String C_opt_CreateXml;
      93             : //extern const String C_opt_Load;
      94             : //extern const String C_opt_Save;
      95             : 
      96             : extern const String C_opt_ExternNamespace;
      97             : extern const String C_opt_ExternRoot;
      98             : 
      99             : 
     100             : inline void
     101           5 : CHECKOPT( bool b, const char * miss, const String & opt )
     102             : {
     103           5 :     if ( NOT b )
     104             :     {
     105           0 :         StreamLock slMsg(100);
     106           0 :         throw X_CommandLine( slMsg() << "Missing " << miss <<" after " << opt << "." << c_str );
     107             :     }
     108           5 : }
     109             : 
     110             : }   // namespace command
     111             : }   // namespace autodoc
     112             : 
     113             : 
     114             : #endif
     115             : 
     116             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10