From fdc473e497d27721441a9a9177354ea6e1fa15fc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 12 Apr 2009 09:32:53 +0000 Subject: Annotations and text margins added. --- src/ViewStyle.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/ViewStyle.cxx') diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 686862a2d..0955928b0 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -141,6 +141,9 @@ ViewStyle::ViewStyle(const ViewStyle &source) { extraFontFlag = source.extraFontFlag; extraAscent = source.extraAscent; extraDescent = source.extraDescent; + marginStyleOffset = source.marginStyleOffset; + annotationVisible = source.annotationVisible; + annotationStyleOffset = source.annotationStyleOffset; } ViewStyle::~ViewStyle() { @@ -237,6 +240,9 @@ void ViewStyle::Init(size_t stylesSize_) { extraFontFlag = false; extraAscent = 0; extraDescent = 0; + marginStyleOffset = 0; + annotationVisible = ANNOTATION_HIDDEN; + annotationStyleOffset = 0; } void ViewStyle::RefreshColourPalette(Palette &pal, bool want) { @@ -363,3 +369,8 @@ void ViewStyle::SetStyleFontName(int styleIndex, const char *name) { bool ViewStyle::ProtectionActive() const { return someStylesProtected; } + +bool ViewStyle::ValidStyle(size_t styleIndex) const { + return styleIndex < stylesSize; +} + -- cgit v1.2.3