zenflesh.cpp

来自「QT方面的开发」· C++ 代码 · 共 38 行

CPP
38
字号
#include <qstd.h>using namespace qstd;#include <docbookdoc.h>class ZenFlesh : public DocbookDoc {    public: ZenFlesh();};ZenFlesh::ZenFlesh() :     DocbookDoc("Zen Flesh, Zen Bones") {    chapter("101 Zen Stories");    section("A cup of tea");    para("Nan-in served a cup of tea.");    section("Great Waves");    QDomElement p = para("o-nami the wrestler sat in meditation and tried "            "to imagine himself as a bunch of great waves.");    setRole(p, "remark");    chapter("The Gateless Gate");    formalpara("The Gateless Gate",      "In order to enter the gateless gate, you must have a ");    bold(" mindless mind.");    section("Joshu's dog");    para("Has a dog buddha nature or not?");    section("Haykujo's Fox");    QDomElement fp = formalpara("This is a special topic",        "Which should have a role= remark attribute");    setRole(fp, "remark");}int main() {   ZenFlesh book;   cout << book << endl;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?