Lines Matching defs:paragraph

52  * A document that can be marked up with character and paragraph
55 * style runs. These style runs are mapped into a paragraph element
57 * style runs break at paragraph boundaries since logical styles are
58 * assigned to paragraph boundaries.
423 * Sets the logical style to use for the paragraph at the
425 * for character and paragraph attributes they will resolve
426 * through the logical style assigned to the paragraph, which
436 * @param s the logical style to assign to the paragraph, null if none
439 Element paragraph = getParagraphElement(pos);
440 if ((paragraph != null) && (paragraph instanceof AbstractElement)) {
443 StyleChangeUndoableEdit edit = new StyleChangeUndoableEdit((AbstractElement)paragraph, s);
444 ((AbstractElement)paragraph).setResolveParent(s);
445 int p0 = paragraph.getStartOffset();
446 int p1 = paragraph.getEndOffset();
460 * Fetches the logical style assigned to the paragraph
463 * @param p the location to translate to a paragraph
470 Element paragraph = getParagraphElement(p);
471 if (paragraph != null) {
472 AttributeSet a = paragraph.getAttributes();
538 * Sets attributes for a paragraph.
545 * @param offset the offset into the paragraph >= 0
566 Element paragraph = section.getElement(i);
567 MutableAttributeSet attr = (MutableAttributeSet) paragraph.getAttributes();
568 changes.addEdit(new AttributeUndoableEdit(paragraph, sCopy, replace));
591 * Gets the paragraph element at the offset <code>pos</code>.
592 * A paragraph consists of at least one child Element, which is usually
643 // You really only notice this when inserting at a paragraph
645 Element paragraph = getParagraphElement(offset + length);
646 AttributeSet pattr = paragraph.getAttributes();
668 (paragraph, pParagraph, pattr, parseBuffer,
681 // new paragraphs from the paragraph under the insertion point.
727 // paragraph).
747 // inserted or a new paragraph has been inserted and its join
754 ((lastStartSpec == null && (paragraph == pParagraph ||
758 Element nextRun = paragraph.getElement(paragraph.
810 * position the stack in <code>paragraph</code>.<p>
814 short createSpecsForInsertAfterNewline(Element paragraph,
817 // Need to find the common parent of pParagraph and paragraph.
818 if(paragraph.getParentElement() == pParagraph.getParentElement()) {
820 // paragraph have the same parent.
834 // Find the common parent of a paragraph and pParagraph
842 e = paragraph;
903 BranchElement paragraph = new BranchElement(section, null);
905 LeafElement brk = new LeafElement(paragraph, null, 0, 1);
908 paragraph.replace(0, 0, buff);
910 buff[0] = paragraph;