public ChangeInfoFormatter(FlowDocumentView view, bool addInstallButton, string previousVersion, XDocument doc) { this.previousVersion = previousVersion; this.doc = doc; this.view = view; this.installButton = addInstallButton; }
public TaxReport(FlowDocumentView view, MyMoney money, int fiscalYearStart) { this.fiscalYearStart = fiscalYearStart; this.view = view; SetStartDate(DateTime.Now.Year); this.money = money; }
// Token: 0x0600650D RID: 25869 RVA: 0x001C5B40 File Offset: 0x001C3D40 private static bool DumpFlowDocumentView(XmlTextWriter writer, UIElement element, bool uiElementsOnly) { FlowDocumentView flowDocumentView = element as FlowDocumentView; IScrollInfo scrollInfo = flowDocumentView; if (scrollInfo.ScrollOwner != null) { Size size = new Size(scrollInfo.ExtentWidth, scrollInfo.ExtentHeight); if (DoubleUtil.AreClose(size, element.DesiredSize)) { LayoutDump.DumpSize(writer, "Extent", size); } Point point = new Point(scrollInfo.HorizontalOffset, scrollInfo.VerticalOffset); if (!DoubleUtil.IsZero(point.X) || !DoubleUtil.IsZero(point.Y)) { LayoutDump.DumpPoint(writer, "Offset", point); } } FlowDocumentPage documentPage = flowDocumentView.Document.BottomlessFormatter.DocumentPage; GeneralTransform generalTransform = documentPage.Visual.TransformToAncestor(flowDocumentView); Point point2 = new Point(0.0, 0.0); generalTransform.TryTransform(point2, out point2); if (!DoubleUtil.IsZero(point2.X) && !DoubleUtil.IsZero(point2.Y)) { LayoutDump.DumpPoint(writer, "PagePosition", point2); } LayoutDump.DumpFlowDocumentPage(writer, documentPage); return(false); }
public W2Report(FlowDocumentView view, MyMoney money, IServiceProvider sp) { this.myMoney = money; this.year = DateTime.Now.Year; this.view = view; this.serviceProvider = sp; view.PreviewMouseLeftButtonUp += OnPreviewMouseLeftButtonUp; this.taxCategories = new TaxCategoryCollection(); }
public W2Report(FlowDocumentView view, MyMoney money, IServiceProvider sp, int fiscalYearStart) { this.myMoney = money; this.fiscalYearStart = fiscalYearStart; SetStartDate(DateTime.Now.Year); this.view = view; this.serviceProvider = sp; view.PreviewMouseLeftButtonUp += OnPreviewMouseLeftButtonUp; this.taxCategories = new TaxCategoryCollection(); }
public BudgetReport(FlowDocumentView view, MyMoney money) { this.money = money; if (view != null) { var doc = view.DocumentViewer.Document; doc.Blocks.InsertAfter(doc.Blocks.FirstBlock, new BlockUIContainer(CreateExportReportButton())); } }
public CashFlowReport(FlowDocumentView view, MyMoney money, IServiceProvider sp) { this.myMoney = money; this.year = DateTime.Now.Year; this.month = DateTime.Now.Month; this.byYear = true; this.columnCount = 3; this.view = view; this.serviceProvider = sp; view.PreviewMouseLeftButtonUp += OnPreviewMouseLeftButtonUp; }
// Allocates the initial render scope for this control. internal override FrameworkElement CreateRenderScope() { FlowDocumentView renderScope = new FlowDocumentView(); renderScope.Document = this.Document; // Set a margin so that the BiDi Or Italic caret has room to render at the edges of content. // Otherwise, anti-aliasing or italic causes the caret to be partially clipped. renderScope.Document.PagePadding = new Thickness(CaretElement.CaretPaddingWidth, 0, CaretElement.CaretPaddingWidth, 0); // We want current style to ignore all properties from theme style for renderScope. renderScope.OverridesDefaultStyle = true; return(renderScope); }
// Token: 0x0600650C RID: 25868 RVA: 0x001C5AEC File Offset: 0x001C3CEC private static bool DumpFlowDocumentScrollViewer(XmlTextWriter writer, UIElement element, bool uiElementsOnly) { FlowDocumentScrollViewer flowDocumentScrollViewer = element as FlowDocumentScrollViewer; bool result = false; if (flowDocumentScrollViewer.HorizontalScrollBarVisibility == ScrollBarVisibility.Hidden && flowDocumentScrollViewer.VerticalScrollBarVisibility == ScrollBarVisibility.Hidden && flowDocumentScrollViewer.ScrollViewer != null) { FlowDocumentView flowDocumentView = flowDocumentScrollViewer.ScrollViewer.Content as FlowDocumentView; if (flowDocumentView != null) { LayoutDump.DumpUIElement(writer, flowDocumentView, flowDocumentScrollViewer, uiElementsOnly); result = true; } } return(result); }
public CashFlowReport(FlowDocumentView view, MyMoney money, IServiceProvider sp, int fiscalYearStart) { this.myMoney = money; this.fiscalYearStart = fiscalYearStart; this.startDate = new DateTime(DateTime.Now.Year, 1, 1); this.byYear = true; if (this.fiscalYearStart > 0) { this.startDate = new DateTime(DateTime.Now.Year, this.fiscalYearStart + 1, 1); if (this.startDate > DateTime.Today) { this.startDate = this.startDate.AddYears(-1); } } this.endDate = this.startDate.AddYears(1); this.startDate = this.startDate.AddYears(-4); // show 5 years by default. this.view = view; this.serviceProvider = sp; view.PreviewMouseLeftButtonUp += OnPreviewMouseLeftButtonUp; }
// ------------------------------------------------------------------ // Dump FlowDocumentView specific data. // ------------------------------------------------------------------ private static bool DumpFlowDocumentView(XmlTextWriter writer, UIElement element, bool uiElementsOnly) { FlowDocumentView fdView = element as FlowDocumentView; Debug.Assert(fdView != null, "Dump function has to match element type."); // Dump scrolling information IScrollInfo isi = (IScrollInfo)fdView; if (isi.ScrollOwner != null) { Size extent = new Size(isi.ExtentWidth, isi.ExtentHeight); if (DoubleUtil.AreClose(extent, element.DesiredSize)) { DumpSize(writer, "Extent", extent); } Point offset = new Point(isi.HorizontalOffset, isi.VerticalOffset); if (!DoubleUtil.IsZero(offset.X) || !DoubleUtil.IsZero(offset.Y)) { DumpPoint(writer, "Offset", offset); } } FlowDocumentPage documentPage = fdView.Document.BottomlessFormatter.DocumentPage; // Dump transform relative to its parent GeneralTransform gt = documentPage.Visual.TransformToAncestor(fdView); Point point = new Point(0, 0); gt.TryTransform(point, out point); if (!DoubleUtil.IsZero(point.X) && !DoubleUtil.IsZero(point.Y)) { DumpPoint(writer, "PagePosition", point); } DumpFlowDocumentPage(writer, documentPage); return(false); }
// ------------------------------------------------------------------ // Dump FlowDocumentScrollViewer specific data. // ------------------------------------------------------------------ private static bool DumpFlowDocumentScrollViewer(XmlTextWriter writer, UIElement element, bool uiElementsOnly) { FlowDocumentScrollViewer fdsv = element as FlowDocumentScrollViewer; Debug.Assert(fdsv != null, "Dump function has to match element type."); bool childrenHandled = false; if (fdsv.HorizontalScrollBarVisibility == ScrollBarVisibility.Hidden && fdsv.VerticalScrollBarVisibility == ScrollBarVisibility.Hidden) { FlowDocumentView fdv = null; if (fdsv.ScrollViewer != null) { fdv = fdsv.ScrollViewer.Content as FlowDocumentView; if (fdv != null) { DumpUIElement(writer, fdv, fdsv, uiElementsOnly); childrenHandled = true; } } } return(childrenHandled); }
public FlowDocumentViewClipboardClient(FlowDocumentView f) { this.view = f; }
public TaxReport(FlowDocumentView view, MyMoney money) { this.view = view; this.year = DateTime.Now.Year; this.money = money; }
public BudgetReport(FlowDocumentView view, MyMoney money) { this.money = money; }