コード例 #1
0
        public DocBuilder(SDProject sdProject, WordStrings wordStrings, string docLanguage, string outputPath)
        {
            _sdProject = sdProject;
            _wordStrings = wordStrings;
            _docLanguage = docLanguage;
            _outputPath = outputPath;

            _templatePath = Helper.EnsureCopy(
                                Path.Combine(Path.GetDirectoryName(GetType().Assembly.Location), "templates", "sharpDox.docx"),
                                Path.Combine(outputPath, "tmp"));
            _wordTemplater = new WordTemplater(_templatePath);

            _apiBuilder = new ApiBuilder(_wordTemplater, _sdProject, _wordStrings, _docLanguage, outputPath);
            _articleBuilder = new ArticleBuilder(_wordTemplater, _sdProject, _apiBuilder);
        }
コード例 #2
0
 public ArticleBuilder(WordTemplater wordTemplater, SDProject sdProject, ApiBuilder apiBuilder)
 {
     _wordTemplater = wordTemplater;
     _sdProject     = sdProject;
     _apiBuilder    = apiBuilder;
 }
コード例 #3
0
 public ArticleBuilder(WordTemplater wordTemplater, SDProject sdProject, ApiBuilder apiBuilder)
 {
     _wordTemplater = wordTemplater;
     _sdProject = sdProject;
     _apiBuilder = apiBuilder;
 }