commit: Complete Dom's page colour work.

Subject: commit: Complete Dom's page colour work.
From: Martin Sevior (
Date: Sun Mar 25 2001 - 02:04:31 CST

Ok this commit completes Dom's page colour work. On gtk/gnome you can
independent set the page color and the highlight color of text. Page
colour is now a section level property called "background-color". The
property "bgcolor" is actually the Highlight colour which can be
independently set on the gnome front end.

I had to do a lot of fixes to the underlying colour logic. For a start all
use of "clearArea" was removed since it is actually just a fillRect with
the colour hardwired to white. Now clearscreen() actually does
fillRect(m_colorPG,....) where m_colorPG is the page color. The drawchar()
methods first get a fillRect(m_colorHL,....) where m_colorHL is the
highlight colour defined from "bgcolor" above. Note that all styles are
now set to have bgcolor as "transparent".

In the process fields have become grey on the screen again.

This property should DEFINATELY be exported to HTML! Someone
who knows HTML should do this. No more grey web pages from Abi :-)

I think that is all. Platform maintainers just have to implement their
systems colour picker in the ap_*Dialog_Background file to get this new
cool feature.

Finally given all the recent traffic about the correct spelling of colour
I was sorely tempted to correct the numerous mis-spellings of this word
scattered through the Abi source files. However in interests of Peace and
Harmony with our ill-informed American collaborators I decided not to
change to the World Standard Spelling of this word :-)



CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS: CVS: Committing in . CVS: CVS: Modified Files: CVS:
src/text/fmt/xp/fb_Alignment.cpp CVS:
src/text/fmt/xp/fb_ColumnBreaker.cpp CVS:
src/text/fmt/xp/fb_LineBreaker.cpp CVS: src/text/fmt/xp/fg_Graphic.cpp
CVS: src/text/fmt/xp/fg_GraphicRaster.cpp CVS:
src/text/fmt/xp/fg_GraphicVector.cpp CVS: src/text/fmt/xp/fl_AutoNum.cpp
CVS: src/text/fmt/xp/fl_BlockLayout.cpp CVS:
src/text/fmt/xp/fl_BlockLayout.h CVS: src/text/fmt/xp/fl_DocLayout.cpp
CVS: src/text/fmt/xp/fl_DocListener.cpp CVS:
src/text/fmt/xp/fl_Layout.cpp CVS: src/text/fmt/xp/fl_SectionLayout.cpp
CVS: src/text/fmt/xp/fl_SectionLayout.h CVS:
src/text/fmt/xp/fl_TestRoutines.cpp CVS: src/text/fmt/xp/fp_Column.cpp
CVS: src/text/fmt/xp/fp_FieldListLabelRun.cpp CVS:
src/text/fmt/xp/fp_FmtMarkRun.cpp src/text/fmt/xp/fp_Line.cpp CVS:
src/text/fmt/xp/fp_Line.h src/text/fmt/xp/fp_Page.cpp CVS:
src/text/fmt/xp/fp_PageSize.cpp src/text/fmt/xp/fp_Run.cpp CVS:
src/text/fmt/xp/fp_Run.h src/text/fmt/xp/fp_TestRoutines.cpp CVS:
src/text/fmt/xp/fp_TextRun.cpp src/text/fmt/xp/fv_View.cpp CVS:
src/text/fmt/xp/fv_View.h CVS: src/text/fmt/xp/fv_View_TestRoutines.cpp
CVS: src/text/ptbl/xp/pp_Property.cpp CVS:
src/text/ptbl/xp/pt_PT_Styles.cpp CVS: src/wp/ap/xp/ap_EditMethods.cpp

This archive was generated by hypermail 2b25 : Sun Mar 25 2001 - 02:04:49 CST