code: public void setRtfDocument(RtfDocument doc) {
          super.setRtfDocument(doc);
          for(int i = 0; i < this.chunks.size(); i++) {
              ((RtfBasicElement) this.chunks.get(i)).setRtfDocument(this.document);
          }
      }
docs: Sets the RtfDocument this RtfPhrase belongs to. Also sets the RtfDocument for all child
  elements.
  
  @param doc The RtfDocument to use