diff options
author | Regina Henschel <regina@apache.org> | 2015-07-08 12:31:43 +0000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-07-08 16:57:49 +0200 |
commit | 64bc8b45b5c23efc5fe57585a69aa4263aaf4e83 (patch) | |
tree | d61a0aa25685e951ffa32751afb89e97c35531a0 /starmath/sdi | |
parent | 26aebe26f706d9fbc9c113f5c1fdc495578435bf (diff) |
i#107734 Support for Math Input Panel in Windows 7
The patch introduces a new command .uno:ImportMathClipboard to module Math.
It imports MathML content from clipboard and transforms it to Starmath
It handles clipboard MIME type 'application/mathml+xml' and
plain text, which can be interpreted as MathML segment.
It partly solves issues #i14252, #i34781, and #i53509 too.
Review by: Hanya <hanya.runo@gmail.com>
(cherry picked from commit 9ec2148653436be8612273439180749e71e2ce58)
Conflicts:
dtrans/source/win32/ftransl/ftransl.cxx
officecfg/registry/data/org/openoffice/Office/UI/MathCommands.xcu
sot/inc/sot/formats.hxx
sot/source/base/exchange.cxx
starmath/sdi/smath.sdi
starmath/source/view.cxx
Change-Id: I6cb5e8f737ee2e39f9ce96aba841db347a8806e4
Diffstat (limited to 'starmath/sdi')
-rw-r--r-- | starmath/sdi/smath.sdi | 23 | ||||
-rw-r--r-- | starmath/sdi/smslots.sdi | 6 |
2 files changed, 29 insertions, 0 deletions
diff --git a/starmath/sdi/smath.sdi b/starmath/sdi/smath.sdi index 94caccacec4b..bbf5a6bedb6f 100644 --- a/starmath/sdi/smath.sdi +++ b/starmath/sdi/smath.sdi @@ -418,6 +418,29 @@ SfxBoolItem ImportFormula SID_IMPORT_FORMULA GroupId = GID_INSERT; ] +SfxBoolItem ImportMathMLClipboard SID_IMPORT_MATHML_CLIPBOARD +() +[ + /* flags: */ + AutoUpdate = FALSE, + Cachable = Cachable, + FastCall = TRUE, + HasCoreId = FALSE, /*obsolete */ + HasDialog = FALSE, /*obsolete */ + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, /*obsolete */ + RecordPerSet; + Synchron; + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_INSERT; +] SfxVoidItem LoadSymbols SID_LOADSYMBOLS () diff --git a/starmath/sdi/smslots.sdi b/starmath/sdi/smslots.sdi index 9857d3902bb6..a43eb7c38bff 100644 --- a/starmath/sdi/smslots.sdi +++ b/starmath/sdi/smslots.sdi @@ -251,6 +251,12 @@ interface FormulaView StateMethod = GetState ; Export = FALSE ; ] + SID_IMPORT_MATHML_CLIPBOARD //idlpp ole : no , status : no + [ + ExecMethod = Execute ; + StateMethod = GetState ; + Export = FALSE ; + ] //idlpp kein Menueeintrag , also keine Texte SID_ATTR_ZOOM //idlpp ole : no , status : no [ |