UI\MobileControls\Adapters\HtmlMobileTextWriter.cs (17)
139public override void EnterLayout(Style style)
147public override void ExitLayout(Style style, bool breakAfter)
153public override void ExitLayout(Style style)
173public override void EnterFormat(Style style)
181public override void ExitFormat(Style style)
187public override void ExitFormat(Style style, bool breakAfter)
224public new void EnterStyle(Style style)
230public new void ExitStyle(Style style)
252public void ExitStyle(Style style, bool breakAfter)
517internal WriterStyle(Style style)
520_alignment = (Alignment) style[Style.AlignmentKey, true];
525_wrapping = (Wrapping) style[Style.WrappingKey, true];
531_fontSize = (FontSize) style[Style.FontSizeKey , true];
536_fontName = (String) style[Style.FontNameKey , true];
537_fontColor = (Color) style[Style.ForeColorKey, true];
539_bold = ((BooleanOption) style[Style.BoldKey, true] == BooleanOption.True);
540_italic = ((BooleanOption) style[Style.ItalicKey, true] == BooleanOption.True);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (10)
91Style style,
135protected virtual void RenderBeginLink(XhtmlMobileTextWriter writer, String target, String accessKey, Style style, String cssClass) {
141protected virtual void RenderBeginLink(XhtmlMobileTextWriter writer, String target, String accessKey, Style style, String cssClass, String title) {
308protected virtual void ConditionalEnterStyle(XhtmlMobileTextWriter writer, Style style) {
313protected virtual void ConditionalEnterStyle(XhtmlMobileTextWriter writer, Style style, String tag) {
332protected virtual void ConditionalExitStyle(XhtmlMobileTextWriter writer, Style style) {
344protected virtual void ConditionalEnterFormat(XhtmlMobileTextWriter writer, Style style) {
356protected virtual void ConditionalExitFormat(XhtmlMobileTextWriter writer, Style style) {
368protected virtual void ConditionalEnterLayout(XhtmlMobileTextWriter writer, Style style) {
380protected virtual void ConditionalExitLayout(XhtmlMobileTextWriter writer, Style style) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (15)
36private static readonly Style _defaultStyle = new Style ();
245public override void EnterFormat(Style style) {
251public override void EnterLayout (Style style) {
261public new void EnterStyle (Style style) {
277internal void EnterStyle(Style style, String styleTag) {
301internal void EnterStyleInternal (Style style, String styleTag, StyleFilter filter) {
342internal void EnterStyleInternal (Style style, String styleTag, StyleFilter filter, NameValueCollection additionalAttributes) {
347public override void ExitFormat (Style style) {
352public override void ExitFormat (Style style, bool breakafter) {
361public override void ExitLayout (Style style) {
366public override void ExitLayout (Style style, bool breakafter) {
375public new void ExitStyle (Style style) {
388internal String GetCssFormatClassName(Style style) {
517public virtual void SetBodyStyle (Style style) {
825internal StylePair (String styleTag, Style style, StyleFilter filter) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlStyleClass.cs (38)
31private Style _controlStyle;
34public XhtmlStyleClass (Style source, StyleFilter filter) {
35_controlStyle = (Style) source.Clone();
75internal virtual Style Style{
99Wrapping styleWrapping = (Wrapping) _controlStyle [Style.WrappingKey, true /* inherit */];
110Alignment styleAlignment = (Alignment) _controlStyle [Style.AlignmentKey, true /* inherit */];
120Color styleColor = (Color) _controlStyle [Style.BackColorKey, true /* inherit */];
130Color styleColor = (Color) _controlStyle [Style.ForeColorKey, true /* inherit */];
140if ((BooleanOption) _controlStyle [Style.ItalicKey, true /* inherit */] == BooleanOption.True) {
143else if ((BooleanOption) _controlStyle [Style.ItalicKey, true /* inherit */] == BooleanOption.False) {
152if ((BooleanOption) _controlStyle[Style.BoldKey, true /* inherit */] == BooleanOption.True) {
155else if ((BooleanOption) _controlStyle[Style.BoldKey, true /* inherit */] == BooleanOption.False) {
164if ((String) _controlStyle[Style.FontNameKey, true /* inherit */] != (String) XhtmlConstants.DefaultStyle [Style.FontNameKey, false /* do not inherit */]) {
165classBuilder.Append ("font-family: " + _controlStyle[Style.FontNameKey, true /* inherit */].ToString () + ";\r\n");
174switch ((FontSize)_controlStyle[Style.FontSizeKey, true /* inherit */]) {
191public virtual StyleFilter GetFilter (Style style) {
205protected virtual StyleFilter GetFilterInternal (Style style) {
208if ((BooleanOption)_controlStyle [Style.BoldKey, true] != (BooleanOption)style [Style.BoldKey, true]) {
211if ((BooleanOption)_controlStyle [Style.ItalicKey, true] != (BooleanOption)style [Style.ItalicKey, true]) {
214if ((String)_controlStyle [Style.FontNameKey, true] != (String)style [Style.FontNameKey, true]) {
217if ((FontSize)_controlStyle [Style.FontSizeKey, true] != (FontSize)style [Style.FontSizeKey, true]) {
220if ((Color)_controlStyle [Style.BackColorKey, true] != (Color)style [Style.BackColorKey, true]) {// value comparison
223if ((Color)_controlStyle [Style.ForeColorKey, true] != (Color)style [Style.ForeColorKey, true]) {// value comparison
227if ((Alignment)_controlStyle [Style.AlignmentKey, true] != (Alignment)style [Style.AlignmentKey, true]) {
230if ((Wrapping)_controlStyle [Style.WrappingKey, true] != (Wrapping)style [Style.WrappingKey, true]) {
243public XhtmlFormatStyleClass (Style source, StyleFilter filter) : base (source, filter){
251public override StyleFilter GetFilter (Style style) {
268public XhtmlLayoutStyleClass (Style source, StyleFilter filter) : base (source, filter){
276public override StyleFilter GetFilter (Style style) {
UI\MobileControls\Design\Adapters\DesignerTextWriter.cs (16)
59Style style)
61Alignment alignment = (Alignment) style[Style.AlignmentKey, true];
62Wrapping wrapping = (Wrapping) style[Style.WrappingKey, true];
63Color backColor = (Color) style[Style.BackColorKey, true];
97internal void WriteStyleAttribute(Style style)
102internal void WriteStyleAttribute(Style style, String additionalStyle)
110bool bold = (BooleanOption)style[Style.BoldKey, true] == BooleanOption.True;
111bool italic = (BooleanOption)style[Style.ItalicKey, true] == BooleanOption.True;
112FontSize fontSize = (FontSize) style[Style.FontSizeKey , true];
113String fontName = (String) style[Style.FontNameKey , true];
114Color foreColor = (Color) style[Style.ForeColorKey, true];
115Color backColor = (Color) style[Style.BackColorKey, true];
170internal void WriteCssStyleText(Style style,
184public override void EnterLayout(Style style)
204public override void ExitLayout(Style style, bool breakAfter)
224public override void ExitLayout(Style style)