RichText, RichEdit: Styles of paragraph ruler (dotted, dashed)

git-svn-id: svn://ultimatepp.org/upp/trunk@5059 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-06-19 09:48:35 +00:00
parent fbfbac818a
commit d229949553
10 changed files with 84 additions and 16 deletions

View file

@ -76,6 +76,12 @@ struct RichPara {
enum TabSpecial {
TAB_RIGHTPOS = 0x8000000
};
enum RulerStyle {
RULER_SOLID,
RULER_DOT,
RULER_DASH,
};
struct CharFormat : public Font {
int language;
@ -114,6 +120,7 @@ struct RichPara {
int align;
int ruler, before, lm, indent, rm, after;
Color rulerink;
int rulerstyle;
int tabsize;
int bullet;
int linespacing;
@ -229,6 +236,8 @@ struct RichPara {
static void Charformat(Stream& out, const CharFormat& o, const CharFormat& n,
const CharFormat& s);
static void DrawRuler(Draw& w, int x, int y, int cx, int cy, Color ink, int style);
void Cat(const WString& s, const CharFormat& f);
void Cat(const char *s, const CharFormat& f);
void Cat(const RichObject& o, const CharFormat& f);