public class SingleDocument extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SingleDocument.IgnoredMatches
class for store and handle ignored matches
|
static class |
SingleDocument.RuleDesc |
Modifier and Type | Method and Description |
---|---|
void |
addQueueEntry(int nFPara,
int nCache,
int nCheck,
String docId,
boolean overrideRunning)
Add an new entry to text level queue
nFPara is number of flat paragraph
|
void |
addShapeQueueEntries() |
SingleDocument.RuleDesc |
deactivateRule()
get back the rule ID to deactivate a rule
|
DocumentCache |
getDocumentCache()
Get document cache of the document
|
Language |
getLanguage()
get language of the document
|
MultiDocumentsHandler |
getMultiDocumentsHandler()
Get MultiDocumentsHandler
|
org.languagetool.openoffice.TextLevelCheckQueue.QueueEntry |
getNextQueueEntry(DocumentCache.TextParagraph nPara)
get the next queue entry which is the next empty cache entry
|
SingleDocument.IgnoredMatches |
getPermanentIgnoredMatches() |
org.languagetool.openoffice.TextLevelCheckQueue.QueueEntry |
getQueueEntryForChangedParagraph()
get the queue entry for the first changed paragraph in document cache
|
com.sun.star.lang.XComponent |
getXComponent()
Get xComponent of the document
|
String |
ignoreOnce()
add a ignore once entry to queue and remove the mark
|
String |
ignorePermanent()
add a ignore once entry to queue and remove the mark
|
boolean |
isIgnoreOnce(int xFrom,
int xTo,
int y,
String ruleId)
is a ignore once entry in cache
|
void |
removeAndShiftIgnoredMatch(int from,
int to,
int oldSize,
int newSize)
remove all ignore once entries for paragraph y from queue and set the mark
|
void |
removeDokumentListener(com.sun.star.lang.XComponent xComponent) |
void |
removeIgnoredMatch(int y,
boolean isIntern)
remove all ignore once entries for paragraph y from queue and set the mark
|
void |
removeIgnoredMatch(int x,
int y,
String ruleId,
boolean isIntern)
remove a ignore once entry for point x, y from queue and set the mark
if x < 0 remove all ignore once entries for paragraph y
|
void |
removePermanentIgnoredMatch(int x,
int y,
String ruleId,
boolean isIntern)
remove a ignore Permanent entry for point x, y from queue and set the mark
if x < 0 remove all ignore once entries for paragraph y
|
void |
removeResultCache(int nPara,
boolean alsoParaLevel)
remove all cached matches for one paragraph
|
void |
removeRuleError(String ruleId)
Remove a special Proofreading error from all caches of document
|
void |
renewMarkups()
Renew text markups for paragraphs under view cursor
|
void |
resetIgnoreOnce()
reset the ignore once cache
|
void |
resetIgnorePermanent()
reset the permanent ignore cache
|
void |
runQueueEntry(DocumentCache.TextParagraph nStart,
DocumentCache.TextParagraph nEnd,
int cacheNum,
int nCheck,
boolean override,
SwJLanguageTool lt)
run a text level check from a queue entry (initiated by the queue)
|
FlatParagraphTools |
setFlatParagraphTools()
Open new flat paragraph tools or initialize them again
|
void |
setIgnoredMatch(int x,
int y,
String ruleId,
boolean isIntern)
add a ignore once entry for point x, y to queue and remove the mark
|
void |
setPermanentIgnoredMatch(int x,
int y,
String ruleId,
boolean isIntern)
add a ignore once entry for point x, y to queue and remove the mark
|
void |
setPermanentIgnoredMatches(SingleDocument.IgnoredMatches ignoredMatches) |
public Language getLanguage()
public com.sun.star.lang.XComponent getXComponent()
public MultiDocumentsHandler getMultiDocumentsHandler()
public DocumentCache getDocumentCache()
public void removeResultCache(int nPara, boolean alsoParaLevel)
public void removeRuleError(String ruleId)
public FlatParagraphTools setFlatParagraphTools()
public void addQueueEntry(int nFPara, int nCache, int nCheck, String docId, boolean overrideRunning)
public org.languagetool.openoffice.TextLevelCheckQueue.QueueEntry getNextQueueEntry(DocumentCache.TextParagraph nPara)
public org.languagetool.openoffice.TextLevelCheckQueue.QueueEntry getQueueEntryForChangedParagraph()
public void addShapeQueueEntries()
public void runQueueEntry(DocumentCache.TextParagraph nStart, DocumentCache.TextParagraph nEnd, int cacheNum, int nCheck, boolean override, SwJLanguageTool lt)
public void renewMarkups()
public boolean isIgnoreOnce(int xFrom, int xTo, int y, String ruleId)
public void resetIgnoreOnce()
public String ignoreOnce()
public void setIgnoredMatch(int x, int y, String ruleId, boolean isIntern)
public void resetIgnorePermanent()
public String ignorePermanent()
public void setPermanentIgnoredMatch(int x, int y, String ruleId, boolean isIntern)
public void setPermanentIgnoredMatches(SingleDocument.IgnoredMatches ignoredMatches)
public SingleDocument.IgnoredMatches getPermanentIgnoredMatches()
public void removeAndShiftIgnoredMatch(int from, int to, int oldSize, int newSize)
public void removeIgnoredMatch(int y, boolean isIntern)
public void removeIgnoredMatch(int x, int y, String ruleId, boolean isIntern)
public void removePermanentIgnoredMatch(int x, int y, String ruleId, boolean isIntern)
public SingleDocument.RuleDesc deactivateRule()
public void removeDokumentListener(com.sun.star.lang.XComponent xComponent)