Overview
| Comment: | [core][lo] error properties for Writer |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | core | lo |
| Files: | files | file ages | folders |
| SHA3-256: |
22f629ce571884081c6dd17a31a3a957 |
| User & Date: | olr on 2019-06-02 19:41:42 |
| Other Links: | manifest | tags |
Context
|
2019-06-03
| ||
| 20:08 | [fr] correction message check-in: ea698a963a user: olr tags: trunk, fr | |
|
2019-06-02
| ||
| 19:41 | [core][lo] error properties for Writer check-in: 22f629ce57 user: olr tags: trunk, core, lo | |
|
2019-06-01
| ||
| 11:01 | [fr] faux positif check-in: e0f5034ccf user: olr tags: trunk, fr | |
Changes
Modified gc_core/py/lang_core/gc_engine.py from [ee9b62433c] to [04908b510b].
| ︙ | ︙ | |||
658 659 660 661 662 663 664 |
xErr.nErrorStart = nStart
xErr.nErrorLength = nLen
xErr.nErrorType = PROOFREADING
xErr.aRuleIdentifier = sRuleId
xErr.aShortComment = sMessage # sMessage.split("|")[0] # in context menu
xErr.aFullComment = sMessage # sMessage.split("|")[-1] # in dialog
xErr.aSuggestions = tuple(lSugg)
| | | > | < < | | 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 |
xErr.nErrorStart = nStart
xErr.nErrorLength = nLen
xErr.nErrorType = PROOFREADING
xErr.aRuleIdentifier = sRuleId
xErr.aShortComment = sMessage # sMessage.split("|")[0] # in context menu
xErr.aFullComment = sMessage # sMessage.split("|")[-1] # in dialog
xErr.aSuggestions = tuple(lSugg)
# Properties
lProperties = [ PropertyValue(Name="LineColor", Value=_dOptionsColors.get(sOption, 33023)) ]
lProperties.append(PropertyValue(Name="LineType", Value=10)) # WAVE: 10, DASH: 5, BOLD: 12, BOLDWAVE: 18 https://api.libreoffice.org/docs/idl/ref/FontUnderline_8idl.html
if sURL:
lProperties.append(PropertyValue(Name="FullCommentURL", Value=sURL))
xErr.aProperties = lProperties
return xErr
def _createErrorAsDict (self, nStart, nEnd, sLineId, sRuleId, sOption, sMessage, lSugg, sURL, bContext):
dErr = {
"nStart": nStart,
"nEnd": nEnd,
"sLineId": sLineId,
|
| ︙ | ︙ |