public DocumentFormat(string name, DocumentFamily family, string mimeType, string extension) { _name = name; _family = family; _mimeType = mimeType; _fileExtension = extension; }
public static DocumentFamily GetFamily(string name) { DocumentFamily family = (DocumentFamily)Families[name]; if (family == null) { throw new ArgumentException("invalid DocumentFamily: " + name); } return(family); }
public virtual IDictionary GetExportOptions(DocumentFamily family) //<String,Object> { IDictionary options = (IDictionary)_exportOptions[family]; //<String,Object> if (options == null) { options = new Hashtable(); _exportOptions[family] = options; } return(options); }
public virtual void SetExportOption(DocumentFamily family, string name, object value) { IDictionary options = (IDictionary)_exportOptions[family]; //<String,Object> if (options == null) { options = new Hashtable(); _exportOptions[family] = options; } options[name] = value; }
public virtual bool IsExportableFrom(DocumentFamily family) { return(GetExportFilter(family) != null); }
private string GetExportFilter(DocumentFamily family) { return((string)GetExportOptions(family)[FilterName]); }
public virtual void SetExportFilter(DocumentFamily family, string filter) { GetExportOptions(family)[FilterName] = filter; }