~ubuntu-branches/ubuntu/oneiric/notecase/oneiric

« back to all changes in this revision

Viewing changes to src/lib/NoteNode.h

  • Committer: Bazaar Package Importer
  • Author(s): Nicolas Van Wambeke
  • Date: 2008-05-29 20:20:17 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080529202017-kp2a07u83prpz0id
Tags: 1.9.1-0ubuntu1
New Upstream Release (LP: #230041)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#include "FmtInfo.h"
18
18
#include <gtk/gtk.h>
19
19
 
20
 
typedef struct{
 
20
typedef struct PixInfo{
21
21
        GdkPixbuf *pixbuf;
22
22
        int nOffset;
23
23
        std::string strName;
24
24
        bool bUsePNG;   //prefer JPG, but allow PNG for translarent images
 
25
 
 
26
        bool operator <(const struct PixInfo &other) const { return (nOffset < other.nOffset); }
25
27
} PixInfo;
26
28
 
27
29
typedef struct{
67
69
        unsigned int GetSelStart();
68
70
        unsigned int GetSelEnd();
69
71
        void ClearSel();
 
72
        void SetScrollPos(unsigned int nPos);
 
73
        unsigned int GetScrollPos();
70
74
 
71
75
        void OnTxtInsert(int nOffset, int nCharsAdded, const char *szTxt);
72
76
        void OnTxtReplaced(int nStart, int nEnd, const char *szTxt);
73
 
        void OnTxtDelete(int nOffset, int nCharsDeleted, DocAction *pDelAction = NULL);
 
77
        void OnTxtDelete(int nOffset, int nCharsDeleted, int nTotalDeleted, DocAction *pDelAction = NULL);
74
78
 
75
79
        LinkInfoList m_lstLinks;        // hyperlinks within the text of the node
76
80
        LinkInfo         m_objLink;             // hyperlink on the node title (invalid if the node title is not a link)
100
104
 
101
105
        // remember cursor position and selection bound
102
106
        unsigned int m_nSelStart, m_nSelEnd;
 
107
        unsigned int m_nScrollPos;                              // remember scroll position
103
108
};
104
109
 
105
110
#endif // NOTENODE_H__