private void Format() { if (m_book == null) { m_fbook = null; } else { m_fbook = m_book.Book; } if (m_fbook != null) { previewFrame1.mmky = m_book.PrintTarget.mmky; previewFrame1.Source = m_fbook.GetPreview(); previewFrame2.mmky = m_book.PrintTarget.mmky; previewFrame2.Source = m_fbook.GetLogicalPreview(); } else { previewFrame1.Source = null; previewFrame2.Source = null; } if (ChangedPageInfo != null) ChangedPageInfo(this, new EventArgs()); }
public void ClearCaches() { m_formatted.Clear(); m_songFormatOptions = null; m_bookFormatOptions = null; m_pageDrawOptions = null; m_fbook = null; }
public void DispatchBookChanged() { m_fbook = null; if (BookChanged != null) BookChanged(this, EventArgs.Empty); }
public NormalPreviewSource(FormattedBook book, PageDrawOptions opts) { m_book = book; m_opts = opts; }
public PolyLogPagePreview(FormattedBook book, PageDrawOptions opts, int skipCount, int groupSize) { m_book = book; m_opts = opts; m_skipCount = skipCount; m_groupSize = groupSize; m_smallWidth = m_book.Layout.SmallPageWidth + m_book.Layout.DistLeftMM + m_book.Layout.DistRightMM; m_smallHeight = m_book.Layout.SmallPageHeight + m_book.Layout.DistTopMM + m_book.Layout.DistBottomMM; }