Lines 488-495
Link Here
|
488 |
public TextRun getTextRun(){ |
492 |
public TextRun getTextRun(){ |
489 |
if (null == this._txtrun) initTextRun(); |
493 |
if (null == this._txtrun) initTextRun(); |
490 |
if (null == this._txtrun && null != this._txtbox) { |
494 |
if (null == this._txtrun && null != this._txtbox) { |
491 |
TextHeaderAtom tha = null; |
495 |
TextHeaderAtom tha = null; |
492 |
TextBytesAtom tba = null; |
496 |
TextBytesAtom tba = null; |
|
|
497 |
TextCharsAtom tca = null; |
493 |
StyleTextPropAtom sta = null; |
498 |
StyleTextPropAtom sta = null; |
494 |
Record[] childRecords = this._txtbox.getChildRecords(); |
499 |
Record[] childRecords = this._txtbox.getChildRecords(); |
495 |
for (Record r : childRecords) { |
500 |
for (Record r : childRecords) { |
Lines 497-509
Link Here
|
497 |
tha = (TextHeaderAtom) r; |
502 |
tha = (TextHeaderAtom) r; |
498 |
} else if (r instanceof TextBytesAtom) { |
503 |
} else if (r instanceof TextBytesAtom) { |
499 |
tba = (TextBytesAtom) r; |
504 |
tba = (TextBytesAtom) r; |
|
|
505 |
} else if (r instanceof TextCharsAtom) { |
506 |
tca = (TextCharsAtom) r; |
500 |
} else if (r instanceof StyleTextPropAtom) { |
507 |
} else if (r instanceof StyleTextPropAtom) { |
501 |
sta = (StyleTextPropAtom) r; |
508 |
sta = (StyleTextPropAtom) r; |
502 |
} |
509 |
} |
503 |
} |
510 |
} |
504 |
if (null != tba) { |
511 |
if (null != tba) { |
505 |
this._txtrun = new TextRun(tha, tba, sta); |
512 |
this._txtrun = new TextRun(tha, tba, sta); |
506 |
} |
513 |
} else if (null != tca) { |
|
|
514 |
this._txtrun = new TextRun(tha, tca, sta); |
515 |
} |
507 |
} |
516 |
} |
508 |
return _txtrun; |
517 |
return _txtrun; |
509 |
} |
518 |
} |