Exemplo n.º 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);
}
Exemplo n.º 2
0
void XHTMLTagParagraphAction::doAtStart(XHTMLReader &reader, const char**) {
	if (!reader.myNewParagraphInProgress) {
		reader.pushTextKind(myTextKind);
		reader.beginParagraph();
		reader.myNewParagraphInProgress = true;
	}
}
Exemplo n.º 3
0
void XHTMLTagPreAction::doAtStart(XHTMLReader &reader, const char**) {
	reader.myPreformatted = true;
	reader.pushTextKind(PREFORMATTED);
	beginParagraph(reader);
}
Exemplo n.º 4
0
void XHTMLTagControlAction::doAtStart(XHTMLReader &reader, const char**) {
	reader.pushTextKind(myControl);
	bookReader(reader).addControl(myControl, true);
}