diff options
author | Maja Djordjevic <ovcica@gmail.com> | 2011-01-06 12:08:48 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-01-06 12:16:02 +0100 |
commit | ebd0c7e25f21785071e922fd7df2be902447afbe (patch) | |
tree | 595588d282c205b5f0bf9c25ee5cb956e3f05fa4 /sw/sdi | |
parent | 02de6325fbe8a8b46ec862cd1d2868c1b1807894 (diff) |
fdo#32869: Added navigation buttons to writer
Diffstat (limited to 'sw/sdi')
-rw-r--r-- | sw/sdi/_navsh.sdi | 49 | ||||
-rw-r--r-- | sw/sdi/makefile.mk | 2 | ||||
-rw-r--r-- | sw/sdi/navsh.sdi | 35 | ||||
-rw-r--r-- | sw/sdi/swriter.sdi | 51 | ||||
-rw-r--r-- | sw/sdi/swslots.sdi | 2 |
5 files changed, 139 insertions, 0 deletions
diff --git a/sw/sdi/_navsh.sdi b/sw/sdi/_navsh.sdi new file mode 100644 index 000000000000..6bd62d9b8188 --- /dev/null +++ b/sw/sdi/_navsh.sdi @@ -0,0 +1,49 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Initial Developer of the Original Code is + * [ Maja Djordjevic < ovcica@gmail.com > ] + * Portions created by the Initial Developer are Copyright (C) 2010 the + * Initial Developer. All Rights Reserved. + * + * Contributor(s): Cédric Bosdonnat <cbosdonnat@novell.com> + * Caolan McNamara <caolanm@redhat.com> + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +interface _Navigation +[ Automation = FALSE; ] +{ + SfxVoidItem NavigateBack FN_NAVIGATION_BACK + [ + ExecMethod = Execute ; + StateMethod = GetState; + DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; + ] + + SfxVoidItem NavigateForward FN_NAVIGATION_FORWARD + [ + ExecMethod = Execute ; + StateMethod = GetState; + DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; + ] + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/sdi/makefile.mk b/sw/sdi/makefile.mk index e539c7a05511..0cf3813d3fcf 100644 --- a/sw/sdi/makefile.mk +++ b/sw/sdi/makefile.mk @@ -96,6 +96,8 @@ SVSDI1DEPEND= \ mediash.sdi\ _annotsh.sdi\ annotsh.sdi\ + _navsh.sdi \ + navsh.sdi \ swslots.hrc \ $(INC)$/globals.hrc \ $(INC)$/cmdid.h diff --git a/sw/sdi/navsh.sdi b/sw/sdi/navsh.sdi new file mode 100644 index 000000000000..a81c4686ee2b --- /dev/null +++ b/sw/sdi/navsh.sdi @@ -0,0 +1,35 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Initial Developer of the Original Code is + * [ Maja Djordjevic < ovcica@gmail.com > ] + * Portions created by the Initial Developer are Copyright (C) 2010 the + * Initial Developer. All Rights Reserved. + * + * Contributor(s): Cédric Bosdonnat <cbosdonnat@novell.com> + * Caolan McNamara <caolanm@redhat.com> + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +shell SwNavigationShell +{ + import _Navigation[Automation]; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi index 081681e025b5..7caa1c5bf66c 100644 --- a/sw/sdi/swriter.sdi +++ b/sw/sdi/swriter.sdi @@ -10391,3 +10391,54 @@ SfxVoidItem CopyHyperlinkLocation FN_COPY_HYPERLINK_LOCATION ToolBoxConfig = TRUE, GroupId = GID_EDIT; ] + +//-------------------------------------------------------------------------- +SfxVoidItem NavigateBack FN_NAVIGATION_BACK +[ + /* flags: */ + AutoUpdate = TRUE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + Readonly = FALSE, + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_NAVIGATION; +] +//-------------------------------------------------------------------------- +SfxVoidItem NavigateForward FN_NAVIGATION_FORWARD +[ + /* flags: */ + AutoUpdate = TRUE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + Readonly = FALSE, + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_NAVIGATION; +] diff --git a/sw/sdi/swslots.sdi b/sw/sdi/swslots.sdi index 0b59ebb0c211..6730333f695f 100644 --- a/sw/sdi/swslots.sdi +++ b/sw/sdi/swslots.sdi @@ -120,6 +120,8 @@ ModulePrefix( "Sw" ) include "_annotsh.sdi" include "annotsh.sdi" + include "_navsh.sdi" + include "navsh.sdi" } |