diff options
author | nyamatongwe <devnull@localhost> | 2000-09-14 01:47:27 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-09-14 01:47:27 +0000 |
commit | b615d63b8bff7320c123fdc1dc486c3ff48cf6cd (patch) | |
tree | 03242e479ad163ecd63f081fdec41bdd2e2ce4ba /src | |
parent | 8493d793a070ad2020c4c7a854c0c4e00034e4a4 (diff) | |
download | scintilla-mirror-b615d63b8bff7320c123fdc1dc486c3ff48cf6cd.tar.gz |
Markus added some more print modes.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index c33c69fd0..4c3f46739 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1349,8 +1349,8 @@ long Editor::FormatRange(bool draw, RangeToFormat *pfr) { // Don't show the selection when printing vsPrint.selbackset = false; vsPrint.selforeset = false; - // White background for the line numbers - vsPrint.styles[STYLE_LINENUMBER].back.desired = Colour(0xff, 0xff, 0xff); + + // Set colours for printing according to users settings for (int sty = 0;sty <= STYLE_MAX;sty++) { if (printColourMode == SC_PRINT_INVERTLIGHT) { vsPrint.styles[sty].fore.desired = InvertedLight(vsPrint.styles[sty].fore.desired); @@ -1358,8 +1358,15 @@ long Editor::FormatRange(bool draw, RangeToFormat *pfr) { } else if (printColourMode == SC_PRINT_BLACKONWHITE) { vsPrint.styles[sty].fore.desired = Colour(0, 0, 0); vsPrint.styles[sty].back.desired = Colour(0xff, 0xff, 0xff); + } else if (printColourMode == SC_PRINT_COLOURONWHITE) { + vsPrint.styles[sty].back.desired = Colour(0xff, 0xff, 0xff); + } else if (printColourMode == SC_PRINT_COLOURONWHITEDEFAULTBG) { + if (sty <= STYLE_DEFAULT) { + vsPrint.styles[sty].back.desired = Colour(0xff, 0xff, 0xff); + } } } + // White background for the line numbers vsPrint.styles[STYLE_LINENUMBER].back.desired = Colour(0xff, 0xff, 0xff); vsPrint.Refresh(*surfaceMeasure); |