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