summaryrefslogtreecommitdiffstats
path: root/sd/sdi
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-03-15 13:53:19 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-03-15 13:53:19 +0100
commitf391eb8768b00e1db5bdf8a510ba5cce3669f572 (patch)
tree69a6ee2680d8b18182f3282dab9d9a9dfce151cc /sd/sdi
parentautorecovery: ENSURE_OR_RETURN => ENSURE_OR_RETURN_FALSE, added new ENSURE_OR... (diff)
downloadcore-f391eb8768b00e1db5bdf8a510ba5cce3669f572.tar.gz
core-f391eb8768b00e1db5bdf8a510ba5cce3669f572.zip
slidecopy: initial version of a "Tool Panel"
At the moment, this implementation is parallel to the existing TaskPane implementation, but on the medium term, it is intended to replace it. No change in functionality is planned for the moment, just the panel selection is done via a tab bar, instead of the the "jumping drawers". Pending tasks (as known so far): - Accessibility. No implementation at all, yet. - showing/hiding tool panels from the "View" drop down menu - connection to the resource framework. At the moment, de/activating panels completely bypasses the resource framework. - alternative implementation of the PanelDeckLayouter which mimics the old design. To be activated by default, for the moment. - removal of the (old, by then) TaskPane implementation. Care needs to be taken that the framework API stays unchanged, i.e., the current ToolPanel resource must be renamed back to RightPane when RightPane is not occupied anymore by the old implementation. Same for other resource names.
Diffstat (limited to 'sd/sdi')
-rw-r--r--sd/sdi/ToolPanelViewShell.sdi30
-rw-r--r--sd/sdi/ViewShellBase.sdi31
-rw-r--r--sd/sdi/makefile.mk2
-rw-r--r--sd/sdi/sdslots.sdi1
4 files changed, 64 insertions, 0 deletions
diff --git a/sd/sdi/ToolPanelViewShell.sdi b/sd/sdi/ToolPanelViewShell.sdi
new file mode 100644
index 000000000000..d4a48d939846
--- /dev/null
+++ b/sd/sdi/ToolPanelViewShell.sdi
@@ -0,0 +1,30 @@
+/*************************************************************************
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+************************************************************************/
+
+shell ToolPanelViewShell
+{
+}
+
diff --git a/sd/sdi/ViewShellBase.sdi b/sd/sdi/ViewShellBase.sdi
index 67d9cfb1e85e..226bd38cb581 100644
--- a/sd/sdi/ViewShellBase.sdi
+++ b/sd/sdi/ViewShellBase.sdi
@@ -164,6 +164,32 @@ SfxBoolItem RightPane SID_RIGHT_PANE
GroupId = GID_MODIFY;
]
+SfxBoolItem ToolPanel SID_TOOL_PANEL_PANE
+
+[
+ /* flags: */
+ AutoUpdate = TRUE,
+ Cachable = Cachable,
+ FastCall = FALSE,
+ HasCoreId = FALSE,
+ HasDialog = TRUE,
+ ReadOnlyDoc = FALSE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+ Asynchron;
+
+ Readonly = FALSE,
+
+ /* config: */
+ AccelConfig = TRUE,
+ MenuConfig = TRUE,
+ StatusBarConfig = FALSE,
+ ToolBoxConfig = TRUE,
+ GroupId = GID_MODIFY;
+]
+
SfxVoidItem NotesChildWindow SID_NOTES_WINDOW
[
@@ -288,6 +314,11 @@ interface ViewShellBaseView
ExecMethod = Execute;
StateMethod = GetState;
]
+ SID_TOOL_PANEL_PANE
+ [
+ ExecMethod = Execute;
+ StateMethod = GetState;
+ ]
SID_NOTES_WINDOW
[
ExecMethod = Execute;
diff --git a/sd/sdi/makefile.mk b/sd/sdi/makefile.mk
index 7eb22a96c770..dbe86abd7228 100644
--- a/sd/sdi/makefile.mk
+++ b/sd/sdi/makefile.mk
@@ -71,6 +71,7 @@ SVSDI1DEPEND= \
SlideSorterController.sdi \
ViewShellBase.sdi \
TaskPaneViewShell.sdi \
+ ToolPanelViewShell.sdi \
sdslots.hrc \
$(PRJ)$/inc$/app.hrc
@@ -93,6 +94,7 @@ SVSDI2DEPEND= \
outlnvsh.sdi \
ViewShellBase.sdi \
TaskPaneViewShell.sdi \
+ ToolPanelViewShell.sdi \
sdslots.hrc \
$(PRJ)$/inc$/app.hrc
diff --git a/sd/sdi/sdslots.sdi b/sd/sdi/sdslots.sdi
index 208613595b65..e5deabe64ee8 100644
--- a/sd/sdi/sdslots.sdi
+++ b/sd/sdi/sdslots.sdi
@@ -108,4 +108,5 @@ ModulePrefix( "Sd" )
include "mediaob.sdi"
include "tables.sdi"
include "TaskPaneViewShell.sdi"
+ include "ToolPanelViewShell.sdi"
}