diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-11 12:22:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-11-12 12:25:21 +0100 |
commit | 431950e1eade91f8587d3ecffa73fd09136e16b6 (patch) | |
tree | d402e05fef613f36992e68efce2359e7cff54304 /sd/sdi | |
parent | f088d85f80c643378262a1f53bdea6f42abcf7d4 (diff) |
tdf#121239 give writer, calc and draw/impress the same underline options
uno:Underline is the "real" deal, and has multiple underline options
uno:UnderlineSimple is "some underline on" vs no underline
calc and writer had UnderlineSingle, UnderlineDouble and UnderlineDotted
for that specific type of underline on vs not-on
add those to draw/impress too and then use UnderlineSingle instead of Underline
in the format menu so that when UnderlineDouble is applied, UnderlineSingle is
not show as applied, instead of using Underline ot UnderlineSimple which would
show as on if UnderlineDouble was applied
Change-Id: I6f9fcf37c2c90d215ea52b536e4fa84734754850
Reviewed-on: https://gerrit.libreoffice.org/82469
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/sdi')
-rw-r--r-- | sd/sdi/_drvwsh.sdi | 20 | ||||
-rw-r--r-- | sd/sdi/drtxtob.sdi | 30 | ||||
-rw-r--r-- | sd/sdi/sdraw.sdi | 72 |
3 files changed, 122 insertions, 0 deletions
diff --git a/sd/sdi/_drvwsh.sdi b/sd/sdi/_drvwsh.sdi index 73f9bf4f2a5f..69fde762bfee 100644 --- a/sd/sdi/_drvwsh.sdi +++ b/sd/sdi/_drvwsh.sdi @@ -2727,6 +2727,26 @@ interface DrawView ExecMethod = ExecChar ; StateMethod = GetAttrState ; ] + SID_ULINE_VAL_NONE + [ + ExecMethod = ExecChar ; + StateMethod = GetAttrState ; + ] + SID_ULINE_VAL_SINGLE + [ + ExecMethod = ExecChar ; + StateMethod = GetAttrState ; + ] + SID_ULINE_VAL_DOUBLE + [ + ExecMethod = ExecChar ; + StateMethod = GetAttrState ; + ] + SID_ULINE_VAL_DOTTED + [ + ExecMethod = ExecChar ; + StateMethod = GetAttrState ; + ] SID_ATTR_CHAR_SHADOWED [ ExecMethod = ExecChar ; diff --git a/sd/sdi/drtxtob.sdi b/sd/sdi/drtxtob.sdi index 6e29a20899ef..e34445f55b74 100644 --- a/sd/sdi/drtxtob.sdi +++ b/sd/sdi/drtxtob.sdi @@ -68,12 +68,42 @@ shell TextObjectBar StateMethod = GetAttrState; ] + SID_ULINE_VAL_NONE + [ + ExecMethod = Execute ; + StateMethod = GetAttrState ; + ] + + SID_ULINE_VAL_SINGLE + [ + ExecMethod = Execute ; + StateMethod = GetAttrState ; + ] + + SID_ULINE_VAL_DOUBLE + [ + ExecMethod = Execute ; + StateMethod = GetAttrState ; + ] + + SID_ULINE_VAL_DOTTED + [ + ExecMethod = Execute ; + StateMethod = GetAttrState ; + ] + SID_ATTR_CHAR_OVERLINE // ole : ?, status : ? [ ExecMethod = Execute; StateMethod = GetAttrState; ] + SID_ATTR_CHAR_UNDERLINE // ole : ?, status : ? + [ + ExecMethod = Execute; + StateMethod = GetAttrState; + ] + SID_ATTR_CHAR_CONTOUR // ole : ?, status : ? [ ExecMethod = Execute; diff --git a/sd/sdi/sdraw.sdi b/sd/sdi/sdraw.sdi index b73fa0d779f1..a675db0efb5e 100644 --- a/sd/sdi/sdraw.sdi +++ b/sd/sdi/sdraw.sdi @@ -4734,3 +4734,75 @@ SfxVoidItem EditDiagram SID_EDIT_DIAGRAM ToolBoxConfig = TRUE, GroupId = SfxGroupId::Modify; ] + +SfxBoolItem UnderlineNone SID_ULINE_VAL_NONE + +[ + AutoUpdate = TRUE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Format; +] + +SfxBoolItem UnderlineSingle SID_ULINE_VAL_SINGLE + +[ + AutoUpdate = TRUE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Format; +] + +SfxBoolItem UnderlineDouble SID_ULINE_VAL_DOUBLE + +[ + AutoUpdate = TRUE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Format; +] + +SfxBoolItem UnderlineDotted SID_ULINE_VAL_DOTTED + +[ + AutoUpdate = TRUE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Format; +] |