//! \brief ctor
 public CManager(Microsoft.VisualStudio.Shell.Package package, DTE2 applicationObject)
 {
     _doxManger              = this;
     this._package           = package;
     this._applicationObject = applicationObject;
     this._options           = new COptions(package);
 }
Exemple #2
0
        /// \brief ctor
        public CDotGraphImage(CPreviewImageCollection collection, COptions options, bool is_file, string file_path_or_sourceCode) : base(collection, options)
        {
            this.sourceIsFile_ = is_file;

            // generate new temporary source file name and path
            this.tempSourcePath_ = CManager.DoxExtTempPath;
            if (this.sourceIsFile_)
            {
                this.tempSourceFileName_ = "";
                this.tempSourceFilePath_ = file_path_or_sourceCode;
            }
            else
            {
                this.TempFilePath(tempSourcePath_, this.TempName, "dot", out this.tempSourceFileName_, out this.tempSourceFilePath_);
            }

            // generate new temporary preview file path and path
            this.previewCachePath_ = CManager.DoxExtTempPath;
            this.TempFilePath(this.previewCachePath_, this.TempName, this.previewFileExt_, out this.previewFileName_, out this.previewFilePath_);

            // generate temporary process batch file
            string dummyName;

            this.TempFilePath(this.previewCachePath_, this.TempName, "bat", out dummyName, out this.processFilePath_);

            // generate preview image from source code
            Convert(this.sourceIsFile_ ? "" : file_path_or_sourceCode);
        }
        /// \brief ctor
        public CPreviewImageBase(CPreviewImageCollection collection, COptions options)
        {
            this.Collection = collection;
            this.Options    = options;

            // generate new temporary file name
            this.TempName = collection.NewTempPreviewFileName();
        }
        /// \brief ctor
        public CPlantUMLImage(CPreviewImageCollection collection, COptions options, string sourceCode) : base(collection, options)
        {
            // generate new temporary source file name and path
            this.tempSourcePath_ = this.Options.UmlPaths.Count > 0 ? this.Options.UmlPaths[0] : this.Options.DoxRootPath;
            this.TempFilePath(tempSourcePath_, this.TempName, "plantuml", out this.tempSourceFileName_, out this.tempSourceFilePath_);

            // generate new temporary preview file path and path
            previewCachePath_ = CManager.DoxExtTempPath;
            this.TempFilePath(this.previewCachePath_, this.TempName, this.previewFileExt_, out this.previewFileName_, out this.previewFilePath_);

            // generate preview image from source code
            Convert(sourceCode);
        }
        public void Update()
        {
            if (this._options == null)
            {
                this._options = new COptions(Package);
            }


            // read and interprets current solution form application obejct
            UpdateConfigFile();

            // update options if doxygen configuration file has changed
            this._options.UpdateConfiguration();

            // update cache if doxygen source has changed
            this.UpdateURL(this._options.CurrentSourceBrowser);
            this.UpdateLocalHtml(this.Options.LocalHTMLPath);
            this.UpdateFilePaths(ref Cache.imageFileMap_, Options.ImagePaths);
            this.UpdateFilePaths(ref Cache.dotFileMap_, Options.DotPaths);
            this.UpdateFilePaths(ref Cache.mscFileMap_, Options.MscPaths);
            this.UpdateFilePaths(ref Cache.diaFileMap_, Options.DiaPaths);
        }
        /// \brief ctor
        public CLatexFormulaImage(CPreviewImageCollection collection, COptions options, bool is_file, string file_path_or_formula) : base(collection, options)
        {
            this.sourceIsFile_ = is_file;

            // generate new temporary source file name and path
            this.tempSourcePath_ = CManager.DoxExtTempPath;
            if (this.sourceIsFile_)
            {
                this.tempSourceFileName_ = "";
                this.tempSourceFilePath_ = file_path_or_formula;
            }
            else
            {
                this.TempFilePath(tempSourcePath_, this.TempName, "latexf", out this.tempSourceFileName_, out this.tempSourceFilePath_);
            }

            // generate new temporary preview file path and path
            this.previewCachePath_ = CManager.DoxExtTempPath;
            this.TempFilePath(this.previewCachePath_, this.TempName, this.previewFileExt_, out this.previewFileName_, out this.previewFilePath_);

            // generate preview image from source code
            Convert(this.sourceIsFile_ ? "" : file_path_or_formula);
        }