mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
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:
parent
fbfbac818a
commit
d229949553
10 changed files with 84 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue