HtmlParaLineSpacingStyle.diff
| EncodeHTML.cpp (kopia robocza) | ||
|---|---|---|
| 60 | 60 |
return style + HtmlFontStyle(cf, sf); |
| 61 | 61 |
} |
| 62 | 62 | |
| 63 |
String HtmlParaLineSpacingStyle(const RichPara::Format& f) |
|
| 64 |
{
|
|
| 65 |
String style; |
|
| 66 |
|
|
| 67 |
if (f.linespacing == RichPara::LSP10) |
|
| 68 |
return style; |
|
| 69 |
|
|
| 70 |
style << "line-height:"; |
|
| 71 |
switch (f.linespacing) {
|
|
| 72 |
case RichPara::LSP15: |
|
| 73 |
style << "150"; |
|
| 74 |
break; |
|
| 75 |
case RichPara::LSP20: |
|
| 76 |
style << "200"; |
|
| 77 |
break; |
|
| 78 |
default: |
|
| 79 |
style << "100"; |
|
| 80 |
break; |
|
| 81 |
} |
|
| 82 |
style << "%;"; |
|
| 83 |
|
|
| 84 |
return style; |
|
| 85 |
} |
|
| 86 | ||
| 63 | 87 |
String HtmlParaStyle(const RichPara::Format& f, Zoom z) |
| 64 | 88 |
{
|
| 65 | 89 |
String style; |
| ... | ... | |
| 92 | 116 |
style << HtmlStyleColor(f.ink) + HtmlFontStyle(f); |
| 93 | 117 |
if(!IsNull(f.paper)) |
| 94 | 118 |
style << HtmlStyleColor(f.paper, "background-color"); |
| 119 |
style << HtmlParaLineSpacingStyle(f); |
|
| 120 | ||
| 95 | 121 |
return style; |
| 96 | 122 |
} |
| 97 | 123 | |