~ubuntu-branches/ubuntu/karmic/notecase/karmic

« back to all changes in this revision

Viewing changes to src/lib/FmtInfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Mitsuya Shibata
  • Date: 2008-01-18 01:54:05 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080118015405-id2r7kphpxlyjzfi
Tags: 1.7.6-0ubuntu1
* New Upstream Release (Closes LP: #182226)
*  Fix failed assertion when change node level (Closes LP: #137464)
* Exclude help.ncd and any .ncd file from compression (Closes LP: #113959)
* Adapted debian/ directory to upstream deb/ directory
* Add debian/watch file
* Remove debian/README.Debian because it is now unnecessary
* Bump up compat level from 4 to 5
* Updating debian/menu file to use the new menu hierarchy
* Modify debian/control file
*  Bump up Standards-Version field from 3.6.1 to 3.7.3
*  Change Section field from x11 to editors
*  Change Build-Depends debhelper version to >=5, libgtk2.0-dev to >=2.4
*  Move Homepage field from description to regular field

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#define FMT_TXT_COLOR_END       8
34
34
#define FMT_STRIKE_BEGIN        9
35
35
#define FMT_STRIKE_END          10
 
36
#define FMT_TXT_BKG_COLOR_BEGIN 15
 
37
#define FMT_TXT_BKG_COLOR_END   16
36
38
 
37
39
class FmtInfo
38
40
{
57
59
 
58
60
        static bool IsStartTag(int nFormatTag);
59
61
        static int  CalcFormatEndTag(int nFormatTag);
 
62
        static int      CalcFormatStartTag(int nFormatTag);
 
63
        static int      CalcOppositeTag(int nFormatTag);
60
64
 
61
65
        void Sort();
62
66
 
70
74
        void OnTxtDelete(int nOffset, int nCharsDeleted);
71
75
        void OnLinkCreated(int nOffset, int nLen);
72
76
 
 
77
        int FindOppositeTag(int nFormatTag, int nStart, bool bForward, bool bNoMiddleTags, int nAbortTag = -1);
 
78
 
73
79
        int GetTagCount(int nFormatTag);
74
80
        void AssertValid();     //debugging helper
75
81
};