Typedefs | |
typedef Bool(* | TidyOptCallback )(ctmbstr option, ctmbstr value) |
Functions | |
Bool | tidySetOptionCallback (TidyDoc tdoc, TidyOptCallback pOptCallback) |
TidyOptionId | tidyOptGetIdForName (ctmbstr optnam) |
TidyIterator | tidyGetOptionList (TidyDoc tdoc) |
TidyOption | tidyGetNextOption (TidyDoc tdoc, TidyIterator *pos) |
TidyOption | tidyGetOption (TidyDoc tdoc, TidyOptionId optId) |
TidyOption | tidyGetOptionByName (TidyDoc tdoc, ctmbstr optnam) |
TidyOptionId | tidyOptGetId (TidyOption opt) |
ctmbstr | tidyOptGetName (TidyOption opt) |
TidyOptionType | tidyOptGetType (TidyOption opt) |
Bool | tidyOptIsReadOnly (TidyOption opt) |
TidyConfigCategory | tidyOptGetCategory (TidyOption opt) |
ctmbstr | tidyOptGetDefault (TidyOption opt) |
ulong | tidyOptGetDefaultInt (TidyOption opt) |
Bool | tidyOptGetDefaultBool (TidyOption opt) |
TidyIterator | tidyOptGetPickList (TidyOption opt) |
ctmbstr | tidyOptGetNextPick (TidyOption opt, TidyIterator *pos) |
ctmbstr | tidyOptGetValue (TidyDoc tdoc, TidyOptionId optId) |
Bool | tidyOptSetValue (TidyDoc tdoc, TidyOptionId optId, ctmbstr val) |
Bool | tidyOptParseValue (TidyDoc tdoc, ctmbstr optnam, ctmbstr val) |
ulong | tidyOptGetInt (TidyDoc tdoc, TidyOptionId optId) |
Bool | tidyOptSetInt (TidyDoc tdoc, TidyOptionId optId, ulong val) |
Bool | tidyOptGetBool (TidyDoc tdoc, TidyOptionId optId) |
Bool | tidyOptSetBool (TidyDoc tdoc, TidyOptionId optId, Bool val) |
Bool | tidyOptResetToDefault (TidyDoc tdoc, TidyOptionId opt) |
Bool | tidyOptResetAllToDefault (TidyDoc tdoc) |
Bool | tidyOptSnapshot (TidyDoc tdoc) |
Bool | tidyOptResetToSnapshot (TidyDoc tdoc) |
Bool | tidyOptDiffThanDefault (TidyDoc tdoc) |
Bool | tidyOptDiffThanSnapshot (TidyDoc tdoc) |
Bool | tidyOptCopyConfig (TidyDoc tdocTo, TidyDoc tdocFrom) |
ctmbstr | tidyOptGetEncName (TidyDoc tdoc, TidyOptionId optId) |
ctmbstr | tidyOptGetCurrPick (TidyDoc tdoc, TidyOptionId optId) |
TidyIterator | tidyOptGetDeclTagList (TidyDoc tdoc) |
ctmbstr | tidyOptGetNextDeclTag (TidyDoc tdoc, TidyOptionId optId, TidyIterator *iter) |
|
Applications using TidyLib may want to augment command-line and configuration file options. Setting this callback allows an application developer to examine command-line and configuration file options after TidyLib has examined them and failed to recognize them. |
|
Get option ID by name |
|
Example: TidyIterator itOpt = tidyGetOptionList( tdoc ); while ( itOpt ) { TidyOption opt = tidyGetNextOption( tdoc, &itOpt ); .. get/set option values .. } |
|
Get next Option |
|
Lookup option by ID |
|
Lookup option by name |
|
Get ID of given Option |
|
Get name of given Option |
|
Get datatype of given Option |
|
Is Option read-only? |
|
Get category of given Option |
|
Get default value of given Option as a string |
|
Get default value of given Option as an unsigned integer |
|
Get default value of given Option as a Boolean value |
|
Iterate over Option "pick list" |
|
Get next string value of Option "pick list" |
|
Get current Option value as a string |
|
Set Option value as a string |
|
Set named Option value as a string. Good if not sure of type. |
|
Get current Option value as an integer |
|
Set Option value as an integer |
|
Get current Option value as a Boolean flag |
|
Set Option value as a Boolean flag |
|
Reset option to default value by ID |
|
Reset all options to their default values |
|
Take a snapshot of current config settings |
|
Reset config settings to snapshot (after document processing) |
|
Any settings different than default? |
|
Any settings different than snapshot? |
|
Copy current configuration settings from one document to another |
|
Get character encoding name. Used with TidyCharEncoding, TidyOutCharEncoding, TidyInCharEncoding |
|
Get current pick list value for option by ID. Useful for enum types. |
|
Iterate over user declared tags |
|
Get next declared tag of specified type: TidyInlineTags, TidyBlockTags, TidyEmptyTags, TidyPreTags |