| 107 | } |
| 108 | |
| 109 | void PageIterator::RestartParagraph() { |
| 110 | if (it_->block() == NULL) return; // At end of the document. |
| 111 | PAGE_RES_IT para(page_res_); |
| 112 | PAGE_RES_IT next_para(para); |
| 113 | next_para.forward_paragraph(); |
| 114 | while (next_para.cmp(*it_) <= 0) { |
| 115 | para = next_para; |
| 116 | next_para.forward_paragraph(); |
| 117 | } |
| 118 | *it_ = para; |
| 119 | BeginWord(0); |
| 120 | } |
| 121 | |
| 122 | bool PageIterator::IsWithinFirstTextlineOfParagraph() const { |
| 123 | PageIterator p_start(*this); |
no test coverage detected