/// <summary> /// Overrides the GetBaseStyle() to include an overflow action of none - default for a page /// </summary> /// <returns></returns> protected override Style GetBaseStyle() { Scryber.Styles.Style flat = base.GetBaseStyle(); flat.Overflow.Action = OverflowAction.None; return(flat); }
/// <summary> /// Overrides the base behaviour to add the overflow action of new page to this elements style. /// </summary> /// <returns></returns> protected override Scryber.Styles.Style GetBaseStyle() { Scryber.Styles.Style flat = base.GetBaseStyle(); flat.Overflow.Action = Scryber.Drawing.OverflowAction.NewPage; return(flat); }
public PDFAnnotationLinkEntry(Component component, Styles.Style style) { this.Component = component; if (null == component) { throw new ArgumentNullException("compontent"); } this.AnnotationStyle = style; }
public void SetAppearance(FormFieldAppearanceState state, Layout.PDFLayoutXObject xObject, Layout.PDFLayoutPage page, Styles.Style style) { this._states[state] = xObject; if (state == FormFieldAppearanceState.Normal) { this._style = style; } this._page = page; }
/// <summary> /// Pushes either an existing known group with the specified name, or a new one (remembering it if there is a name) onto the current Numbering stack /// </summary> /// <param name="name">The name of the group to retireve or create</param> /// <param name="liststyle"></param> public void PushGroup(string name, Styles.Style liststyle) { PDFListNumberGroup grp; if (string.IsNullOrEmpty(name) || this.TryGetNamedGroup(name, out grp) == false) { int startindex = 1; ListNumberingGroupStyle style = liststyle.GetValue(StyleKeys.ListNumberStyleKey, ListNumberingGroupStyle.Decimals); string prefix = liststyle.GetValue(StyleKeys.ListPrefixKey, String.Empty); string postfix = liststyle.GetValue(StyleKeys.ListPostfixKey, String.Empty); bool concat = liststyle.GetValue(StyleKeys.ListConcatKey, false); grp = new PDFListNumberGroup(name, startindex, style, prefix, postfix, concat); if (!string.IsNullOrEmpty(name)) { _namedGroups.Add(grp); } } this._currentGroups.Add(grp); }
// // .ctor // public PDFRenderContext(DrawingOrigin origin, int pageCount, PDFOutputFormatting format, Styles.Style root, PDFItemCollection items, PDFTraceLog log, PDFPerformanceMonitor perfmon, IPDFDocument document) : this(origin,pageCount,format, new Scryber.Styles.StyleStack(root), items, log, perfmon, document) { }