On 12/3/2010 16:19, Jean Hollis Weber wrote:
While producing the full book of Getting Started with OOo, I used the
BandIt macro to update the tables. BandIt causes the table heading row
to have a bright blue background to match the headings in the document.
I have some problems with using this color on tables.
(1) I find the color a bit too dark to easily read the text of the table
headings.
(2) When printed in black and white, the color is a bit too dark.
(3) When the files are reused for LibO, the color must be changed. This
is easy, but still it's extra work.
For these reasons, I suggest that for the other books we use the light
gray background that I had previously for the heading row, even though
that is not as attractive in the color PDF.
BTW, I have not yet used BandIt on the individual chapter files.
--Jean
I will deliver a new version sometime tomorrow, with banding, borders
and heading all gray. Also the banding will start with white for tables
without headers. (Note: the "repeat headers" flag is frequently set,
even for tables without headers. The setting is right in the Table menu,
as a check/uncheck option.) In the meantime, if you're in a hurry, here
are some quick do-it-yourself fixes.
DIY fix (heading only): find the two macro statements that look like this:
'Do the banding
For nRowIndex = 1 to nRows - 1
change the one to a zero:
'Do the banding
For nRowIndex = 0 to nRows - 1
and the headings will be the same color as the banding.
That's how the code will look in the upcoming version.
DIY fix (heading and border color: near the front, find the two lines:
glHeadColor = RGB(0, 139, 205) 'a medium blue
lLightBlue = RGB(230, 230, 230) 'Gray 10%
Change the numbers in the first line to match the second line:
glHeadColor = RGB(230, 230, 230) 'a medium blue
lLightBlue = RGB(230, 230, 230) 'Gray 10%
Both heading and borders will be gray.
One point I would like guidance on is the width of the border lines. You
can play with these in the code lines:
With strBorder
.TopLine = fnLineUp(.TopLine, 4)
.LeftLine = fnLineUp(.LeftLine, 4)
.RightLine = fnLineUp(.RightLine, 4)
.VerticalLine = fnLineUp(.VerticalLine, 2)
.HorizontalLine = fnLineUp(.HorizontalLine, 0)
.BottomLine = fnLineUp(.BottomLine, 8)
End With
In each case, the line width is the trailing number, in 1/100 mm. I
can't see any difference between 2 and 8, myself, but there may be
differences in PDF or printing. A value of 35 is ~1 point, so 17 or 18
should be 0.5 point, and the 0.05 point setting should be about 2. (The
value of zero says not to show the line at all.)
Note that if the table breaks over a page boundary, the border lines
will be displayed only for the bottom or last part of the table. (OO.o bug.)
--
/tj/
---------------------------------------------------------------------
To unsubscribe, e-mail: authors-unsubscr...@documentation.openoffice.org
For additional commands, e-mail: authors-h...@documentation.openoffice.org