summaryrefslogtreecommitdiff
path: root/sw/inc/gotodlg.hxx
diff options
context:
space:
mode:
authorAkshay Deep <akshaydeepiitr@gmail.com>2016-06-06 11:20:16 +0530
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-07-08 14:05:09 +0000
commit1c39db584f9f1877a9fa5ce00e8d19dd997d8078 (patch)
treee64f485b264edfcd82572513a4854a928ad86c23 /sw/inc/gotodlg.hxx
parent84059c853f15e0e3b1433193e8136350869c23d7 (diff)
tdf#83054 Writer: Add "Go to Page" Entry in Edit Menu
Change-Id: I09026910687b019fe33d4016612b8247ff076100 Reviewed-on: https://gerrit.libreoffice.org/25949 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw/inc/gotodlg.hxx')
-rw-r--r--sw/inc/gotodlg.hxx55
1 files changed, 55 insertions, 0 deletions
diff --git a/sw/inc/gotodlg.hxx b/sw/inc/gotodlg.hxx
new file mode 100644
index 000000000000..b1d531a1a6d5
--- /dev/null
+++ b/sw/inc/gotodlg.hxx
@@ -0,0 +1,55 @@
+/* -*- 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 <vcl/dialog.hxx>
+
+class SwView;
+class SwWrtShell;
+
+class SwGotoPageDlg : public ModalDialog
+{
+public:
+ SwGotoPageDlg(vcl::Window *parent = nullptr, SfxBindings* _pBindings = nullptr);
+
+ virtual ~SwGotoPageDlg();
+ virtual void dispose() override;
+
+ sal_uInt16 GetPageSelection() const{
+ return (mpMtrPageCtrl->GetText()).toUInt32();}
+
+private:
+ SwView* GetCreateView() const;
+ sal_uInt16 GetPageInfo();
+
+ DECL_LINK_TYPED( PageModifiedHdl, Edit&, void );
+
+ VclPtr<Edit> mpMtrPageCtrl;
+ VclPtr<FixedText> mpPageNumberLbl;
+
+ SwView *m_pCreateView;
+ SfxBindings *m_rBindings;
+ sal_uInt16 mnMaxPageCnt;
+};
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file