diff options
author | Rodolfo Ribeiro Gomes <rodolforg@gmail.com> | 2013-05-28 11:22:05 -0300 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-05-30 15:44:47 +0000 |
commit | ffc2e5be1f712b09710e2096ad2f7eb81b80118d (patch) | |
tree | 7f4fa2234c3b41d49d12f1d1760b4e6d73e5c7ea /starmath/sdi | |
parent | 615b3c8425fa0c5e91f61c434cd03f94897b2cac (diff) |
Clean zoom redundances in Math and fix fdo#55929
Zoom can be handled by sfx2 in many ways:
- 50%, 75%, 100%, 150%, 200%
- Optimal view (fit in window)
- Entire page
- Page width
The math module was doing the first two by itself. Remove it.
Strange enough, state methods for zoom interface definitions on
sfx2's appslots.sdi were needed. I thought 'Container' property
in sfx.sdi should do the job. It seems to do nothing, though.
(The zoom should be disabled only if the object is an OLE/Container).
The Help-Ids from pop-up menu in Math/Formula were kept, because
they doesn't exist in sfx2.
Change-Id: Ie1ae413780551b34aa36b338f9a9df79a198319c
Reviewed-on: https://gerrit.libreoffice.org/4076
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'starmath/sdi')
-rw-r--r-- | starmath/sdi/smath.sdi | 124 | ||||
-rw-r--r-- | starmath/sdi/smslots.sdi | 26 |
2 files changed, 0 insertions, 150 deletions
diff --git a/starmath/sdi/smath.sdi b/starmath/sdi/smath.sdi index 6df2a617d227..84a934b6d4e1 100644 --- a/starmath/sdi/smath.sdi +++ b/starmath/sdi/smath.sdi @@ -15,31 +15,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -SfxVoidItem Adjust SID_ADJUST -() -[ - /* flags: */ - AutoUpdate = FALSE, - Cachable = Cachable, - FastCall = FALSE, - HasCoreId = FALSE, - HasDialog = FALSE, - ReadOnlyDoc = TRUE, - Toggle = FALSE, - Container = FALSE, - RecordAbsolute = FALSE, - RecordPerSet; - Synchron; - - /* config: */ - AccelConfig = TRUE, - MenuConfig = TRUE, - StatusBarConfig = FALSE, - ToolBoxConfig = TRUE, - GroupId = GID_VIEW; -] -//-------------------------------------------------------------------------- SfxVoidItem ChangeAlignment SID_ALIGN () [ @@ -292,31 +268,6 @@ SfxVoidItem Draw SID_DRAW ] //-------------------------------------------------------------------------- -SfxVoidItem FitInWindow SID_FITINWINDOW -() -[ - /* flags: */ - AutoUpdate = FALSE, - Cachable = Cachable, - FastCall = FALSE, - HasCoreId = FALSE, - HasDialog = FALSE, - ReadOnlyDoc = TRUE, - Toggle = FALSE, - Container = FALSE, - RecordAbsolute = FALSE, - RecordPerSet; - Synchron; - - /* config: */ - AccelConfig = TRUE, - MenuConfig = TRUE, - StatusBarConfig = FALSE, - ToolBoxConfig = TRUE, - GroupId = GID_VIEW; -] - -//-------------------------------------------------------------------------- SfxBoolItem FormelCursor SID_FORMULACURSOR () [ @@ -878,81 +829,6 @@ SfxBoolItem ToolBox SID_TOOLBOX ] //-------------------------------------------------------------------------- -SfxVoidItem View100 SID_VIEW100 -() -[ - /* flags: */ - AutoUpdate = FALSE, - Cachable = Cachable, - FastCall = FALSE, - HasCoreId = FALSE, - HasDialog = FALSE, - ReadOnlyDoc = TRUE, - Toggle = FALSE, - Container = FALSE, - RecordAbsolute = FALSE, - RecordPerSet; - Synchron; - - /* config: */ - AccelConfig = TRUE, - MenuConfig = TRUE, - StatusBarConfig = FALSE, - ToolBoxConfig = TRUE, - GroupId = GID_VIEW; -] - -//-------------------------------------------------------------------------- -SfxVoidItem View200 SID_VIEW200 -() -[ - /* flags: */ - AutoUpdate = FALSE, - Cachable = Cachable, - FastCall = FALSE, - HasCoreId = FALSE, - HasDialog = FALSE, - ReadOnlyDoc = TRUE, - Toggle = FALSE, - Container = FALSE, - RecordAbsolute = FALSE, - RecordPerSet; - Synchron; - - /* config: */ - AccelConfig = TRUE, - MenuConfig = TRUE, - StatusBarConfig = FALSE, - ToolBoxConfig = TRUE, - GroupId = GID_VIEW; -] - -//-------------------------------------------------------------------------- -SfxVoidItem View50 SID_VIEW050 -() -[ - /* flags: */ - AutoUpdate = FALSE, - Cachable = Cachable, - FastCall = FALSE, - HasCoreId = FALSE, - HasDialog = FALSE, - ReadOnlyDoc = TRUE, - Toggle = FALSE, - Container = FALSE, - RecordAbsolute = FALSE, - RecordPerSet; - Synchron; - - /* config: */ - AccelConfig = TRUE, - MenuConfig = TRUE, - StatusBarConfig = FALSE, - ToolBoxConfig = TRUE, - GroupId = GID_VIEW; -] - -//-------------------------------------------------------------------------- SfxVoidItem ZoomIn SID_ZOOMIN () [ diff --git a/starmath/sdi/smslots.sdi b/starmath/sdi/smslots.sdi index 5db0d631a25b..9857d3902bb6 100644 --- a/starmath/sdi/smslots.sdi +++ b/starmath/sdi/smslots.sdi @@ -176,21 +176,6 @@ interface FormulaView ExecMethod = Execute ; StateMethod = GetState ; ] - SID_VIEW050 //idlpp ole : no , status : no - [ - ExecMethod = Execute ; - StateMethod = GetState ; - ] - SID_VIEW100 //idlpp ole : no , status : no - [ - ExecMethod = Execute ; - StateMethod = GetState ; - ] - SID_VIEW200 //idlpp ole : no , status : no - [ - ExecMethod = Execute ; - StateMethod = GetState ; - ] SID_ZOOMIN //idlpp ole : no , status : no [ ExecMethod = Execute ; @@ -206,17 +191,6 @@ interface FormulaView ExecMethod = Execute ; StateMethod = GetState ; ] - SID_ADJUST //idlpp ole : no , status : no - [ - ExecMethod = Execute ; - StateMethod = GetState ; - ] - //idlpp kein Menueeintrag , also keine Texte - SID_FITINWINDOW //idlpp ole : no , status : no - [ - ExecMethod = Execute ; - StateMethod = GetState ; - ] //idlpp kein Menueeintrag , also keine Texte SID_COPYOBJECT //idlpp ole : no , status : no [ |