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/inc/cmdid.h | 1 + sw/inc/helpid.h | 1 + sw/inc/swcommands.h | 1 + 3 files changed, 3 insertions(+) (limited to 'sw/inc') diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h index e4f4d8dd4cc5..6e7cd830d38d 100644 --- a/sw/inc/cmdid.h +++ b/sw/inc/cmdid.h @@ -700,6 +700,7 @@ #define FN_READONLY_SELECTION_MODE (FN_SELECTION + 89) /* switches text selection mode in readonly documents*/ #define FN_SELECTION_MODE_DEFAULT (FN_SELECTION + 90) /* use default selection mode - not block mode */ #define FN_SELECTION_MODE_BLOCK (FN_SELECTION + 91) /* switch on block selection */ +#define SID_JUMP_TO_SPECIFIC_PAGE (FN_SELECTION + 92) // QUERY-Block #define FN_TXTATR_INET (FN_QUERY +29) /* INet-Attribut */ diff --git a/sw/inc/helpid.h b/sw/inc/helpid.h index 8513271e278d..5a4c351dc498 100644 --- a/sw/inc/helpid.h +++ b/sw/inc/helpid.h @@ -240,6 +240,7 @@ #define HID_SEND_HTML_CTRL_LISTBOX_TEMPLATE "SW_HID_SEND_HTML_CTRL_LISTBOX_TEMPLATE" #define HID_PVIEW_ZOOM_LB "SW_HID_PVIEW_ZOOM_LB" +#define HID_JUMP_TO_SPEC_PAGE "SW_HID_JUMP_TO_SPEC_PAGE" #define HID_NID_TBL "SW_HID_NID_TBL" diff --git a/sw/inc/swcommands.h b/sw/inc/swcommands.h index 09c93b4ad096..4478a4d5b88a 100644 --- a/sw/inc/swcommands.h +++ b/sw/inc/swcommands.h @@ -121,6 +121,7 @@ #define CMD_FN_HEADERFOOTER_BORDERBACK ".uno:HeaderFooterBorderBackground" #define CMD_FN_PAGEBREAK_EDIT ".uno:PageBreakEdit" #define CMD_FN_PAGEBREAK_DELETE ".uno:PageBreakDelete" +#define CMD_SID_JUMP_TO_SPECIFIC_PAGE ".uno:JumpToSpecificPage" #endif -- cgit