1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735
|
//------------------------------------------------------------------------------
// <copyright file="Html32TextWriter.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.Web.UI {
using System;
using System.Collections;
using System.IO;
using System.Text;
using System.Globalization;
using System.Web.UI.WebControls; //
using System.Security.Permissions;
using System.Web.Util;
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public class Html32TextWriter : HtmlTextWriter {
private const int NOTHING = 0x0000;
private const int FONT_AROUND_CONTENT = 0x0001;
private const int FONT_AROUND_TAG = 0x0002;
private const int TABLE_ATTRIBUTES = 0x0004;
private const int TABLE_AROUND_CONTENT = 0x0008;
private const int FONT_PROPAGATE = 0x0010;
private const int FONT_CONSUME = 0x0020;
private const int SUPPORTS_HEIGHT_WIDTH = 0x0040;
private const int SUPPORTS_BORDER = 0x0080;
private const int SUPPORTS_NOWRAP = 0x0100;
private StringBuilder _afterContent;
private StringBuilder _afterTag;
private StringBuilder _beforeContent;
private StringBuilder _beforeTag;
private string _fontColor;
private string _fontFace;
private string _fontSize;
//
private Stack _fontStack;
private bool _shouldPerformDivTableSubstitution;
private bool _renderFontTag;
private bool _supportsBold = true;
private bool _supportsItalic = true;
private int _tagSupports;
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public Html32TextWriter(TextWriter writer) : this(writer, DefaultTabString) {
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public Html32TextWriter(TextWriter writer, string tabString) : base(writer, tabString) {
// The initial capacities should be set up such that they are at least twice what
// we expect for the maximum content we're going to stuff in into the builder.
// This gives the best perf when using the Length property to reset the builder.
_beforeTag = new StringBuilder(256);
_beforeContent = new StringBuilder(256);
_afterContent = new StringBuilder(128);
_afterTag = new StringBuilder(128);
}
/// <internalonly/>
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
protected Stack FontStack {
get {
if (_fontStack == null) {
_fontStack = new Stack(3);
}
return _fontStack;
}
}
internal override bool RenderDivAroundHiddenInputs {
get {
return false;
}
}
public bool ShouldPerformDivTableSubstitution {
get {
return _shouldPerformDivTableSubstitution;
}
set {
_shouldPerformDivTableSubstitution = value;
}
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public bool SupportsBold {
get {
return _supportsBold;
}
set {
_supportsBold = value;
}
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public bool SupportsItalic {
get {
return _supportsItalic;
}
set {
_supportsItalic = value;
}
}
private void AppendFontTag(StringBuilder sbBegin,StringBuilder sbEnd) {
AppendFontTag(_fontFace, _fontColor, _fontSize, sbBegin, sbEnd);
}
private void AppendFontTag(string fontFace, string fontColor, string fontSize, StringBuilder sbBegin,StringBuilder sbEnd) {
// append font begin tag
sbBegin.Append(TagLeftChar);
sbBegin.Append("font");
if (fontFace != null) {
sbBegin.Append(" face");
sbBegin.Append(EqualsDoubleQuoteString);
sbBegin.Append(fontFace);
sbBegin.Append(DoubleQuoteChar);
}
if (fontColor != null) {
sbBegin.Append(" color=");
sbBegin.Append(DoubleQuoteChar);
sbBegin.Append(fontColor);
sbBegin.Append(DoubleQuoteChar);
}
if (fontSize != null) {
sbBegin.Append(" size=");
sbBegin.Append(DoubleQuoteChar);
sbBegin.Append(fontSize);
sbBegin.Append(DoubleQuoteChar);
}
sbBegin.Append(TagRightChar);
// insert font end tag
sbEnd.Insert(0,EndTagLeftChars + "font" + TagRightChar);
}
private void AppendOtherTag(string tag) {
if (Supports(FONT_AROUND_CONTENT))
AppendOtherTag(tag,_beforeContent,_afterContent);
else
AppendOtherTag(tag,_beforeTag,_afterTag);
}
private void AppendOtherTag(string tag,StringBuilder sbBegin,StringBuilder sbEnd) {
// append begin tag
sbBegin.Append(TagLeftChar);
sbBegin.Append(tag);
sbBegin.Append(TagRightChar);
// insert end tag
sbEnd.Insert(0,EndTagLeftChars + tag + TagRightChar);
}
private void AppendOtherTag(string tag, object[] attribs, StringBuilder sbBegin, StringBuilder sbEnd) {
// append begin tag
sbBegin.Append(TagLeftChar);
sbBegin.Append(tag);
for (int i = 0; i < attribs.Length; i++) {
sbBegin.Append(SpaceChar);
sbBegin.Append(((string[])attribs[i])[0]);
sbBegin.Append(EqualsDoubleQuoteString);
sbBegin.Append(((string[])attribs[i])[1]);
sbBegin.Append(DoubleQuoteChar);
}
sbBegin.Append(TagRightChar);
// insert end tag
sbEnd.Insert(0,EndTagLeftChars + tag + TagRightChar);
}
private void ConsumeFont(StringBuilder sbBegin, StringBuilder sbEnd) {
if (FontStack.Count > 0) {
string fontFace = null;
string fontColor = null;
string fontSize = null;
bool underline = false;
bool italic = false;
bool bold = false;
bool strikeout = false;
IEnumerator e = FontStack.GetEnumerator();
while(e.MoveNext()) {
FontStackItem fontInfo = (FontStackItem) e.Current;
if (fontFace == null) {
fontFace = fontInfo.name;
}
if (fontColor == null) {
fontColor = fontInfo.color;
}
if (fontSize == null) {
fontSize = fontInfo.size;
}
if (!underline) {
underline = fontInfo.underline;
}
if (!italic) {
italic = fontInfo.italic;
}
if (!bold) {
bold = fontInfo.bold;
}
if (!strikeout) {
strikeout = fontInfo.strikeout;
}
}
if ((fontFace != null) || (fontColor != null) || (fontSize != null)) {
AppendFontTag(fontFace, fontColor, fontSize, sbBegin, sbEnd);
}
if (underline) {
AppendOtherTag("u", sbBegin, sbEnd);
}
if (italic && SupportsItalic) {
AppendOtherTag("i", sbBegin, sbEnd);
}
if (bold && SupportsBold) {
AppendOtherTag("b", sbBegin, sbEnd);
}
if (strikeout) {
AppendOtherTag("strike", sbBegin, sbEnd);
}
}
}
private string ConvertToHtmlFontSize(string value) {
FontUnit fu = new FontUnit(value, CultureInfo.InvariantCulture);
if ((int)(fu.Type) > 3)
return((int)(fu.Type)-3).ToString(CultureInfo.InvariantCulture);
if (fu.Type == FontSize.AsUnit) {
if (fu.Unit.Type == UnitType.Point) {
if (fu.Unit.Value <= 8)
return "1";
else if (fu.Unit.Value <= 10)
return "2";
else if (fu.Unit.Value <= 12)
return "3";
else if (fu.Unit.Value <= 14)
return "4";
else if (fu.Unit.Value <= 18)
return "5";
else if (fu.Unit.Value <= 24)
return "6";
else
return "7";
}
}
return null;
}
private string ConvertToHtmlSize(string value) {
Unit u = new Unit(value, CultureInfo.InvariantCulture);
if (u.Type == UnitType.Pixel) {
return u.Value.ToString(CultureInfo.InvariantCulture);
}
if (u.Type == UnitType.Percentage) {
return value;
}
return null;
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
protected override bool OnStyleAttributeRender(string name,string value, HtmlTextWriterStyle key) {
string s;
if (Supports(FONT_AROUND_CONTENT)) {
// tag supports downlevel fonts
switch (key) {
case HtmlTextWriterStyle.FontFamily:
_fontFace = value;
_renderFontTag = true;
break;
case HtmlTextWriterStyle.Color:
_fontColor = value;
_renderFontTag = true;
break;
case HtmlTextWriterStyle.FontSize:
_fontSize = ConvertToHtmlFontSize(value);
if (_fontSize != null)
_renderFontTag = true;
break;
case HtmlTextWriterStyle.FontWeight:
if (StringUtil.EqualsIgnoreCase(value, "bold") && SupportsBold) {
AppendOtherTag("b");
}
break;
case HtmlTextWriterStyle.FontStyle:
if (!StringUtil.EqualsIgnoreCase(value, "normal") && SupportsItalic) {
AppendOtherTag("i");
}
break;
case HtmlTextWriterStyle.TextDecoration:
s = value.ToLower(CultureInfo.InvariantCulture);
if (s.IndexOf("underline", StringComparison.Ordinal) != -1) {
AppendOtherTag("u");
}
if (s.IndexOf("line-through", StringComparison.Ordinal) != -1) {
AppendOtherTag("strike");
}
break;
}
}
else if (Supports(FONT_PROPAGATE)) {
FontStackItem font = (FontStackItem)FontStack.Peek();
switch (key) {
case HtmlTextWriterStyle.FontFamily:
font.name = value;
break;
case HtmlTextWriterStyle.Color:
font.color = value;
break;
case HtmlTextWriterStyle.FontSize:
font.size = ConvertToHtmlFontSize(value);
break;
case HtmlTextWriterStyle.FontWeight:
if (StringUtil.EqualsIgnoreCase(value, "bold")) {
font.bold = true;
}
break;
case HtmlTextWriterStyle.FontStyle:
if (!StringUtil.EqualsIgnoreCase(value, "normal")) {
font.italic = true;
}
break;
case HtmlTextWriterStyle.TextDecoration:
s = value.ToLower(CultureInfo.InvariantCulture);
if (s.IndexOf("underline", StringComparison.Ordinal) != -1) {
font.underline = true;
}
if (s.IndexOf("line-through", StringComparison.Ordinal) != -1) {
font.strikeout = true;
}
break;
}
}
if (Supports(SUPPORTS_BORDER) && key == HtmlTextWriterStyle.BorderWidth) {
s = ConvertToHtmlSize(value);
if (s != null)
AddAttribute(HtmlTextWriterAttribute.Border,s);
}
if (Supports(SUPPORTS_NOWRAP) && key == HtmlTextWriterStyle.WhiteSpace) {
AddAttribute(HtmlTextWriterAttribute.Nowrap, value);
}
if (Supports(SUPPORTS_HEIGHT_WIDTH)) {
switch (key) {
case HtmlTextWriterStyle.Height :
s = ConvertToHtmlSize(value);
if (s != null)
AddAttribute(HtmlTextWriterAttribute.Height,s);
break;
case HtmlTextWriterStyle.Width :
s = ConvertToHtmlSize(value);
if (s != null)
AddAttribute(HtmlTextWriterAttribute.Width,s);
break;
}
}
if (Supports(TABLE_ATTRIBUTES) || Supports(TABLE_AROUND_CONTENT)) {
// tag supports downlevel table attributes
switch (key) {
case HtmlTextWriterStyle.BorderColor:
switch (TagKey) {
case HtmlTextWriterTag.Div:
if (ShouldPerformDivTableSubstitution) {
AddAttribute(HtmlTextWriterAttribute.Bordercolor, value);
}
break;
}
break;
case HtmlTextWriterStyle.BackgroundColor :
switch (TagKey) {
case HtmlTextWriterTag.Table :
case HtmlTextWriterTag.Tr :
case HtmlTextWriterTag.Td :
case HtmlTextWriterTag.Th :
case HtmlTextWriterTag.Body :
AddAttribute(HtmlTextWriterAttribute.Bgcolor,value);
break;
// div->table substitution.
case HtmlTextWriterTag.Div:
if (ShouldPerformDivTableSubstitution) {
AddAttribute(HtmlTextWriterAttribute.Bgcolor,value);
}
break;
}
break;
case HtmlTextWriterStyle.BackgroundImage :
switch (TagKey) {
case HtmlTextWriterTag.Table :
case HtmlTextWriterTag.Td :
case HtmlTextWriterTag.Th :
case HtmlTextWriterTag.Body :
// strip url(...) from value
if (StringUtil.StringStartsWith(value, "url("))
value = value.Substring(4,value.Length-5);
AddAttribute(HtmlTextWriterAttribute.Background,value);
break;
// div->table substitution.
case HtmlTextWriterTag.Div:
if (ShouldPerformDivTableSubstitution) {
if (StringUtil.StringStartsWith(value, "url("))
value = value.Substring(4,value.Length-5);
AddAttribute(HtmlTextWriterAttribute.Background,value);
}
break;
}
break;
}
}
switch (key) {
case HtmlTextWriterStyle.ListStyleType:
switch (value) {
case "decimal":
AddAttribute(HtmlTextWriterAttribute.Type, "1");
break;
case "lower-alpha":
AddAttribute(HtmlTextWriterAttribute.Type, "a");
break;
case "upper-alpha":
AddAttribute(HtmlTextWriterAttribute.Type, "A");
break;
case "lower-roman":
AddAttribute(HtmlTextWriterAttribute.Type, "i");
break;
case "upper-roman":
AddAttribute(HtmlTextWriterAttribute.Type, "I");
break;
case "disc":
case "circle":
case "square":
AddAttribute(HtmlTextWriterAttribute.Type, value);
break;
default:
AddAttribute(HtmlTextWriterAttribute.Type, "disc");
Debug.Assert(false, "Invalid BulletStyle for HTML32.");
break;
}
break;
case HtmlTextWriterStyle.TextAlign:
AddAttribute(HtmlTextWriterAttribute.Align, value);
break;
case HtmlTextWriterStyle.VerticalAlign:
AddAttribute(HtmlTextWriterAttribute.Valign, value);
break;
// Netscape 4.72 can properly handle the Display style attribute, so allow it
// to be rendered.
case HtmlTextWriterStyle.Display:
return true;
}
return false;
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
protected override bool OnTagRender(string name, HtmlTextWriterTag key) {
// handle any tags that do not work downlevel
SetTagSupports();
if (Supports(FONT_PROPAGATE)) {
FontStack.Push(new FontStackItem());
}
// div->table substitution.
// Make tag look like a table. This must be done after we establish tag support.
if (key == HtmlTextWriterTag.Div && ShouldPerformDivTableSubstitution) {
TagKey = HtmlTextWriterTag.Table;
}
return base.OnTagRender(name,key);
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
protected override string GetTagName(HtmlTextWriterTag tagKey) {
// div->table substitution.
if (tagKey == HtmlTextWriterTag.Div && ShouldPerformDivTableSubstitution) {
return "table";
}
return base.GetTagName(tagKey);
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public override void RenderBeginTag(HtmlTextWriterTag tagKey) {
// flush string buffers to build new tag
_beforeTag.Length = 0;
_beforeContent.Length = 0;
_afterContent.Length = 0;
_afterTag.Length = 0;
_renderFontTag = false;
_fontFace = null;
_fontColor = null;
_fontSize = null;
// div->table substitution.
if (ShouldPerformDivTableSubstitution) {
if (tagKey == HtmlTextWriterTag.Div) {
AppendOtherTag("tr", _beforeContent, _afterContent);
string alignment;
if (IsAttributeDefined(HtmlTextWriterAttribute.Align, out alignment)) {
string[] attribs = new string[] { GetAttributeName(HtmlTextWriterAttribute.Align), alignment};
AppendOtherTag("td", new object[]{ attribs}, _beforeContent, _afterContent);
}
else {
AppendOtherTag("td", _beforeContent, _afterContent);
}
if (!IsAttributeDefined(HtmlTextWriterAttribute.Cellpadding)) {
AddAttribute(HtmlTextWriterAttribute.Cellpadding, "0");
}
if (!IsAttributeDefined(HtmlTextWriterAttribute.Cellspacing)) {
AddAttribute(HtmlTextWriterAttribute.Cellspacing, "0");
}
if (!IsStyleAttributeDefined(HtmlTextWriterStyle.BorderWidth)) {
AddAttribute(HtmlTextWriterAttribute.Border, "0");
}
if (!IsStyleAttributeDefined(HtmlTextWriterStyle.Width)) {
AddAttribute(HtmlTextWriterAttribute.Width, "100%");
}
}
}
base.RenderBeginTag(tagKey);
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
protected override string RenderBeforeTag() {
if (_renderFontTag && Supports(FONT_AROUND_TAG))
AppendFontTag(_beforeTag,_afterTag);
if (_beforeTag.Length > 0)
return(_beforeTag.ToString());
return base.RenderBeforeTag();
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
protected override string RenderBeforeContent() {
if (Supports(FONT_CONSUME)) {
ConsumeFont(_beforeContent, _afterContent);
}
else if (_renderFontTag && Supports(FONT_AROUND_CONTENT)) {
AppendFontTag(_beforeContent,_afterContent);
}
if (_beforeContent.Length > 0)
return(_beforeContent.ToString());
return base.RenderBeforeContent();
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
protected override string RenderAfterContent() {
if (_afterContent.Length > 0)
return(_afterContent.ToString());
return base.RenderAfterContent();
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
protected override string RenderAfterTag() {
if (_afterTag.Length > 0)
return(_afterTag.ToString());
return base.RenderAfterTag();
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public override void RenderEndTag() {
base.RenderEndTag();
SetTagSupports();
if (Supports(FONT_PROPAGATE)) {
FontStack.Pop();
}
}
private void SetTagSupports() {
// determine what downlevel tag supports
_tagSupports = NOTHING;
switch (TagKey) {
case HtmlTextWriterTag.A :
case HtmlTextWriterTag.Label :
case HtmlTextWriterTag.P :
case HtmlTextWriterTag.Span :
_tagSupports |= FONT_AROUND_CONTENT;
break;
case HtmlTextWriterTag.Li:
_tagSupports |= FONT_AROUND_CONTENT | FONT_CONSUME;
break;
case HtmlTextWriterTag.Div :
_tagSupports |= FONT_AROUND_CONTENT | FONT_PROPAGATE;
break;
case HtmlTextWriterTag.Ul:
case HtmlTextWriterTag.Ol:
case HtmlTextWriterTag.Table:
case HtmlTextWriterTag.Tr:
_tagSupports |= FONT_PROPAGATE;
break;
case HtmlTextWriterTag.Td :
case HtmlTextWriterTag.Th :
_tagSupports |= FONT_PROPAGATE | FONT_CONSUME;
break;
case HtmlTextWriterTag.Input :
_tagSupports |= SUPPORTS_BORDER;
break;
}
switch (TagKey) {
// div->table substitution.
case HtmlTextWriterTag.Div:
if (ShouldPerformDivTableSubstitution) {
_tagSupports |= SUPPORTS_HEIGHT_WIDTH | SUPPORTS_BORDER;
}
_tagSupports |= SUPPORTS_NOWRAP;
break;
case HtmlTextWriterTag.Img:
_tagSupports |= SUPPORTS_HEIGHT_WIDTH | SUPPORTS_BORDER;
break;
case HtmlTextWriterTag.Table:
_tagSupports |= SUPPORTS_HEIGHT_WIDTH;
break;
case HtmlTextWriterTag.Th:
case HtmlTextWriterTag.Td:
_tagSupports |= SUPPORTS_NOWRAP | SUPPORTS_HEIGHT_WIDTH;
break;
}
//switch (TagKey) {
// case HtmlTextWriterTag.INPUT :
// _tagSupports |= FONT_AROUND_TAG;
// break;
//}
switch (TagKey) {
case HtmlTextWriterTag.Table :
case HtmlTextWriterTag.Tr :
case HtmlTextWriterTag.Td :
case HtmlTextWriterTag.Th :
case HtmlTextWriterTag.Body :
_tagSupports |= TABLE_ATTRIBUTES;
break;
}
switch (TagKey) {
// div->table substitution.
case HtmlTextWriterTag.Div :
if (ShouldPerformDivTableSubstitution) {
_tagSupports |= TABLE_AROUND_CONTENT;
}
break;
}
}
private bool Supports(int flag) {
return(_tagSupports & flag) == flag;
}
/// <devdoc>
/// Contains information about a font placed on the stack of font information.
/// </devdoc>
private sealed class FontStackItem {
public string name;
public string color;
public string size;
public bool bold;
public bool italic;
public bool underline;
public bool strikeout;
}
}
}
|