public BookFormatOptions(float pgwi, XGraphics infoContext, SongBookFonts fonts, SongBookFormatting formatting, SongFormatOptions songOptions, float mmky) : base(pgwi, infoContext, fonts.TitleFont, fonts.AuthorFont, songOptions, mmky) { PrintSeparatorLines = formatting.PrintSongDividers; SongSpaceHeight = formatting.SongSpaceHeight * SongOptions.TextHeight / 100; }
public static SongPrintFormatOptions CreateSongPrintFormatOptions(float pgwi, XGraphics infoContext, float mmky) { SongPrintPropertyPage pg = GlobalOpts.Default.SongPrint; SongFormatOptions sopt = new SongFormatOptions(pgwi, infoContext, pg.TextFont, pg.ChordFont, pg.LabelFont, mmky); SongPrintFormatOptions res = new SongPrintFormatOptions(pgwi, infoContext, pg.TitleFont, pg.AuthorFont, sopt, mmky); return res; }
public SongPrintFormatOptions(float pgwi, XGraphics infoContext, PersistentFont titleFont, PersistentFont authorFont, SongFormatOptions songOptions, float mmky) : base(pgwi, infoContext) { SongOptions = songOptions; ConvertFont(titleFont, out TitleFont, out TitleColor, mmky); ConvertFont(authorFont, out AuthorFont, out AuthorColor, mmky); TitleHeight = (float)InfoContext.MeasureString("M", TitleFont).Height; AuthorHeight = (float)InfoContext.MeasureString("M", AuthorFont).Height; HeaderHeight = TitleHeight + AuthorHeight; }
public void ClearCaches() { m_formatted.Clear(); m_songFormatOptions = null; m_bookFormatOptions = null; m_pageDrawOptions = null; m_fbook = null; }
public static SongFormatOptions CreateSongViewFormatOptions(float pgwi) { SongViewPropertyPage pg = GlobalOpts.Default.SongView; SongFormatOptions res = new SongFormatOptions(pgwi, PdfPrintTarget.InfoContext, pg.TextFont, pg.ChordFont, pg.LabelFont, PdfPrintTarget.getmmky() * 96f / 72f); return res; }
protected LabelablePane(SongFormatOptions options, float x0, string label) : base(options) { m_x0 = x0; m_label = label; }
public LabelLinePane(SongFormatOptions options, string label) : base(options) { m_label = label; }
public ParagraphSeparatorPane(SongFormatOptions options) : base(options) { }
public SongFormatPane(SongFormatOptions options) : base(options) { }
public SongFormatter(string text, SongFormatOptions options) { m_panegrp = new PaneGrp(); m_text = text; m_options = options; }
public ChordLinePane(string text, SongFormatOptions options, float x0, string label) : base(options, x0, label) { m_text = text; }