| 416 | return true; |
| 417 | } |
| 418 | bool DocumentData::SaveToBuffer(GenericVector<char>* buffer) { |
| 419 | SVAutoLock lock(&pages_mutex_); |
| 420 | TFile fp; |
| 421 | fp.OpenWrite(buffer); |
| 422 | return pages_.Serialize(&fp); |
| 423 | } |
| 424 | |
| 425 | // Adds the given page data to this document, counting up memory. |
| 426 | void DocumentData::AddPageToDocument(ImageData* page) { |