Class WikiDocument
#include <WikiDocument.h >
Super class: TextFile
Manage a wiki document as a whole files.
There are methods to add wiki content, but in particular there are methods to manage blocks of wiki content by section/subsection.
const string& filename |
filename to load Default value: "" |
Construct a WikiDocument. Optoinally load file from filename provided
Reset the WikiDocument back to an empty document
const string& path |
Configuration control
const string& fileExtension |
default .html
bool allow |
Default value: true |
const string& paragraphStyle |
int line_no |
Default value: 0 |
formatting testing
int line_no |
Default value: 0 |
int depth |
|
int line_no |
Default value: 0 |
int line_no |
Default value: 0 |
int line_no |
Default value: 0 |
int line_no |
Default value: 0 |
int line_no |
Default value: 0 |
int line_no |
int line_no |
int line_no |
int line_no |
Default value: 0 |
int line_no |
Default value: 0 |
int line_no |
Default value: 0 |
int line_no |
Default value: 0 |
int line_no |
Default value: 0 |
int line_no |
Default value: 0 |
int line_no |
int line_no |
Default value: 0 |
const string& title |
|
int depth |
|
int line_no |
Default value: 0 |
inserting/creating formatted lines
const string& text |
|
int line_no |
Default value: 0 |
int depth |
Default value: 1 |
const string& text |
|
int line_no |
Default value: 0 |
int depth |
Default value: 1 |
const string& text |
|
int line_no |
Default value: 0 |
int rows |
|
int columns |
|
int line_no |
Default value: 0 |
const StringSet& headings |
Default value: StringSet("") |
int line_no |
Default value: 0 |
const string& text |
const string& text |
int line_no |
Default value: 0 |
document block navigation
const string& title |
|
int line_no |
Default value: 0 |
int depth |
Default value: 1 |
int line_no |
Default value: 1 |
const string& parentTitle |
|
int depth |
Default value: 1 |
int line_no |
Default value: 1 |
int depth |
Default value: 1 |
int line_no |
Default value: 1 |
key=line# value=title
const string& parentTitle |
|
int depth |
Default value: 1 |
int line_no |
Default value: 1 |
key=line# value=title
key=line# value=title
int depth |
Default value: 1 |
int line_no |
Default value: 1 |
key=title value=depth
const string& parentTitle |
|
int depth |
Default value: 1 |
int line_no |
Default value: 1 |
key=title value=depth
key=title value=depth
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
const string& parentTitle |
|
int parentDepth |
|
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
int line_no |
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
includes start line
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
includes start line
const string& parentTitle |
|
int depth |
|
const string& title |
|
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
includes start line
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
const string& parentTitle |
|
int depth |
|
const string& title |
|
int line_no |
Default value: 1 |
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
const string& parentTitle |
|
int depth |
|
const string& title |
|
int line_no |
Default value: 1 |
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
bool includeTitle |
Default value: false |
bool shiftHeadersLeft |
Default value: true |
text blocks
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
bool includeTitle |
Default value: false |
bool shiftHeadersLeft |
Default value: true |
const string& parentTitle |
|
int depth |
|
const string& title |
|
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
bool includeTitle |
Default value: false |
bool shiftHeadersLeft |
Default value: true |
const string& text |
|
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
bool shiftHeadersRight |
Default value: true |
const string& text |
|
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
bool shiftHeadersRight |
Default value: true |
const string& text |
|
const string& parentTitle |
|
int depth |
|
const string& title |
|
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
bool shiftHeadersRight |
Default value: true |
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
bool includeTitle |
Default value: false |
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
bool includeTitle |
Default value: false |
const string& parentTitle |
|
int depth |
|
const string& title |
|
int line_no |
Default value: 1 |
bool includeSubBlocks |
Default value: true |
bool includeTitle |
Default value: false |
const string& newTitle |
|
int depth |
|
const string& text |
Default value: "" |
int line_no |
Default value: 1 |
bool shiftHeadersRight |
Default value: true |
const string& peerTitle |
|
int depth |
|
const string& newTitle |
|
const string& text |
Default value: "" |
int line_no |
Default value: 1 |
bool shiftHeadersRight |
Default value: true |
const string& peerTitle |
|
int depth |
|
const string& newTitle |
|
const string& text |
Default value: "" |
int line_no |
Default value: 1 |
bool shiftHeadersRight |
Default value: true |
const string& parentTitle |
|
int depth |
|
const string& newTitle |
|
const string& text |
Default value: "" |
int line_no |
Default value: 1 |
bool shiftHeadersRight |
Default value: true |
int line_no |
Default value: 0 |
bool insideSameBlock |
Default value: false |
document table navigation
const string& title |
|
int line_no |
Default value: 0 |
bool insideSameBlock |
Default value: false |
int depth |
Default value: 1 |
int line_no |
Default value: 1 |
const string& parentTitle |
|
int depth |
Default value: 1 |
int line_no |
Default value: 1 |
int depth |
Default value: 1 |
int line_no |
Default value: 1 |
key=line# value=title
const string& parentTitle |
|
int depth |
Default value: 1 |
int line_no |
Default value: 1 |
key=line# value=title
key=line# value=title
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
const string& parentTitle |
|
int parentDepth |
|
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
int line_no |
Default value: 1 |
int line_no |
Default value: 1 |
includes table start line
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
const string& parentTitle |
|
int depth |
|
const string& title |
|
int line_no |
Default value: 1 |
int line_no |
Default value: 1 |
table blocks
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
const string& parentTitle |
|
int depth |
|
const string& title |
|
int line_no |
Default value: 1 |
const WikiDocTable& table |
|
int line_no |
Default value: 1 |
const WikiDocTable& table |
|
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
const WikiDocTable& table |
|
const string& parentTitle |
|
int depth |
|
const string& title |
|
int line_no |
Default value: 1 |
int line_no |
Default value: 1 |
const string& title |
|
int depth |
Default value: 0 |
int line_no |
Default value: 1 |
const string& parentTitle |
|
int depth |
|
const string& title |
|
int line_no |
Default value: 1 |
const string& newTitle |
|
int depth |
|
const WikiDocTable& table |
|
int line_no |
Default value: 1 |
const string& peerTitle |
|
int depth |
|
const string& newTitle |
|
const WikiDocTable& table |
|
int line_no |
Default value: 1 |
const string& peerTitle |
|
int depth |
|
const string& newTitle |
|
const WikiDocTable& table |
|
int line_no |
Default value: 1 |
const string& parentTitle |
|
int depth |
|
const string& newTitle |
|
const WikiDocTable& table |
|
int line_no |
Default value: 1 |
int amount |
|
int start_line_no |
Default value: 0 |
int end_line_no |
Default value: 0 |
int start_line_no |
Default value: 0 |
int end_line_no |
Default value: 0 |
int start_line_no |
Default value: 0 |
int end_line_no |
Default value: 0 |
const string& text |
|
int chardepth |
Default value: 30 |
const string& allowedNonAlphanum |
Default value: ".- '" |
Check for index-assist references, e.g. @Ancenon or @"Ancenon"
string& text |
|
const HashArray& showtext |
|
const HashArray& refs |
|
const HashArray& indexName |
Default value: HashArray("") |
int chardepth |
Default value: 30 |
const string& allowedNonAlphanum |
Default value: ".-" |
const string& createElementType |
Default value: "link" |
Convert index-assist refrences to wiki-formatted references, e.g. @Ancenon - > Ancenon
const string& text |
|
const HashArray& mentionXref |
|
int chardepth |
Default value: 30 |
const string& allowedNonAlphanum |
Default value: ".- '" |
Determine which mentions are in the text
const string& text |
|
const HashArray& mentionXref |
|
int chardepth |
Default value: 30 |
const string& allowedNonAlphanum |
Default value: ".- '" |
const HashArray& mentionXref |
|
int chardepth |
Default value: 30 |
const string& allowedNonAlphanum |
Default value: ".- '" |
const HashArray& mentionXref |
|
int chardepth |
Default value: 30 |
const string& allowedNonAlphanum |
Default value: ".- '" |
string& text |
|
const HashArray& mentionXref |
|
int chardepth |
Default value: 30 |
const string& allowedNonAlphanum |
Default value: ".- '" |
(Alters document) Convert @mentions to link
const HashArray& mentionXref |
|
int chardepth |
Default value: 30 |
const string& allowedNonAlphanum |
Default value: ".- '" |
string title |
Convert a wiki page title to a link or filename
string title |
check if a page by this title exists
WikiDocumentCB* cbfn |
|
void* cbdata |
Handle the full text
const string& text |
Document& doc |
|
const string& line |
Create a Document from the wiki content
Document& doc |
bool fulldoc |
Default value: true |
Call toDocument first
const string& text |
misc utilities
string defaultParagraphStyle |
|
StringSet refPages |
referenced and exists |
StringSet undefPages |
referenced and exists |
undefPages; undefPages |
referenced and does not exit |
static WikiDocumentCB* metacbfn |
callback for metacommand processing |
static void* metacbdata |
callbad data for metacommand processing |
static string wikipath |
default: /usr/mae/html/doc |
static string linkExtension |
default: .html |
static bool allowWikiLinks |
default: true |
string title |
Methods used by toDocument()
vector <ParagraphPart >& ppart |
|
int pos0 |
|
const string& pretext |
|
const string& text |
|
const string& posttext |
|
const string& style |
|
const string& link |
Default value: "" |
const string& metacommand |
Default value: "" |
const string& anchor |
Default value: "" |
vector <ParagraphPart >& ppart |
|
const string& startText |
|
const string& stopText |
|
const string& style |
vector <ParagraphPart >& ppart |
|
const string& startText |
|
const string& stopText |
vector <ParagraphPart >& ppart |
|
const string& startText |
|
const string& stopText |
|
bool externalRef |
vector <ParagraphPart >& ppart |
|
const string& startText |
|
const string& stopText |
Document& doc |
|
string& line |
int line_no |
Default value: 0 |
Document& doc |
|
string& line |
const string& text |
|
long pos |
|
int chardepth |
|
const string& allowedNonAlphanum |
|
string& assistText |