Exemplo n.º 1
0
 public override string GetRemoteFile(
     System.Uri url,
     bool ignoreCache)
 {
     return(MyDebugger.logReturn("GetRemoteFile", base.GetRemoteFile(url, ignoreCache)));
 }
Exemplo n.º 2
0
        public override string FindFile(
            string fileName,
            Database database,
            FindFileHint hint)
        {
            if (!MyDebugger.isOverriden("FindFile", fileName))
            {
                return(MyDebugger.logReturn(""));
            }

            // avoid repeated search for unresolvable files
            // file names cannot contain the pipe character "|", that's why we use it
            if (mUnresolved.Contains(fileName + "|" + hint.ToString()))
            {
                return(MyDebugger.logReturn(""));
            }

            // add extension if not already part of the file name
            if (!fileName.Contains("."))
            {
                string extension;
                switch (hint)
                {
                case FindFileHint.CompiledShapeFile:
                    extension = ".shx";
                    break;

                case FindFileHint.TrueTypeFontFile:
                    extension = ".ttf";
                    break;

                case FindFileHint.PatternFile:
                    extension = ".pat";
                    break;

                case FindFileHint.ArxApplication:
                    extension = ".dbx";
                    break;

                case FindFileHint.FontMapFile:
                    extension = ".fmp";
                    break;

                case FindFileHint.XRefDrawing:
                    extension = ".dwg";
                    break;

                // Fall through. These could have
                // various extensions
                case FindFileHint.FontFile:
                case FindFileHint.EmbeddedImageFile:
                default:
                    extension = "";
                    break;
                }

                fileName += extension;
            }

            // add it to the unresolved items if it could not be resolved
            string ret = SearchPath(fileName);

            if (ret == "")
            {
                mUnresolved.Add(fileName + "|" + hint.ToString());
            }

            return(MyDebugger.logReturn(ret));
        }
Exemplo n.º 3
0
 public override string GetPassword(
     string dwgName,
     PasswordOptions options)
 {
     return(MyDebugger.logReturn("GetPassword", base.GetPassword(dwgName, options)));
 }