From 11d605cc5a0c221d2423b6e63f502db660d085d2 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Mon, 1 Feb 2016 18:39:51 +0200 Subject: tdf#84843 Stop using PseudoSlots for drawing slots Instead of fighting with this obsolete thing, let's just kill it. This fixes disabling in read-only doc, as well as pressed/unpressed states. Change-Id: I4d06ba3395024ffd09d77c6d22653a2c5e227115 Reviewed-on: https://gerrit.libreoffice.org/22010 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky --- sw/sdi/viewsh.sdi | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) (limited to 'sw/sdi/viewsh.sdi') diff --git a/sw/sdi/viewsh.sdi b/sw/sdi/viewsh.sdi index 1717fc828880..15f3f2a9a252 100644 --- a/sw/sdi/viewsh.sdi +++ b/sw/sdi/viewsh.sdi @@ -75,6 +75,75 @@ interface TextEditView : BaseTextEditView DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; ] SID_INSERT_DRAW // status() + [ + StateMethod = GetDrawState ; + ] + SID_DRAW_LINE + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_RECT + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_ELLIPSE + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_POLYGON_NOFILL + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_BEZIER_NOFILL + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_FREELINE_NOFILL + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_ARC + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_PIE + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_CIRCLECUT + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_TEXT + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_TEXT_VERTICAL + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_TEXT_MARQUEE + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_CAPTION + [ + ExecMethod = ExecDraw ; + StateMethod = GetDrawState ; + ] + SID_DRAW_CAPTION_VERTICAL [ ExecMethod = ExecDraw ; StateMethod = GetDrawState ; -- cgit