Commit 472bc6ba authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

cool header footer 2

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56040 954022d7-b5bf-4e40-9824-e11837661b57
parent 8782a6c1
...@@ -1827,14 +1827,17 @@ CGraphics.prototype = ...@@ -1827,14 +1827,17 @@ CGraphics.prototype =
if (-1 != sectionNum) if (-1 != sectionNum)
_header_text += (" -Section " + (sectionNum + 1) + "-"); _header_text += (" -Section " + (sectionNum + 1) + "-");
if (type.bFirst) if (type)
_header_text = "First Page " + _header_text;
else if (EvenAndOddHeaders)
{ {
if (type.bEven) if (type.bFirst)
_header_text = "Even Page " + _header_text; _header_text = "First Page " + _header_text;
else else if (EvenAndOddHeaders)
_header_text = "Odd Page " + _header_text; {
if (type.bEven)
_header_text = "Even Page " + _header_text;
else
_header_text = "Odd Page " + _header_text;
}
} }
this.DrawStringASCII("Courier New", 9, false, false, _header_text, 2, yPos, true); this.DrawStringASCII("Courier New", 9, false, false, _header_text, 2, yPos, true);
...@@ -1909,14 +1912,17 @@ CGraphics.prototype = ...@@ -1909,14 +1912,17 @@ CGraphics.prototype =
if (-1 != sectionNum) if (-1 != sectionNum)
_header_text += (" -Section " + (sectionNum + 1) + "-"); _header_text += (" -Section " + (sectionNum + 1) + "-");
if (type.bFirst) if (type)
_header_text = "First Page " + _header_text;
else if (EvenAndOddHeaders)
{ {
if (type.bEven) if (type.bFirst)
_header_text = "Even Page " + _header_text; _header_text = "First Page " + _header_text;
else else if (EvenAndOddHeaders)
_header_text = "Odd Page " + _header_text; {
if (type.bEven)
_header_text = "Even Page " + _header_text;
else
_header_text = "Odd Page " + _header_text;
}
} }
this.DrawStringASCII("Courier New", 9, false, false, _header_text, 2, yPos, false); this.DrawStringASCII("Courier New", 9, false, false, _header_text, 2, yPos, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment