Move STYLE_TYPE and STYLE_DEFAULT constants from StyledTextBuffer to StyledTextTagType.

svn: r10629
This commit is contained in:
Zsolt Foldvari
2008-04-23 13:34:13 +00:00
parent 40884d66f6
commit 9bf1c718f6
3 changed files with 46 additions and 44 deletions

View File

@@ -70,6 +70,28 @@ class StyledTextTagType(GrampsType):
(HIGHLIGHT, _("Highlight"), "highlight"),
(SUPERSCRIPT, _("Superscript"), "superscript"),
]
STYLE_TYPE = {
BOLD: bool,
ITALIC: bool,
UNDERLINE: bool,
FONTCOLOR: str,
HIGHLIGHT: str,
FONTFACE: str,
FONTSIZE: int,
SUPERSCRIPT: bool,
}
STYLE_DEFAULT = {
BOLD: False,
ITALIC: False,
UNDERLINE: False,
FONTCOLOR: '#000000',
HIGHLIGHT: '#FFFFFF',
FONTFACE: 'Sans',
FONTSIZE: 10,
SUPERSCRIPT: False,
}
def __init__(self, value=None):
GrampsType.__init__(self, value)