@API(type=INTERNAL,
src=PUBLIC)
public class CapitalizeSentencesOperation
extends FormSelectedTextOperation
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR| Constructor and Description |
|---|
CapitalizeSentencesOperation() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription() |
protected boolean |
isDelimiterBeforeTextNode(AuthorAccess authorAccess,
int contentOffset)
Decides if there is a sentence delimiter before the text node.
|
protected char[] |
processTextContent(char[] charArray,
boolean isDelimiterBefore)
Process char array and upper case first letter of containing sentences.
|
doOperation, getArguments, isWordDelimiterprotected boolean isDelimiterBeforeTextNode(AuthorAccess authorAccess, int contentOffset) throws javax.swing.text.BadLocationException, AuthorOperationException
FormSelectedTextOperationisDelimiterBeforeTextNode in class FormSelectedTextOperationcontentOffset - The offset where search is started.true if the there is a sentence delimiter before the text node or
false if a non-delimiter character was found.javax.swing.text.BadLocationExceptionAuthorOperationExceptionFormSelectedTextOperation.isDelimiterBeforeTextNode(ro.sync.ecss.extensions.api.AuthorAccess, int)protected char[] processTextContent(char[] charArray,
boolean isDelimiterBefore)
processTextContent in class FormSelectedTextOperationcharArray - The character array that must be processed.isDelimiterBefore - true if we have a delimiter before the given char array,
false otherwise.public java.lang.String getDescription()
Extension.getDescription()© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.