~ubuntu-branches/ubuntu/natty/obby/natty

« back to all changes in this revision

Viewing changes to src/document.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Kern
  • Date: 2007-04-29 13:07:09 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070429130709-lvzff5q3hff5iapv
Tags: 0.4.4-1
* New upstream release
* Dropped Debian-specific patches
* Tightened the net6 build-dependency
* Include the ChangeLog in the package

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
                            const text& str)
90
90
{
91
91
        m_text.insert(pos, str);
 
92
        m_signal_changed.emit();
92
93
}
93
94
 
94
95
void obby::document::insert(position pos,
96
97
                            const user* author)
97
98
{
98
99
        m_text.insert(pos, str, author);
 
100
        m_signal_changed.emit();
99
101
}
100
102
 
101
103
void obby::document::erase(position pos,
102
104
                           position len)
103
105
{
104
106
        m_text.erase(pos, len);
 
107
        m_signal_changed.emit();
105
108
}
106
109
 
107
110
void obby::document::append(const text& str)
108
111
{
109
112
        m_text.append(str);
 
113
        m_signal_changed.emit();
110
114
}
111
115
 
112
116
void obby::document::append(const std::string& str,
113
117
                            const user* author)
114
118
{
115
119
        m_text.append(str, author);
 
120
        m_signal_changed.emit();
116
121
}
117
122
 
118
123
obby::document::chunk_iterator obby::document::chunk_begin() const
124
129
{
125
130
        return m_text.chunk_end();
126
131
}
 
132
 
 
133
obby::document::signal_changed_type obby::document::changed_event() const
 
134
{
 
135
        return m_signal_changed;
 
136
}