示例#1
0
 public LevelDoc(DocTemplate doct, string strFile, Object aobj)
     : base(doct, strFile)
 {
     m_strTitle = m_doct.GetString(DocTemplate.Strings.NewFileName);
     SetTemplateDoc((TemplateDoc)DocManager.GetActiveDocument(typeof(TemplateDoc)));
     InitCommon();
 }
示例#2
0
 public Document(DocTemplate doct, string strFile)
 {
     m_doct = doct;
     SetPath(strFile);
     m_fModified = false;
     m_fIniting = true;
     m_cOpen = 0;
 }
示例#3
0
 public static void AddTemplate(DocTemplate doct)
 {
     s_alsTemplates.Add(doct);
 }
示例#4
0
 public static void RemoveTemplate(DocTemplate doct)
 {
     s_alsTemplates.Remove(doct);
 }
 public TemplateDoc(DocTemplate doct, string strFile, Object[] aobj)
     : base(doct, strFile)
 {
     if (aobj != null) {
         m_sizTile = (Size)aobj[0];
     } else {
         m_sizTile = AskTileSize();
     }
     m_doct = (TemplateDocTemplate)doct;
     InitCommon();
 }
示例#6
0
 public static void RemoveTemplate(DocTemplate doct)
 {
     s_alsTemplates.Remove(doct);
 }
示例#7
0
 public static void AddTemplate(DocTemplate doct)
 {
     s_alsTemplates.Add(doct);
 }
示例#8
0
        public static void SetActiveDocument(Type typeDoc, Document doc)
        {
            DocTemplate doct = FindDocTemplate(typeDoc);

            doct.SetActiveDocument(doc);
        }
示例#9
0
        public static Document GetActiveDocument(Type typeDoc)
        {
            DocTemplate doct = FindDocTemplate(typeDoc);

            return(doct.GetActiveDocument());
        }