Example #1
0
 public void SetBookStyle(string newstyle)
 {
     BookStyle style = BookStyle.LoadBookStyle(newstyle);
     Layout = style.Layout;
     Fonts = style.Fonts;
     Formatting = style.Formatting;
     this.OutlineProperties = style.OutlineProperties;
     PrintTarget = m_printTarget;
 }
Example #2
0
 public SongBookPrinter(SongBook book, PrinterSettings settings)
 {
     m_book = book;
     m_settings = settings;
     m_lastTarget = m_book.PrintTarget;
     if (book.Layout.Orientation == PageOrientation.Landscape)
     {
         m_settings.DefaultPageSettings.Landscape = true;
     }
 }
Example #3
0
 public void SetPrintTarget(IPrintTarget value, bool dispose)
 {
     if (dispose && m_printTarget != null) m_printTarget.Dispose();
     m_printTarget = value;
     Layout.Target = value;
     ClearCaches();
     if (BookChanged != null) BookChanged(this, new EventArgs());
 }
 public BoardPrinter(IPrintTarget printTarget)
 {
     _printTarget = printTarget;
 }