From c2a76550a287adf8bdbe93c02395fb80cb11c950 Mon Sep 17 00:00:00 2001 From: Gulsah Kose Date: Tue, 13 Oct 2015 00:53:25 +0300 Subject: tdf#80657 Adding new field to jump to specific page. This patch is not completed. It adds a dropdown field to toolbar. When you click it, the page preview focuses third page (hard coded). This patch's purpose is getting information from developers how to add numbers to dropdown field. -- v2: Removed unnecessary MV_SPECIFIC_PAGE case. v3: Added dropdown field and defined new controller for new field. v4: Implemented page focus who user want. v5: Used NumericField instead of Combobox and added page count control v6: Used nSlotId instead of SID_JUMP_TO_SPECIFIC_PAGE in order to fix macOs build error. Change-Id: I722fbffcc72a1bcee70065e2e9369b73ab27f100 Signed-off-by: Gulsah Kose Reviewed-on: https://gerrit.libreoffice.org/19335 Tested-by: Jenkins Reviewed-by: Oliver Specht --- sw/sdi/swriter.sdi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'sw/sdi/swriter.sdi') diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi index 1b6829e1be7f..a80d38caa026 100644 --- a/sw/sdi/swriter.sdi +++ b/sw/sdi/swriter.sdi @@ -10300,3 +10300,29 @@ SfxVoidItem UnicodeNotationToggle SID_UNICODE_NOTATION_TOGGLE GroupId = GID_OPTIONS; ] +SfxVoidItem JumpToSpecificPage SID_JUMP_TO_SPECIFIC_PAGE +( SfxUInt16Item JumpToSpecificPage SID_JUMP_TO_SPECIFIC_PAGE ) +[ + /* flags: */ + AutoUpdate = FALSE, + Cachable = Cachable, + FastCall = TRUE, + HasCoreId = FALSE, + HasDialog = TRUE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Synchron; + + /* status: */ + SlotType = SfxUInt16Item + + /* config: */ + AccelConfig = FALSE, + MenuConfig = FALSE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_NAVIGATOR; +] -- cgit