Class XMLMrkSuiteTextCSB. This is the implementation of IXMLMrkSuite on the text selection boss class.
| Binds the C implementation class onto its ImplementationID making the C code callable by the application * XMLMrkSuiteTextCSB::XMLMrkSuiteTextCSB | ( | IPMUnknown * | boss | ) | |
Constructor.
- Parameters
| boss | boss object on which this interface is aggregated. |
| XMLMrkSuiteTextCSB::~XMLMrkSuiteTextCSB | ( | void | | ) | |
| virtual |
| bool16 XMLMrkSuiteTextCSB::CanMakeItemizedList | ( | | ) | const |
| virtual |
| bool16 XMLMrkSuiteTextCSB::CanMakeKeywordSet | ( | | ) | const |
| virtual |
| bool16 XMLMrkSuiteTextCSB::CanMakeMediaObject | ( | | ) | const |
| virtual |
| bool16 XMLMrkSuiteTextCSB::CanMakeSectionComposite | ( | | ) | const |
| virtual |
| bool16 XMLMrkSuiteTextCSB::CanMakeTable | ( | | ) | const |
| virtual |
Determine many columns are present given the ColumnEnds.
- Parameters
| rows | represents the rows (in terms of the sets of TextPair's for each column) |
- Returns
- int32 giving the maximum number of columns across the rows
Determine the text span associated with a given row, represented by its ColumnEnds. Determine the text-span for a given row in the table being created.
- Parameters
| colEnds | represents the row in terms of the text spans of each column |
- Returns
- RangeData
Get a persistent ref to the tag given its name, from which we can get an IXMLTagData
- Parameters
- Returns
- UIDRef persistent reference to the tag
| bool16 XMLMrkSuiteTextCSB::isEmptyRow | ( | const ColumnEnds & | colEnds | ) | |
| protected |
Determine if the given row contains any text we could select and markup.
- Parameters
- Returns
- bool16 kTrue if empty, kFalse otherwise
| bool16 XMLMrkSuiteTextCSB::isNonEmptyRange | ( | | ) | const |
| protected |
Does the selection cover any text?
- Returns
- kTrue if the selection covers some text, kFalse otherwise
| bool16 XMLMrkSuiteTextCSB::isTagPresent | ( | const WideString & | pstr | ) | const |
| protected |
Determine if a particular tag is present within the active document.
- Parameters
- Returns
- kTrue if the tag is present in active document, kFalse otherwise
| ErrorCode XMLMrkSuiteTextCSB::MakeItemizedList | ( | | ) | |
| virtual |
| ErrorCode XMLMrkSuiteTextCSB::MakeKeywordSet | ( | | ) | |
| virtual |
| ErrorCode XMLMrkSuiteTextCSB::MakeMediaObject | ( | | ) | |
| virtual |
| ErrorCode XMLMrkSuiteTextCSB::MakeSectionComposite | ( | | ) | |
| virtual |
| ErrorCode XMLMrkSuiteTextCSB::MakeTable | ( | bool16 | hasHeaderRow | ) | |
| virtual |
| void XMLMrkSuiteTextCSB::parseText | ( | const UIDRef & | textUIDRef, | | | K2Vector< ColumnEnds > & | rows, | | | const TextIndex & | startOfTableText, | | | const TextIndex & | endOfTableText | | ) | | |
| protected |
Parse the text selection and find the text spans for each column in each row. Delimiters are 'tab' for columns, and CR for rows. For creating an XML-based table, we care about both columns and rows. For the other types of entities (e.g. keywordset), the columns are ignored, and we use only the row information.
- Parameters
| textUIDRef | text model of interest |
| rows | [OUT] holds the result of parsing the text |
| startOfTableText | starting index to begin the parse |
| endOfTableText | end index for the parse |
| ErrorCode XMLMrkSuiteTextCSB::tagTextRange | ( | const UIDRef & | textModelRef, | | | const TextIndex & | startIndex, | | | const TextIndex & | endIndex, | | | const WideString & | pstrTag, | | | bool16 | addAttribute, | | | const WideString & | attrName, | | | const WideString & | attrValue | | ) | | |
| protected |
Create element marking-up specified range, with option to add (single) attribute to the element created. Delegates to IXMLElementCommands::CreateElement to do the complex part.
- Parameters
| textModelRef | text model of interest |
| startIndex | specifies where to start tagging from |
| endIndex | specifies where to end tagging |
| pstrTag | name for the tag |
| addAttribute | whether to add an attribute |
| attrName | name of the attribute, if addAttribute is kFalse, this is ignored |
| attrValue | attribute value, if addAttribute is kFalse, this is ignored |
- Returns
- kSucess if the operation succeeded, kFailure otherwise