using Consulenza.ReportWriter.Business.Entity; namespace Consulenza.ReportWriter.Business.OBJ_PDF { public class PagePDF : ObjectPDF { /// /// Template associato al tipo di pagina da stampare. /// public enum PagePDFType { Generic, Cover } public ceTe.DynamicPDF.PageElement BaseElement { get; set; } private PagePDFType _type = PagePDFType.Generic; //private bool _injectionPage; /// /// Imposta o recupera il Template associato al tipo di pagina da stampare. /// public PagePDFType Type { get { return _type; } set { _type = value; } } ///// ///// ///// //public bool InjectionPage //{ // get { return _injectionPage; } // set { _injectionPage = value; } //} /// /// Costruttore. /// public PagePDF() { //_injectionPage = false; ObjectType = ObjectTypePdf.PAGE; } ///// ///// Costruttore. ///// Persiste il valore del parametro che attesta lo stato di nuova pagina aggiunta in maniera preprogrammata (non dipendente ///// dalla successione degli elementi già accodati alla collezione di rendering). ///// ///// //public PagePDF(bool injectionPage) //{ // //_injectionPage = injectionPage; // ObjectType = ObjectTypePdf.PAGE; //} /// /// Costruttore. /// Se non specificato il TypePagePDF viene associato un template di tipo GENERIC. /// /// Template associato al tipo di pagina da stampare public PagePDF(PagePDFType type) { //_injectionPage = false; ObjectType = ObjectTypePdf.PAGE; _type = type; } /// /// Ritorna l'oggetto che sarà stampato sulla pagina. /// /// public override ceTe.DynamicPDF.PageElement ToElement() { return BaseElement; } } }