Esempio n. 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();
 }
Esempio n. 2
0
 public Document(DocTemplate doct, string strFile)
 {
     m_doct = doct;
     SetPath(strFile);
     m_fModified = false;
     m_fIniting = true;
     m_cOpen = 0;
 }
Esempio n. 3
0
 public static void AddTemplate(DocTemplate doct)
 {
     s_alsTemplates.Add(doct);
 }
Esempio n. 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();
 }
Esempio n. 6
0
 public static void RemoveTemplate(DocTemplate doct)
 {
     s_alsTemplates.Remove(doct);
 }
Esempio n. 7
0
 public static void AddTemplate(DocTemplate doct)
 {
     s_alsTemplates.Add(doct);
 }
Esempio n. 8
0
        public static void SetActiveDocument(Type typeDoc, Document doc)
        {
            DocTemplate doct = FindDocTemplate(typeDoc);

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

            return(doct.GetActiveDocument());
        }