1*9f22d7c2SAndrew Rist# ************************************************************* 2*9f22d7c2SAndrew Rist# 3*9f22d7c2SAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*9f22d7c2SAndrew Rist# or more contributor license agreements. See the NOTICE file 5*9f22d7c2SAndrew Rist# distributed with this work for additional information 6*9f22d7c2SAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*9f22d7c2SAndrew Rist# to you under the Apache License, Version 2.0 (the 8*9f22d7c2SAndrew Rist# "License"); you may not use this file except in compliance 9*9f22d7c2SAndrew Rist# with the License. You may obtain a copy of the License at 10*9f22d7c2SAndrew Rist# 11*9f22d7c2SAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*9f22d7c2SAndrew Rist# 13*9f22d7c2SAndrew Rist# Unless required by applicable law or agreed to in writing, 14*9f22d7c2SAndrew Rist# software distributed under the License is distributed on an 15*9f22d7c2SAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*9f22d7c2SAndrew Rist# KIND, either express or implied. See the License for the 17*9f22d7c2SAndrew Rist# specific language governing permissions and limitations 18*9f22d7c2SAndrew Rist# under the License. 19*9f22d7c2SAndrew Rist# 20*9f22d7c2SAndrew Rist# ************************************************************* 21*9f22d7c2SAndrew Rist 22*9f22d7c2SAndrew Rist 23cdf0e10cSrcweir Command Line Options 24cdf0e10cSrcweir -------------------- 25cdf0e10cSrcweir 26cdf0e10cSrcweirautodoc [-v <level>] 27cdf0e10cSrcweir -html <out> 28cdf0e10cSrcweir [-extroot <externroot> -extnsp <externnamespace>] 29cdf0e10cSrcweir -lg <proglang> 30cdf0e10cSrcweir [-t <sourcetree>[ <sourcetree> ...] 31cdf0e10cSrcweir [-d <sourcedir>[ <sourcedir> ...] 32cdf0e10cSrcweir [-f <sourcefile>[ <sourcefile> ...] 33cdf0e10cSrcweir 34cdf0e10cSrcweir 35cdf0e10cSrcweir -html <OutputDirectory> 36cdf0e10cSrcweir Directory where the output will be created. 37cdf0e10cSrcweir 38cdf0e10cSrcweir -lg <ProgrammingLanguage> 39cdf0e10cSrcweir Allowed values: "c++" or "idl" 40cdf0e10cSrcweir 41cdf0e10cSrcweir -extroot <externroot> 42cdf0e10cSrcweir Only together with "-lg idl" and -extnsp. 43cdf0e10cSrcweir Links to code entities not found within the current parsed 44cdf0e10cSrcweir code, will be linked there, but only if -extnsp is given and 45cdf0e10cSrcweir the linked entity is in the given namespace. 46cdf0e10cSrcweir <externroot> is a http link, it needs no "http://" at the 47cdf0e10cSrcweir beginning nor slash at the end. 48cdf0e10cSrcweir 49cdf0e10cSrcweir -extnsp <externnamespace> 50cdf0e10cSrcweir Only together with "-lg idl" and -extroot. 51cdf0e10cSrcweir If a code entity is not found in the current parsed code, but 52cdf0e10cSrcweir dwells in the namespace (or its children) given here, it is 53cdf0e10cSrcweir linked into the loc�tion given by -extroot. 54cdf0e10cSrcweir <externnamespace> is an absolute qualified namespace, 55cdf0e10cSrcweir starting with "::". 56cdf0e10cSrcweir 57cdf0e10cSrcweir -t <SourceTree>* 58cdf0e10cSrcweir Directory with all subdirectories. 59cdf0e10cSrcweir 60cdf0e10cSrcweir -d <SourceDirectory>* 61cdf0e10cSrcweir Directory without subdirectories. 62cdf0e10cSrcweir 63cdf0e10cSrcweir -f <SourceFile>* 64cdf0e10cSrcweir Any file. Here also files with extensions not matching the 65cdf0e10cSrcweir language are accepted. 66cdf0e10cSrcweir 67cdf0e10cSrcweir -I:<ResponseFile> 68cdf0e10cSrcweir Each line in the response file has to have one command line 69cdf0e10cSrcweir option. No whitespace at start of line. 70cdf0e10cSrcweir 71cdf0e10cSrcweir -C:<ConfigurationFile> 72cdf0e10cSrcweir Format see below. 73cdf0e10cSrcweir 74cdf0e10cSrcweir -v <VerboseLevel> 75cdf0e10cSrcweir Only for debugging. Bits 1, 2 and 4 in any combination give 76cdf0e10cSrcweir different output. 77cdf0e10cSrcweir 78cdf0e10cSrcweir -h 79cdf0e10cSrcweir Displays help. 80cdf0e10cSrcweir -? 81cdf0e10cSrcweir Displays help. 82cdf0e10cSrcweir 83cdf0e10cSrcweir 84cdf0e10cSrcweir 85cdf0e10cSrcweir 86cdf0e10cSrcweir 87cdf0e10cSrcweir Command Line Options especially for the OpenOffice.org SDK 88cdf0e10cSrcweir ---------------------------------------------------------- 89cdf0e10cSrcweir 90cdf0e10cSrcweir -dvgroot <DevelopersGuide> 91cdf0e10cSrcweir Root directory of the SDK Developers Guide. 92cdf0e10cSrcweir 93cdf0e10cSrcweir -dvgfile <ReferenceFile> 94cdf0e10cSrcweir File with references to the SDK Developers Guide. 95cdf0e10cSrcweir 96cdf0e10cSrcweir -sincefile <@since-AssociationFile> 97cdf0e10cSrcweir File that maps OpenOffice versions to the wished displayed version names. 98cdf0e10cSrcweir 99cdf0e10cSrcweir -idlref <IdlDocumentationRoot> <Namespace[,Namespace ...]> 100cdf0e10cSrcweir Gives the outputdirectory of an IDL documentation, where 101cdf0e10cSrcweir symbols not found in the currently parsed namespaces of C++ 102cdf0e10cSrcweir or Java can be found. 103cdf0e10cSrcweir 104cdf0e10cSrcweir 105cdf0e10cSrcweir 106cdf0e10cSrcweir Configure File Format 107cdf0e10cSrcweir --------------------- 108cdf0e10cSrcweir 109cdf0e10cSrcweir<AutodocConfiguration> 110cdf0e10cSrcweir <RepositoryName></RepositoryName> 111cdf0e10cSrcweir // Base name of the binary repository files. 112cdf0e10cSrcweir // Has to be a valid file name. 113cdf0e10cSrcweir 114cdf0e10cSrcweir <HtmlOutputTitle></HtmlOutputTitle> 115cdf0e10cSrcweir // Title on the "welcome page" of the created HTML documentation. 116cdf0e10cSrcweir // Can be any text. 117cdf0e10cSrcweir 118cdf0e10cSrcweir <CppExtensions></CppExtensions> 119cdf0e10cSrcweir // Overwrites the default. Default is: .hxx .h .hpp 120cdf0e10cSrcweir // Format: File extensions with a dot in front, like ".hcc". 121cdf0e10cSrcweir 122cdf0e10cSrcweir <IdlExtensions></IdlExtensions> 123cdf0e10cSrcweir // Overwrites the default. Default is: .idl 124cdf0e10cSrcweir // Format: File extensions with a dot in front, like ".txt". 125cdf0e10cSrcweir 126cdf0e10cSrcweir <CppDocu html="(on|off) off"/> 127cdf0e10cSrcweir 128cdf0e10cSrcweir <IdlDocu html="(on|off) on"/> 129cdf0e10cSrcweir 130cdf0e10cSrcweir</AutodocConfiguration> 131cdf0e10cSrcweir 132cdf0e10cSrcweir 133cdf0e10cSrcweir 134cdf0e10cSrcweir 135cdf0e10cSrcweir 136cdf0e10cSrcweir 137cdf0e10cSrcweir Historical Command Line Options 138cdf0e10cSrcweir ------------------------------- 139cdf0e10cSrcweir 140cdf0e10cSrcweirautodoc.exe 141cdf0e10cSrcweir [ -v <VerboseNr> ] 142cdf0e10cSrcweir -html <OutputDirectory> 143cdf0e10cSrcweir { 144cdf0e10cSrcweir [ -parse ] 145cdf0e10cSrcweir [ -name <RepositoryName> ] 146cdf0e10cSrcweir -lg <ProgrammingLanguage> 147cdf0e10cSrcweir { 148cdf0e10cSrcweir [ -p <ProjectName> <ProjectRootDirectory> ] 149cdf0e10cSrcweir { 150cdf0e10cSrcweir -t <SourceDirectory>* 151cdf0e10cSrcweir -d <SourceDirectory>* 152cdf0e10cSrcweir -f <SourceFile>* 153cdf0e10cSrcweir }+ 154cdf0e10cSrcweir }+ 155cdf0e10cSrcweir } 156cdf0e10cSrcweir 157cdf0e10cSrcweirLegend: 158cdf0e10cSrcweir <Text> 159cdf0e10cSrcweir command line parameter 160cdf0e10cSrcweir [ ] 161cdf0e10cSrcweir optional 162cdf0e10cSrcweir { } 163cdf0e10cSrcweir Block of connected options. 164cdf0e10cSrcweir The sequence of not connected options does not matter. So the -html or -v options can be used before or after all the parsing options. 165cdf0e10cSrcweir + 166cdf0e10cSrcweir once or more times 167cdf0e10cSrcweir * 168cdf0e10cSrcweir none or more times 169cdf0e10cSrcweir 170cdf0e10cSrcweir 171cdf0e10cSrcweirExplanation of the Options 172cdf0e10cSrcweir -v <VerboseNr> Only for debugging. Bits 1, 2 and 4 in any combination give different output. 173cdf0e10cSrcweir -html <OutputDirectory> 174cdf0e10cSrcweir Gives the directory, where a HTML version of the docu shall be generated. 175cdf0e10cSrcweir -parse Starts the block, where all the parse options are given. This can be omitted, because the parse options are identifiable without it, but it may make a commandline more readable. 176cdf0e10cSrcweir -name <RepositoryName> This name appears as title of the documentation (currently only in the in the C++ version). 177cdf0e10cSrcweir -lg <ProgrammingLanguage> 178cdf0e10cSrcweir 179cdf0e10cSrcweir 180cdf0e10cSrcweir Possible values are: 181cdf0e10cSrcweir 182cdf0e10cSrcweir c++ 183cdf0e10cSrcweir This parses all files with the endings .hxx and .h . 184cdf0e10cSrcweir idl 185cdf0e10cSrcweir This parses all files with the ending .idl . 186cdf0e10cSrcweir 187cdf0e10cSrcweir -p with -t/-d/-f: If there are more than one project, the -p option is required for each one. 188cdf0e10cSrcweir 189cdf0e10cSrcweir The directory given wit the -p option is the root directory of the project. 190cdf0e10cSrcweir If there is no -p option, the working directory is seen as root. 191cdf0e10cSrcweir 192cdf0e10cSrcweir All paths given with -t/-d/-f are relative to that root directory. It is possible to use "." as argument for -t or -d. 193cdf0e10cSrcweir 194cdf0e10cSrcweir Each of -t/-d/-f can have several arguments: 195cdf0e10cSrcweir One could write "-f file1.hxx file2.hxx file_xyz.hxx" 196cdf0e10cSrcweir After each -p (or after -lg, if there is no -p option), there has to be at least one of the following three: 197cdf0e10cSrcweir -t Tree, which means: include subdirectories 198cdf0e10cSrcweir -d Directory, which means: no subdirectories 199cdf0e10cSrcweir -f File", which means: single file name with ending. 200cdf0e10cSrcweir This option also allows to parse some files with an ending different from those, the -lg option implies. 201cdf0e10cSrcweir 202cdf0e10cSrcweir 203cdf0e10cSrcweir 204