예제 #1
0
        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;
        }
예제 #2
0
 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;
 }
예제 #3
0
        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;
        }
예제 #4
0
 public void ClearCaches()
 {
     m_formatted.Clear();
     m_songFormatOptions = null;
     m_bookFormatOptions = null;
     m_pageDrawOptions = null;
     m_fbook = null;
 }
예제 #5
0
 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;
 }
예제 #6
0
 protected LabelablePane(SongFormatOptions options, float x0, string label)
     : base(options)
 {
     m_x0 = x0;
     m_label = label;
 }
예제 #7
0
 public LabelLinePane(SongFormatOptions options, string label)
     : base(options)
 {
     m_label = label;
 }
예제 #8
0
 public ParagraphSeparatorPane(SongFormatOptions options)
     : base(options)
 {
 }
예제 #9
0
 public SongFormatPane(SongFormatOptions options)
     : base(options)
 {
 }
예제 #10
0
 public SongFormatter(string text, SongFormatOptions options)
 {
     m_panegrp = new PaneGrp();
     m_text = text;
     m_options = options;
 }
예제 #11
0
 public ChordLinePane(string text, SongFormatOptions options, float x0, string label)
     : base(options, x0, label)
 {
     m_text = text;
 }