Exemple #1
0
void XHTMLTagParagraphWithControlAction::doAtStart(XHTMLReader &reader, const char**) {
	if (myControl == TITLE && bookReader(reader).model().bookTextModel()->paragraphsNumber() > 1) {
		bookReader(reader).insertEndOfSectionParagraph();
	}
	reader.pushTextKind(myControl);
	beginParagraph(reader);
}
Exemple #2
0
void XHTMLTagParagraphAction::doAtStart(XHTMLReader &reader, const char**) {
	if (!reader.myNewParagraphInProgress) {
		reader.pushTextKind(myTextKind);
		reader.beginParagraph();
		reader.myNewParagraphInProgress = true;
	}
}
Exemple #3
0
void XHTMLTagPreAction::doAtStart(XHTMLReader &reader, const char**) {
	reader.myPreformatted = true;
	reader.pushTextKind(PREFORMATTED);
	beginParagraph(reader);
}
Exemple #4
0
void XHTMLTagControlAction::doAtStart(XHTMLReader &reader, const char**) {
	reader.pushTextKind(myControl);
	bookReader(reader).addControl(myControl, true);
}