summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorAkshayWarrier <aksmen121@gmail.com>2024-02-02 02:18:24 +0530
committerJim Raykowski <raykowj@gmail.com>2024-02-10 02:05:55 +0100
commitace21b4b2537a3cf2301fca2ac6f78d0612e911f (patch)
tree487ea76fce8226574fa97f587b2e798df15db155 /sw/inc
parent9af4b5254cbe6a6770ebe78ba14074266b05471e (diff)
tdf#159372 svx: Add goto dialog
Adds a goto page/slide dialog for Impress and Draw similar to Writer. To avoid duplicating code and ui, the dialog is created in svx/ and used in other modules. The old goto dialog in Writer has now been replaced with this dialog. Change-Id: I28f819f0d0734fb2bb08a7b99a628217ef66dba9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162913 Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/cmdid.h2
-rw-r--r--sw/inc/gotodlg.hxx54
-rw-r--r--sw/inc/strings.hrc1
3 files changed, 1 insertions, 56 deletions
diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h
index 165b6aa60a30..4773f173d603 100644
--- a/sw/inc/cmdid.h
+++ b/sw/inc/cmdid.h
@@ -545,8 +545,6 @@ class SwUINumRuleItem;
#define FN_UPDATE_CUR_TOX (FN_EXTRA + 54) /* update current index */
#define FN_REMOVE_CUR_TOX (FN_EXTRA + 55) /* remove the current TOX*/
-#define FN_GOTO_PAGE (FN_EXTRA + 59 ) /* goto page */
-
#define FN_COLL_TYPE (FN_EXTRA + 98) /* type for GlobalDoc-Collection*/
#define FN_COLL_ADD (FN_EXTRA + 99)
diff --git a/sw/inc/gotodlg.hxx b/sw/inc/gotodlg.hxx
deleted file mode 100644
index 0d10da367f68..000000000000
--- a/sw/inc/gotodlg.hxx
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_GOTODLG_HXX
-#define INCLUDED_SW_SOURCE_UIBASE_INC_GOTODLG_HXX
-
-#include <sfx2/bindings.hxx>
-#include <vcl/weld.hxx>
-
-class SwView;
-
-class SwGotoPageDlg final : public weld::GenericDialogController
-{
-public:
- SwGotoPageDlg(weld::Window *parent, SfxBindings& rBindings);
-
- sal_uInt16 GetPageSelection() const
- {
- return mxMtrPageCtrl->get_text().toUInt32();
- }
-
-private:
- SwView *m_pCreateView;
- SfxBindings& m_rBindings;
- sal_uInt16 mnMaxPageCnt;
-
- std::unique_ptr<weld::SpinButton> mxMtrPageCtrl;
- std::unique_ptr<weld::Label> mxPageNumberLbl;
-
- SwView* GetCreateView() const;
- sal_uInt16 GetPageInfo();
-
- DECL_LINK( PageModifiedHdl, weld::Entry&, void );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc
index 9e0cf978aa3b..8f3eadcab6d8 100644
--- a/sw/inc/strings.hrc
+++ b/sw/inc/strings.hrc
@@ -1247,6 +1247,7 @@
#define STR_IMGBTN_FIELD_DOWN NC_("STR_IMGBTN_FIELD_DOWN", "Next field")
#define STR_IMGBTN_FIELD_BYTYPE_UP NC_("STR_IMGBTN_FIELD_BYTYPE_UP", "Previous '%FIELDTYPE' field")
#define STR_IMGBTN_FIELD_BYTYPE_DOWN NC_("STR_IMGBTN_FIELD_BYTYPE_DOWN", "Next '%FIELDTYPE' field")
+#define STR_GOTO_PAGE_DLG_TITLE NC_("STR_GOTO_PAGE_DLG_TITLE", "Go to Page")
#define STR_REDLINE_INSERT NC_("STR_REDLINE_INSERT", "Inserted")
#define STR_REDLINE_DELETE NC_("STR_REDLINE_DELETE", "Deleted")