From 2368615b9fc3f60e5d6151a6e169022b4b29ff1b Mon Sep 17 00:00:00 2001 From: Tim Hardeck Date: Mon, 11 Jun 2012 14:39:07 +0200 Subject: added zoom submenu to View Added zoom submenu to View with the same entries of the zoom status bar right mouse button menu. This feature was requested on the design-mailing list: http://www.mail-archive.com/design@global.libreoffice.org/msg03561.html Additionally the zoom menu entries were sorted in a more logical way. Change-Id: I5f2df8aa33be9305841fd5505c95963bee8a0ed0 --- sfx2/sdi/appslots.sdi | 32 ++++++++ sfx2/sdi/sfx.sdi | 222 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 254 insertions(+) (limited to 'sfx2/sdi') diff --git a/sfx2/sdi/appslots.sdi b/sfx2/sdi/appslots.sdi index d6d4a8508d80..4fd62fabde65 100644 --- a/sfx2/sdi/appslots.sdi +++ b/sfx2/sdi/appslots.sdi @@ -187,6 +187,38 @@ interface Application ExecMethod = MiscExec_Impl ; StateMethod = MiscState_Impl ; ] + SID_ZOOM_ENTIRE_PAGE + [ + ExecMethod = MiscExec_Impl ; + ] + SID_ZOOM_OPTIMAL + [ + ExecMethod = MiscExec_Impl ; + ] + SID_ZOOM_PAGE_WIDTH + [ + ExecMethod = MiscExec_Impl ; + ] + SID_ZOOM_50_PERCENT + [ + ExecMethod = MiscExec_Impl ; + ] + SID_ZOOM_75_PERCENT + [ + ExecMethod = MiscExec_Impl ; + ] + SID_ZOOM_100_PERCENT + [ + ExecMethod = MiscExec_Impl ; + ] + SID_ZOOM_150_PERCENT + [ + ExecMethod = MiscExec_Impl ; + ] + SID_ZOOM_200_PERCENT + [ + ExecMethod = MiscExec_Impl ; + ] SID_HELP_TUTORIALS [ ExecMethod = MiscExec_Impl ; diff --git a/sfx2/sdi/sfx.sdi b/sfx2/sdi/sfx.sdi index b209baa7ba87..80d73c2c6330 100644 --- a/sfx2/sdi/sfx.sdi +++ b/sfx2/sdi/sfx.sdi @@ -1964,6 +1964,228 @@ SfxBoolItem FullScreen SID_WIN_FULLSCREEN GroupId = GID_VIEW; ] +//-------------------------------------------------------------------------- +SfxVoidItem ZoomPageWidth SID_ZOOM_PAGE_WIDTH + +[ + /* flags: */ + AutoUpdate = TRUE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = TRUE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + Readonly = FALSE, + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_VIEW; +] + + +//-------------------------------------------------------------------------- +SfxVoidItem ZoomOptimal SID_ZOOM_OPTIMAL + +[ + /* flags: */ + AutoUpdate = TRUE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = TRUE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + Readonly = FALSE, + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_VIEW; +] + + +//-------------------------------------------------------------------------- +SfxVoidItem ZoomPage SID_ZOOM_ENTIRE_PAGE + +[ + /* flags: */ + AutoUpdate = TRUE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = TRUE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + Readonly = FALSE, + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_VIEW; +] + + +//-------------------------------------------------------------------------- +SfxVoidItem Zoom200Percent SID_ZOOM_200_PERCENT + +[ + /* flags: */ + AutoUpdate = TRUE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = TRUE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + Readonly = FALSE, + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_VIEW; +] + + +//-------------------------------------------------------------------------- +SfxVoidItem Zoom150Percent SID_ZOOM_150_PERCENT + +[ + /* flags: */ + AutoUpdate = TRUE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = TRUE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + Readonly = FALSE, + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_VIEW; +] + + +//-------------------------------------------------------------------------- +SfxVoidItem Zoom100Percent SID_ZOOM_100_PERCENT + +[ + /* flags: */ + AutoUpdate = TRUE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = TRUE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + Readonly = FALSE, + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_VIEW; +] + + +//-------------------------------------------------------------------------- +SfxVoidItem Zoom75Percent SID_ZOOM_75_PERCENT + +[ + /* flags: */ + AutoUpdate = TRUE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = TRUE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + Readonly = FALSE, + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_VIEW; +] + +//-------------------------------------------------------------------------- +SfxVoidItem Zoom50Percent SID_ZOOM_50_PERCENT + +[ + /* flags: */ + AutoUpdate = TRUE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = TRUE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + Readonly = FALSE, + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_VIEW; +] + //-------------------------------------------------------------------------- SfxObjectItem GetFrameWindow SID_FILLFRAME (SfxStringItem WindowName SID_FILLFRAME) -- cgit v1.2.3