Changeset 27da386750c112ed04942bbc385964b4332bb128
- Timestamp:
- 01/06/07 23:57:10 (6 years ago)
- Author:
- Philipp Kern <phil@…>
- Parents:
- c2b92c82bb989b2a80f8fb8b5707f4165443e796
- Children:
- 124a20ea0ece36b7e067b4b033f65127f2cee14a
- git-committer:
- Philipp Kern <phil@0x539.de> / 2007-01-06T22:57:10Z+0000
- Message:
-
[project @ Gobby seems to work now, but still needs further testing]
Original author: Armin Burgmeier <armin@…>
Date: 2006-02-23 15:40:50+00:00
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rc2b92c8
|
r27da386
|
|
| 24 | 24 | #include <obby/user_table.hpp> |
| 25 | 25 | #include <obby/text.hpp> |
| | 26 | #include <obby/local_buffer.hpp> |
| | 27 | #include "gselector.hpp" |
| 26 | 28 | #include "sourceview/sourcebuffer.hpp" |
| 27 | 29 | |
| … |
… |
|
| 91 | 93 | }; |
| 92 | 94 | |
| | 95 | // TODO: Only take user table as soon as the user table has signals |
| | 96 | // like on_user_join and on_user_part |
| 93 | 97 | class template_type |
| 94 | 98 | { |
| 95 | 99 | public: |
| | 100 | // buffer_def cannot be included since it depends on this file |
| | 101 | typedef obby::basic_local_buffer<Document, GSelector> |
| | 102 | buffer_type; |
| | 103 | |
| 96 | 104 | template_type(); // Default ctor, needed by obby, invalid |
| 97 | | template_type(const obby::user_table& user_table); |
| 98 | | |
| 99 | | const obby::user_table& get_user_table() const; |
| | 105 | template_type(const buffer_type& buffer); |
| | 106 | |
| | 107 | const buffer_type& get_buffer() const; |
| 100 | 108 | |
| 101 | 109 | protected: |
| 102 | | const obby::user_table* m_user_table; |
| | 110 | const buffer_type* m_buffer; |
| 103 | 111 | }; |
| | 112 | |
| | 113 | typedef sigc::signal<void, obby::position, const std::string> |
| | 114 | signal_insert_type; |
| | 115 | typedef sigc::signal<void, obby::position, obby::position> |
| | 116 | signal_erase_type; |
| 104 | 117 | |
| 105 | 118 | /** @brief Creates a new document that belongs to the given buffer. |
| … |
… |
|
| 162 | 175 | */ |
| 163 | 176 | Glib::RefPtr<Gtk::SourceBuffer> get_buffer() const; |
| | 177 | |
| | 178 | /** @brief Signal that is emitted when the local user wants to insert |
| | 179 | * text. |
| | 180 | */ |
| | 181 | signal_insert_type insert_event() const; |
| | 182 | |
| | 183 | /** @brief Signal that is emitted when the local user wants to erase |
| | 184 | * text. |
| | 185 | */ |
| | 186 | signal_erase_type erase_event() const; |
| 164 | 187 | protected: |
| 165 | 188 | typedef std::list<Glib::RefPtr<const Gtk::TextTag> > tag_list_type; |
| … |
… |
|
| 174 | 197 | */ |
| 175 | 198 | void on_user_color(const obby::user& user); |
| | 199 | |
| | 200 | /** @brief Callback when text is inserted. This tells obby to insert |
| | 201 | * text into the document. |
| | 202 | */ |
| | 203 | void on_insert_before(const Gtk::TextIter& iter, |
| | 204 | const Glib::ustring& text); |
| | 205 | |
| | 206 | /** @brief Callback when text is inserted. This tags newly inserted |
| | 207 | * text. |
| | 208 | */ |
| | 209 | void on_insert_after(const Gtk::TextIter& iter, |
| | 210 | const Glib::ustring& text); |
| | 211 | |
| | 212 | /** @brief Callback when text is erased. This tells obby to erase |
| | 213 | * text from the document. |
| | 214 | */ |
| | 215 | void on_erase_before(const Gtk::TextIter& begin, |
| | 216 | const Gtk::TextIter& end); |
| | 217 | |
| | 218 | /** @brief Denies application of tags we do not want. |
| | 219 | */ |
| | 220 | void on_apply_tag_before(const Glib::RefPtr<Gtk::TextTag>& tag, |
| | 221 | const Gtk::TextIter& begin, |
| | 222 | const Gtk::TextIter& end); |
| 176 | 223 | |
| 177 | 224 | /** @brief Returns an iterator that points at the given position. |
| … |
… |
|
| 211 | 258 | const std::string& str, |
| 212 | 259 | const obby::user* author); |
| | 260 | |
| | 261 | /** @brief Tags a given range of text as written by <em>with</em>. |
| | 262 | */ |
| | 263 | void tag_text(const Gtk::TextIter& begin, |
| | 264 | const Gtk::TextIter& end, |
| | 265 | const obby::user* with); |
| 213 | 266 | |
| 214 | 267 | /** @brief Helper class to use Glib::RefPtr<Gtk::TextTag> as index |
| … |
… |
|
| 239 | 292 | map_user_type m_map_user; |
| 240 | 293 | map_tag_type m_map_tag; |
| 241 | | |
| | 294 | const obby::user& m_self; |
| | 295 | |
| | 296 | // Whether text is currently edited, needed to prevent recursion |
| | 297 | // in signal emission |
| | 298 | bool m_editing; |
| 242 | 299 | Glib::RefPtr<Gtk::SourceBuffer> m_buffer; |
| | 300 | |
| | 301 | signal_insert_type m_signal_insert; |
| | 302 | signal_erase_type m_signal_erase; |
| 243 | 303 | }; |
| 244 | 304 | |
-
|
rc2b92c8
|
r27da386
|
|
| 90 | 90 | bool get_modified() const; // TODO: Remove this in favor of get_document().get_buffer()->get_modified() |
| 91 | 91 | |
| | 92 | /** @brief Gives the focus to the underlaying sourceview instead of |
| | 93 | * the scrolled window containing it. |
| | 94 | */ |
| | 95 | void grab_focus(); |
| | 96 | |
| 92 | 97 | /** @brief Returns the current Gtk::SourceLanguage the document is |
| 93 | 98 | * highlighted with. |
| … |
… |
|
| 152 | 157 | void on_changed(); |
| 153 | 158 | |
| | 159 | /** @brief Callback when text has to be inserted. |
| | 160 | */ |
| | 161 | void on_insert(obby::position pos, |
| | 162 | const std::string& text); |
| | 163 | |
| | 164 | /** @brief Callback when text has to be erased. |
| | 165 | */ |
| | 166 | void on_erase(obby::position pos, |
| | 167 | obby::position len); |
| | 168 | |
| 154 | 169 | /** @brief Helper function that applies the preferences to the buffer. |
| 155 | 170 | */ |
-
|
rc2b92c8
|
r27da386
|
|
| 39 | 39 | void forward_bytes(Gtk::TextIter& iter, std::size_t bytes) |
| 40 | 40 | { |
| 41 | | while(bytes > 0) |
| | 41 | while(bytes > 0 && !iter.is_end() ) |
| 42 | 42 | { |
| 43 | 43 | std::size_t remaining_bytes = |
| … |
… |
|
| 49 | 49 | iter.set_line_index( |
| 50 | 50 | iter.get_line_index() + |
| 51 | | remaining_bytes |
| | 51 | bytes |
| 52 | 52 | ); |
| 53 | 53 | |
| … |
… |
|
| 60 | 60 | |
| 61 | 61 | bytes -= remaining_bytes; |
| | 62 | } |
| | 63 | |
| | 64 | if(bytes > 0 && iter.is_end() ) |
| | 65 | { |
| | 66 | throw std::logic_error( |
| | 67 | "document.cpp:forward_bytes:\n" |
| | 68 | "Bytes to forward exceed buffer size" |
| | 69 | ); |
| 62 | 70 | } |
| 63 | 71 | } |
| … |
… |
|
| 95 | 103 | } |
| 96 | 104 | |
| 97 | | } |
| 98 | | |
| 99 | | // TODO: Apply tags to self-written text |
| | 105 | class editor: private net6::non_copyable |
| | 106 | { |
| | 107 | public: |
| | 108 | editor(bool& edit_var): |
| | 109 | m_edit_var(edit_var) |
| | 110 | { |
| | 111 | if(m_edit_var == true) |
| | 112 | { |
| | 113 | throw std::logic_error( |
| | 114 | "document.cpp:editor::editor:\n" |
| | 115 | "Edit var is already true" |
| | 116 | ); |
| | 117 | } |
| | 118 | |
| | 119 | m_edit_var = true; |
| | 120 | } |
| | 121 | |
| | 122 | ~editor() |
| | 123 | { |
| | 124 | m_edit_var = false; |
| | 125 | } |
| | 126 | |
| | 127 | private: |
| | 128 | bool& m_edit_var; |
| | 129 | }; |
| | 130 | } |
| 100 | 131 | |
| 101 | 132 | Gobby::Document::chunk_iterator::chunk_iterator(const Document& doc, |
| … |
… |
|
| 119 | 150 | Gobby::Document::chunk_iterator& Gobby::Document::chunk_iterator::operator++() |
| 120 | 151 | { |
| | 152 | m_author = m_next_author; |
| 121 | 153 | m_iter_begin = m_iter_end; |
| | 154 | |
| 122 | 155 | proceed_end(); |
| | 156 | return *this; |
| 123 | 157 | } |
| 124 | 158 | |
| … |
… |
|
| 144 | 178 | void Gobby::Document::chunk_iterator::proceed_end() |
| 145 | 179 | { |
| 146 | | m_author = m_next_author; |
| | 180 | //m_author = m_next_author; |
| 147 | 181 | m_next_author = m_doc.forward_chunk(m_iter_end); |
| 148 | 182 | } |
| 149 | 183 | |
| 150 | 184 | Gobby::Document::template_type::template_type(): |
| 151 | | m_user_table(NULL) |
| | 185 | m_buffer(NULL) |
| 152 | 186 | { |
| 153 | 187 | } |
| 154 | 188 | |
| 155 | 189 | Gobby::Document::template_type:: |
| 156 | | template_type(const obby::user_table& user_table): |
| 157 | | m_user_table(&user_table) |
| 158 | | { |
| 159 | | } |
| 160 | | |
| 161 | | const obby::user_table& Gobby::Document::template_type::get_user_table() const |
| 162 | | { |
| 163 | | if(m_user_table == NULL) |
| | 190 | template_type(const buffer_type& buffer): |
| | 191 | m_buffer(&buffer) |
| | 192 | { |
| | 193 | } |
| | 194 | |
| | 195 | const Gobby::Document::template_type::buffer_type& |
| | 196 | Gobby::Document::template_type::get_buffer() const |
| | 197 | { |
| | 198 | if(m_buffer == NULL) |
| 164 | 199 | { |
| 165 | 200 | throw std::logic_error( |
| 166 | | "Gobby::Document::template_type::get_user_table:\n" |
| 167 | | "Invalid template, no user table present" |
| | 201 | "Gobby::Document::template_type::get_buffer:\n" |
| | 202 | "Invalid template, no buffer present" |
| 168 | 203 | ); |
| 169 | 204 | } |
| 170 | 205 | |
| 171 | | return *m_user_table; |
| | 206 | return *m_buffer; |
| 172 | 207 | } |
| 173 | 208 | |
| 174 | 209 | Gobby::Document::Document(const template_type& tmpl): |
| 175 | | m_buffer(Gtk::SourceBuffer::create() ) |
| 176 | | { |
| 177 | | const obby::user_table& table = tmpl.get_user_table(); |
| | 210 | m_self(tmpl.get_buffer().get_self() ), |
| | 211 | m_editing(false), m_buffer(Gtk::SourceBuffer::create() ) |
| | 212 | { |
| | 213 | const template_type::buffer_type& buf = tmpl.get_buffer(); |
| | 214 | const obby::user_table& table = buf.get_user_table(); |
| | 215 | |
| 178 | 216 | for(obby::user_table::iterator iter = |
| 179 | 217 | table.begin(obby::user::flags::NONE, obby::user::flags::NONE); |
| … |
… |
|
| 184 | 222 | } |
| 185 | 223 | |
| | 224 | m_buffer->signal_insert().connect( |
| | 225 | sigc::hide(sigc::mem_fun(*this, &Document::on_insert_before)), |
| | 226 | false |
| | 227 | ); |
| | 228 | |
| | 229 | m_buffer->signal_insert().connect( |
| | 230 | sigc::hide(sigc::mem_fun(*this, &Document::on_insert_after)), |
| | 231 | true |
| | 232 | ); |
| | 233 | |
| | 234 | m_buffer->signal_erase().connect( |
| | 235 | sigc::mem_fun(*this, &Document::on_erase_before), |
| | 236 | false |
| | 237 | ); |
| | 238 | |
| | 239 | m_buffer->signal_apply_tag().connect( |
| | 240 | sigc::mem_fun(*this, &Document::on_apply_tag_before), |
| | 241 | false |
| | 242 | ); |
| | 243 | |
| 186 | 244 | // TODO: Connect to user table's signal handler - as soon as it |
| 187 | 245 | // has some... |
| 188 | | /* buf.user_join_event().connect( |
| | 246 | buf.user_join_event().connect( |
| 189 | 247 | sigc::mem_fun(*this, &Document::on_user_join) ); |
| 190 | 248 | buf.user_colour_event().connect( |
| 191 | | sigc::mem_fun(*this, &Document::on_user_color) );*/ |
| | 249 | sigc::mem_fun(*this, &Document::on_user_color) ); |
| 192 | 250 | } |
| 193 | 251 | |
| … |
… |
|
| 249 | 307 | ); |
| 250 | 308 | } |
| | 309 | |
| | 310 | return result; |
| 251 | 311 | } |
| 252 | 312 | |
| … |
… |
|
| 264 | 324 | const obby::text& str) |
| 265 | 325 | { |
| | 326 | if(m_editing) return; |
| | 327 | editor edit(m_editing); |
| | 328 | |
| 266 | 329 | Gtk::TextIter iter = get_iter(pos); |
| 267 | 330 | insert_impl(iter, str); |
| … |
… |
|
| 272 | 335 | const obby::user* author) |
| 273 | 336 | { |
| | 337 | if(m_editing) return; |
| | 338 | editor edit(m_editing); |
| | 339 | |
| 274 | 340 | Gtk::TextIter iter = get_iter(pos); |
| 275 | 341 | insert_impl(iter, str, author); |
| … |
… |
|
| 278 | 344 | void Gobby::Document::erase(obby::position pos, obby::position len) |
| 279 | 345 | { |
| | 346 | if(m_editing) return; |
| | 347 | editor edit(m_editing); |
| | 348 | |
| 280 | 349 | Gtk::TextIter begin = get_iter(pos); |
| 281 | 350 | Gtk::TextIter end = begin; |
| … |
… |
|
| 287 | 356 | void Gobby::Document::append(const obby::text& str) |
| 288 | 357 | { |
| | 358 | if(m_editing) return; |
| | 359 | editor edit(m_editing); |
| | 360 | |
| 289 | 361 | insert_impl(m_buffer->end(), str); |
| 290 | 362 | } |
| … |
… |
|
| 293 | 365 | const obby::user* author) |
| 294 | 366 | { |
| | 367 | if(m_editing) return; |
| | 368 | editor edit(m_editing); |
| | 369 | |
| 295 | 370 | insert_impl(m_buffer->end(), str, author); |
| 296 | 371 | } |
| … |
… |
|
| 299 | 374 | { |
| 300 | 375 | return m_buffer; |
| | 376 | } |
| | 377 | |
| | 378 | Gobby::Document::signal_insert_type Gobby::Document::insert_event() const |
| | 379 | { |
| | 380 | return m_signal_insert; |
| | 381 | } |
| | 382 | |
| | 383 | Gobby::Document::signal_erase_type Gobby::Document::erase_event() const |
| | 384 | { |
| | 385 | return m_signal_erase; |
| 301 | 386 | } |
| 302 | 387 | |
| … |
… |
|
| 336 | 421 | } |
| 337 | 422 | |
| | 423 | void Gobby::Document::on_insert_before(const Gtk::TextIter& iter, |
| | 424 | const Glib::ustring& text) |
| | 425 | { |
| | 426 | // Only local edits that are not done via insert |
| | 427 | if(m_editing) return; |
| | 428 | editor edit(m_editing); |
| | 429 | |
| | 430 | m_signal_insert.emit(diff_bytes(m_buffer->begin(), iter), text); |
| | 431 | } |
| | 432 | |
| | 433 | void Gobby::Document::on_insert_after(const Gtk::TextIter& iter, |
| | 434 | const Glib::ustring& text) |
| | 435 | { |
| | 436 | if(m_editing) return; |
| | 437 | editor edit(m_editing); |
| | 438 | |
| | 439 | Gtk::TextIter begin = iter; |
| | 440 | begin.backward_chars(text.length() ); |
| | 441 | |
| | 442 | tag_text(begin, iter, &m_self); |
| | 443 | } |
| | 444 | |
| | 445 | void Gobby::Document::on_erase_before(const Gtk::TextIter& begin, |
| | 446 | const Gtk::TextIter& end) |
| | 447 | { |
| | 448 | // Only local edits that are not done via erase |
| | 449 | if(m_editing) return; |
| | 450 | |
| | 451 | editor edit(m_editing); |
| | 452 | m_signal_erase.emit( |
| | 453 | diff_bytes(m_buffer->begin(), begin), |
| | 454 | diff_bytes(begin, end) |
| | 455 | ); |
| | 456 | } |
| | 457 | |
| | 458 | void Gobby::Document::on_apply_tag_before(const Glib::RefPtr<Gtk::TextTag>& tag, |
| | 459 | const Gtk::TextIter& begin, |
| | 460 | const Gtk::TextIter& end) |
| | 461 | { |
| | 462 | if(m_map_tag.find(tag) != m_map_tag.end() && !m_editing) |
| | 463 | m_buffer->signal_apply_tag().emission_stop(); |
| | 464 | } |
| | 465 | |
| 338 | 466 | Gtk::TextIter Gobby::Document::get_iter(obby::position at) const |
| 339 | 467 | { |
| 340 | 468 | Gtk::TextIter pos; |
| 341 | 469 | for(pos = m_buffer->begin(); |
| 342 | | at > 0 && pos != m_buffer->end(); |
| 343 | | pos.forward_line() ) |
| | 470 | at > 0 && pos != m_buffer->end();) |
| 344 | 471 | { |
| 345 | 472 | obby::position new_bytes = pos.get_bytes_in_line(); |
| | 473 | |
| 346 | 474 | if(new_bytes > at) |
| 347 | 475 | { |
| 348 | 476 | pos.set_line_index(at); |
| 349 | | return pos; |
| | 477 | new_bytes = at; |
| | 478 | } |
| | 479 | else |
| | 480 | { |
| | 481 | pos.forward_line(); |
| 350 | 482 | } |
| 351 | 483 | |
| … |
… |
|
| 361 | 493 | } |
| 362 | 494 | |
| 363 | | return m_buffer->end(); |
| | 495 | return pos; //m_buffer->end(); |
| 364 | 496 | } |
| 365 | 497 | |
| … |
… |
|
| 375 | 507 | } |
| 376 | 508 | |
| 377 | | return false; |
| | 509 | return NULL; |
| 378 | 510 | } |
| 379 | 511 | |
| … |
… |
|
| 427 | 559 | const obby::user* author) |
| 428 | 560 | { |
| 429 | | if(author != NULL) |
| 430 | | { |
| 431 | | map_user_type::const_iterator user_it = |
| 432 | | m_map_user.find(author); |
| | 561 | Gtk::TextIter result = m_buffer->insert(iter, str); |
| | 562 | |
| | 563 | Gtk::TextIter begin = result; |
| | 564 | begin.backward_chars(g_utf8_strlen(str.c_str(), -1)); |
| | 565 | |
| | 566 | tag_text(begin, result, author); |
| | 567 | return result; |
| | 568 | |
| | 569 | return result; |
| | 570 | } |
| | 571 | |
| | 572 | Gtk::TextIter Gobby::Document::insert_impl(const Gtk::TextIter& iter, |
| | 573 | const obby::text& str) |
| | 574 | { |
| | 575 | Gtk::TextIter pos = iter; |
| | 576 | |
| | 577 | for(obby::text::chunk_iterator chunk_it = str.chunk_begin(); |
| | 578 | chunk_it != str.chunk_end(); |
| | 579 | ++ chunk_it) |
| | 580 | { |
| | 581 | pos = insert_impl( |
| | 582 | pos, |
| | 583 | chunk_it->get_text(), |
| | 584 | chunk_it->get_author() |
| | 585 | ); |
| | 586 | } |
| | 587 | |
| | 588 | return pos; |
| | 589 | } |
| | 590 | |
| | 591 | void Gobby::Document::tag_text(const Gtk::TextIter& begin, |
| | 592 | const Gtk::TextIter& end, |
| | 593 | const obby::user* with) |
| | 594 | { |
| | 595 | for(map_user_type::const_iterator user_iter = m_map_user.begin(); |
| | 596 | user_iter != m_map_user.end(); |
| | 597 | ++ user_iter) |
| | 598 | { |
| | 599 | m_buffer->remove_tag(user_iter->second, begin, end); |
| | 600 | } |
| | 601 | |
| | 602 | if(with != NULL) |
| | 603 | { |
| | 604 | map_user_type::const_iterator user_it = m_map_user.find(with); |
| 433 | 605 | |
| 434 | 606 | if(user_it == m_map_user.end() ) |
| … |
… |
|
| 440 | 612 | } |
| 441 | 613 | |
| 442 | | // TODO: Remove all other tags. |
| 443 | | // TODO: on_apply_tag_after |
| 444 | | return m_buffer->insert_with_tag(iter, str, user_it->second); |
| 445 | | } |
| 446 | | else |
| 447 | | { |
| 448 | | // TODO: Remove all other tags. |
| 449 | | // TODO: on_apply_tag_after |
| 450 | | return m_buffer->insert(iter, str); |
| 451 | | } |
| 452 | | } |
| 453 | | |
| 454 | | Gtk::TextIter Gobby::Document::insert_impl(const Gtk::TextIter& iter, |
| 455 | | const obby::text& str) |
| 456 | | { |
| 457 | | Gtk::TextIter pos = iter; |
| 458 | | |
| 459 | | for(obby::text::chunk_iterator chunk_it = str.chunk_begin(); |
| 460 | | chunk_it != str.chunk_end(); |
| 461 | | ++ chunk_it) |
| 462 | | { |
| 463 | | pos = insert_impl( |
| 464 | | pos, |
| 465 | | chunk_it->get_text(), |
| 466 | | chunk_it->get_author() |
| 467 | | ); |
| 468 | | } |
| 469 | | |
| 470 | | return pos; |
| 471 | | } |
| | 614 | m_buffer->apply_tag(user_it->second, begin, end); |
| | 615 | } |
| | 616 | } |
| | 617 | |
| 472 | 618 | #if 0 |
| 473 | 619 | |
-
|
rc2b92c8
|
r27da386
|
|
| 73 | 73 | ); |
| 74 | 74 | |
| | 75 | m_doc.insert_event().connect( |
| | 76 | sigc::mem_fun(*this, &DocWindow::on_insert) |
| | 77 | ); |
| | 78 | |
| | 79 | m_doc.erase_event().connect( |
| | 80 | sigc::mem_fun(*this, &DocWindow::on_erase) |
| | 81 | ); |
| | 82 | |
| 75 | 83 | apply_preferences(); |
| 76 | 84 | buf->set_modified(!m_doc.empty() ); |
| … |
… |
|
| 148 | 156 | } |
| 149 | 157 | |
| | 158 | void Gobby::DocWindow::grab_focus() |
| | 159 | { |
| | 160 | m_view.grab_focus(); |
| | 161 | } |
| | 162 | |
| 150 | 163 | Glib::RefPtr<Gtk::SourceLanguage> Gobby::DocWindow::get_language() const |
| 151 | 164 | { |
| … |
… |
|
| 226 | 239 | m_signal_cursor_moved.emit(); |
| 227 | 240 | m_signal_content_changed.emit(); |
| | 241 | } |
| | 242 | |
| | 243 | void Gobby::DocWindow::on_insert(obby::position pos, |
| | 244 | const std::string& error) |
| | 245 | { |
| | 246 | m_info.insert(pos, error); |
| | 247 | } |
| | 248 | |
| | 249 | void Gobby::DocWindow::on_erase(obby::position pos, |
| | 250 | obby::position len) |
| | 251 | { |
| | 252 | m_info.erase(pos, len); |
| 228 | 253 | } |
| 229 | 254 | |
-
|
rc2b92c8
|
r27da386
|
|
| 80 | 80 | buffer->set_document_template( |
| 81 | 81 | HostBuffer::document_type::template_type( |
| 82 | | buffer->get_user_table() |
| | 82 | *buffer |
| 83 | 83 | ) |
| 84 | 84 | ); |
-
|
rc2b92c8
|
r27da386
|
|
| 131 | 131 | buffer->set_document_template( |
| 132 | 132 | ClientBuffer::document_type::template_type( |
| 133 | | buffer->get_user_table() |
| | 133 | *buffer |
| 134 | 134 | ) |
| 135 | 135 | ); |