summaryrefslogtreecommitdiff
path: root/sd/source/ui/app
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/app')
-rw-r--r--sd/source/ui/app/_app.hrc45
-rw-r--r--sd/source/ui/app/accel_tmpl.src120
-rw-r--r--sd/source/ui/app/accelids_tmpl.src57
-rw-r--r--sd/source/ui/app/app.img120
-rw-r--r--sd/source/ui/app/app.src38
-rw-r--r--sd/source/ui/app/makefile.mk118
-rw-r--r--sd/source/ui/app/menu_tmpl.src43
-rw-r--r--sd/source/ui/app/menuids2_tmpl.src1025
-rw-r--r--sd/source/ui/app/menuids3_tmpl.src249
-rw-r--r--sd/source/ui/app/menuids4_tmpl.src82
-rw-r--r--sd/source/ui/app/menuids_tmpl.src1308
-rw-r--r--sd/source/ui/app/menuportal_tmpl.src391
-rw-r--r--sd/source/ui/app/optsitem.cxx1813
-rw-r--r--sd/source/ui/app/popup.src556
-rw-r--r--sd/source/ui/app/popup2_tmpl.src875
-rw-r--r--sd/source/ui/app/res_bmp.src564
-rw-r--r--sd/source/ui/app/sddll.cxx336
-rw-r--r--sd/source/ui/app/sddll1.cxx141
-rw-r--r--sd/source/ui/app/sddll2.cxx233
-rw-r--r--sd/source/ui/app/sdmod.cxx358
-rw-r--r--sd/source/ui/app/sdmod1.cxx1100
-rw-r--r--sd/source/ui/app/sdmod2.cxx837
-rw-r--r--sd/source/ui/app/sdpopup.cxx341
-rw-r--r--sd/source/ui/app/sdresid.cxx49
-rw-r--r--sd/source/ui/app/sdstring.src55
-rw-r--r--sd/source/ui/app/sdxfer.cxx884
-rw-r--r--sd/source/ui/app/strings.src1275
-rw-r--r--sd/source/ui/app/tbx_ww.src1127
-rw-r--r--sd/source/ui/app/tbxids_tmpl.src539
-rw-r--r--sd/source/ui/app/tbxww.cxx475
-rw-r--r--sd/source/ui/app/tmplctrl.cxx164
-rw-r--r--sd/source/ui/app/toolbox.src789
-rw-r--r--sd/source/ui/app/toolbox2_tmpl.src888
33 files changed, 16995 insertions, 0 deletions
diff --git a/sd/source/ui/app/_app.hrc b/sd/source/ui/app/_app.hrc
new file mode 100644
index 000000000000..cf6ea8c1a11c
--- /dev/null
+++ b/sd/source/ui/app/_app.hrc
@@ -0,0 +1,45 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: _app.hrc,v $
+ * $Revision: 1.3 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+#ifndef __APP_HRC
+#define __APP_HRC
+
+
+#define MN_WIN 90
+#define MN_SUB_VIEW 91
+#define MN_SUB_TOOLBAR 92
+#define MN_SUB_GRAPHIC 93
+#define MN_SUB_SPELLING 94
+#define MN_SUB_TEMPLATES 95
+#define MN_SUB_POSITION 96
+#define MN_SUB_MASTERPAGE 97
+#define MN_SUB_SEND 98
+
+#endif
diff --git a/sd/source/ui/app/accel_tmpl.src b/sd/source/ui/app/accel_tmpl.src
new file mode 100644
index 000000000000..b8119692076e
--- /dev/null
+++ b/sd/source/ui/app/accel_tmpl.src
@@ -0,0 +1,120 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: accel_tmpl.src,v $
+ * $Revision: 1.6 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+#ifndef SD_ACCELERATOR
+#define SD_ACCELERATOR RID_DRAW_DEFAULTACCEL
+#include "accelids.src"
+#endif
+
+#ifndef _GLOBALACC_SRC
+#include <svx/globlac.hrc>
+#endif
+
+/** For the presentation we change some accelerator keys:
+ The navigator is moved from F5 to Shift-F5.
+ The presentation is started for F5, F9, Control-F2. The later two are
+ defined in svx/globalac.hrc.
+*/
+#define AI_SD_NAVIGATOR ACC_CODE(SID_NAVIGATOR, KEY_F5, TRUE, FALSE, FALSE )
+#define AI_PRESENTATION_F5 ACC_CODE(SID_PRESENTATION, KEY_F5, FALSE, FALSE, FALSE )
+
+Accelerator SD_ACCELERATOR
+{
+ ItemList =
+ {
+ // Funktionstasten
+ AI_ATTR_CHAR
+#if SD_ACCELERATOR != RID_GRAPHIC_DEFAULTACCEL
+ AI_PRESENTATION_F5
+ AI_PRESENTATION
+ AI_PRESENTATION_COMPAT
+#endif
+ AI_ENTER_GROUP
+ AI_COPYOBJECTS
+ AI_LEAVE_GROUP
+ AI_ATTR_TRANSFORM
+ // AI_NAVIGATOR
+ AI_SD_NAVIGATOR
+ AI_SPELLING
+ AI_THESAURUS
+ AI_BEZIER_EDIT
+ AI_ATTR_TEXT_FITTOSIZE
+ AI_STYLE_DESIGNER
+#if SD_ACCELERATOR != RID_GRAPHIC_DEFAULTACCEL
+ AI_OUTLINEMODE
+ AI_DRAWINGMODE
+#endif
+ // A-Z Acceleratoren
+ AI_ATTR_PARA_LINESPACE_10
+ AI_ATTR_PARA_LINESPACE_20
+ AI_ATTR_PARA_LINESPACE_15
+ AI_SHOW_ITEMBROWSER
+ AI_ATTR_PARA_ADJUST_BLOCK
+ AI_ATTR_PARA_ADJUST_CENTER
+ AI_ATTR_CHAR_WEIGHT
+ AI_GROUP
+ AI_UNGROUP
+ // Weitersuchen ...
+ AI_SET_SUPER_SCRIPT
+ AI_ATTR_CHAR_POSTURE
+ AI_COMBINE
+ AI_DISMANTLE
+ AI_ATTR_PARA_ADJUST_LEFT
+ AI_ATTR_PARA_ADJUST_RIGHT
+ AI_SET_SUB_SCRIPT
+ AI_ATTR_CHAR_UNDERLINE
+ AI_STYLE_CATALOG
+#if SD_ACCELERATOR != RID_PLUGINACCEL
+// Ob das wirklich richtig ist (PlugIn-Accel) sollte mal geprueft werden !!!
+ // Anordnung
+ AI_FRAME_TO_TOP
+ AI_MOREFRONT
+ AI_FRAME_TO_BOTTOM
+ AI_MOREBACK
+ // sonstige Acceleratoren
+ AI_NEWDOC
+ AI_OPENDOC
+#endif
+ AI_SAVEDOC
+ AI_PRINTDOC
+ AI_QUITAPP
+ AI_CUT
+ AI_COPY
+ AI_PASTE
+ AI( SID_PASTE2, KEY_V, TRUE, TRUE, FALSE )
+ AI_UNDO
+ AI_REDO
+ AI_REPEAT
+ AI_DELETE
+ };
+};
+
+
+
diff --git a/sd/source/ui/app/accelids_tmpl.src b/sd/source/ui/app/accelids_tmpl.src
new file mode 100644
index 000000000000..c134ae24c5bf
--- /dev/null
+++ b/sd/source/ui/app/accelids_tmpl.src
@@ -0,0 +1,57 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: accelids_tmpl.src,v $
+ * $Revision: 1.4 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+
+
+#ifndef _ACCELIDS_SRC
+#define _ACCELIDS_SRC
+
+#define AI( Id, c, bSh, bM1, bM2 ) \
+ AcceleratorItem { Identifier = Id; \
+ Key = KeyCode { Code = c ; \
+ Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; }; };
+
+#define AIF( Id, f ) \
+ AcceleratorItem { Identifier = Id; \
+ Key = KeyCode { Function = f ; }; };
+
+#define KC( language, c, bSh, bM1, bM2 ) \
+ Key[ language ] = KeyCode { Code = c ; \
+ Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; };
+
+#define KCD( c, bSh, bM1, bM2 ) \
+ Key = KeyCode { Code = c ; \
+ Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; };
+
+#endif // _ACCELIDS_SRC
+
+
+
+
diff --git a/sd/source/ui/app/app.img b/sd/source/ui/app/app.img
new file mode 100644
index 000000000000..a435b84b8887
--- /dev/null
+++ b/sd/source/ui/app/app.img
@@ -0,0 +1,120 @@
+File = "sc05410.bmp";Identifier = SID_HELPMENU;
+File = "sc05500.bmp";Identifier = SID_NEW_DOCUMENT;File = "sco043.bmp
+File = "sc05501.bmp";Identifier = SID_OPENDOC;File = "sco044.bmp
+File = "sc05504.bmp";Identifier = SID_PRINTDOC;File = "sco051.bmp
+File = "sc05505.bmp";Identifier = SID_SAVEDOC;File = "sco046.bmp
+File = "sc05539.bmp";Identifier = SID_TEMPLATE;
+File = "sc05561.bmp";Identifier = SID_INSERT_OBJECT;
+File = "sc05700.bmp";Identifier = SID_REDO;
+File = "sc05701.bmp";Identifier = SID_UNDO;
+File = "sc05710.bmp";Identifier = SID_CUT;File = "sco058.bmp
+File = "sc05711.bmp";Identifier = SID_COPY;File = "sco059.bmp
+File = "sc05712.bmp";Identifier = SID_PASTE;File = "sco060.bmp
+
+File = "sc10008.bmp";Identifier = SID_ATTR_CHAR_POSTURE;
+File = "sc10009.bmp";Identifier = SID_ATTR_CHAR_WEIGHT;
+File = "sc10012.bmp";Identifier = SID_ATTR_CHAR_CONTOUR;
+File = "sc10014.bmp";Identifier = SID_ATTR_CHAR_UNDERLINE;
+File = "sc10028.bmp";Identifier = SID_TEXT_ADJUST_LEFT;
+File = "sc10029.bmp";Identifier = SID_TEXT_ADJUST_RIGHT;
+File = "sc10030.bmp";Identifier = SID_TEXT_ADJUST_CENTER;
+File = "sc10031.bmp";Identifier = SID_TEXT_ADJUST_BLOCK;
+File = "sc10034.bmp";Identifier = SID_TEXT_LINESPACING_1;
+File = "sc10035.bmp";Identifier = SID_TEXT_LINESPACING_2;
+File = "sc10036.bmp";Identifier = SID_TEXT_LINESPACING_3;
+File = "sc10087.bmp";Identifier = SID_TRANSFORM;
+File = "sc10102.bmp";Identifier = SID_TOOL_LINE;File = "sco207.bmp
+File = "sc10104.bmp";Identifier = SID_TOOL_RECT;File = "sco209.bmp
+File = "sc10110.bmp";Identifier = SID_TOOL_ELLIPSE;File = "sco215.bmp
+File = "sc10113.bmp";Identifier = SID_TOOL_PIE;File = "sco220.bmp
+File = "sc10114.bmp";Identifier = SID_TOOL_ARC;File = "sco217.bmp
+File = "sc10116.bmp";Identifier = SID_TOOL_CIRCLECUT;File = "sco221.bmp
+File = "sc10117.bmp";Identifier = SID_TOOL_POLYGON;File = "sco222.bmp
+File = "sc10118.bmp";Identifier = SID_TOOL_BEZIER;File = "sco223.bmp
+File = "sc10119.bmp";Identifier = SID_BEZIER_INSERT;
+File = "sc10120.bmp";Identifier = SID_BEZIER_DELETE;
+File = "sc10121.bmp";Identifier = SID_BEZIER_MOVE;
+File = "sc10122.bmp";Identifier = SID_BEZIER_CLOSE;
+// wurde durch sc20014.bmp ersetzt:
+// File = "sc10123.bmp";Identifier = SID_BEZIER_SMOOTH;
+File = "sc10126.bmp";Identifier = SID_EDIT_POINTS;
+File = "sc10127.bmp";Identifier = SID_BEZIER_CUTLINE;
+File = "sc10129.bmp";Identifier = SID_TOOL_ROTATE;
+File = "sc10130.bmp";Identifier = SID_ALIGNMENT;
+File = "sc10131.bmp";Identifier = SID_LEFT;File = "sco231.bmp
+File = "sc10132.bmp";Identifier = SID_CENTER;File = "sco232.bmp
+File = "sc10133.bmp";Identifier = SID_RIGHT;File = "sco233.bmp
+File = "sc10134.bmp";Identifier = SID_UP;File = "sco234.bmp
+File = "sc10135.bmp";Identifier = SID_MIDDLE;File = "sco235.bmp
+File = "sc10136.bmp";Identifier = SID_DOWN;File = "sco236.bmp
+File = "sc10140.bmp";Identifier = SID_INSERTDIAGRAM;File = "sco246.bmp
+File = "sc10141.bmp";Identifier = SID_ATTR_TABLE;
+File = "sc10142.bmp";Identifier = SID_AREA;
+File = "sc10143.bmp";Identifier = SID_LINE;
+File = "sc10144.bmp";Identifier = SID_TOOL_CONTROLS;File = "sco270.bmp
+File = "sc10145.bmp";Identifier = SID_DIALOG_TESTMODE;File = "sco274.bmp
+File = "sc10146.bmp";Identifier = SID_INSERT_PUSHBUTTON;File = "sco271.bmp
+File = "sc10147.bmp";Identifier = SID_INSERT_RADIOBUTTON;File = "sco272.bmp
+File = "sc10148.bmp";Identifier = SID_INSERT_CHECKBOX;File = "sco273.bmp
+File = "sc10150.bmp";Identifier = SID_OUTLINE_UP;File = "sco290.bmp
+File = "sc10151.bmp";Identifier = SID_OUTLINE_DOWN;File = "sco291.bmp
+File = "sc10152.bmp";Identifier = SID_OUTLINE_LEFT;File = "sco292.bmp
+File = "sc10153.bmp";Identifier = SID_OUTLINE_RIGHT;File = "sco293.bmp
+File = "sc10154.bmp";Identifier = SID_OUTLINE_FORMAT;File = "sco204.bmp
+File = "sc10155.bmp";Identifier = SID_OUTLINE_TITLE;File = "sco295.bmp
+File = "sc10156.bmp";Identifier = SID_OUTLINE_BULLET;File = "sco296.bmp
+File = "sc10157.bmp";Identifier = SID_PRESENTATION;File = "sco238.bmp
+File = "sc10159.bmp";Identifier = SID_REHEARSE_TIMINGS;File = "sco239.bmp
+File = "sc10160.bmp";Identifier = SID_DIA;File = "sco240.bmp
+File = "sc10161.bmp";Identifier = SID_HIDE_SLIDE;File = "sco241.bmp
+File = "sc10162.bmp";Identifier = SID_CHOOSE_POLYGON;File = "sco242.bmp
+File = "sc10163.bmp";Identifier = SID_SHOW_BROWSER;File = "sco275.bmp
+File = "sc10188.bmp";Identifier = SID_INSERT_FIXEDTEXT;File = "sco276.bmp
+File = "sc10189.bmp";Identifier = SID_INSERT_GROUPBOX;File = "sco277.bmp
+File = "sc10191.bmp";Identifier = SID_INSERT_LISTBOX;File = "sco278.bmp
+File = "sc10192.bmp";Identifier = SID_INSERT_COMBOBOX;File = "sco279.bmp
+File = "sc10231.bmp";Identifier = SID_OUTLINE_COLLAPSE;
+File = "sc10232.bmp";Identifier = SID_OUTLINE_EXPAND_ALL;
+File = "sc10233.bmp";Identifier = SID_OUTLINE_EXPAND;
+File = "sc10240.bmp";Identifier = SID_INSERT_FRAME;
+File = "sc10241.bmp";Identifier = SID_INSERT_GRAPHIC;
+File = "sc10242.bmp";Identifier = SID_AUTOFORMAT;
+File = "sc10243.bmp";Identifier = SID_SPELLING;
+File = "sc10244.bmp";Identifier = SID_INSERT_DRAW;
+File = "sc10700.bmp";Identifier = SID_TOOL_SELECT;File = "sco200.bmp
+File = "sc10701.bmp";Identifier = SID_TOOL_ZOOM;File = "sco201.bmp
+File = "sc10702.bmp";Identifier = SID_ZOOM_PLUS;File = "sco202.bmp
+File = "sc10703.bmp";Identifier = SID_ZOOM_MINUS;File = "sco203.bmp
+File = "sc10704.bmp";Identifier = SID_ZOOM_100_PERCENT;File = "sco204.bmp
+File = "sc10705.bmp";Identifier = SID_ZOOM_PAGE;File = "sco205.bmp
+File = "sc10706.bmp";Identifier = SID_ZOOM_OBJECTS;File = "sco206.bmp
+File = "sc10724.bmp";Identifier = SID_TOOL_TEXT;File = "sco224.bmp
+
+File = "sc20000.bmp";Identifier = SID_ATTR_CHAR_COLOR;File = "charcol.bmp";
+File = "sc20001.bmp";Identifier = SID_TOOL_CONNECTOR;File = "sco298.bmp";
+
+// Controller
+File = "sc20002.bmp";Identifier = SID_TEMPLATE_APPLY;
+File = "sc20003.bmp";Identifier = SID_ATTR_LINE_STYLE;
+File = "sc20004.bmp";Identifier = SID_ATTR_LINE_WIDTH;
+File = "sc20005.bmp";Identifier = SID_ATTR_LINE_COLOR;
+File = "sc20006.bmp";Identifier = SID_ATTR_FILL_STYLE;
+File = "sc20007.bmp";Identifier = SID_DIA_EFFECT;
+File = "sc20008.bmp";Identifier = SID_DIA_SPEED;
+File = "sc20009.bmp";Identifier = SID_DIA_AUTO;
+File = "sc20010.bmp";Identifier = SID_DIA_TIME;
+File = "sc20011.bmp";Identifier = SID_ATTR_FONT;
+File = "sc20012.bmp";Identifier = SID_ATTR_FONTHEIGHT;
+
+// Bezier-Toolbar
+File = "sc20013.bmp";Identifier = SID_BEZIER_EDGE;
+File = "sc20014.bmp";Identifier = SID_BEZIER_SMOOTH;
+File = "sc20015.bmp";Identifier = SID_BEZIER_SYMMTR;
+File = "sc20016.bmp";Identifier = SID_BEZIER_CONVERT;
+
+// Standardleiste
+File = "sc20020.bmp";Identifier = SID_INSERTPAGE;
+File = "sc20094.bmp";Identifier = SID_MODIFYPAGE;
+File = "sc20170.bmp";Identifier = SID_PRESENTATION_LAYOUT;
+
+// Basic-IDE ...
diff --git a/sd/source/ui/app/app.src b/sd/source/ui/app/app.src
new file mode 100644
index 000000000000..957cd6c25f53
--- /dev/null
+++ b/sd/source/ui/app/app.src
@@ -0,0 +1,38 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: app.src,v $
+ * $Revision: 1.30 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+
+#include "app.hrc"
+#include "res_bmp.hrc"
+#include <svx/dialogs.hrc>
+#include "cfgids.hxx"
+#include "misc.hxx"
+#include <svx/svxids.hrc>
+
diff --git a/sd/source/ui/app/makefile.mk b/sd/source/ui/app/makefile.mk
new file mode 100644
index 000000000000..82a6177a9e95
--- /dev/null
+++ b/sd/source/ui/app/makefile.mk
@@ -0,0 +1,118 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2008 by Sun Microsystems, Inc.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.19 $
+#
+# 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.
+#
+#*************************************************************************
+
+PRJ=..$/..$/..
+
+PROJECTPCH=sd
+PROJECTPCHSOURCE=$(PRJ)$/util$/sd
+PRJNAME=sd
+TARGET=app
+
+AUTOSEG=true
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+.INCLUDE : $(PRJ)$/util$/makefile.pmk
+
+NO_HID_FILES=app.src
+.EXPORT : NO_HID_FILES
+
+# --- Files --------------------------------------------------------
+
+SRS1NAME=$(TARGET)
+SRC1FILES = \
+ app.src \
+ toolbox.src \
+ strings.src \
+ res_bmp.src \
+ tbx_ww.src \
+ popup.src \
+ sdstring.src
+
+#OBJFILES = \
+# $(OBJ)$/sdlib.obj \
+# $(OBJ)$/sdresid.obj \
+
+SLOFILES = \
+ $(SLO)$/sdmod.obj \
+ $(SLO)$/sdmod1.obj \
+ $(SLO)$/sdmod2.obj \
+ $(SLO)$/sddll.obj \
+ $(SLO)$/sddll1.obj \
+ $(SLO)$/sddll2.obj \
+ $(SLO)$/tbxww.obj \
+ $(SLO)$/optsitem.obj \
+ $(SLO)$/sdresid.obj \
+ $(SLO)$/sdpopup.obj \
+ $(SLO)$/sdxfer.obj \
+ $(SLO)$/tmplctrl.obj
+
+EXCEPTIONSFILES= \
+ $(SLO)$/sdxfer.obj \
+ $(SLO)$/sdmod1.obj \
+ $(SLO)$/tmplctrl.obj
+
+.IF "$(GUI)" == "WNT"
+
+NOOPTFILES=\
+ $(SLO)$/optsitem.obj
+
+.ENDIF
+
+# --- Tagets -------------------------------------------------------
+
+all: \
+ $(INCCOM)$/sddll0.hxx \
+ ALLTAR
+
+$(INCCOM)$/sddll0.hxx: makefile.mk
+ @echo $@
+.IF "$(GUI)"=="UNX"
+ echo \#define DLL_NAME \"libsd$(DLLPOSTFIX)$(DLLPOST)\" >$@
+.ELSE # "$(GUI)"=="UNX"
+.IF "$(USE_SHELL)"!="4nt"
+ echo \#define DLL_NAME \"sd$(DLLPOSTFIX).DLL\" >$@
+.ELSE # "$(USE_SHELL)"!="4nt"
+ echo #define DLL_NAME "sd$(DLLPOSTFIX).DLL" >$@
+.ENDIF # "$(USE_SHELL)"!="4nt"
+.ENDIF # "$(GUI)"=="UNX"
+
+LOCALIZE_ME = tbxids_tmpl.src menuids2_tmpl.src menu_tmpl.src menuids_tmpl.src menuids4_tmpl.src popup2_tmpl.src toolbox2_tmpl.src menuportal_tmpl.src menuids3_tmpl.src
+
+
+.INCLUDE : target.mk
+
+$(SRS)$/app.srs: $(SOLARINCDIR)$/svx$/globlmn.hrc
+
+
+$(SRS)$/$(SRS1NAME).srs : $(LOCALIZE_ME_DEST)
+
diff --git a/sd/source/ui/app/menu_tmpl.src b/sd/source/ui/app/menu_tmpl.src
new file mode 100644
index 000000000000..5950585d7d30
--- /dev/null
+++ b/sd/source/ui/app/menu_tmpl.src
@@ -0,0 +1,43 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: menu_tmpl.src,v $
+ * $Revision: 1.4 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+#include "menuids.src"
+#include "menuids3.src"
+#ifndef SD_MENU
+#define SD_MENU RID_DRAW_DEFAULTMENU
+#include "menuids2.src"
+#endif
+
+#define DEFINE_SLOTID_FOR_NUMBER_BULLETS SID_OUTLINE_BULLET
+
+
+/*The application menu bar resource has become obsolete. You can now find the menu bar definition at:
+<project>/[simpress|sdraw]/menubar/menubar.xml.
+
+*/
diff --git a/sd/source/ui/app/menuids2_tmpl.src b/sd/source/ui/app/menuids2_tmpl.src
new file mode 100644
index 000000000000..8d1d2686a120
--- /dev/null
+++ b/sd/source/ui/app/menuids2_tmpl.src
@@ -0,0 +1,1025 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: menuids2_tmpl.src,v $
+ * $Revision: 1.9 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+#include "misc.hxx"
+
+#ifndef _MENUIDS2_SRC
+#define _MENUIDS2_SRC
+#define MI(x) MenuItem { x };
+#define SEPARATOR MenuItem { Separator = TRUE; };
+ // SubMenu-IDs
+#define MN_SUB_VIEW 91
+#define MN_SUB_TOOLBAR 92
+#define MN_SUB_GRAPHIC 93
+#define MN_SUB_SPELLING 94
+#define MN_SUB_TEMPLATES 95
+#define MN_SUB_POSITION 96
+#define MN_SUB_MASTERPAGE 97
+#define MN_SUB_SEND 98
+#define MN_SUB_FIELD 99
+#define MN_SUB_OUTPUT_QUALITY 100
+#define MN_SUB_PREVIEW_OUTPUT_QUALITY 101
+#define MN_SUB_GROUP 102
+#define MN_TEMPLATES 103
+#define MN_SUB_MASTER_LAYOUTS 104
+
+ // Windowmenu-ID (wird in globlmn.hrc gebraucht)
+#ifndef MN_WIN
+#define MN_WIN
+#endif
+ // Helpmenu-ID (wird in globlmn.hrc gebraucht)
+#ifndef MN_HELP
+#define MN_HELP
+#endif
+ //
+ // Datei-Menu
+ //
+#define MN_NEWDOCDIRECT \
+ MenuItem\
+ {\
+ Identifier = SID_NEWDOCDIRECT ; \
+ HelpID = SID_NEWDOCDIRECT ; \
+ Text [ en-US ] = "~New" ; \
+ };
+
+#define MN_EXPORTDOC \
+ MenuItem\
+ {\
+ Identifier = SID_EXPORTDOC ; \
+ HelpID = SID_EXPORTDOC ; \
+ Text [ en-US ] = "~Export..." ; \
+ };
+
+#define MN_EXPORTPDF \
+ MenuItem\
+ {\
+ Identifier = SID_EXPORTDOCASPDF ; \
+ HelpID = SID_EXPORTDOCASPDF ; \
+ Text [ en-US ] = "Export as PDF..." ; \
+ };
+
+#define MNSUB_SEND \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_SEND ; \
+ HelpID = MN_SUB_SEND ; \
+ Command = ".uno:SendMenu" ; \
+ Text [ en-US ] = "Sen~d" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MI ( ITEM_FILE_MAIL_SENDDOC ) \
+ MI ( ITEM_FILE_MAIL_SENDDOCASPDF ) \
+ };\
+ };\
+ };
+
+#define MN_PAGESETUP \
+ MenuItem\
+ {\
+ Identifier = SID_PAGESETUP ; \
+ HelpID = SID_PAGESETUP ; \
+ Text [ en-US ] = "~Page..." ; \
+ };
+ //
+ // Bearbeiten-Menu
+ //
+#define MN_EDIT \
+ Identifier = 20 ; \
+ HelpID = 20 ; \
+ Command = ".uno:EditMenu"; \
+ Text [ en-US ] = "~Edit" ; \
+
+#define MN_PASTE2 \
+ MenuItem\
+ {\
+ Identifier = SID_PASTE2 ; \
+ HelpID = SID_PASTE2 ; \
+ Text [ en-US ] = "Paste ~Special..." ; \
+ };
+
+#define MN_COPYOBJECTS \
+ MenuItem\
+ {\
+ Identifier = SID_COPYOBJECTS ; \
+ HelpID = SID_COPYOBJECTS ; \
+ Text [ en-US ] = "Duplicat~e..." ; \
+ };
+
+#define MN_POLYGON_MORPHING \
+ MenuItem\
+ {\
+ Identifier = SID_POLYGON_MORPHING ; \
+ HelpID = SID_POLYGON_MORPHING ; \
+ Text [ en-US ] = "Cross-fading..." ; \
+ };
+
+#define MN_MODIFY_FIELD \
+ MenuItem\
+ {\
+ Identifier = SID_MODIFY_FIELD ; \
+ HelpID = SID_MODIFY_FIELD ; \
+ Text [ en-US ] = "F~ields..." ; \
+ };
+
+#define MN_DELETE_LAYER \
+ MenuItem\
+ {\
+ Identifier = SID_DELETE_LAYER ; \
+ HelpID = SID_DELETE_LAYER ; \
+ Text [ en-US ] = "Delete ~Layer..." ; \
+ };
+
+#define MN_MANAGE_LINKS \
+ MenuItem\
+ {\
+ Identifier = SID_MANAGE_LINKS ; \
+ HelpID = SID_MANAGE_LINKS ; \
+ Text [ en-US ] = "Lin~ks..." ; \
+ };
+ //
+ // Ansicht-Menu
+ //
+#define MN_VIEW \
+ Identifier = 23 ; \
+ HelpID = 23 ; \
+ Command = ".uno:ViewMenu" ; \
+ Text [ en-US ] = "~View" ; \
+
+#define MN_TOGGLETOOLBAR \
+ MenuItem\
+ {\
+ Identifier = SID_TOGGLETOOLBAR ; \
+ HelpID = SID_TOGGLETOOLBAR ; \
+ Text [ en-US ] = "Main ~Toolbar" ; \
+ };
+
+#define MN_TOGGLEOPTIONBAR \
+ MenuItem\
+ {\
+ Identifier = SID_TOGGLEOPTIONBAR ; \
+ HelpID = SID_TOGGLEOPTIONBAR ; \
+ Text [ en-US ] = "Optio~n Bar" ; \
+ };
+
+#define MN_TOGGLECOMMONTASKBAR \
+ MenuItem\
+ {\
+ Identifier = SID_TOGGLECOMMONTASKBAR ; \
+ HelpID = SID_TOGGLECOMMONTASKBAR ; \
+ Text [ en-US ] = "~Presentation" ; \
+ };
+
+#define MN_CUSTOMIZETOOLBOX \
+ MenuItem\
+ {\
+ Identifier = SID_CUSTOMIZETOOLBOX ; \
+ HelpID = SID_CUSTOMIZETOOLBOX ; \
+ Text [ en-US ] = "Customi~ze..." ; \
+ };
+
+#define MN_RULER \
+ MenuItem\
+ {\
+ Identifier = SID_RULER ; \
+ HelpID = SID_RULER ; \
+ Command = ".uno:ShowRuler" ; \
+ Text [ en-US ] = "~Rulers" ; \
+ };
+
+/* ### ACHTUNG: Neuer Text in Resource! */
+#define MN_NOTESMODE \
+ MenuItem\
+ {\
+ Identifier = SID_NOTESMODE ; \
+ HelpID = SID_NOTESMODE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "~Notes View" ; \
+ };
+
+/* ### ACHTUNG: Neuer Text in Resource! */
+#define MN_HANDOUTMODE \
+ MenuItem\
+ {\
+ Identifier = SID_HANDOUTMODE ; \
+ HelpID = SID_HANDOUTMODE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "~Handout View" ; \
+ };
+
+#define MN_PREVIEW_WIN \
+ MenuItem\
+ {\
+ Identifier = SID_PREVIEW_WIN ; \
+ HelpID = SID_PREVIEW_WIN ; \
+ Text [ en-US ] = "~Preview" ; \
+ };
+
+#define MN_PAGEMODE \
+ MenuItem\
+ {\
+ Identifier = SID_PAGEMODE ; \
+ HelpID = SID_PAGEMODE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "S~lide" ; \
+ };
+
+#define MN_SLIDE_MASTERPAGE \
+ MenuItem\
+ {\
+ Identifier = SID_SLIDE_MASTERPAGE ; \
+ HelpID = SID_SLIDE_MASTERPAGE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "~Slide Master" ; \
+ };
+
+#define MN_TITLE_MASTERPAGE \
+ MenuItem\
+ {\
+ Identifier = SID_TITLE_MASTERPAGE ; \
+ HelpID = SID_TITLE_MASTERPAGE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "~Title" ; \
+ };
+
+#define MN_NOTES_MASTERPAGE \
+ MenuItem\
+ {\
+ Identifier = SID_NOTES_MASTERPAGE ; \
+ HelpID = SID_NOTES_MASTERPAGE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "~Notes" ; \
+ };
+
+#define MN_HANDOUT_MASTERPAGE \
+ MenuItem\
+ {\
+ Identifier = SID_HANDOUT_MASTERPAGE ; \
+ HelpID = SID_HANDOUT_MASTERPAGE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "~Handout" ; \
+ };
+
+#define MN_LAYERMODE \
+ MenuItem\
+ {\
+ Identifier = SID_LAYERMODE ; \
+ HelpID = SID_LAYERMODE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "La~yer" ; \
+ };
+
+#define MN_HEADERANDFOOTER \
+ MenuItem\
+ {\
+ Identifier = SID_HEADER_AND_FOOTER ; \
+ HelpID = SID_HEADER_AND_FOOTER ; \
+ Text = "Kopf- und Fußzeile.."; \
+ };
+
+#define MN_INSERT_PAGE_NUMBER \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_PAGE_NUMBER ; \
+ HelpID = SID_INSERT_PAGE_NUMBER ; \
+ Text = "Seitenzahl..." ; \
+ };
+
+#define MN_INSERT_DATE_AND_TIME \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_DATE_TIME ; \
+ HelpID = SID_INSERT_DATE_TIME ; \
+ Text = "Datum und Uhrzeit..." ; \
+ };
+
+#define MN_MASTER_LAYOUTS \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_MASTER_LAYOUTS ; \
+ HelpId = MN_SUB_MASTER_LAYOUTS; \
+ Text = "Masterlayouts";\
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MenuItem\
+ {\
+ Identifier = SID_MASTER_LAYOUTS_SLIDE ; \
+ HelpID = SID_MASTER_LAYOUTS_SLIDE ; \
+ Text = "Masterlayout..." ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_MASTER_LAYOUTS_NOTES ; \
+ HelpID = SID_MASTER_LAYOUTS_NOTES ; \
+ Text = "Notizenmasterlayout..." ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_MASTER_LAYOUTS_HANDOUTS ; \
+ HelpID = SID_MASTER_LAYOUTS_HANDOUTS ; \
+ Text = "Handzettelmasterlayout..." ; \
+ };\
+ };\
+ };\
+ };
+
+ //#define MNSUB_TOOLBAR \ -> menu.src
+#define MNSUB_VIEW \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_VIEW ; \
+ HelpID = MN_SUB_VIEW ; \
+ Command = ".uno:WorkspaceMenu" ; \
+ Text [ en-US ] = "Wor~kspace" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_DRAWINGMODE\
+ MN_OUTLINEMODE\
+ MN_DIAMODE\
+ MN_NOTESMODE\
+ MN_HANDOUTMODE\
+ };\
+ };\
+ };
+
+#define MNSUB_MASTERPAGE \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_MASTERPAGE ; \
+ HelpID = MN_SUB_MASTERPAGE ; \
+ Command = ".uno:MasterPageMenu" ; \
+ Text [ en-US ] = "~Master" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_SLIDE_MASTERPAGE\
+ MN_TITLE_MASTERPAGE\
+ MN_NOTES_MASTERPAGE\
+ MN_HANDOUT_MASTERPAGE\
+ };\
+ };\
+ };
+ //
+ // Einfuegen-Menu
+ //
+#define MN_INSERT \
+ Identifier = 21 ; \
+ HelpID = 21 ; \
+ Command = ".uno:InsertMenu" ; \
+ Text [ en-US ] = "~Insert" ; \
+
+#define MN_INSERTPAGE \
+ MenuItem\
+ {\
+ Identifier = SID_INSERTPAGE ; \
+ HelpID = SID_INSERTPAGE ; \
+ Text [ en-US ] = "Slid~e..." ; \
+ };
+
+#define MN_INSERTPAGE_DRAW \
+ MenuItem\
+ {\
+ Identifier = SID_INSERTPAGE ; \
+ HelpID = SID_INSERTPAGE ; \
+ Text [ en-US ] = "Slid~e" ; \
+ };
+
+#define MN_DUPLICATE_PAGE \
+ MenuItem\
+ {\
+ Identifier = SID_DUPLICATE_PAGE ; \
+ HelpID = SID_DUPLICATE_PAGE ; \
+ Text [ en-US ] = "D~uplicate Slide" ; \
+ };
+
+#define MN_EXPAND_PAGE \
+ MenuItem\
+ {\
+ Identifier = SID_EXPAND_PAGE ; \
+ HelpID = SID_EXPAND_PAGE ; \
+ Text [ en-US ] = "E~xpand Slide" ; \
+ };
+
+#define MN_SUMMARY_PAGE \
+ MenuItem\
+ {\
+ Identifier = SID_SUMMARY_PAGE ; \
+ HelpID = SID_SUMMARY_PAGE ; \
+ Text [ en-US ] = "Su~mmary Slide" ; \
+ };
+
+#define MN_INSERTLAYER \
+ MenuItem\
+ {\
+ Identifier = SID_INSERTLAYER ; \
+ HelpID = SID_INSERTLAYER ; \
+ Text [ en-US ] = "~Layer..." ; \
+ };
+
+#define MN_INSERT_FLD_DATE_FIX \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_FLD_DATE_FIX ; \
+ HelpID = SID_INSERT_FLD_DATE_FIX ; \
+ Text [ en-US ] = "~Date (fixed)" ; \
+ };
+
+#define MN_INSERT_FLD_DATE_VAR \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_FLD_DATE_VAR ; \
+ HelpID = SID_INSERT_FLD_DATE_VAR ; \
+ Text [ en-US ] = "Dat~e (variable)" ; \
+ };
+
+#define MN_INSERT_FLD_TIME_FIX \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_FLD_TIME_FIX ; \
+ HelpID = SID_INSERT_FLD_TIME_FIX ; \
+ Text [ en-US ] = "~Time (fixed)" ; \
+ };
+
+#define MN_INSERT_FLD_TIME_VAR \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_FLD_TIME_VAR ; \
+ HelpID = SID_INSERT_FLD_TIME_VAR ; \
+ Text [ en-US ] = "T~ime (variable)" ; \
+ };
+
+#define MN_INSERT_FLD_PAGE \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_FLD_PAGE ; \
+ HelpID = SID_INSERT_FLD_PAGE ; \
+ Text [ en-US ] = "~Page Number" ; \
+ };
+
+#define MN_INSERT_FLD_FILE \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_FLD_FILE ; \
+ HelpID = SID_INSERT_FLD_FILE ; \
+ Text [ en-US ] = "~File Name" ; \
+ };
+
+#define MN_INSERT_FLD_AUTHOR \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_FLD_AUTHOR ; \
+ HelpID = SID_INSERT_FLD_AUTHOR ; \
+ Text [ en-US ] = "~Author" ; \
+ };
+
+#define MN_TWAIN_SELECT \
+ MenuItem\
+ {\
+ Identifier = SID_TWAIN_SELECT ; \
+ HelpID = SID_TWAIN_SELECT ; \
+ Text [ en-US ] = "~Select Source..." ; \
+ };
+
+#define MN_TWAIN_TRANSFER \
+ MenuItem\
+ {\
+ Identifier = SID_TWAIN_TRANSFER ; \
+ HelpID = SID_TWAIN_TRANSFER ; \
+ Text [ en-US ] = "~Request..." ; \
+ };
+
+#define MN_ATTR_TABLE \
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_TABLE ; \
+ HelpID = SID_ATTR_TABLE ; \
+ Text [ en-US ] = "Sp~readsheet" ; \
+ };
+
+#define MN_INSERT_INSERT_GRAPHIC \
+ MenuItem\
+ {\
+ ITEM_INSERT_INSERT_GRAPHIC\
+ Text [ en-US ] = "From ~File..." ; \
+ };
+
+#define MN_INSERT_INSERT_DIAGRAM \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_DIAGRAM ; \
+ HelpID = SID_INSERT_DIAGRAM ; \
+ Text [ en-US ] = "Chart" ; \
+ };
+
+#define MN_INSERT_FLOATINGFRAME \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_FLOATINGFRAME ; \
+ HelpID = SID_INSERT_FLOATINGFRAME ; \
+ Text [ en-US ] = "Float~ing Frame..." ; \
+ };
+
+#define MN_INSERTFILE \
+ MenuItem\
+ {\
+ Identifier = SID_INSERTFILE ; \
+ HelpID = SID_INSERTFILE ; \
+ Text [ en-US ] = "~File..." ; \
+ };
+
+#define MNSUB_FIELD \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_FIELD ; \
+ HelpID = MN_SUB_FIELD ; \
+ Command = ".uno:FieldMenu" ; \
+ Text [ en-US ] = "Fiel~ds" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_INSERT_FLD_DATE_FIX\
+ MN_INSERT_FLD_DATE_VAR\
+ MN_INSERT_FLD_TIME_FIX\
+ MN_INSERT_FLD_TIME_VAR\
+ SEPARATOR\
+ MN_INSERT_FLD_AUTHOR\
+ MN_INSERT_FLD_PAGE\
+ MN_INSERT_FLD_FILE\
+ };\
+ };\
+ };
+
+#define MNSUB_SCAN \
+ ITEM_INSERT_TWAIN_MENU
+
+#define MNSUB_GRAPHIC \
+ MenuItem\
+ {\
+ ITEM_INSERT_INSERT_GRAPHIC \
+ };
+
+
+ //
+ // Format-Menu
+ //
+#define MN_FORMAT \
+ Identifier = 22 ; \
+ HelpID = 22 ; \
+ Command = ".uno:FormatMenu" ; \
+ Text [ en-US ] = "F~ormat" ; \
+
+#define MN_TEXTATTR_DLG \
+ MenuItem\
+ {\
+ Identifier = SID_TEXTATTR_DLG ; \
+ HelpID = SID_TEXTATTR_DLG ; \
+ Text [ en-US ] = "Te~xt..." ; \
+ };
+
+#define MN_MEASURE_DLG \
+ MenuItem\
+ {\
+ Identifier = SID_MEASURE_DLG ; \
+ HelpID = SID_MEASURE_DLG ; \
+ Text [ en-US ] = "Dimen~sions..." ; \
+ };
+
+#define MN_CONNECTION_DLG \
+ MenuItem\
+ {\
+ Identifier = SID_CONNECTION_DLG ; \
+ HelpID = SID_CONNECTION_DLG ; \
+ Text [ en-US ] = "~Connector..." ; \
+ };
+
+#define MN_MODIFYLAYER \
+ MenuItem\
+ {\
+ Identifier = SID_MODIFYLAYER ; \
+ HelpID = SID_MODIFYLAYER ; \
+ Text [ en-US ] = "~Layer..." ; \
+ };
+
+ // Seiten-Attribute
+#define MN_MODIFYPAGE \
+ MenuItem\
+ {\
+ Identifier = SID_MODIFYPAGE ; \
+ HelpID = SID_MODIFYPAGE ; \
+ Text [ en-US ] = "Modify ~Layout..." ; \
+ };
+
+#define MNSUB_TEMPLATES \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_TEMPLATES ; \
+ HelpID = MN_SUB_TEMPLATES ; \
+ Command = ".uno:TemplatesMenu" ; \
+ Text [ en-US ] = "Styl~es" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MI ( ITEM_FORMAT_TEMPLATECATALOG ) \
+ MN_PRESENTATION_LAYOUT\
+ };\
+ };\
+ };
+
+ //
+ // Extras-Menu
+ //
+#define MN_EXTRAS \
+ Identifier = ITEM_TOOLS_ID ; \
+ HelpID = 25 ; \
+ Command = ".uno:ToolsMenu" ; \
+ Text [ en-US ] = "~Tools" ; \
+
+ //
+ // Praesentations-Menu
+ //
+/* ### ACHTUNG: Neuer Text in Resource! */
+#define MN_SLIDESHOW \
+ Identifier = 26 ; \
+ HelpID = 26 ; \
+ Command = ".uno:SlideShowMenu" ; \
+ Text [ en-US ] = "~Slide Show" ; \
+
+#define MN_SPELLING \
+ MenuItem\
+ {\
+ Identifier = SID_SPELL_DIALOG ; \
+ HelpID = SID_SPELL_DIALOG ; \
+ Text [ en-US ] = "~Check..." ; \
+ };
+
+#define MN_AUTOSPELL_CHECK \
+ MenuItem\
+ {\
+ Identifier = SID_AUTOSPELL_CHECK ; \
+ HelpID = SID_AUTOSPELL_CHECK ; \
+ Text [ en-US ] = "~AutoSpellcheck" ; \
+ };
+
+#define MN_THESAURUS \
+ MenuItem\
+ {\
+ Identifier = SID_THESAURUS ; \
+ HelpID = SID_THESAURUS ; \
+ Text [ en-US ] = "~Thesaurus..." ; \
+ };
+
+#define MN_HYPHENATION \
+ MenuItem\
+ {\
+ Identifier = SID_HYPHENATION ; \
+ HelpID = SID_HYPHENATION ; \
+ Text [ en-US ] = "~Hyphenation" ; \
+ };
+
+#define MN_AUTO_CORRECT_DLG \
+ MenuItem\
+ {\
+ Identifier = SID_AUTO_CORRECT_DLG ; \
+ HelpID = SID_AUTO_CORRECT_DLG ; \
+ Text [ en-US ] = "~AutoCorrect..." ; \
+ };
+
+/* ### ACHTUNG: Neuer Text in Resource! */
+#define MN_PRESENTATION_DLG \
+ MenuItem\
+ {\
+ Identifier = SID_PRESENTATION_DLG ; \
+ HelpID = SID_PRESENTATION_DLG ; \
+ Text [ en-US ] = "~Slide Show Settings..." ; \
+ };
+
+/* ### ACHTUNG: Neuer Text in Resource! */
+#define MN_CUSTOMSHOW_DLG \
+ MenuItem\
+ {\
+ Identifier = SID_CUSTOMSHOW_DLG ; \
+ HelpID = SID_CUSTOMSHOW_DLG ; \
+ Text [ en-US ] = "~Custom Slide Show..." ; \
+ };
+
+#define MN_ANIMATION_OBJECTS \
+ MenuItem\
+ {\
+ Identifier = SID_ANIMATION_OBJECTS ; \
+ HelpID = SID_ANIMATION_OBJECTS ; \
+ Text [ en-US ] = "~Animation" ; \
+ };
+
+#define MN_ANIMATION_EFFECTS \
+ MenuItem\
+ {\
+ Identifier = SID_ANIMATION_EFFECTS ; \
+ HelpID = SID_ANIMATION_EFFECTS ; \
+ Text [ en-US ] = "~Interaction..." ; \
+ };
+
+#define MNSUB_SPELLING \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_SPELLING ; \
+ HelpID = MN_SUB_SPELLING ; \
+ Command = ".uno:SpellingMenu" ; \
+ Text [ en-US ] = "~Spellcheck" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_SPELLING\
+ MN_AUTOSPELL_CHECK\
+ };\
+ };\
+ };
+ //
+ // Aendern-Menu
+ //
+#define MN_MODIFY \
+ Identifier = 24 ; \
+ HelpID = 24 ; \
+ Command = ".uno:ModifyMenu" ; \
+ Text [ en-US ] = "~Modify" ; \
+
+#define MN_MOREFRONT \
+ MenuItem\
+ {\
+ Identifier = SID_MOREFRONT ; \
+ HelpID = SID_MOREFRONT ; \
+ Text [ en-US ] = "Bring ~Forward" ; \
+ };
+
+#define MN_MOREBACK \
+ MenuItem\
+ {\
+ Identifier = SID_MOREBACK ; \
+ HelpID = SID_MOREBACK ; \
+ Text [ en-US ] = "Send Back~ward" ; \
+ };
+
+#define MN_BEFORE_OBJ \
+ MenuItem\
+ {\
+ Identifier = SID_BEFORE_OBJ ; \
+ HelpID = SID_BEFORE_OBJ ; \
+ Text [ en-US ] = "In Front of ~Object" ; \
+ };
+
+#define MN_BEHIND_OBJ \
+ MenuItem\
+ {\
+ Identifier = SID_BEHIND_OBJ ; \
+ HelpID = SID_BEHIND_OBJ ; \
+ Text [ en-US ] = "Be~hind Object" ; \
+ };
+
+#define MN_REVERSE_ORDER \
+ MenuItem\
+ {\
+ Identifier = SID_REVERSE_ORDER ; \
+ HelpID = SID_REVERSE_ORDER ; \
+ Text [ en-US ] = "~Reverse" ; \
+ };
+
+#define MN_BMPMASK \
+ MenuItem\
+ {\
+ Identifier = SID_BMPMASK ; \
+ HelpID = SID_BMPMASK ; \
+ Text [ en-US ] = "~Eyedropper" ; \
+ };
+
+#define MN_GALLERY \
+ MenuItem\
+ {\
+ Identifier = SID_GALLERY; \
+ HelpID = SID_GALLERY; \
+ Text [ en-US ] = "~Gallery" ; \
+ };
+
+#define MN_OUTPUT_QUALITY_COLOR \
+ MenuItem\
+ {\
+ Identifier = SID_OUTPUT_QUALITY_COLOR ; \
+ HelpID = SID_OUTPUT_QUALITY_COLOR ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~Color" ; \
+ };
+
+#define MN_OUTPUT_QUALITY_GRAYSCALE \
+ MenuItem\
+ {\
+ Identifier = SID_OUTPUT_QUALITY_GRAYSCALE ; \
+ HelpID = SID_OUTPUT_QUALITY_GRAYSCALE ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~Grayscale" ; \
+ };
+
+#define MN_OUTPUT_QUALITY_BLACKWHITE \
+ MenuItem\
+ {\
+ Identifier = SID_OUTPUT_QUALITY_BLACKWHITE ; \
+ HelpID = SID_OUTPUT_QUALITY_BLACKWHITE ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~Black and White" ; \
+ };
+
+#define MN_OUTPUT_QUALITY_CONTRAST \
+ MenuItem\
+ {\
+ Identifier = SID_OUTPUT_QUALITY_CONTRAST ; \
+ HelpID = SID_OUTPUT_QUALITY_CONTRAST ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~High Contrast";\
+ };
+
+#define MN_PREVIEW_QUALITY_COLOR \
+ MenuItem\
+ {\
+ Identifier = SID_PREVIEW_QUALITY_COLOR ; \
+ HelpID = SID_PREVIEW_QUALITY_COLOR ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~Color" ; \
+ };
+
+#define MN_PREVIEW_QUALITY_GRAYSCALE \
+ MenuItem\
+ {\
+ Identifier = SID_PREVIEW_QUALITY_GRAYSCALE ; \
+ HelpID = SID_PREVIEW_QUALITY_GRAYSCALE ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~Grayscale" ; \
+ };
+
+#define MN_PREVIEW_QUALITY_BLACKWHITE \
+ MenuItem\
+ {\
+ Identifier = SID_PREVIEW_QUALITY_BLACKWHITE ; \
+ HelpID = SID_PREVIEW_QUALITY_BLACKWHITE ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~Black and White" ; \
+ };
+
+#define MN_PREVIEW_QUALITY_CONTRAST \
+ MenuItem\
+ {\
+ Identifier = SID_PREVIEW_QUALITY_CONTRAST ; \
+ HelpID = SID_PREVIEW_QUALITY_CONTRAST ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~High Contrast";\
+ };
+
+#define MNSUB_POSITION \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_POSITION ; \
+ HelpID = MN_SUB_POSITION ; \
+ Command = ".uno:ArrangeMenu" ; \
+ Text [ en-US ] = "~Arrange" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MI ( ITEM_FORMAT_FRAME_TO_TOP ) \
+ MN_MOREFRONT\
+ MN_MOREBACK\
+ MI ( ITEM_FORMAT_FRAME_TO_BOTTOM ) \
+ SEPARATOR\
+ MN_BEFORE_OBJ\
+ MN_BEHIND_OBJ\
+ SEPARATOR\
+ MN_REVERSE_ORDER\
+ };\
+ };\
+ };
+
+#define MNSUB_OBJECT_ALIGN \
+ MenuItem\
+ {\
+ ITEM_FORMAT_OBJECT_ALIGN\
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MI ( ITEM_FORMAT_OBJECT_ALIGN_LEFT ) \
+ MI ( ITEM_FORMAT_OBJECT_ALIGN_CENTER ) \
+ MI ( ITEM_FORMAT_OBJECT_ALIGN_RIGHT ) \
+ SEPARATOR\
+ MI ( ITEM_FORMAT_OBJECT_ALIGN_UP ) \
+ MI ( ITEM_FORMAT_OBJECT_ALIGN_MIDDLE ) \
+ MI ( ITEM_FORMAT_OBJECT_ALIGN_DOWN ) \
+ };\
+ };\
+ };
+
+#define MNSUB_OUTPUT_QUALITY \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_OUTPUT_QUALITY ; \
+ HelpID = MN_SUB_OUTPUT_QUALITY ; \
+ Command = ".uno:DisplayQualityMenu" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_OUTPUT_QUALITY_COLOR\
+ MN_OUTPUT_QUALITY_GRAYSCALE\
+ MN_OUTPUT_QUALITY_BLACKWHITE\
+ MN_OUTPUT_QUALITY_CONTRAST\
+ };\
+ };\
+ Text [ en-US ] = "~Display Quality" ; \
+ };
+
+#define MNSUB_PREVIEW_OUTPUT_QUALITY \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_PREVIEW_OUTPUT_QUALITY ; \
+ HelpID = MN_SUB_PREVIEW_OUTPUT_QUALITY ; \
+ Command = ".uno:PreviewDisplayQualityMenu" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_PREVIEW_QUALITY_COLOR\
+ MN_PREVIEW_QUALITY_GRAYSCALE\
+ MN_PREVIEW_QUALITY_BLACKWHITE\
+ MN_PREVIEW_QUALITY_CONTRAST\
+ };\
+ };\
+ Text [ en-US ] = "Pre~view Mode" ; \
+ };
+
+#define MN_MULTI_PANE_GUI \
+ MenuItem\
+ {\
+ Identifier = SID_MULTI_PANE_GUI ; \
+ HelpID = SID_MULTI_PANE_GUI ; \
+ Text = "Multi Pane GUI" ; \
+ SubMenu = Menu \
+ {\
+ ItemList =\
+ {\
+ MenuItem\
+ {\
+ Identifier = SID_TOOLPANEL ; \
+ HelpID = SID_TOOLPANEL ; \
+ Check = TRUE ; \
+ Text = "Tool Panel" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_SLIDE_BROWSER ; \
+ HelpID = SID_SLIDE_BROWSER ; \
+ Check = TRUE ; \
+ Text = "Slide Browser" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_NOTES_WINDOW ; \
+ HelpID = SID_NOTES_WINDOW ; \
+ Check = TRUE ; \
+ Text = "Notes Window" ; \
+ };\
+ };\
+ };\
+ };
+
+#endif // _MENUIDS2_SRC
+
diff --git a/sd/source/ui/app/menuids3_tmpl.src b/sd/source/ui/app/menuids3_tmpl.src
new file mode 100644
index 000000000000..b0e2b3d858f5
--- /dev/null
+++ b/sd/source/ui/app/menuids3_tmpl.src
@@ -0,0 +1,249 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: menuids3_tmpl.src,v $
+ * $Revision: 1.9 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+#ifndef _GLOBLMN_HRC
+#include <svx/globlmn.hrc>
+#endif
+#define MN_CHANGEBEZIER \
+ MenuItem\
+ {\
+ Identifier = SID_CHANGEBEZIER ; \
+ HelpID = SID_CHANGEBEZIER ; \
+ Text [ en-US ] = "To ~Curve" ; \
+ };
+
+#define MN_CHANGEPOLYGON \
+ MenuItem\
+ {\
+ Identifier = SID_CHANGEPOLYGON ; \
+ HelpID = SID_CHANGEPOLYGON ; \
+ Text [ en-US ] = "To ~Polygon" ; \
+ };
+
+#define MN_CONVERT_TO_CONTOUR \
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_CONTOUR ; \
+ HelpID = SID_CONVERT_TO_CONTOUR ; \
+ Text [ en-US ] = "To C~ontour";\
+ };
+
+#define MN_CONVERT_TO_3D \
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_3D ; \
+ HelpID = SID_CONVERT_TO_3D ; \
+ Text [ en-US ] = "To 3~D" ; \
+ };
+
+#define MN_CONVERT_TO_BITMAP \
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_BITMAP ; \
+ HelpID = SID_CONVERT_TO_BITMAP ; \
+ Text [ en-US ] = "To ~Bitmap" ; \
+ };
+
+#define MN_CONVERT_TO_METAFILE \
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_METAFILE ; \
+ HelpID = SID_CONVERT_TO_METAFILE ; \
+ Text [ en-US ] = "To ~Metafile" ; \
+ };
+
+#define MN_CONVERT_TO_3D_LATHE_FAST \
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_3D_LATHE_FAST ; \
+ HelpID = SID_CONVERT_TO_3D_LATHE_FAST ; \
+ /* ### ACHTUNG: Neuer Text in Resource? In 3~D-Rotationskörper : In 3~D-Rotationsk÷rper */\
+ Text [ en-US ] = "To 3D ~Rotation Object" ; \
+ };
+
+#define MN_VERTICAL \
+ MenuItem\
+ {\
+ Identifier = SID_VERTICAL ; \
+ HelpID = SID_VERTICAL ; \
+ Text [ en-US ] = "~Vertically" ; \
+ };
+
+#define MN_HORIZONTAL \
+ MenuItem\
+ {\
+ Identifier = SID_HORIZONTAL ; \
+ HelpID = SID_HORIZONTAL ; \
+ Text [ en-US ] = "~Horizontally" ; \
+ };
+
+#define MN_3D_WIN \
+ MenuItem\
+ {\
+ Identifier = SID_3D_WIN ; \
+ HelpID = SID_3D_WIN ; \
+ Text [ en-US ] = "~3D Effects" ; \
+ };
+
+#define MN_PRESENTATION_LAYOUT \
+ MenuItem\
+ {\
+ Identifier = SID_PRESENTATION_LAYOUT ; \
+ HelpID = SID_PRESENTATION_LAYOUT ; \
+ Text [ en-US ] = "~Slide Design" ; \
+ };
+
+#define MN_DIA \
+ MenuItem\
+ {\
+ Identifier = SID_SLIDE_TRANSITIONS_PANEL ; \
+ HelpID = SID_SLIDE_TRANSITIONS_PANEL ; \
+ Text [ en-US ] = "Slide ~Transition" ; \
+ };
+
+#define MN_SHOW_SLIDE \
+ MenuItem\
+ {\
+ Identifier = SID_SHOW_SLIDE ; \
+ HelpID = SID_SHOW_SLIDE ; \
+ Text [ en-US ] = "~Show Slide" ; \
+ };
+
+#define MN_HIDE_SLIDE \
+ MenuItem\
+ {\
+ Identifier = SID_HIDE_SLIDE ; \
+ HelpID = SID_HIDE_SLIDE ; \
+ Text [ en-US ] = "~Hide Slide" ; \
+ };
+
+#define MN_GROUP_IMPRESS \
+ MenuItem\
+ {\
+ Identifier = SID_GROUP ; \
+ HelpID = SID_GROUP ; \
+ Text [ en-US ] = "~Group" ; \
+ };
+
+#define MN_UNGROUP_IMPRESS \
+ MenuItem\
+ {\
+ Identifier = SID_UNGROUP ; \
+ HelpID = SID_UNGROUP ; \
+ Text [ en-US ] = "~Ungroup" ; \
+ };
+
+#define MN_ENTER_GROUP_IMPRESS \
+ MenuItem\
+ {\
+ Identifier = SID_ENTER_GROUP ; \
+ HelpID = SID_ENTER_GROUP ; \
+ Text [ en-US ] = "~Edit Group" ; \
+ };
+
+#define MN_LEAVE_GROUP_IMPRESS \
+ MenuItem\
+ {\
+ Identifier = SID_LEAVE_GROUP ; \
+ HelpID = SID_LEAVE_GROUP ; \
+ Text [ en-US ] = "E~xit group" ; \
+ };
+
+#define MNSUB_GROUP \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_GROUP ; \
+ HelpID = MN_SUB_GROUP ; \
+ Command = ".uno:GroupMenu" ; \
+ Text [ en-US ] = "~Group" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_GROUP_IMPRESS\
+ MN_UNGROUP_IMPRESS\
+ MN_ENTER_GROUP_IMPRESS\
+ MN_LEAVE_GROUP_IMPRESS\
+ };\
+ };\
+ };
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sd/source/ui/app/menuids4_tmpl.src b/sd/source/ui/app/menuids4_tmpl.src
new file mode 100644
index 000000000000..928a1dc4f680
--- /dev/null
+++ b/sd/source/ui/app/menuids4_tmpl.src
@@ -0,0 +1,82 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: menuids4_tmpl.src,v $
+ * $Revision: 1.5 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+#ifndef _MENUIDS4_SRC
+#define _MENUIDS4_SRC
+
+#ifndef _MENUIDS2_SRC
+#include "menuids2.src"
+#endif
+
+#define MNSUB_GRAPHIC_PORTAL \
+ MenuItem\
+ {\
+ Identifier = MN_SUB_GRAPHIC ; \
+ HelpID = MN_SUB_GRAPHIC ; \
+ Text [ en-US ] = "~Graphics" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_INSERT_INSERT_GRAPHIC\
+ };\
+ };\
+ };
+#endif // _MENUIDS4_SRC
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sd/source/ui/app/menuids_tmpl.src b/sd/source/ui/app/menuids_tmpl.src
new file mode 100644
index 000000000000..c5f02a53462a
--- /dev/null
+++ b/sd/source/ui/app/menuids_tmpl.src
@@ -0,0 +1,1308 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: menuids_tmpl.src,v $
+ * $Revision: 1.19.106.1 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+#include <svx/dialogs.hrc>
+#include "app.hrc"
+#include "res_bmp.hrc"
+#define SEPARATOR MenuItem { Separator = TRUE; };
+ // DUMMY ist eine ID wo ein SubMenu folgt
+ // (muss jeweils immer erhoeht werden!)
+#define DUMMY 333
+ // Nichtobjektbezogen
+
+#define MN_DISTRIBUTE \
+ MenuItem\
+ {\
+ Identifier = SID_DISTRIBUTE_DLG ; \
+ HelpID = SID_DISTRIBUTE_DLG ; \
+ Text [ en-US ] = "~Distribution..." ; \
+ };
+
+/* ### ACHTUNG: Neuer Text in Resource! */
+#define MN_DRAWINGMODE \
+ MenuItem\
+ {\
+ Identifier = SID_DRAWINGMODE ; \
+ HelpID = SID_DRAWINGMODE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "~Drawing View" ; \
+ };
+
+#define MN_OUTLINEMODE \
+ MenuItem\
+ {\
+ Identifier = SID_OUTLINEMODE ; \
+ HelpID = SID_OUTLINEMODE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "~Outline View" ; \
+ };
+
+#define MN_DIAMODE \
+ MenuItem\
+ {\
+ Identifier = SID_DIAMODE ; \
+ HelpID = SID_DIAMODE ; \
+ Check = TRUE ; \
+ Text [ en-US ] = "~Slide Sorter" ; \
+ };
+
+#define MN_PRESENTATION \
+ MenuItem\
+ {\
+ Identifier = SID_PRESENTATION ; \
+ HelpID = SID_PRESENTATION ; \
+ /* ### ACHTUNG: Neuer Text in Resource? ~Bildschirmpräsentation : ~Bildschirmpräsentation... */\
+ /* ### ACHTUNG: Neuer Text in Resource? ~Bildschirmpräsentation : ~Bildschirmpräsentation... */\
+ /* ### ACHTUNG: Neuer Text in Resource? ~Bildschirmpräsentation : ~Bildschirmprõsentation */\
+ Text [ en-US ] = "Slide Sho~w" ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Bildschirmpräsentation starten : Bildschirmprõsentation starten */\
+ };
+
+#define MN_CAPTUREPOINT \
+ MenuItem\
+ {\
+ Identifier = SID_CAPTUREPOINT ; \
+ HelpID = SID_CAPTUREPOINT ; \
+ /* ### ACHTUNG: Neuer Text in Resource? F~angpunkt/-linie einfügen... : F~angpunkt/-linie einf³gen... */\
+ /* ### ACHTUNG: Neuer Text in Resource? Fangpunkt oder -linie einfügen : Fangpunkt oder -linie einf³gen */\
+ Text [ en-US ] = "~Insert Snap Point/Line..." ; \
+ };
+
+#define MN_SET_SNAPITEM \
+ MenuItem\
+ {\
+ Identifier = SID_SET_SNAPITEM ; \
+ HelpID = SID_SET_SNAPITEM ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Fangobjekt bearbeiten oder löschen : Fangobjekt bearbeiten oder l÷schen */\
+ Text [ en-US ] = "~Edit..." ; \
+ };
+
+#define MN_DELETE_SNAPITEM \
+ MenuItem\
+ {\
+ Identifier = SID_DELETE_SNAPITEM ; \
+ HelpID = SID_DELETE_SNAPITEM ; \
+ /* ### ACHTUNG: Neuer Text in Resource? ~Löschen : ~L÷schen */\
+ /* ### ACHTUNG: Neuer Text in Resource? Fangobjekt löschen : Fangobjekt l÷schen */\
+ Text [ en-US ] = "~Delete" ; \
+ };
+
+ // Seiten-Attribute
+#define MN_MODIFY_PAGE \
+ MenuItem\
+ {\
+ Identifier = SID_MODIFYPAGE ; \
+ HelpID = SID_MODIFYPAGE ; \
+ Text [ en-US ] = "Slide ~Layout" ; \
+ };
+
+#define MN_FORMAT_PAGE \
+ MenuItem\
+ {\
+ Identifier = SID_PAGESETUP ; \
+ HelpID = SID_PAGESETUP ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Seitengröße, Ausrichtung, Rahmen festlegen : Seitengr÷˜e, Ausrichtung, Rahmen festlegen */\
+ Text [ en-US ] = "~Page Setup..." ; \
+ };
+
+
+#define MN_INSERT_SLIDE \
+ MenuItem\
+ {\
+ Identifier = SID_INSERTPAGE ; \
+ HelpID = SID_INSERTPAGE ; \
+ Text [ en-US ] = "~New Slide" ; \
+ };
+
+#define MN_INSERT_MASTER \
+ MenuItem\
+ {\
+ Identifier = SID_INSERT_MASTER_PAGE ; \
+ HelpID = SID_INSERT_MASTER_PAGE ; \
+ Text [ en-US ] = "~New Master" ; \
+ };
+
+#define MN_INSERT_PAGE \
+ MenuItem\
+ {\
+ Identifier = SID_INSERTPAGE ; \
+ HelpID = SID_INSERTPAGE ; \
+ Text [ en-US ] = "~New Page" ; \
+ };
+#define MN_SELECT_BACKGROUND \
+ MenuItem\
+ {\
+ Identifier = SID_SELECT_BACKGROUND ; \
+ HelpID = SID_SELECT_BACKGROUND ; \
+ Text [ en-US ] = "Set Background Picture for Slide ..." ; \
+ };
+#define MN_DISPLAY_MASTER_BACKGROUND \
+ MenuItem\
+ {\
+ Identifier = SID_DISPLAY_MASTER_BACKGROUND ; \
+ HelpID = SID_DISPLAY_MASTER_BACKGROUND ; \
+ Text [ en-US ] = "Display Background of Master" ; \
+ };
+#define MN_DISPLAY_MASTER_OBJECTS \
+ MenuItem\
+ {\
+ Identifier = SID_DISPLAY_MASTER_OBJECTS ; \
+ HelpID = SID_DISPLAY_MASTER_OBJECTS ; \
+ Text [ en-US ] = "Display Objects from Master" ; \
+ };
+
+
+#define MN_PAGE_MENU \
+ MenuItem\
+ {\
+ Identifier = DUMMY + 3 ; \
+ Command = ".uno:PageMenu" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_FORMAT_PAGE\
+ MN_PRESENTATION_LAYOUT\
+ MN_RENAME_PAGE\
+ SEPARATOR\
+ MN_INSERT_PAGE\
+ MN_DELETE_PAGE\
+ };\
+ };\
+ Text [ en-US ] = "Pag~e" ; \
+ };
+
+#define MN_SLIDE_MENU \
+ MenuItem\
+ {\
+ Identifier = DUMMY + 8 ; \
+ Command = ".uno:PageMenu" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_FORMAT_PAGE\
+ MN_PRESENTATION_LAYOUT\
+ MN_MODIFY_PAGE\
+ MN_SELECT_BACKGROUND\
+ MN_RENAME_SLIDE\
+ SEPARATOR\
+ MN_DISPLAY_MASTER_BACKGROUND\
+ MN_DISPLAY_MASTER_OBJECTS\
+ SEPARATOR\
+ MN_INSERT_SLIDE\
+ MN_DELETE_SLIDE\
+ };\
+ };\
+ Text [ en-US ] = "Slid~e" ; \
+ };
+
+ // Layer
+#define MN_RENAME_LAYER \
+ MenuItem\
+ {\
+ Identifier = SID_RENAMELAYER ; \
+ HelpID = SID_RENAMELAYER ; \
+ Text [ en-US ] = "~Rename Layer..." ; \
+ };
+
+#define MN_DELETE_SLIDE \
+ MenuItem\
+ {\
+ Identifier = SID_DELETE_PAGE ; \
+ HelpID = SID_DELETE_PAGE ; \
+ Text [ en-US ] = "D~elete Slide" ; \
+ };
+
+#define MN_DELETE_MASTER \
+ MenuItem\
+ {\
+ Identifier = SID_DELETE_MASTER_PAGE ; \
+ HelpID = SID_DELETE_MASTER_PAGE ; \
+ Text [ en-US ] = "D~elete Master" ; \
+ };
+
+
+
+#define MN_DELETE_PAGE \
+ MenuItem\
+ {\
+ Identifier = SID_DELETE_PAGE ; \
+ HelpID = SID_DELETE_PAGE ; \
+ Text [ en-US ] = "D~elete Page" ; \
+ };
+
+#define MN_RENAME_SLIDE \
+ MenuItem\
+ {\
+ Identifier = SID_RENAMEPAGE ; \
+ HelpID = SID_RENAMEPAGE ; \
+ Text [ en-US ] = "~Rename Slide" ; \
+ };
+
+#define MN_RENAME_MASTER \
+ MenuItem\
+ {\
+ Identifier = SID_RENAME_MASTER_PAGE ; \
+ HelpID = SID_RENAME_MASTER_PAGE ; \
+ Text [ en-US ] = "~Rename Master" ; \
+ };
+
+#define MN_RENAME_PAGE \
+ MenuItem\
+ {\
+ Identifier = SID_RENAMEPAGE ; \
+ HelpID = SID_RENAMEPAGE ; \
+ Text [ en-US ] = "~Rename Page" ; \
+ };
+
+ // Grafik-Attribute
+#define MN_LINE \
+ MenuItem\
+ {\
+ Identifier = SID_ATTRIBUTES_LINE ; \
+ HelpID = SID_ATTRIBUTES_LINE ; \
+ Text [ en-US ] = "L~ine..." ; \
+ };
+
+#define MN_AREA \
+ MenuItem\
+ {\
+ Identifier = SID_ATTRIBUTES_AREA ; \
+ HelpID = SID_ATTRIBUTES_AREA ; \
+ Text [ en-US ] = "~Area..." ; \
+ };
+
+#define MN_TEXTATTR \
+ MenuItem\
+ {\
+ Identifier = SID_TEXTATTR_DLG ; \
+ HelpID = SID_TEXTATTR_DLG ; \
+ Text [ en-US ] = "~Text..." ; \
+ };
+
+#define MN_CONNECTION \
+ MenuItem\
+ {\
+ Identifier = SID_CONNECTION_DLG ; \
+ HelpID = SID_CONNECTION_DLG ; \
+ Text [ en-US ] = "~Connector..." ; \
+ };
+
+#define MN_NEW_ROUTING \
+ MenuItem\
+ {\
+ Identifier = SID_CONNECTION_NEW_ROUTING ; \
+ HelpID = SID_CONNECTION_NEW_ROUTING ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Linienverlauf ~zurücksetzen : Linienverlauf ~zur³cksetzen */\
+ Text [ en-US ] = "Reset ~Routing" ; \
+ };
+
+#define MN_MEASURE \
+ MenuItem\
+ {\
+ Identifier = SID_MEASURE_DLG ; \
+ HelpID = SID_MEASURE_DLG ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Bema~ßung... : Bema~˜ung... */\
+ Text [ en-US ] = "Dimen~sions..." ; \
+ };
+
+#define MN_TRANSFORM \
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_TRANSFORM ; \
+ HelpID = SID_ATTR_TRANSFORM ; \
+ Text [ en-US ] = "Position and Si~ze..." ; \
+ };
+
+#define MN_EDIT_POINTS \
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_EDIT ; \
+ HelpID = SID_BEZIER_EDIT ; \
+ Text [ en-US ] = "Edit ~Points" ; \
+ };
+
+ // Anordnung
+#define MN_POSITION \
+ MenuItem\
+ {\
+ Identifier = SID_POSITION ; \
+ HelpID = SID_POSITION ; \
+ Command = ".uno:ObjectPosition"; \
+ Text [ en-US ] = "Arra~nge" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MenuItem\
+ {\
+ Identifier = SID_FRAME_TO_TOP ; \
+ HelpID = SID_FRAME_TO_TOP ; \
+ Text [ en-US ] = "~Bring to Front" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_MOREFRONT ; \
+ HelpID = SID_MOREFRONT ; \
+ Text [ en-US ] = "Bring ~Forward" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_MOREBACK ; \
+ HelpID = SID_MOREBACK ; \
+ Text [ en-US ] = "Send Back~ward" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_FRAME_TO_BOTTOM ; \
+ HelpID = SID_FRAME_TO_BOTTOM ; \
+ Text [ en-US ] = "~Send to Back" ; \
+ };\
+ MenuItem\
+ {\
+ Separator = TRUE ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_BEFORE_OBJ ; \
+ HelpID = SID_BEFORE_OBJ ; \
+ Text [ en-US ] = "In Front of ~Object" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_BEHIND_OBJ ; \
+ HelpID = SID_BEHIND_OBJ ; \
+ Text [ en-US ] = "Be~hind Object" ; \
+ };\
+ MenuItem\
+ {\
+ Separator = TRUE ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_REVERSE_ORDER ; \
+ HelpID = SID_REVERSE_ORDER ; \
+ Text [ en-US ] = "~Reverse" ; \
+ };\
+ };\
+ };\
+ };
+
+ // Text-Elemente
+#define MN_CHAR \
+ MenuItem\
+ {\
+ Identifier = SID_CHAR_DLG ; \
+ HelpID = SID_CHAR_DLG ; \
+ Text [ en-US ] = "C~haracter..." ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Zeichenattribute für den selektierten Bereich auswählen : Zeichenattribute f³r den selektierten Bereich auswõhlen */\
+ };
+
+#define MN_CHAR_PARAGRAPH \
+ MN_CHAR \
+ MenuItem {\
+ Identifier = SID_PARA_DLG;\
+ HelpID = SID_PARA_DLG;\
+ Text [ en-US ] = "P~aragraph...";\
+ };
+
+#define MN_TEXT_ATTR\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_CHAR_FONT ; \
+ HelpID = SID_ATTR_CHAR_FONT ; \
+ Text [ en-US ] = "~Font" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_CHAR_FONTHEIGHT ; \
+ HelpID = SID_ATTR_CHAR_FONTHEIGHT ; \
+ /* ### ACHTUNG: Neuer Text in Resource? ~Größe : ~Gr÷˜e */\
+ Text [ en-US ] = "~Size" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = DUMMY ; \
+ Command = ".uno:StyleMenu" ; \
+ Text [ en-US ] = "St~yle" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_CHAR_WEIGHT ; \
+ HelpID = SID_ATTR_CHAR_WEIGHT ; \
+ Text [ en-US ] = "Bold" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_CHAR_POSTURE ; \
+ HelpID = SID_ATTR_CHAR_POSTURE ; \
+ Text [ en-US ] = "Italic" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_CHAR_OVERLINE ; \
+ HelpID = SID_ATTR_CHAR_OVERLINE ; \
+ Text [ en-US ] = "Overline" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_CHAR_UNDERLINE ; \
+ HelpID = SID_ATTR_CHAR_UNDERLINE ; \
+ Text [ en-US ] = "Underline" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_CHAR_STRIKEOUT ; \
+ HelpID = SID_ATTR_CHAR_STRIKEOUT ; \
+ Text [ en-US ] = "Strikethrough" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_CHAR_SHADOWED ; \
+ HelpID = SID_ATTR_CHAR_SHADOWED ; \
+ Text [ en-US ] = "Shadow" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_CHAR_CONTOUR ; \
+ HelpID = SID_ATTR_CHAR_CONTOUR ; \
+ Text [ en-US ] = "~Contour" ; \
+ };\
+ };\
+ };\
+ };
+
+#define MN_LINESPACING_ATTR\
+ MenuItem\
+ {\
+ Identifier = DUMMY + 1 ; \
+ Command = ".uno:LineSpacingMenu" ; \
+ Text [ en-US ] = "~Line Spacing" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_PARA_LINESPACE_10 ; \
+ HelpID = SID_ATTR_PARA_LINESPACE_10 ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "Single Line Spacing" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_PARA_LINESPACE_15 ; \
+ HelpID = SID_ATTR_PARA_LINESPACE_15 ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "1.5 Lines" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_PARA_LINESPACE_20 ; \
+ HelpID = SID_ATTR_PARA_LINESPACE_20 ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~Double" ; \
+ };\
+ };\
+ };\
+ };
+
+#define MN_BULLET \
+ MenuItem\
+ {\
+ Identifier = SID_CHARMAP ; \
+ HelpID = SID_CHARMAP ; \
+ Text [ en-US ] = "S~pecial Character..." ; \
+ };
+
+ // Text-Ausrichtung
+#define MN_TEXT_ALIGN\
+ MenuItem\
+ {\
+ Identifier = DUMMY + 2 ; \
+ Command = ".uno:AlignTextMenu" ; \
+ Text [ en-US ] = "A~lignment" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_PARA_ADJUST_LEFT ; \
+ HelpID = SID_ATTR_PARA_ADJUST_LEFT ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~Left" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_PARA_ADJUST_RIGHT ; \
+ HelpID = SID_ATTR_PARA_ADJUST_RIGHT ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~Right" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_PARA_ADJUST_CENTER ; \
+ HelpID = SID_ATTR_PARA_ADJUST_CENTER ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "~Centered" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_PARA_ADJUST_BLOCK ; \
+ HelpID = SID_ATTR_PARA_ADJUST_BLOCK ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "Justified" ; \
+ };\
+ };\
+ };\
+ };
+
+ // Objekt-Ausrichtung
+#define MN_OBJECT_ALIGN \
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT_ALIGN ; \
+ Command = ".uno:AlignObjetMenu" ; \
+ HelpID = SID_OBJECT_ALIGN ; \
+ Text [ en-US ] = "Al~ignment" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT_ALIGN_LEFT ; \
+ HelpID = SID_OBJECT_ALIGN_LEFT ; \
+ Text [ en-US ] = "~Left" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT_ALIGN_CENTER ; \
+ HelpID = SID_OBJECT_ALIGN_CENTER ; \
+ Text [ en-US ] = "~Centered" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT_ALIGN_RIGHT ; \
+ HelpID = SID_OBJECT_ALIGN_RIGHT ; \
+ Text [ en-US ] = "~Right" ; \
+ };\
+ SEPARATOR\
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT_ALIGN_UP ; \
+ HelpID = SID_OBJECT_ALIGN_UP ; \
+ Text [ en-US ] = "~Top" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT_ALIGN_MIDDLE ; \
+ HelpID = SID_OBJECT_ALIGN_MIDDLE ; \
+ Text [ en-US ] = "C~enter" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT_ALIGN_DOWN ; \
+ HelpID = SID_OBJECT_ALIGN_DOWN ; \
+ Text [ en-US ] = "~Bottom" ; \
+ };\
+ };\
+ };\
+ };
+
+ // Bezier-Funktionen
+#define MN_CLOSE_OBJECT \
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT_CLOSE ; \
+ HelpID = SID_OBJECT_CLOSE ; \
+ /* ### ACHTUNG: Neuer Text in Resource? ~Objekt schließen : ~Objekt schlie˜en */\
+ Text [ en-US ] = "Close ~Object" ; \
+ };
+
+#define MN_BEZIER \
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_EDIT ; \
+ HelpID = SID_BEZIER_EDIT ; \
+ Text [ en-US ] = "Edit ~Points" ; \
+ };\
+ SEPARATOR\
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_MOVE ; \
+ HelpID = SID_BEZIER_MOVE ; \
+ Text [ en-US ] = "~Move Points" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_INSERT ; \
+ HelpID = SID_BEZIER_INSERT ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Punkte ~einfügen : Punkte ~einf³gen */\
+ Text [ en-US ] = "Insert ~Points" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_DELETE ; \
+ HelpID = SID_BEZIER_DELETE ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Punkte l~öschen : Punkte l~÷schen */\
+ Text [ en-US ] = "~Delete Points" ; \
+ };\
+ SEPARATOR\
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_CLOSE ; \
+ HelpID = SID_BEZIER_CLOSE ; \
+ /* ### ACHTUNG: Neuer Text in Resource? ~Objekt schließen : ~Objekt schlie˜en */\
+ Text [ en-US ] = "Close ~Object" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_CUTLINE ; \
+ HelpID = SID_BEZIER_CUTLINE ; \
+ Text [ en-US ] = "~Split Curve" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_CONVERT ; \
+ HelpID = SID_BEZIER_CONVERT ; \
+ Text [ en-US ] = "Con~vert to Curve" ; \
+ };\
+ SEPARATOR\
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_EDGE ; \
+ HelpID = SID_BEZIER_EDGE ; \
+ Text [ en-US ] = "~Corner" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_SMOOTH ; \
+ HelpID = SID_BEZIER_SMOOTH ; \
+ Text [ en-US ] = "Smoot~h" ; \
+ };\
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_SYMMTR ; \
+ HelpID = SID_BEZIER_SYMMTR ; \
+ Text [ en-US ] = "S~ymmetric" ; \
+ };\
+ SEPARATOR\
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_ELIMINATE_POINTS ; \
+ HelpID = SID_BEZIER_ELIMINATE_POINTS ; \
+ Text [ en-US ] = "~Reduce Points" ; \
+ };
+
+ // Gruppen-/Kombination-Funktionen
+#define MN_GROUP \
+ MenuItem\
+ {\
+ Identifier = SID_GROUP ; \
+ HelpID = SID_GROUP ; \
+ Text [ en-US ] = "~Group" ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Ausgewählte Objekte gruppieren : Ausgewõhlte Objekte gruppieren */\
+ };
+
+#define MN_UNGROUP \
+ MenuItem\
+ {\
+ Identifier = SID_UNGROUP ; \
+ HelpID = SID_UNGROUP ; \
+ Text [ en-US ] = "~Ungroup" ; \
+ };
+
+#define MN_COMBINE \
+ MenuItem\
+ {\
+ Identifier = SID_COMBINE ; \
+ HelpID = SID_COMBINE ; \
+ Text [ en-US ] = "Comb~ine" ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Ausgewählte Objekte kombinieren : Ausgewõhlte Objekte kombinieren */\
+ };
+
+#define MN_DISMANTLE \
+ MenuItem\
+ {\
+ Identifier = SID_DISMANTLE ; \
+ HelpID = SID_DISMANTLE ; \
+ Text [ en-US ] = "~Split" ; \
+ };
+
+#define MN_ENTER_GROUP \
+ MenuItem\
+ {\
+ Identifier = SID_ENTER_GROUP ; \
+ HelpID = SID_ENTER_GROUP ; \
+ Text [ en-US ] = "~Enter Group" ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Objekte der Gruppierung können bearbeitet werden : Objekte der Gruppierung k÷nnen bearbeitet werden */\
+ };
+
+#define MN_LEAVE_GROUP \
+ MenuItem\
+ {\
+ Identifier = SID_LEAVE_GROUP ; \
+ HelpID = SID_LEAVE_GROUP ; \
+ Text [ en-US ] = "E~xit Group" ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Objekte der Gruppierung können nicht mehr bearbeitet werden : Objekte der Gruppierung k÷nnen nicht mehr bearbeitet werden */\
+ };
+
+#define MN_NAME_GROUP \
+ MenuItem\
+ {\
+ Identifier = SID_NAME_GROUP ; \
+ HelpID = SID_NAME_GROUP ; \
+ Text [ en-US ] = "Name..." ; \
+ };
+
+// #i68101#
+#define MN_OBJECT_TITLE_DESCRIPTION \
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT_TITLE_DESCRIPTION; \
+ HelpID = SID_OBJECT_TITLE_DESCRIPTION; \
+ Text [ en-US ] = "Description..." ; \
+ };
+
+ // Dia-Funktionen
+#define MN_REHEARSE_TIMINGS \
+ MenuItem\
+ {\
+ Identifier = SID_REHEARSE_TIMINGS ; \
+ HelpID = SID_REHEARSE_TIMINGS ; \
+ Text [ en-US ] = "~Rehearse Timings" ; \
+ };
+
+#define MN_EFFECT \
+ MenuItem\
+ {\
+ Identifier = SID_CUSTOM_ANIMATION_PANEL ; \
+ HelpID = SID_CUSTOM_ANIMATION_PANEL ; \
+ Text [ en-US ] = "Custom Animation..." ; \
+ };
+
+#define MN_ACTION \
+ MenuItem\
+ {\
+ Identifier = SID_ANIMATION_EFFECTS ; \
+ HelpID = SID_ANIMATION_EFFECTS ; \
+ Text [ en-US ] = "Int~eraction..." ; \
+ };
+
+#define MN_PRESENTATIONOBJECT \
+ MenuItem\
+ {\
+ Identifier = SID_PRESENTATIONOBJECT ; \
+ HelpID = SID_PRESENTATIONOBJECT ; \
+ /* ### ACHTUNG: Neuer Text in Resource? ~Präsentationsobjekt... : ~Prõsentationsobjekt... */\
+ /* ### ACHTUNG: Neuer Text in Resource? Selektiertes Präsentationsobjekt bearbeiten : Selektiertes Prõsentationsobjekt bearbeiten */\
+ Text [ en-US ] = "Presentation ~Object..." ; \
+ };
+
+ // Diverse allgemeine Funktionen
+#define MN_DELETE \
+ MenuItem\
+ {\
+ Identifier = SID_DELETE ; \
+ HelpID = SID_DELETE ; \
+ /* ### ACHTUNG: Neuer Text in Resource? L~öschen : L~÷schen */\
+ Text [ en-US ] = "~Delete" ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Alle selektierten Objekte löschen : Alle selektierten Objekte l÷schen */\
+ };
+
+
+#define MN_SET_DEFAULT\
+ MenuItem\
+ {\
+ Identifier = SID_SET_DEFAULT ; \
+ HelpID = SID_SET_DEFAULT ; \
+ Text [ en-US ] = "~Default" ; \
+ };
+
+#define MN_FONTWORK\
+ MenuItem\
+ {\
+ Identifier = SID_FONTWORK ; \
+ HelpID = SID_FONTWORK ; \
+ Text [ en-US ] = "F~ontwork" ; \
+ };
+
+#define MN_OLE_OBJECT\
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT ; \
+ HelpID = SID_OBJECT ; \
+ Text [ en-US ] = "~OLE Object" ; \
+ };
+
+#define MN_ORIGINAL_SIZE\
+ MenuItem\
+ {\
+ Identifier = SID_ORIGINAL_SIZE ; \
+ HelpID = SID_ORIGINAL_SIZE ; \
+ Text [ en-US ] = "~Original Size" ; \
+ };
+
+#define MN_SAVEGRAPHIC\
+ MenuItem\
+ {\
+ Identifier = SID_SAVEGRAPHIC ; \
+ HelpID = SID_SAVEGRAPHIC ; \
+ Text [ en-US ] = "Save as Picture..." ; \
+ };
+
+#define MN_CROP\
+ MenuItem\
+ {\
+ Identifier = SID_ATTR_GRAF_CROP ; \
+ HelpID = SID_ATTR_GRAF_CROP ; \
+ Text [ en-US ] = "Crop Picture..." ; \
+ };
+
+#define MN_NAVIGATOR\
+ MenuItem\
+ {\
+ Identifier = SID_NAVIGATOR ; \
+ Command = ".uno:Navigator" ; \
+ HelpID = SID_NAVIGATOR ; \
+ Text [ en-US ] = "Na~vigator" ; \
+ };
+
+#define MN_GLUE_INSERT_POINT\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_INSERT_POINT ; \
+ HelpID = SID_GLUE_INSERT_POINT ; \
+ /* ### ACHTUNG: Neuer Text in Resource? ~Punkt einfügen : ~Punkt einf³gen */\
+ Text [ en-US ] = "Insert ~Point" ; \
+ };
+
+#define MN_GLUE_ESC_DIR_LEFT\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_ESCDIR_LEFT ; \
+ HelpID = SID_GLUE_ESCDIR_LEFT ; \
+ Text [ en-US ] = "~Left" ; \
+ };
+
+#define MN_GLUE_ESC_DIR_TOP\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_ESCDIR_TOP ; \
+ HelpID = SID_GLUE_ESCDIR_TOP ; \
+ Text [ en-US ] = "~Top" ; \
+ };
+
+#define MN_GLUE_ESC_DIR_RIGHT\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_ESCDIR_RIGHT ; \
+ HelpID = SID_GLUE_ESCDIR_RIGHT ; \
+ Text [ en-US ] = "~Right" ; \
+ };
+
+#define MN_GLUE_ESC_DIR_BOTTOM\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_ESCDIR_BOTTOM ; \
+ HelpID = SID_GLUE_ESCDIR_BOTTOM ; \
+ Text [ en-US ] = "~Bottom" ; \
+ };
+
+#define MN_GLUE_PERCENT\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_PERCENT ; \
+ HelpID = SID_GLUE_PERCENT ; \
+ Text [ en-US ] = "~Adapt Position to Object" ; \
+ };
+
+#define MN_GLUE_HORZALIGN_LEFT\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_HORZALIGN_LEFT ; \
+ HelpID = SID_GLUE_HORZALIGN_LEFT ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "Fixed ~Horizontal Left" ; \
+ };
+
+#define MN_GLUE_HORZALIGN_CENTER\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_HORZALIGN_CENTER ; \
+ HelpID = SID_GLUE_HORZALIGN_CENTER ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "Fixed Horizontal ~Center" ; \
+ };
+
+#define MN_GLUE_HORZALIGN_RIGHT\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_HORZALIGN_RIGHT ; \
+ HelpID = SID_GLUE_HORZALIGN_RIGHT ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "Fixed Hori~zontal Right" ; \
+ };
+
+#define MN_GLUE_VERTALIGN_TOP\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_VERTALIGN_TOP ; \
+ HelpID = SID_GLUE_VERTALIGN_TOP ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "Fixed ~Vertical Top" ; \
+ };
+
+#define MN_GLUE_VERTALIGN_CENTER\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_VERTALIGN_CENTER ; \
+ HelpID = SID_GLUE_VERTALIGN_CENTER ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "Fixed V~ertical Center" ; \
+ };
+
+#define MN_GLUE_VERTALIGN_BOTTOM\
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_VERTALIGN_BOTTOM ; \
+ HelpID = SID_GLUE_VERTALIGN_BOTTOM ; \
+ RadioCheck = TRUE ; \
+ Text [ en-US ] = "Fixed Ver~tical Bottom" ; \
+ };
+
+#define MN_GRID_VISIBLE\
+ MenuItem\
+ {\
+ Identifier = SID_GRID_VISIBLE ; \
+ HelpID = SID_GRID_VISIBLE ; \
+ Text [ en-US ] = "~Visible Grid" ; \
+ };
+
+#define MN_GRID_USE\
+ MenuItem\
+ {\
+ Identifier = SID_GRID_USE ; \
+ HelpID = SID_GRID_USE; \
+ Text [ en-US ] = "Snap to Grid"; \
+ };
+
+#define MN_GRID_FRONT\
+ MenuItem\
+ {\
+ Identifier = SID_GRID_FRONT ; \
+ HelpID = SID_GRID_FRONT ; \
+ Text [ en-US ] = "Grid to ~Front" ; \
+ };
+
+#define MN_GRID \
+ MenuItem\
+ {\
+ Identifier = DUMMY + 5 ; \
+ Command = ".uno:GridMenu" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_GRID_VISIBLE\
+ MN_GRID_USE\
+ MN_GRID_FRONT\
+ };\
+ };\
+ Text [ en-US ] = "~Grid";\
+ };
+
+#define MN_HELPLINES_VISIBLE\
+ MenuItem\
+ {\
+ Identifier = SID_HELPLINES_VISIBLE ; \
+ HelpID = SID_HELPLINES_VISIBLE ; \
+ /* ### ACHTUNG: Neuer Text in Resource? ~Fanglinien sichtbar : ~Hilfslinien sichtbar */\
+ Text [ en-US ] = "~Snap Lines Visible" ; \
+ };
+
+#define MN_HELPLINES_USE\
+ MenuItem\
+ {\
+ Identifier = SID_HELPLINES_USE ; \
+ HelpID = SID_HELPLINES_USE ; \
+ Text [ en-US ] = "Snap to Snap Lines"; \
+ };
+
+#define MN_HELPLINES_FRONT\
+ MenuItem\
+ {\
+ Identifier = SID_HELPLINES_FRONT ; \
+ HelpID = SID_HELPLINES_FRONT ; \
+ /* ### ACHTUNG: Neuer Text in Resource? Fanglini~en vorn : H~ilfslinien vorn */\
+ Text [ en-US ] = "Snap Lines to Front" ; \
+ };
+
+#define MN_HELPLINES \
+ MenuItem\
+ {\
+ Identifier = DUMMY + 6 ; \
+ Command = ".uno:SnapLinesMenu" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_HELPLINES_VISIBLE\
+ MN_HELPLINES_USE\
+ MN_HELPLINES_FRONT\
+ };\
+ };\
+ Text [ en-US ] = "~Snap Lines";\
+ };
+
+#define MN_CONTROL_SHOW_BROWSER\
+ MenuItem\
+ {\
+ Identifier = SID_SHOW_BROWSER ; \
+ HelpID = SID_SHOW_BROWSER ; \
+ Text [ en-US ] = "Propert~ies..." ; \
+ };
+
+#define MN_CONVERT_TO_1BIT_THRESHOLD\
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_1BIT_THRESHOLD ; \
+ HelpID = SID_CONVERT_TO_1BIT_THRESHOLD ; \
+ Text [ en-US ] = "1Bit ~Threshold" ; \
+ };
+
+#define MN_CONVERT_TO_1BIT_MATRIX\
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_1BIT_MATRIX ; \
+ HelpID = SID_CONVERT_TO_1BIT_MATRIX ; \
+ Text [ en-US ] = "1 Bit ~Dithering" ; \
+ };
+
+#define MN_CONVERT_TO_4BIT_GRAYS\
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_4BIT_GRAYS ; \
+ HelpID = SID_CONVERT_TO_4BIT_GRAYS ; \
+ Text [ en-US ] = "4 Bit G~rayscales" ; \
+ };
+
+#define MN_CONVERT_TO_4BIT_COLORS\
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_4BIT_COLORS ; \
+ HelpID = SID_CONVERT_TO_4BIT_COLORS ; \
+ Text [ en-US ] = "4 Bit ~Color Palette" ; \
+ };
+
+#define MN_CONVERT_TO_8BIT_GRAYS\
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_8BIT_GRAYS ; \
+ HelpID = SID_CONVERT_TO_8BIT_GRAYS ; \
+ Text [ en-US ] = "8 Bit Gr~ayscales" ; \
+ };
+
+#define MN_CONVERT_TO_8BIT_COLORS\
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_8BIT_COLORS ; \
+ HelpID = SID_CONVERT_TO_8BIT_COLORS ; \
+ Text [ en-US ] = "8 Bit C~olor Palette" ; \
+ };
+
+#define MN_CONVERT_TO_24BIT\
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT_TO_24BIT ; \
+ HelpID = SID_CONVERT_TO_24BIT ; \
+ Text [ en-US ] = "24 Bit ~True Colors" ; \
+ };
+
+#define MN_COLORRESOLUTION \
+ MenuItem\
+ {\
+ Identifier = DUMMY + 4 ; \
+ Command = ".uno:ColorResMenu" ; \
+ /* ### ACHTUNG: Neuer Text in Resource? ~Farbauflösung : ~Farbaufl÷sung */\
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_CONVERT_TO_1BIT_THRESHOLD\
+ MN_CONVERT_TO_1BIT_MATRIX\
+ MN_CONVERT_TO_4BIT_GRAYS\
+ MN_CONVERT_TO_4BIT_COLORS\
+ MN_CONVERT_TO_8BIT_GRAYS\
+ MN_CONVERT_TO_8BIT_COLORS\
+ MN_CONVERT_TO_24BIT\
+ };\
+ };\
+ Text [ en-US ] = "~Color Resolution" ; \
+ };
+
+#define MNSUB_CONVERT \
+ MenuItem\
+ {\
+ Identifier = SID_CONVERT ; \
+ Command = ".uno:ConvertMenu" ; \
+ HelpID = SID_CONVERT ; \
+ Text [ en-US ] = "Con~vert" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_CHANGEBEZIER\
+ MN_CHANGEPOLYGON\
+ MN_CONVERT_TO_CONTOUR\
+ MN_CONVERT_TO_3D\
+ MN_CONVERT_TO_3D_LATHE_FAST\
+ MN_CONVERT_TO_BITMAP\
+ MN_CONVERT_TO_METAFILE\
+ };\
+ };\
+ };
+
+#define MNSUB_MIRROR \
+ MenuItem\
+ {\
+ Identifier = SID_MIRROR ; \
+ HelpID = SID_MIRROR ; \
+ Command = ".uno:MirrorMenu" ; \
+ Text [ en-US ] = "~Flip" ; \
+ SubMenu = Menu\
+ {\
+ ItemList = \
+ {\
+ MN_VERTICAL\
+ MN_HORIZONTAL\
+ };\
+ };\
+ };
+
+#define MNSUB_ROTATE \
+ MenuItem\
+ {\
+ Identifier = SID_OBJECT_ROTATE ; \
+ HelpID = SID_OBJECT_ROTATE ; \
+ Text [ en-US ] = "~Rotate";\
+ };
+
+#define MN_CONNECT \
+ MenuItem\
+ {\
+ Identifier = SID_CONNECT ; \
+ HelpID = SID_CONNECT ; \
+ Text [ en-US ] = "C~onnect" ; \
+ };
+
+#define MN_BREAK \
+ MenuItem\
+ {\
+ Identifier = SID_BREAK ; \
+ HelpID = SID_BREAK ; \
+ Text [ en-US ] = "~Break" ; \
+ };
+
+#define MN_STYLEDT \
+ MenuItem\
+ {\
+ Identifier = SID_STYLE_EDIT ; \
+ HelpID = SID_STYLE_EDIT ; \
+ Text [ en-US ] = "Edit Style..." ; \
+ };
+
+#define MN_EDIT_HYPERLINK \
+ MenuItem\
+ {\
+ Identifier = SID_EDIT_HYPERLINK ; \
+ HelpID = SID_EDIT_HYPERLINK ; \
+ Text [ en-US ] = "H~yperlink..." ; \
+ };
+
+#define MN_POINT_EDITMODE \
+ MenuItem\
+ {\
+ Identifier = SID_BEZIER_EDIT ; \
+ HelpID = SID_BEZIER_EDIT ; \
+ Text [ en-US ] = "Poi~nts";\
+ };
+
+#define MN_GLUE_EDITMODE \
+ MenuItem\
+ {\
+ Identifier = SID_GLUE_EDITMODE ; \
+ HelpID = SID_GLUE_EDITMODE ; \
+ Text [ en-US ] = "~Glue Points";\
+ };
+
+#define MN_LAYER_EDITMODE \
+ MenuItem\
+ {\
+ Identifier = DUMMY + 7 ; \
+ Command = ".uno:LayerMenu" ; \
+ Text [ en-US ] = "La~yer"; \
+ SubMenu = Menu \
+ {\
+ ItemList = \
+ {\
+ MenuItem \
+ {\
+ Identifier = SID_INSERTLAYER ; \
+ HelpID = SID_INSERTLAYER ; \
+ Text [ en-US ] = "~Insert";\
+ };\
+ MenuItem \
+ {\
+ Identifier = SID_MODIFYLAYER ; \
+ HelpID = SID_MODIFYLAYER ; \
+ Text [ en-US ] = "~Modify";\
+ };\
+ MenuItem \
+ {\
+ Identifier = SID_DELETE_LAYER ; \
+ HelpID = SID_DELETE_LAYER ; \
+ Text [ en-US ] = "Delete";\
+ };\
+ MenuItem \
+ {\
+ Identifier = SID_RENAMELAYER ; \
+ HelpID = SID_RENAMELAYER ; \
+ Text [ en-US ] = "~Rename";\
+ }; \
+ };\
+ };\
+ };
+
diff --git a/sd/source/ui/app/menuportal_tmpl.src b/sd/source/ui/app/menuportal_tmpl.src
new file mode 100644
index 000000000000..935b23b38016
--- /dev/null
+++ b/sd/source/ui/app/menuportal_tmpl.src
@@ -0,0 +1,391 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: menuportal_tmpl.src,v $
+ * $Revision: 1.8 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+#include "menuids.src"
+#include "menuids3.src"
+#include "menuids4.src"
+#ifndef SD_MENU_PORTAL
+#define SD_MENU_PORTAL RID_DRAW_PORTALMENU
+#include "menuids2.src"
+#endif
+
+#define DEFINE_SLOTID_FOR_NUMBER_BULLETS SID_OUTLINE_BULLET
+
+Menu SD_MENU_PORTAL
+{
+ ItemList =
+ {
+ //
+ // Datei-Menu
+ //
+ MenuItem
+ {
+ ITEM_FILE_PICKLIST
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MN_NEWDOCDIRECT
+ MI ( ITEM_FILE_OPENDOC )
+ ITEM_FILE_AUTOPILOT
+ SEPARATOR
+ MI ( ITEM_FILE_CLOSEDOC )
+ MI ( ITEM_FILE_SAVEDOC )
+ MI ( ITEM_FILE_SAVEASDOC )
+ MI ( ITEM_FILE_SAVEDOCS )
+ MI ( ITEM_FILE_LASTVERSIONDOC )
+ MI ( ITEM_FILE_VERSIONDIALOG )
+ SEPARATOR
+ MN_EXPORTDOC
+ MNSUB_SEND
+ SEPARATOR
+ MI ( ITEM_FILE_DOCINFO )
+ MI ( ITEM_FILE_DOCTEMPLATE )
+ SEPARATOR
+ MI ( ITEM_FILE_PRINTDOC )
+ MI ( ITEM_FILE_SETUPPRINTER )
+ SEPARATOR
+ MI ( ITEM_FILE_BACKTOWEBTOP )
+ MI ( ITEM_FILE_LOGOUT )
+ };
+ };
+ };
+ //
+ // Bearbeiten-Menu
+ //
+ MenuItem
+ {
+ MN_EDIT
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MI ( ITEM_EDIT_UNDO )
+ MI ( ITEM_EDIT_REDO )
+ MI ( ITEM_EDIT_REPEAT )
+ SEPARATOR
+ MI ( ITEM_EDIT_CUT )
+ MI ( ITEM_EDIT_COPY )
+ MI ( ITEM_EDIT_PASTE )
+ MN_PASTE2
+ MI ( ITEM_EDIT_SELECTALL )
+ SEPARATOR
+ MI ( ITEM_EDIT_SEARCH_DLG )
+ MI ( ITEM_EDIT_NAVIGATOR )
+ SEPARATOR
+ MN_COPYOBJECTS
+#if SD_MENU_PORTAL != RID_DRAW_PORTALMENU
+ MN_POLYGON_MORPHING
+#endif
+ MN_MODIFY_FIELD
+ MN_DELETE_PAGE
+#if SD_MENU_PORTAL != RID_DRAW_PORTALMENU
+ MN_DELETE_LAYER
+#endif
+ SEPARATOR
+ MN_MANAGE_LINKS
+ MI ( ITEM_EDIT_IMAP )
+ MI ( ITEM_EDIT_OBJECT )
+ MN_EDIT_HYPERLINK
+ };
+ };
+ };
+ //
+ // Ansicht-Menu
+ //
+ MenuItem
+ {
+ MN_VIEW
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MI ( ITEM_VIEW_ATTR_ZOOM )
+ SEPARATOR
+ //MNSUB_TOOLBAR
+ MenuItem
+ {
+ Identifier = MN_SUB_TOOLBAR ;
+ HelpID = MN_SUB_TOOLBAR ;
+ Text [ en-US ] = "~Toolbars" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MI ( ITEM_VIEW_TOGGLEFUNCTIONBAR )
+ MI ( ITEM_VIEW_TOGGLEOBJECTBAR )
+ MN_TOGGLETOOLBAR
+ MI ( ITEM_INSERT_HYPERLINK_INSERT )
+ MN_TOGGLEOPTIONBAR
+#if SD_MENU_PORTAL == RID_DRAW_PORTALMENU
+ MN_TOGGLECOMMONTASKBAR
+#endif
+ MI ( ITEM_VIEW_COLORBAR )
+ SEPARATOR
+ MN_CUSTOMIZETOOLBOX
+ };
+ };
+ };
+ MN_RULER
+ MI ( ITEM_VIEW_TOGGLESTATUSBAR )
+ MI ( ITEM_VIEW_TOGGLEIMESTATUSWINDOW )
+ SEPARATOR
+#if SD_MENU_PORTAL == RID_DRAW_PORTALMENU
+ MNSUB_VIEW
+#endif
+ MNSUB_OUTPUT_QUALITY
+#if SD_MENU_PORTAL == RID_DRAW_PORTALMENU
+ SEPARATOR
+#endif
+ MN_PREVIEW_WIN
+ MNSUB_PREVIEW_OUTPUT_QUALITY
+ SEPARATOR
+ MN_PAGEMODE
+#if SD_MENU_PORTAL == RID_DRAW_PORTALMENU
+ MNSUB_MASTERPAGE
+#endif
+ MN_LAYERMODE
+ SEPARATOR
+ ITEM_VIEW_SCREENMODE
+ };
+ };
+ };
+ //
+ // Einfuegen-Menu
+ //
+ MenuItem
+ {
+ MN_INSERT
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+#if SD_MENU_PORTAL == RID_DRAW_PORTALMENU
+ MN_INSERTPAGE
+#else
+ MN_INSERTPAGE_DRAW
+#endif
+ MN_DUPLICATE_PAGE
+#if SD_MENU_PORTAL == RID_DRAW_PORTALMENU
+ MN_EXPAND_PAGE
+ MN_SUMMARY_PAGE
+#endif
+#if SD_MENU_PORTAL != RID_DRAW_PORTALMENU
+ MN_INSERTLAYER
+ MN_CAPTUREPOINT
+#endif
+ MNSUB_FIELD
+ MN_BULLET
+ ITEM_HYPERLINK_DIALOG
+ SEPARATOR
+ MN_ATTR_TABLE
+ MNSUB_GRAPHIC_PORTAL
+ ITEM_INSERT_OBJECT_PORTAL
+ MN_INSERT_INSERT_DIAGRAM
+ MN_INSERT_FLOATINGFRAME
+ SEPARATOR
+ MN_INSERTFILE
+ };
+ };
+ };
+ //
+ // Format-Menu
+ //
+ MenuItem
+ {
+ MN_FORMAT
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MN_SET_DEFAULT
+ SEPARATOR
+ MI ( ITEM_FORMAT_ATTRIBUTES_LINE )
+ MI ( ITEM_FORMAT_ATTRIBUTES_AREA )
+ MN_TEXTATTR_DLG
+ MI ( ITEM_FORMAT_ATTR_TRANSFORM )
+ MI ( ITEM_FORM_CONTROL_PROPERTIES )
+ MI ( ITEM_FORM_PROPERTIES )
+#if SD_MENU_PORTAL != RID_DRAW_PORTALMENU
+ MN_MEASURE_DLG
+#endif
+ MN_CONNECTION_DLG
+ SEPARATOR
+ MI ( ITEM_FORMAT_CHAR_DLG )
+ ITEM_FORMAT_NUMBERING
+ MI ( ITEM_FORMAT_PARA_DLG )
+ MN_PAGESETUP
+ SEPARATOR
+#if SD_MENU_PORTAL == RID_DRAW_PORTALMENU
+ MN_MODIFYPAGE
+#endif
+#if SD_MENU_PORTAL != RID_DRAW_PORTALMENU
+ MN_MODIFYLAYER
+#endif
+ SEPARATOR
+ MNSUB_TEMPLATES
+ MI ( ITEM_FORMAT_TEMPLATE )
+ SEPARATOR
+ MI ( ITEM_FORMAT_FONTWORK )
+ MN_3D_WIN
+#if SD_MENU_PORTAL == RID_DRAW_PORTALMENU
+ MNSUB_GROUP
+#endif
+ };
+ };
+ };
+ //
+ // Extras-Menu
+ //
+ MenuItem
+ {
+ MN_EXTRAS
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MN_THESAURUS
+ MN_HYPHENATION
+ SEPARATOR
+ MN_AUTO_CORRECT_DLG
+ SEPARATOR
+ MN_GALLERY
+ MN_BMPMASK
+ SEPARATOR
+ MI ( ITEM_TOOLS_BASICCHOOSER )
+ MI ( ITEM_TOOLS_CONFIG )
+ ITEM_MN_OPTIONS
+ };
+ };
+ };
+#if SD_MENU_PORTAL != RID_DRAW_PORTALMENU
+ //
+ // Aendern-Menu
+ //
+ MenuItem
+ {
+ MN_MODIFY
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MNSUB_MIRROR
+ MNSUB_CONVERT
+ SEPARATOR
+ MNSUB_POSITION
+ MNSUB_OBJECT_ALIGN
+ MN_DISTRIBUTE
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+ SEPARATOR
+ MN_GROUP
+ MN_UNGROUP
+ MN_ENTER_GROUP
+ MN_LEAVE_GROUP
+ SEPARATOR
+ MN_COMBINE
+ MN_DISMANTLE
+ MNSUB_FORMEN
+ SEPARATOR
+ MN_CONNECT
+ MN_BREAK
+ };
+ };
+ };
+#endif
+#if SD_MENU_PORTAL == RID_DRAW_PORTALMENU
+ //
+ // Praesentations-Menu
+ //
+ MenuItem
+ {
+ MN_SLIDESHOW
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MN_PRESENTATION
+ MN_REHEARSE_TIMINGS
+ SEPARATOR
+ MN_PRESENTATION_DLG
+ MN_CUSTOMSHOW_DLG
+ SEPARATOR
+ MN_DIA
+ MN_HIDE_SLIDE
+ SEPARATOR
+ MN_ANIMATION_OBJECTS
+// MN_EFFECT_WIN
+ MN_ANIMATION_EFFECTS
+ };
+ };
+ };
+#endif
+ //
+ // Fenster-Menu
+ //
+ ITEM_WINDOW_MENU
+
+ //
+ // Hilfe-Menu
+ //
+ ITEM_HELP_MENU
+ };
+};
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx
new file mode 100644
index 000000000000..673e00477d46
--- /dev/null
+++ b/sd/source/ui/app/optsitem.cxx
@@ -0,0 +1,1813 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: optsitem.cxx,v $
+ * $Revision: 1.43 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+#include <svx/svdmodel.hxx>
+#include <sfx2/app.hxx>
+#include <sfx2/sfx.hrc>
+#ifndef _SV_SALBTYPE_HRC //autogen
+#include <vcl/salbtype.hxx>
+#endif
+#include <svtools/syslocale.hxx>
+
+#include "app.hxx"
+#include "optsitem.hxx"
+#include "cfgids.hxx"
+#include "FrameView.hxx"
+
+using namespace ::rtl;
+using namespace ::utl;
+using namespace ::com::sun::star::uno;
+
+#define B2U(_def_aStr) (OUString::createFromAscii(_def_aStr))
+
+
+// -----------------
+// - SdOptionsItem -
+// -----------------
+
+SdOptionsItem::SdOptionsItem( const SdOptionsGeneric& rParent, const OUString rSubTree ) :
+ ConfigItem ( rSubTree ),
+ mrParent ( rParent )
+{
+}
+
+// -----------------------------------------------------------------------------
+
+SdOptionsItem::~SdOptionsItem()
+{
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsItem::Commit()
+{
+ if( IsModified() )
+ mrParent.Commit( *this );
+};
+
+// -----------------------------------------------------------------------------
+
+Sequence< Any > SdOptionsItem::GetProperties( const Sequence< OUString >& rNames )
+{
+ return ConfigItem::GetProperties( rNames );
+}
+
+// -----------------------------------------------------------------------------
+
+sal_Bool SdOptionsItem::PutProperties( const Sequence< OUString >& rNames, const Sequence< Any>& rValues )
+{
+ return ConfigItem::PutProperties( rNames, rValues );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsItem::SetModified()
+{
+ ConfigItem::SetModified();
+}
+
+// --------------------
+// - SdOptionsGeneric -
+// --------------------
+
+SdOptionsGeneric::SdOptionsGeneric( USHORT nConfigId, const OUString& rSubTree ) :
+ maSubTree ( rSubTree ),
+ mpCfgItem ( NULL ),
+ mnConfigId ( nConfigId ),
+ mbInit ( rSubTree.getLength() == 0 )
+{
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsGeneric::Init() const
+{
+ if( !mbInit )
+ {
+ SdOptionsGeneric* pThis = const_cast<SdOptionsGeneric*>(this);
+
+ if( !mpCfgItem )
+ pThis->mpCfgItem = new SdOptionsItem( *this, maSubTree );
+
+ const Sequence< OUString > aNames( GetPropertyNames() );
+ const Sequence< Any > aValues = mpCfgItem->GetProperties( aNames );
+
+ if( aNames.getLength() && ( aValues.getLength() == aNames.getLength() ) )
+ {
+ const Any* pValues = aValues.getConstArray();
+
+ pThis->EnableModify( FALSE );
+ pThis->mbInit = pThis->ReadData( pValues );
+ pThis->EnableModify( TRUE );
+ }
+ else
+ pThis->mbInit = TRUE;
+ }
+}
+
+// -----------------------------------------------------------------------------
+
+SdOptionsGeneric::~SdOptionsGeneric()
+{
+ if( mpCfgItem )
+ delete mpCfgItem;
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsGeneric::Commit( SdOptionsItem& rCfgItem ) const
+{
+ const Sequence< OUString > aNames( GetPropertyNames() );
+ Sequence< Any > aValues( aNames.getLength() );
+
+ if( aNames.getLength() && ( aValues.getLength() == aNames.getLength() ) )
+ {
+ if( (const_cast<SdOptionsGeneric*>(this))->WriteData( aValues.getArray() ) )
+ rCfgItem.PutProperties( aNames, aValues );
+ else
+ {
+ DBG_ERROR( "PutProperties failed" );
+ }
+ }
+}
+
+// -----------------------------------------------------------------------------
+
+Sequence< OUString > SdOptionsGeneric::GetPropertyNames() const
+{
+ ULONG nCount;
+ const char** ppPropNames;
+
+ GetPropNameArray( ppPropNames, nCount );
+
+ Sequence< OUString > aNames( nCount );
+ OUString* pNames = aNames.getArray();
+
+ for( ULONG i = 0; i < nCount; i++ )
+ pNames[ i ] = OUString::createFromAscii( ppPropNames[ i ] );
+
+ return aNames;
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsGeneric::Store()
+{
+ if( mpCfgItem )
+ mpCfgItem->Commit();
+}
+
+// -----------------------------------------------------------------------------
+
+bool SdOptionsGeneric::isMetricSystem()
+{
+ SvtSysLocale aSysLocale;
+ MeasurementSystem eSys = aSysLocale.GetLocaleDataPtr()->getMeasurementSystemEnum();
+
+ return ( eSys == MEASURE_METRIC );
+}
+
+/*************************************************************************
+|*
+|* SdOptionsLayout
+|*
+\************************************************************************/
+
+SdOptionsLayout::SdOptionsLayout( USHORT nConfigId, BOOL bUseConfig ) :
+ SdOptionsGeneric( nConfigId, bUseConfig ?
+ ( ( SDCFG_DRAW == nConfigId ) ?
+ B2U( "Office.Draw/Layout" ) :
+ B2U( "Office.Impress/Layout" ) ) :
+ OUString() ),
+ bRuler( TRUE ),
+ bMoveOutline( TRUE ),
+ bDragStripes( FALSE ),
+ bHandlesBezier( FALSE ),
+ bHelplines( TRUE ),
+ nMetric((UINT16)(isMetricSystem() ? FUNIT_CM : FUNIT_INCH)),
+ nDefTab( 1250 )
+{
+ EnableModify( TRUE );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsLayout::SetDefaults()
+{
+ SetRulerVisible( TRUE );
+ SetHelplines( TRUE );
+ SetHandlesBezier( FALSE );
+ SetMoveOutline( TRUE );
+ SetDragStripes( FALSE );
+ if ( isMetricSystem() )
+ SetMetric( FUNIT_CM ); // default for countries with metric system
+ else
+ SetMetric( FUNIT_INCH ); // default for others
+ SetDefTab( 1250 );
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsLayout::operator==( const SdOptionsLayout& rOpt ) const
+{
+ return( IsRulerVisible() == rOpt.IsRulerVisible() &&
+ IsMoveOutline() == rOpt.IsMoveOutline() &&
+ IsDragStripes() == rOpt.IsDragStripes() &&
+ IsHandlesBezier() == rOpt.IsHandlesBezier() &&
+ IsHelplines() == rOpt.IsHelplines() &&
+ GetMetric() == rOpt.GetMetric() &&
+ GetDefTab() == rOpt.GetDefTab() );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsLayout::GetPropNameArray( const char**& ppNames, ULONG& rCount ) const
+{
+ static const char* aPropNamesMetric[] =
+ {
+ "Display/Ruler",
+ "Display/Bezier",
+ "Display/Contour",
+ "Display/Guide",
+ "Display/Helpline",
+ "Other/MeasureUnit/Metric",
+ "Other/TabStop/Metric"
+ };
+
+ static const char* aPropNamesNonMetric[] =
+ {
+ "Display/Ruler",
+ "Display/Bezier",
+ "Display/Contour",
+ "Display/Guide",
+ "Display/Helpline",
+ "Other/MeasureUnit/NonMetric",
+ "Other/TabStop/NonMetric"
+ };
+
+ rCount = 7;
+
+ if( isMetricSystem() )
+ ppNames = aPropNamesMetric;
+ else
+ ppNames = aPropNamesNonMetric;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsLayout::ReadData( const Any* pValues )
+{
+ if( pValues[0].hasValue() ) SetRulerVisible( *(sal_Bool*) pValues[ 0 ].getValue() );
+ if( pValues[1].hasValue() ) SetHandlesBezier( *(sal_Bool*) pValues[ 1 ].getValue() );
+ if( pValues[2].hasValue() ) SetMoveOutline( *(sal_Bool*) pValues[ 2 ].getValue() );
+ if( pValues[3].hasValue() ) SetDragStripes( *(sal_Bool*) pValues[ 3 ].getValue() );
+ if( pValues[4].hasValue() ) SetHelplines( *(sal_Bool*) pValues[ 4 ].getValue() );
+ if( pValues[5].hasValue() ) SetMetric( (UINT16) *(sal_Int32*) pValues[ 5 ].getValue() );
+ if( pValues[6].hasValue() ) SetDefTab( (UINT16) *(sal_Int32*) pValues[ 6 ].getValue() );
+
+ return TRUE;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsLayout::WriteData( Any* pValues ) const
+{
+ pValues[ 0 ] <<= IsRulerVisible();
+ pValues[ 1 ] <<= IsHandlesBezier();
+ pValues[ 2 ] <<= IsMoveOutline();
+ pValues[ 3 ] <<= IsDragStripes();
+ pValues[ 4 ] <<= IsHelplines();
+ pValues[ 5 ] <<= (sal_Int32) GetMetric();
+ pValues[ 6 ] <<= (sal_Int32) GetDefTab();
+
+ return TRUE;
+}
+
+/*************************************************************************
+|*
+|* SdOptionsLayoutItem
+|*
+\************************************************************************/
+
+SdOptionsLayoutItem::SdOptionsLayoutItem( USHORT _nWhich )
+: SfxPoolItem ( _nWhich )
+, maOptionsLayout ( 0, FALSE )
+{
+}
+
+// ----------------------------------------------------------------------
+
+SdOptionsLayoutItem::SdOptionsLayoutItem( USHORT _nWhich, SdOptions* pOpts, ::sd::FrameView* pView )
+: SfxPoolItem ( _nWhich )
+, maOptionsLayout ( 0, FALSE )
+{
+ if( pOpts )
+ {
+ maOptionsLayout.SetMetric( pOpts->GetMetric() );
+ maOptionsLayout.SetDefTab( pOpts->GetDefTab() );
+ }
+
+ if( pView )
+ {
+ maOptionsLayout.SetRulerVisible( pView->HasRuler() );
+ maOptionsLayout.SetMoveOutline( !pView->IsNoDragXorPolys() );
+ maOptionsLayout.SetDragStripes( pView->IsDragStripes() );
+ maOptionsLayout.SetHandlesBezier( pView->IsPlusHandlesAlwaysVisible() );
+ maOptionsLayout.SetHelplines( pView->IsHlplVisible() );
+ }
+ else if( pOpts )
+ {
+ maOptionsLayout.SetRulerVisible( pOpts->IsRulerVisible() );
+ maOptionsLayout.SetMoveOutline( pOpts->IsMoveOutline() );
+ maOptionsLayout.SetDragStripes( pOpts->IsDragStripes() );
+ maOptionsLayout.SetHandlesBezier( pOpts->IsHandlesBezier() );
+ maOptionsLayout.SetHelplines( pOpts->IsHelplines() );
+ }
+}
+
+// ----------------------------------------------------------------------
+
+SfxPoolItem* SdOptionsLayoutItem::Clone( SfxItemPool* ) const
+{
+ return new SdOptionsLayoutItem( *this );
+}
+
+
+// ----------------------------------------------------------------------
+
+int SdOptionsLayoutItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ const bool bSameType = SfxPoolItem::operator==( rAttr );
+ DBG_ASSERT( bSameType, "SdOptionsLayoutItem::operator==(), differen pool item type!" );
+ return bSameType && ( maOptionsLayout == static_cast< const SdOptionsLayoutItem& >( rAttr ).maOptionsLayout );
+}
+
+// -----------------------------------------------------------------------
+
+void SdOptionsLayoutItem::SetOptions( SdOptions* pOpts ) const
+{
+ if( pOpts )
+ {
+ pOpts->SetRulerVisible( maOptionsLayout.IsRulerVisible() );
+ pOpts->SetMoveOutline( maOptionsLayout.IsMoveOutline() );
+ pOpts->SetDragStripes( maOptionsLayout.IsDragStripes() );
+ pOpts->SetHandlesBezier( maOptionsLayout.IsHandlesBezier() );
+ pOpts->SetHelplines( maOptionsLayout.IsHelplines() );
+ pOpts->SetMetric( maOptionsLayout.GetMetric() );
+ pOpts->SetDefTab( maOptionsLayout.GetDefTab() );
+ }
+}
+
+/*************************************************************************
+|*
+|* SdOptionsContents
+|*
+\************************************************************************/
+
+SdOptionsContents::SdOptionsContents( USHORT nConfigId, BOOL bUseConfig ) :
+ SdOptionsGeneric( nConfigId, bUseConfig ?
+ ( ( SDCFG_DRAW == nConfigId ) ?
+ B2U( "Office.Draw/Content" ) :
+ B2U( "Office.Impress/Content" ) ) :
+ OUString() )
+{
+ EnableModify( TRUE );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsContents::SetDefaults()
+{
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsContents::operator==(const SdOptionsContents&) const
+{
+ return true;
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsContents::GetPropNameArray( const char**& ppNames, ULONG& rCount ) const
+{
+ static const char* aPropNames[] =
+ {
+ "Display/PicturePlaceholder",
+ "Display/ContourMode",
+ "Display/LineContour",
+ "Display/TextPlaceholder"
+ };
+
+ rCount = 4;
+ ppNames = aPropNames;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsContents::ReadData(const Any*)
+{
+ return TRUE;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsContents::WriteData( Any* pValues ) const
+{
+ //#i80528# no draft anymore
+ pValues[ 0 ] <<= (BOOL)false;
+ pValues[ 1 ] <<= (BOOL)false;
+ pValues[ 2 ] <<= (BOOL)false;
+ pValues[ 3 ] <<= (BOOL)false;
+
+ return TRUE;
+}
+
+/*************************************************************************
+|*
+|* SdOptionsContentsItem
+|*
+\************************************************************************/
+
+SdOptionsContentsItem::SdOptionsContentsItem( USHORT _nWhich )
+: SfxPoolItem ( _nWhich )
+, maOptionsContents ( 0, FALSE )
+{
+}
+
+// ----------------------------------------------------------------------
+
+SdOptionsContentsItem::SdOptionsContentsItem(USHORT _nWhich, SdOptions*, ::sd::FrameView*)
+: SfxPoolItem ( _nWhich )
+, maOptionsContents ( 0, FALSE )
+{
+}
+
+// ----------------------------------------------------------------------
+
+SfxPoolItem* SdOptionsContentsItem::Clone( SfxItemPool* ) const
+{
+ return new SdOptionsContentsItem( *this );
+}
+
+// ----------------------------------------------------------------------
+
+int SdOptionsContentsItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ const bool bSameType = SfxPoolItem::operator==(rAttr);
+ DBG_ASSERT( bSameType, "SdOptionsContentsItem::operator==(), differen pool item type!" );
+ return bSameType && ( maOptionsContents == static_cast<const SdOptionsContentsItem&>( rAttr ).maOptionsContents );
+}
+
+// -----------------------------------------------------------------------
+
+void SdOptionsContentsItem::SetOptions(SdOptions*) const
+{
+}
+
+/*************************************************************************
+|*
+|* SdOptionsMisc
+|*
+\************************************************************************/
+
+SdOptionsMisc::SdOptionsMisc( USHORT nConfigId, BOOL bUseConfig ) :
+ SdOptionsGeneric( nConfigId, bUseConfig ?
+ ( ( SDCFG_DRAW == nConfigId ) ?
+ B2U( "Office.Draw/Misc" ) :
+ B2U( "Office.Impress/Misc" ) ) :
+ OUString() ),
+ // #97016#
+ nDefaultObjectSizeWidth(8000),
+ nDefaultObjectSizeHeight(5000),
+ bStartWithTemplate( TRUE ),
+ bMarkedHitMovesAlways( TRUE ),
+ bMoveOnlyDragging( FALSE ),
+ bCrookNoContortion( FALSE ),
+ bQuickEdit( GetConfigId() != SDCFG_DRAW ),
+ bMasterPageCache( TRUE ),
+ bDragWithCopy( FALSE ),
+ bPickThrough( TRUE ),
+ bBigHandles( FALSE ),
+ bDoubleClickTextEdit( TRUE ),
+ bClickChangeRotation( FALSE ),
+ bStartWithActualPage( FALSE ),
+ bSolidDragging( TRUE ),
+ bSolidMarkHdl( TRUE ),
+ bSummationOfParagraphs( FALSE ),
+ // #90356#
+ bShowUndoDeleteWarning( TRUE ),
+ bSlideshowRespectZOrder( TRUE ),
+ bShowComments( TRUE ),
+ bPreviewNewEffects( TRUE ),
+ bPreviewChangedEffects( FALSE ),
+ bPreviewTransitions( TRUE ),
+ mnDisplay( 0 ),
+ // The default for 6.1-and-above documents is to use printer-independent
+ // formatting.
+ mnPrinterIndependentLayout (1)
+{
+ EnableModify( TRUE );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsMisc::SetDefaults()
+{
+ SetStartWithTemplate( TRUE );
+ SetMarkedHitMovesAlways( TRUE );
+ SetMoveOnlyDragging( FALSE );
+ SetCrookNoContortion( FALSE );
+ SetQuickEdit( GetConfigId() != SDCFG_DRAW );
+ SetMasterPagePaintCaching( TRUE );
+ SetDragWithCopy( FALSE );
+ SetPickThrough( TRUE );
+ SetBigHandles( FALSE );
+ SetDoubleClickTextEdit( TRUE );
+ SetClickChangeRotation( FALSE );
+ SetStartWithActualPage( FALSE );
+ SetSummationOfParagraphs( FALSE );
+ SetSolidDragging( TRUE );
+ SetSolidMarkHdl( TRUE );
+ // #90356#
+ SetShowUndoDeleteWarning( TRUE );
+ // The default for 6.1-and-above documents is to use printer-independent
+ // formatting.
+ SetPrinterIndependentLayout (1);
+ // #97016#
+ SetDefaultObjectSizeWidth(8000);
+ SetDefaultObjectSizeHeight(5000);
+ SetPreviewNewEffects(true);
+ SetPreviewChangedEffects(false);
+ SetPreviewTransitions(true);
+ SetDisplay(0);
+ SetShowComments(true);
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsMisc::operator==( const SdOptionsMisc& rOpt ) const
+{
+ return( IsStartWithTemplate() == rOpt.IsStartWithTemplate() &&
+ IsMarkedHitMovesAlways() == rOpt.IsMarkedHitMovesAlways() &&
+ IsMoveOnlyDragging() == rOpt.IsMoveOnlyDragging() &&
+ IsCrookNoContortion() == rOpt.IsCrookNoContortion() &&
+ IsQuickEdit() == rOpt.IsQuickEdit() &&
+ IsMasterPagePaintCaching() == rOpt.IsMasterPagePaintCaching() &&
+ IsDragWithCopy() == rOpt.IsDragWithCopy() &&
+ IsPickThrough() == rOpt.IsPickThrough() &&
+ IsBigHandles() == rOpt.IsBigHandles() &&
+ IsDoubleClickTextEdit() == rOpt.IsDoubleClickTextEdit() &&
+ IsClickChangeRotation() == rOpt.IsClickChangeRotation() &&
+ IsStartWithActualPage() == rOpt.IsStartWithActualPage() &&
+ IsSummationOfParagraphs() == rOpt.IsSummationOfParagraphs() &&
+ IsSolidDragging() == rOpt.IsSolidDragging() &&
+ IsSolidMarkHdl() == rOpt.IsSolidMarkHdl() &&
+ // #90356#
+ IsShowUndoDeleteWarning() == rOpt.IsShowUndoDeleteWarning() &&
+ IsSlideshowRespectZOrder() == rOpt.IsSlideshowRespectZOrder() &&
+ GetPrinterIndependentLayout() == rOpt.GetPrinterIndependentLayout() &&
+ // #97016#
+ GetDefaultObjectSizeWidth() == rOpt.GetDefaultObjectSizeWidth() &&
+ GetDefaultObjectSizeHeight() == rOpt.GetDefaultObjectSizeHeight() &&
+
+ IsPreviewNewEffects() == rOpt.IsPreviewNewEffects() &&
+ IsPreviewChangedEffects() == rOpt.IsPreviewChangedEffects() &&
+ IsPreviewTransitions() == rOpt.IsPreviewTransitions() &&
+ GetDisplay() == rOpt.GetDisplay() &&
+ IsShowComments() == rOpt.IsShowComments()
+ );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsMisc::GetPropNameArray( const char**& ppNames, ULONG& rCount ) const
+{
+ static const char* aPropNames[] =
+ {
+ "ObjectMoveable",
+ "NoDistort",
+ "TextObject/QuickEditing",
+ "BackgroundCache",
+ "CopyWhileMoving",
+ "TextObject/Selectable",
+ "BigHandles",
+ "DclickTextedit",
+ "RotateClick",
+ "Preview",
+ "ModifyWithAttributes",
+ "SimpleHandles",
+ // #97016#
+ "DefaultObjectSize/Width",
+ "DefaultObjectSize/Height",
+
+ "Compatibility/PrinterIndependentLayout",
+
+ "ShowComments",
+
+ // just for impress
+ "NewDoc/AutoPilot",
+ "Start/CurrentPage",
+ "Compatibility/AddBetween",
+ // #90356#
+ "ShowUndoDeleteWarning",
+ "SlideshowRespectZOrder",
+
+ "PreviewNewEffects",
+ "PreviewChangedEffects",
+ "PreviewTransitions",
+
+ "Display"
+ };
+
+ rCount = ( ( GetConfigId() == SDCFG_IMPRESS ) ? 25 : 16 );
+ ppNames = aPropNames;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsMisc::ReadData( const Any* pValues )
+{
+ if( pValues[0].hasValue() ) SetMarkedHitMovesAlways( *(sal_Bool*) pValues[ 0 ].getValue() );
+ if( pValues[1].hasValue() ) SetCrookNoContortion( *(sal_Bool*) pValues[ 1 ].getValue() );
+ if( pValues[2].hasValue() ) SetQuickEdit( *(sal_Bool*)pValues[ 2 ].getValue() );
+ if( pValues[3].hasValue() ) SetMasterPagePaintCaching( *(sal_Bool*) pValues[ 3 ].getValue() );
+ if( pValues[4].hasValue() ) SetDragWithCopy( *(sal_Bool*) pValues[ 4 ].getValue() );
+ if( pValues[5].hasValue() ) SetPickThrough( *(sal_Bool*) pValues[ 5 ].getValue() );
+ if( pValues[6].hasValue() ) SetBigHandles( *(sal_Bool*) pValues[ 6 ].getValue() );
+ if( pValues[7].hasValue() ) SetDoubleClickTextEdit( *(sal_Bool*) pValues[ 7 ].getValue() );
+ if( pValues[8].hasValue() ) SetClickChangeRotation( *(sal_Bool*) pValues[ 8 ].getValue() );
+ // if( pValues[9].hasValue() ) SetPreviewQuality( FRound( *(double*) pValues[ 9 ].getValue() ) );
+ if( pValues[10].hasValue() ) SetSolidDragging( *(sal_Bool*) pValues[ 10 ].getValue() );
+ if( pValues[11].hasValue() ) SetSolidMarkHdl( *(sal_Bool*) pValues[ 11 ].getValue() );
+ // #97016#
+ if( pValues[12].hasValue() ) SetDefaultObjectSizeWidth( *(sal_uInt32*) pValues[ 12 ].getValue() );
+ if( pValues[13].hasValue() ) SetDefaultObjectSizeHeight( *(sal_uInt32*) pValues[ 13 ].getValue() );
+ if( pValues[14].hasValue() ) SetPrinterIndependentLayout( *(sal_uInt16*) pValues[ 14 ].getValue() );
+
+ if( pValues[15].hasValue() ) SetShowComments( *(sal_Bool*) pValues[ 11 ].getValue() );
+
+ // just for Impress
+ if( GetConfigId() == SDCFG_IMPRESS )
+ {
+ if( pValues[16].hasValue() )
+ SetStartWithTemplate( *(sal_Bool*) pValues[ 16 ].getValue() );
+ if( pValues[17].hasValue() )
+ SetStartWithActualPage( *(sal_Bool*) pValues[ 17 ].getValue() );
+ if( pValues[18].hasValue() )
+ SetSummationOfParagraphs( *(sal_Bool*) pValues[ 18 ].getValue() );
+ // #90356#
+ if( pValues[19].hasValue() )
+ SetShowUndoDeleteWarning( *(sal_Bool*) pValues[ 19 ].getValue() );
+
+ if( pValues[20].hasValue() )
+ SetSlideshowRespectZOrder(*(sal_Bool*) pValues[ 20 ].getValue());
+
+ if( pValues[21].hasValue() )
+ SetPreviewNewEffects(*(sal_Bool*) pValues[ 21 ].getValue());
+
+ if( pValues[22].hasValue() )
+ SetPreviewChangedEffects(*(sal_Bool*) pValues[ 22 ].getValue());
+
+ if( pValues[23].hasValue() )
+ SetPreviewTransitions(*(sal_Bool*) pValues[ 23 ].getValue());
+
+ if( pValues[24].hasValue() )
+ SetDisplay(*(sal_Int32*) pValues[ 24 ].getValue());
+ }
+
+ return TRUE;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsMisc::WriteData( Any* pValues ) const
+{
+ pValues[ 0 ] <<= IsMarkedHitMovesAlways();
+ pValues[ 1 ] <<= IsCrookNoContortion();
+ pValues[ 2 ] <<= IsQuickEdit();
+ pValues[ 3 ] <<= IsMasterPagePaintCaching();
+ pValues[ 4 ] <<= IsDragWithCopy();
+ pValues[ 5 ] <<= IsPickThrough();
+ pValues[ 6 ] <<= IsBigHandles();
+ pValues[ 7 ] <<= IsDoubleClickTextEdit();
+ pValues[ 8 ] <<= IsClickChangeRotation();
+ // The preview is not supported anymore. Use a dummy value.
+ pValues[ 9 ] <<= (double)0;// GetPreviewQuality();
+ pValues[ 10 ] <<= IsSolidDragging();
+ pValues[ 11 ] <<= IsSolidMarkHdl();
+ // #97016#
+ pValues[ 12 ] <<= GetDefaultObjectSizeWidth();
+ pValues[ 13 ] <<= GetDefaultObjectSizeHeight();
+ pValues[ 14 ] <<= GetPrinterIndependentLayout();
+ pValues[ 15 ] <<= (sal_Bool)IsShowComments();
+
+ // just for Impress
+ if( GetConfigId() == SDCFG_IMPRESS )
+ {
+ pValues[ 16 ] <<= IsStartWithTemplate();
+ pValues[ 17 ] <<= IsStartWithActualPage();
+ pValues[ 18 ] <<= IsSummationOfParagraphs();
+ // #90356#
+ pValues[ 19 ] <<= IsShowUndoDeleteWarning();
+ pValues[ 20 ] <<= IsSlideshowRespectZOrder();
+
+ pValues[ 21 ] <<= IsPreviewNewEffects();
+ pValues[ 22 ] <<= IsPreviewChangedEffects();
+ pValues[ 23 ] <<= IsPreviewTransitions();
+
+ pValues[ 24 ] <<= GetDisplay();
+ }
+
+ return TRUE;
+}
+
+/*************************************************************************
+|*
+|* SdOptionsMiscItem
+|*
+\************************************************************************/
+
+SdOptionsMiscItem::SdOptionsMiscItem( USHORT _nWhich )
+: SfxPoolItem ( _nWhich )
+, maOptionsMisc ( 0, FALSE )
+{
+}
+
+// ----------------------------------------------------------------------
+
+SdOptionsMiscItem::SdOptionsMiscItem( USHORT _nWhich, SdOptions* pOpts, ::sd::FrameView* pView )
+: SfxPoolItem ( _nWhich )
+, maOptionsMisc ( 0, FALSE )
+{
+ if( pOpts )
+ {
+ maOptionsMisc.SetStartWithTemplate( pOpts->IsStartWithTemplate() );
+ maOptionsMisc.SetStartWithActualPage( pOpts->IsStartWithActualPage() );
+ maOptionsMisc.SetSummationOfParagraphs( pOpts->IsSummationOfParagraphs() );
+ // #90356#
+ maOptionsMisc.SetShowUndoDeleteWarning( pOpts->IsShowUndoDeleteWarning() );
+ maOptionsMisc.SetPrinterIndependentLayout( pOpts->GetPrinterIndependentLayout() );
+ // #97016#
+ maOptionsMisc.SetDefaultObjectSizeWidth( pOpts->GetDefaultObjectSizeWidth() );
+ maOptionsMisc.SetDefaultObjectSizeHeight( pOpts->GetDefaultObjectSizeHeight() );
+
+ maOptionsMisc.SetPreviewNewEffects(pOpts->IsPreviewNewEffects());
+ maOptionsMisc.SetPreviewChangedEffects(pOpts->IsPreviewChangedEffects());
+ maOptionsMisc.SetPreviewTransitions(pOpts->IsPreviewTransitions());
+
+ maOptionsMisc.SetDisplay(pOpts->GetDisplay());
+ }
+
+ if( pView )
+ {
+ maOptionsMisc.SetMarkedHitMovesAlways( pView->IsMarkedHitMovesAlways() );
+ maOptionsMisc.SetMoveOnlyDragging( pView->IsMoveOnlyDragging() );
+ maOptionsMisc.SetCrookNoContortion( pView->IsCrookNoContortion() );
+ maOptionsMisc.SetQuickEdit( pView->IsQuickEdit() );
+
+ // #i26631#
+ maOptionsMisc.SetMasterPagePaintCaching( pView->IsMasterPagePaintCaching() );
+
+ maOptionsMisc.SetDragWithCopy( pView->IsDragWithCopy() );
+ maOptionsMisc.SetPickThrough( (BOOL)pView->GetModel()->IsPickThroughTransparentTextFrames() );
+ maOptionsMisc.SetBigHandles( (BOOL)pView->IsBigHandles() );
+ maOptionsMisc.SetDoubleClickTextEdit( pView->IsDoubleClickTextEdit() );
+ maOptionsMisc.SetClickChangeRotation( pView->IsClickChangeRotation() );
+ maOptionsMisc.SetSolidDragging( pView->IsSolidDragging() );
+ maOptionsMisc.SetSolidMarkHdl( pView->IsSolidMarkHdl() );
+ }
+ else if( pOpts )
+ {
+ maOptionsMisc.SetMarkedHitMovesAlways( pOpts->IsMarkedHitMovesAlways() );
+ maOptionsMisc.SetMoveOnlyDragging( pOpts->IsMoveOnlyDragging() );
+ maOptionsMisc.SetCrookNoContortion( pOpts->IsCrookNoContortion() );
+ maOptionsMisc.SetQuickEdit( pOpts->IsQuickEdit() );
+ maOptionsMisc.SetMasterPagePaintCaching( pOpts->IsMasterPagePaintCaching() );
+ maOptionsMisc.SetDragWithCopy( pOpts->IsDragWithCopy() );
+ maOptionsMisc.SetPickThrough( pOpts->IsPickThrough() );
+ maOptionsMisc.SetBigHandles( pOpts->IsBigHandles() );
+ maOptionsMisc.SetDoubleClickTextEdit( pOpts->IsDoubleClickTextEdit() );
+ maOptionsMisc.SetClickChangeRotation( pOpts->IsClickChangeRotation() );
+ maOptionsMisc.SetSolidDragging( pOpts->IsSolidDragging() );
+ maOptionsMisc.SetSolidMarkHdl( pOpts->IsSolidMarkHdl() );
+ }
+}
+
+// ----------------------------------------------------------------------
+
+SfxPoolItem* SdOptionsMiscItem::Clone( SfxItemPool* ) const
+{
+ return new SdOptionsMiscItem( *this );
+}
+
+
+// ----------------------------------------------------------------------
+
+int SdOptionsMiscItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ const bool bSameType = SfxPoolItem::operator==(rAttr);
+ DBG_ASSERT( bSameType, "SdOptionsMiscItem::operator==(), differen pool item type!" );
+ return bSameType && ( maOptionsMisc == static_cast< const SdOptionsMiscItem& >(rAttr).maOptionsMisc );
+}
+
+// -----------------------------------------------------------------------
+
+void SdOptionsMiscItem::SetOptions( SdOptions* pOpts ) const
+{
+ if( pOpts )
+ {
+ pOpts->SetStartWithTemplate( maOptionsMisc.IsStartWithTemplate() );
+ pOpts->SetMarkedHitMovesAlways( maOptionsMisc.IsMarkedHitMovesAlways() );
+ pOpts->SetMoveOnlyDragging( maOptionsMisc.IsMoveOnlyDragging() );
+ pOpts->SetCrookNoContortion( maOptionsMisc.IsCrookNoContortion() );
+ pOpts->SetQuickEdit( maOptionsMisc.IsQuickEdit() );
+ pOpts->SetMasterPagePaintCaching( maOptionsMisc.IsMasterPagePaintCaching() );
+ pOpts->SetDragWithCopy( maOptionsMisc.IsDragWithCopy() );
+ pOpts->SetPickThrough( maOptionsMisc.IsPickThrough() );
+ pOpts->SetBigHandles( maOptionsMisc.IsBigHandles() );
+ pOpts->SetDoubleClickTextEdit( maOptionsMisc.IsDoubleClickTextEdit() );
+ pOpts->SetClickChangeRotation( maOptionsMisc.IsClickChangeRotation() );
+ pOpts->SetStartWithActualPage( maOptionsMisc.IsStartWithActualPage() );
+ pOpts->SetSummationOfParagraphs( maOptionsMisc.IsSummationOfParagraphs() );
+ pOpts->SetSolidDragging( maOptionsMisc.IsSolidDragging() );
+ pOpts->SetSolidMarkHdl( maOptionsMisc.IsSolidMarkHdl() );
+ // #90356#
+ pOpts->SetShowUndoDeleteWarning( maOptionsMisc.IsShowUndoDeleteWarning() );
+ pOpts->SetPrinterIndependentLayout( maOptionsMisc.GetPrinterIndependentLayout() );
+ // #97016#
+ pOpts->SetDefaultObjectSizeWidth( maOptionsMisc.GetDefaultObjectSizeWidth() );
+ pOpts->SetDefaultObjectSizeHeight( maOptionsMisc.GetDefaultObjectSizeHeight() );
+
+ pOpts->SetPreviewNewEffects( maOptionsMisc.IsPreviewNewEffects() );
+ pOpts->SetPreviewChangedEffects( maOptionsMisc.IsPreviewChangedEffects() );
+ pOpts->SetPreviewTransitions( maOptionsMisc.IsPreviewTransitions() );
+
+ pOpts->SetDisplay( maOptionsMisc.GetDisplay() );
+ }
+}
+
+/*************************************************************************
+|*
+|* SdOptionsSnap
+|*
+\************************************************************************/
+
+SdOptionsSnap::SdOptionsSnap( USHORT nConfigId, BOOL bUseConfig ) :
+ SdOptionsGeneric( nConfigId, bUseConfig ?
+ ( ( SDCFG_DRAW == nConfigId ) ?
+ B2U( "Office.Draw/Snap" ) :
+ B2U( "Office.Impress/Snap" ) ) :
+ OUString() ),
+ bSnapHelplines( TRUE ),
+ bSnapBorder( TRUE ),
+ bSnapFrame( FALSE ),
+ bSnapPoints( FALSE ),
+ bOrtho( FALSE ),
+ bBigOrtho( TRUE ),
+ bRotate( FALSE ),
+ nSnapArea( 5 ),
+ nAngle( 1500 ),
+ nBezAngle( 1500 )
+
+{
+ EnableModify( TRUE );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsSnap::SetDefaults()
+{
+ SetSnapHelplines( TRUE );
+ SetSnapBorder( TRUE );
+ SetSnapFrame( FALSE );
+ SetSnapPoints( FALSE );
+ SetOrtho( FALSE );
+ SetBigOrtho( TRUE );
+ SetRotate( FALSE );
+ SetSnapArea( 5 );
+ SetAngle( 1500 );
+ SetEliminatePolyPointLimitAngle( 1500 );
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsSnap::operator==( const SdOptionsSnap& rOpt ) const
+{
+ return( IsSnapHelplines() == rOpt.IsSnapHelplines() &&
+ IsSnapBorder() == rOpt.IsSnapBorder() &&
+ IsSnapFrame() == rOpt.IsSnapFrame() &&
+ IsSnapPoints() == rOpt.IsSnapPoints() &&
+ IsOrtho() == rOpt.IsOrtho() &&
+ IsBigOrtho() == rOpt.IsBigOrtho() &&
+ IsRotate() == rOpt.IsRotate() &&
+ GetSnapArea() == rOpt.GetSnapArea() &&
+ GetAngle() == rOpt.GetAngle() &&
+ GetEliminatePolyPointLimitAngle() == rOpt.GetEliminatePolyPointLimitAngle() );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsSnap::GetPropNameArray( const char**& ppNames, ULONG& rCount ) const
+{
+ static const char* aPropNames[] =
+ {
+ "Object/SnapLine",
+ "Object/PageMargin",
+ "Object/ObjectFrame",
+ "Object/ObjectPoint",
+ "Position/CreatingMoving",
+ "Position/ExtendEdges",
+ "Position/Rotating",
+ "Object/Range",
+ "Position/RotatingValue",
+ "Position/PointReduction"
+ };
+
+ rCount = 10;
+ ppNames = aPropNames;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsSnap::ReadData( const Any* pValues )
+{
+ if( pValues[0].hasValue() ) SetSnapHelplines( *(sal_Bool*) pValues[ 0 ].getValue() );
+ if( pValues[1].hasValue() ) SetSnapBorder( *(sal_Bool*)pValues[ 1 ].getValue() );
+ if( pValues[2].hasValue() ) SetSnapFrame( *(sal_Bool*) pValues[ 2 ].getValue() );
+ if( pValues[3].hasValue() ) SetSnapPoints( *(sal_Bool*) pValues[ 3 ].getValue() );
+ if( pValues[4].hasValue() ) SetOrtho( *(sal_Bool*) pValues[ 4 ].getValue() );
+ if( pValues[5].hasValue() ) SetBigOrtho( *(sal_Bool*) pValues[ 5 ].getValue() );
+ if( pValues[6].hasValue() ) SetRotate( *(sal_Bool*) pValues[ 6 ].getValue() );
+ if( pValues[7].hasValue() ) SetSnapArea( (INT16) *(sal_Int32*) pValues[ 7 ].getValue() );
+ if( pValues[8].hasValue() ) SetAngle( (INT16) *(sal_Int32*) pValues[ 8 ].getValue() );
+ if( pValues[9].hasValue() ) SetEliminatePolyPointLimitAngle( (INT16) *(sal_Int32*) pValues[ 9 ].getValue() );
+
+ return TRUE;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsSnap::WriteData( Any* pValues ) const
+{
+ pValues[ 0 ] <<= IsSnapHelplines();
+ pValues[ 1 ] <<= IsSnapBorder();
+ pValues[ 2 ] <<= IsSnapFrame();
+ pValues[ 3 ] <<= IsSnapPoints();
+ pValues[ 4 ] <<= IsOrtho();
+ pValues[ 5 ] <<= IsBigOrtho();
+ pValues[ 6 ] <<= IsRotate();
+ pValues[ 7 ] <<= (sal_Int32) GetSnapArea();
+ pValues[ 8 ] <<= (sal_Int32) GetAngle();
+ pValues[ 9 ] <<= (sal_Int32) GetEliminatePolyPointLimitAngle();
+
+ return TRUE;
+}
+
+/*************************************************************************
+|*
+|* SdOptionsSnapItem
+|*
+\************************************************************************/
+
+SdOptionsSnapItem::SdOptionsSnapItem( USHORT _nWhich )
+: SfxPoolItem ( _nWhich )
+, maOptionsSnap ( 0, FALSE )
+{
+}
+
+// ----------------------------------------------------------------------
+
+SdOptionsSnapItem::SdOptionsSnapItem( USHORT _nWhich, SdOptions* pOpts, ::sd::FrameView* pView )
+: SfxPoolItem ( _nWhich )
+, maOptionsSnap ( 0, FALSE )
+{
+ if( pView )
+ {
+ maOptionsSnap.SetSnapHelplines( pView->IsHlplSnap() );
+ maOptionsSnap.SetSnapBorder( pView->IsBordSnap() );
+ maOptionsSnap.SetSnapFrame( pView->IsOFrmSnap() );
+ maOptionsSnap.SetSnapPoints( pView->IsOPntSnap() );
+ maOptionsSnap.SetOrtho( pView->IsOrtho() );
+ maOptionsSnap.SetBigOrtho( pView->IsBigOrtho() );
+ maOptionsSnap.SetRotate( pView->IsAngleSnapEnabled() );
+ maOptionsSnap.SetSnapArea( pView->GetSnapMagneticPixel() );
+ maOptionsSnap.SetAngle( (INT16) pView->GetSnapAngle() );
+ maOptionsSnap.SetEliminatePolyPointLimitAngle( (INT16) pView->GetEliminatePolyPointLimitAngle() );
+ }
+ else if( pOpts )
+ {
+ maOptionsSnap.SetSnapHelplines( pOpts->IsSnapHelplines() );
+ maOptionsSnap.SetSnapBorder( pOpts->IsSnapBorder() );
+ maOptionsSnap.SetSnapFrame( pOpts->IsSnapFrame() );
+ maOptionsSnap.SetSnapPoints( pOpts->IsSnapPoints() );
+ maOptionsSnap.SetOrtho( pOpts->IsOrtho() );
+ maOptionsSnap.SetBigOrtho( pOpts->IsBigOrtho() );
+ maOptionsSnap.SetRotate( pOpts->IsRotate() );
+ maOptionsSnap.SetSnapArea( pOpts->GetSnapArea() );
+ maOptionsSnap.SetAngle( pOpts->GetAngle() );
+ maOptionsSnap.SetEliminatePolyPointLimitAngle( pOpts->GetEliminatePolyPointLimitAngle() );
+ }
+}
+
+// ----------------------------------------------------------------------
+
+SfxPoolItem* SdOptionsSnapItem::Clone( SfxItemPool* ) const
+{
+ return new SdOptionsSnapItem( *this );
+}
+
+
+// ----------------------------------------------------------------------
+
+int SdOptionsSnapItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ const bool bSameType = SfxPoolItem::operator==(rAttr);
+ DBG_ASSERT( bSameType, "SdOptionsSnapItem::operator==(), differen pool item type!" );
+ return bSameType && ( maOptionsSnap == static_cast< const SdOptionsSnapItem& >(rAttr).maOptionsSnap );
+}
+
+// -----------------------------------------------------------------------
+
+void SdOptionsSnapItem::SetOptions( SdOptions* pOpts ) const
+{
+ if( pOpts )
+ {
+ pOpts->SetSnapHelplines( maOptionsSnap.IsSnapHelplines() );
+ pOpts->SetSnapBorder( maOptionsSnap.IsSnapBorder() );
+ pOpts->SetSnapFrame( maOptionsSnap.IsSnapFrame() );
+ pOpts->SetSnapPoints( maOptionsSnap.IsSnapPoints() );
+ pOpts->SetOrtho( maOptionsSnap.IsOrtho() );
+ pOpts->SetBigOrtho( maOptionsSnap.IsBigOrtho() );
+ pOpts->SetRotate( maOptionsSnap.IsRotate() );
+ pOpts->SetSnapArea( maOptionsSnap.GetSnapArea() );
+ pOpts->SetAngle( maOptionsSnap.GetAngle() );
+ pOpts->SetEliminatePolyPointLimitAngle( maOptionsSnap.GetEliminatePolyPointLimitAngle() );
+ }
+}
+
+/*************************************************************************
+|*
+|* SdOptionsZoom
+|*
+\************************************************************************/
+
+SdOptionsZoom::SdOptionsZoom( USHORT nConfigId, BOOL bUseConfig ) :
+ SdOptionsGeneric( nConfigId, ( bUseConfig && ( SDCFG_DRAW == nConfigId ) ) ?
+ B2U( "Office.Draw/Zoom" ) :
+ OUString() ),
+ nX( 1 ),
+ nY( 1 )
+
+{
+ EnableModify( TRUE );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsZoom::SetDefaults()
+{
+ SetScale( 1, 1 );
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsZoom::operator==( const SdOptionsZoom& rOpt ) const
+{
+ INT32 nX1, nX2, nY1, nY2;
+
+ GetScale( nX1, nY1 );
+ rOpt.GetScale( nX2, nY2 );
+
+ return( ( nX1 == nX2 ) &&
+ ( nY1 == nY2 ) );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsZoom::GetPropNameArray( const char**& ppNames, ULONG& rCount ) const
+{
+ static const char* aPropNames[] =
+ {
+ "ScaleX",
+ "ScaleY"
+ };
+
+ rCount = ( GetConfigId() == SDCFG_DRAW ) ? 2 : 0;
+ ppNames = aPropNames;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsZoom::ReadData( const Any* pValues )
+{
+ INT32 x = 1, y = 1;
+
+ if( pValues[0].hasValue() ) x = ( *(sal_Int32*) pValues[ 0 ].getValue() );
+ if( pValues[1].hasValue() ) y = ( *(sal_Int32*) pValues[ 1 ].getValue() );
+
+ SetScale( x, y );
+
+ return TRUE;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsZoom::WriteData( Any* pValues ) const
+{
+ INT32 x, y;
+
+ GetScale( x, y );
+
+ pValues[ 0 ] <<= (sal_Int32) x;
+ pValues[ 1 ] <<= (sal_Int32) y;
+
+ return TRUE;
+}
+
+/*************************************************************************
+|*
+|* SdOptionsZoomItem
+|*
+\************************************************************************/
+
+SdOptionsZoomItem::SdOptionsZoomItem( USHORT _nWhich )
+: SfxPoolItem ( _nWhich )
+, maOptionsZoom ( 0, FALSE )
+{
+}
+
+// ----------------------------------------------------------------------
+
+SdOptionsZoomItem::SdOptionsZoomItem( USHORT _nWhich, SdOptions* pOpts, ::sd::FrameView* )
+: SfxPoolItem ( _nWhich )
+, maOptionsZoom ( 0, FALSE )
+{
+ if( pOpts )
+ {
+ INT32 nX, nY;
+
+ pOpts->GetScale( nX, nY );
+ maOptionsZoom.SetScale( nX, nY );
+ }
+}
+
+// ----------------------------------------------------------------------
+
+SfxPoolItem* SdOptionsZoomItem::Clone( SfxItemPool* ) const
+{
+ return new SdOptionsZoomItem( *this );
+}
+
+
+// ----------------------------------------------------------------------
+
+int SdOptionsZoomItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ const bool bSameType = SfxPoolItem::operator==(rAttr);
+ DBG_ASSERT( bSameType, "SdOptionsZoomItem::operator==(), differen pool item type!" );
+ return bSameType && ( maOptionsZoom == static_cast< const SdOptionsZoomItem& >(rAttr).maOptionsZoom );
+}
+
+// -----------------------------------------------------------------------
+
+void SdOptionsZoomItem::SetOptions( SdOptions* pOpts ) const
+{
+ if( pOpts )
+ {
+ INT32 nX, nY;
+
+ maOptionsZoom.GetScale( nX, nY );
+ pOpts->SetScale( nX, nY );
+ }
+}
+
+/*************************************************************************
+|*
+|* SdOptionsGrid
+|*
+\************************************************************************/
+
+SdOptionsGrid::SdOptionsGrid( USHORT nConfigId, BOOL bUseConfig ) :
+ SdOptionsGeneric( nConfigId, bUseConfig ?
+ ( ( SDCFG_DRAW == nConfigId ) ?
+ B2U( "Office.Draw/Grid" ) :
+ B2U( "Office.Impress/Grid" ) ) :
+ OUString() )
+{
+ EnableModify( FALSE );
+ SetDefaults();
+ EnableModify( TRUE );
+}
+
+// -----------------------------------------------------------------------------
+
+SdOptionsGrid::~SdOptionsGrid()
+{
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsGrid::SetDefaults()
+{
+ const UINT32 nVal = 1000;
+
+ SetFldDivisionX( nVal );
+ SetFldDivisionY( nVal );
+ SetFldDrawX( nVal );
+ SetFldDrawY( nVal );
+ SetFldSnapX( nVal );
+ SetFldSnapY( nVal );
+ SetUseGridSnap( FALSE );
+ SetSynchronize( TRUE );
+ SetGridVisible( FALSE );
+ SetEqualGrid( TRUE );
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsGrid::operator==( const SdOptionsGrid& rOpt ) const
+{
+ return( GetFldDrawX() == rOpt.GetFldDrawX() &&
+ GetFldDivisionX() == rOpt.GetFldDivisionX() &&
+ GetFldDrawY() == rOpt.GetFldDrawY() &&
+ GetFldDivisionY() == rOpt.GetFldDivisionY() &&
+ GetFldSnapX() == rOpt.GetFldSnapX() &&
+ GetFldSnapY() == rOpt.GetFldSnapY() &&
+ IsUseGridSnap() == rOpt.IsUseGridSnap() &&
+ IsSynchronize() == rOpt.IsSynchronize() &&
+ IsGridVisible() == rOpt.IsGridVisible() &&
+ IsEqualGrid() == rOpt.IsEqualGrid() );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsGrid::GetPropNameArray( const char**& ppNames, ULONG& rCount ) const
+{
+ static const char* aPropNamesMetric[] =
+ {
+ "Resolution/XAxis/Metric",
+ "Resolution/YAxis/Metric",
+ "Subdivision/XAxis",
+ "Subdivision/YAxis",
+ "SnapGrid/XAxis/Metric",
+ "SnapGrid/YAxis/Metric",
+ "Option/SnapToGrid",
+ "Option/Synchronize",
+ "Option/VisibleGrid",
+ "SnapGrid/Size"
+ };
+
+ static const char* aPropNamesNonMetric[] =
+ {
+ "Resolution/XAxis/NonMetric",
+ "Resolution/YAxis/NonMetric",
+ "Subdivision/XAxis",
+ "Subdivision/YAxis",
+ "SnapGrid/XAxis/NonMetric",
+ "SnapGrid/YAxis/NonMetric",
+ "Option/SnapToGrid",
+ "Option/Synchronize",
+ "Option/VisibleGrid",
+ "SnapGrid/Size"
+ };
+
+ rCount = 10;
+
+ if( isMetricSystem() )
+ ppNames = aPropNamesMetric;
+ else
+ ppNames = aPropNamesNonMetric;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsGrid::ReadData( const Any* pValues )
+{
+ if( pValues[0].hasValue() ) SetFldDrawX( *(sal_Int32*) pValues[ 0 ].getValue() );
+ if( pValues[1].hasValue() ) SetFldDrawY( *(sal_Int32*) pValues[ 1 ].getValue() );
+
+ if( pValues[2].hasValue() )
+ {
+ const UINT32 nDivX = FRound( *(double*) pValues[ 2 ].getValue() );
+ SetFldDivisionX( SvxOptionsGrid::GetFldDrawX() / ( nDivX + 1 ) );
+ }
+
+ if( pValues[3].hasValue() )
+ {
+ const UINT32 nDivY = FRound( *(double*) pValues[ 3 ].getValue() );
+ SetFldDivisionY( SvxOptionsGrid::GetFldDrawY() / ( nDivY + 1 ) );
+ }
+
+ if( pValues[4].hasValue() ) SetFldSnapX( *(sal_Int32*) pValues[ 4 ].getValue() );
+ if( pValues[5].hasValue() ) SetFldSnapY( *(sal_Int32*) pValues[ 5 ].getValue() );
+ if( pValues[6].hasValue() ) SetUseGridSnap( *(sal_Bool*) pValues[ 6 ].getValue() );
+ if( pValues[7].hasValue() ) SetSynchronize( *(sal_Bool*) pValues[ 7 ].getValue() );
+ if( pValues[8].hasValue() ) SetGridVisible( *(sal_Bool*) pValues[ 8 ].getValue() );
+ if( pValues[9].hasValue() ) SetEqualGrid( *(sal_Bool*) pValues[ 9 ].getValue() );
+
+ return TRUE;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsGrid::WriteData( Any* pValues ) const
+{
+ pValues[ 0 ] <<= (sal_Int32) GetFldDrawX();
+ pValues[ 1 ] <<= (sal_Int32) GetFldDrawY();
+ pValues[ 2 ] <<= ( GetFldDivisionX() ? ( (double) GetFldDrawX() / GetFldDivisionX() - 1.0 ) : (double) 0 );
+ pValues[ 3 ] <<= ( GetFldDivisionY() ? ( (double) GetFldDrawY() / GetFldDivisionY() - 1.0 ) : (double) 0 );
+ pValues[ 4 ] <<= (sal_Int32) GetFldSnapX();
+ pValues[ 5 ] <<= (sal_Int32) GetFldSnapY();
+ pValues[ 6 ] <<= IsUseGridSnap();
+ pValues[ 7 ] <<= IsSynchronize();
+ pValues[ 8 ] <<= IsGridVisible();
+ pValues[ 9 ] <<= IsEqualGrid();
+
+ return TRUE;
+}
+
+/*************************************************************************
+|*
+|* SdOptionsGridItem
+|*
+\************************************************************************/
+
+SdOptionsGridItem::SdOptionsGridItem( USHORT _nWhich ) :
+ SvxGridItem( _nWhich )
+{
+}
+
+// -----------------------------------------------------------------------------
+
+SdOptionsGridItem::SdOptionsGridItem( USHORT _nWhich, SdOptions* pOpts, ::sd::FrameView* pView ) :
+ SvxGridItem( _nWhich )
+{
+ SetSynchronize( pOpts->IsSynchronize() );
+ SetEqualGrid( pOpts->IsEqualGrid() );
+
+ if( pView )
+ {
+ SetFldDrawX( pView->GetGridCoarse().Width() );
+ SetFldDrawY( pView->GetGridCoarse().Height() );
+ SetFldDivisionX( pView->GetGridFine().Width() ? ( GetFldDrawX() / pView->GetGridFine().Width() - 1 ) : 0 );
+ SetFldDivisionY( pView->GetGridFine().Height() ? ( GetFldDrawY() / pView->GetGridFine().Height() - 1 ) : 0 );
+ SetFldSnapX( long(pView->GetSnapGridWidthX()) );
+ SetFldSnapY( long(pView->GetSnapGridWidthY()) );
+ SetUseGridSnap( pView->IsGridSnap() );
+ SetGridVisible( pView->IsGridVisible() );
+ }
+ else
+ {
+ SetFldDrawX( pOpts->GetFldDrawX() );
+ SetFldDrawY( pOpts->GetFldDrawY() );
+ SetFldDivisionX( pOpts->GetFldDivisionX() ? ( pOpts->GetFldDrawX() / pOpts->GetFldDivisionX() - 1 ) : 0 );
+ SetFldDivisionY( pOpts->GetFldDivisionY() ? ( pOpts->GetFldDrawY() / pOpts->GetFldDivisionY() - 1 ) : 0 );
+ SetFldSnapX( pOpts->GetFldSnapX() );
+ SetFldSnapY( pOpts->GetFldSnapY() );
+ SetUseGridSnap( pOpts->IsUseGridSnap() );
+ SetGridVisible( pOpts->IsGridVisible() );
+ }
+}
+
+// -----------------------------------------------------------------------
+
+void SdOptionsGridItem::SetOptions( SdOptions* pOpts ) const
+{
+ pOpts->SetFldDrawX( GetFldDrawX() );
+ pOpts->SetFldDivisionX( GetFldDrawX() / ( GetFldDivisionX() + 1 ) );
+ pOpts->SetFldDrawY( GetFldDrawY() );
+ pOpts->SetFldDivisionY( GetFldDrawY() / ( GetFldDivisionY() + 1 ) );
+ pOpts->SetFldSnapX( GetFldSnapX() );
+ pOpts->SetFldSnapY( GetFldSnapY() );
+ pOpts->SetUseGridSnap( GetUseGridSnap() );
+ pOpts->SetSynchronize( GetSynchronize() );
+ pOpts->SetGridVisible( GetGridVisible() );
+ pOpts->SetEqualGrid( GetEqualGrid() );
+}
+
+/*************************************************************************
+|*
+|* SdOptionsPrint
+|*
+\************************************************************************/
+
+SdOptionsPrint::SdOptionsPrint( USHORT nConfigId, BOOL bUseConfig ) :
+ SdOptionsGeneric( nConfigId, bUseConfig ?
+ ( ( SDCFG_DRAW == nConfigId ) ?
+ B2U( "Office.Draw/Print" ) :
+ B2U( "Office.Impress/Print" ) ) :
+ OUString() ),
+ bDraw( TRUE ),
+ bNotes( FALSE ),
+ bHandout( FALSE ),
+ bOutline( FALSE ),
+ bDate( FALSE ),
+ bTime( FALSE ),
+ bPagename( FALSE ),
+ bHiddenPages( TRUE ),
+ bPagesize( FALSE ),
+ bPagetile( FALSE ),
+ bWarningPrinter( TRUE ),
+ bWarningSize( FALSE ),
+ bWarningOrientation( FALSE ),
+ bBooklet( FALSE ),
+ bFront( TRUE ),
+ bBack( TRUE ),
+ bCutPage( FALSE ),
+ bPaperbin( FALSE ),
+ mbHandoutHorizontal( TRUE ),
+ mnHandoutPages( 6 ),
+ nQuality( 0 )
+{
+ EnableModify( TRUE );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsPrint::SetDefaults()
+{
+ SetDraw( TRUE );
+ SetNotes( FALSE );
+ SetHandout( FALSE );
+ SetOutline( FALSE );
+ SetDate( FALSE );
+ SetTime( FALSE );
+ SetPagename( FALSE );
+ SetHiddenPages( TRUE );
+ SetPagesize( FALSE );
+ SetPagetile( FALSE );
+ SetWarningPrinter( TRUE );
+ SetWarningSize( FALSE );
+ SetWarningOrientation( FALSE );
+ SetBooklet( FALSE );
+ SetFrontPage( TRUE );
+ SetBackPage( TRUE );
+ SetCutPage( FALSE );
+ SetPaperbin( FALSE );
+ SetOutputQuality( 0 );
+ SetHandoutHorizontal( TRUE );
+ SetHandoutPages( 6 );
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsPrint::operator==( const SdOptionsPrint& rOpt ) const
+{
+ return( IsDraw() == rOpt.IsDraw() &&
+ IsNotes() == rOpt.IsNotes() &&
+ IsHandout() == rOpt.IsHandout() &&
+ IsOutline() == rOpt.IsOutline() &&
+ IsDate() == rOpt.IsDate() &&
+ IsTime() == rOpt.IsTime() &&
+ IsPagename() == rOpt.IsPagename() &&
+ IsHiddenPages() == rOpt.IsHiddenPages() &&
+ IsPagesize() == rOpt.IsPagesize() &&
+ IsPagetile() == rOpt.IsPagetile() &&
+ IsWarningPrinter() == rOpt.IsWarningPrinter() &&
+ IsWarningSize() == rOpt.IsWarningSize() &&
+ IsWarningOrientation() == rOpt.IsWarningOrientation() &&
+ IsBooklet() == rOpt.IsBooklet() &&
+ IsFrontPage() == rOpt.IsFrontPage() &&
+ IsBackPage() == rOpt.IsBackPage() &&
+ IsCutPage() == rOpt.IsCutPage() &&
+ IsPaperbin() == rOpt.IsPaperbin() &&
+ GetOutputQuality() == rOpt.GetOutputQuality() &&
+ IsHandoutHorizontal() == rOpt.IsHandoutHorizontal() &&
+ GetHandoutPages() == rOpt.GetHandoutPages() );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdOptionsPrint::GetPropNameArray( const char**& ppNames, ULONG& rCount ) const
+{
+ static const char* aDrawPropNames[] =
+ {
+ "Other/Date",
+ "Other/Time",
+ "Other/PageName",
+ "Other/HiddenPage",
+ "Page/PageSize",
+ "Page/PageTile",
+ // bWarningPrinter
+ // bWarningSize
+ // bWarningOrientation
+ "Page/Booklet",
+ "Page/BookletFront",
+ "Page/BookletBack",
+ // bCutPage
+ "Other/FromPrinterSetup",
+ "Other/Quality",
+ "Content/Drawing",
+ };
+ static const char* aImpressPropNames[] =
+ {
+ "Other/Date",
+ "Other/Time",
+ "Other/PageName",
+ "Other/HiddenPage",
+ "Page/PageSize",
+ "Page/PageTile",
+ // bWarningPrinter
+ // bWarningSize
+ // bWarningOrientation
+ "Page/Booklet",
+ "Page/BookletFront",
+ "Page/BookletBack",
+ // bCutPage
+ "Other/FromPrinterSetup",
+ "Other/Quality",
+ "Content/Presentation",
+ "Content/Note",
+ "Content/Handout",
+ "Content/Outline",
+ "Other/HandoutHorizontal",
+ "Other/PagesPerHandout"
+ };
+
+ if( GetConfigId() == SDCFG_IMPRESS )
+ {
+ rCount = 17;
+ ppNames = aImpressPropNames;
+ }
+ else
+ {
+ rCount = 12;
+ ppNames = aDrawPropNames;
+ }
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsPrint::ReadData( const Any* pValues )
+{
+ if( pValues[0].hasValue() ) SetDate( *(sal_Bool*) pValues[ 0 ].getValue() );
+ if( pValues[1].hasValue() ) SetTime( *(sal_Bool*) pValues[ 1 ].getValue() );
+ if( pValues[2].hasValue() ) SetPagename( *(sal_Bool*) pValues[ 2 ].getValue() );
+ if( pValues[3].hasValue() ) SetHiddenPages( *(sal_Bool*) pValues[ 3 ].getValue() );
+ if( pValues[4].hasValue() ) SetPagesize( *(sal_Bool*) pValues[ 4 ].getValue() );
+ if( pValues[5].hasValue() ) SetPagetile( *(sal_Bool*) pValues[ 5 ].getValue() );
+ if( pValues[6].hasValue() ) SetBooklet( *(sal_Bool*) pValues[ 6 ].getValue() );
+ if( pValues[7].hasValue() ) SetFrontPage( *(sal_Bool*) pValues[ 7 ].getValue() );
+ if( pValues[8].hasValue() ) SetBackPage( *(sal_Bool*) pValues[ 8 ].getValue() );
+ if( pValues[9].hasValue() ) SetPaperbin( *(sal_Bool*) pValues[ 9 ].getValue() );
+ if( pValues[10].hasValue() ) SetOutputQuality( (UINT16) *(sal_Int32*) pValues[ 10 ].getValue() );
+ if( pValues[11].hasValue() ) SetDraw( *(sal_Bool*) pValues[ 11 ].getValue() );
+
+ // just for impress
+ if( GetConfigId() == SDCFG_IMPRESS )
+ {
+ if( pValues[12].hasValue() ) SetNotes( *(sal_Bool*) pValues[ 12 ].getValue() );
+ if( pValues[13].hasValue() ) SetHandout( *(sal_Bool*) pValues[ 13 ].getValue() );
+ if( pValues[14].hasValue() ) SetOutline( *(sal_Bool*) pValues[ 14 ].getValue() );
+ if( pValues[15].hasValue() ) SetHandoutHorizontal( *(sal_Bool*) pValues[15].getValue() );
+ if( pValues[16].hasValue() ) SetHandoutPages( (UINT16)*(sal_Int32*) pValues[16].getValue() );
+ }
+
+ return TRUE;
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL SdOptionsPrint::WriteData( Any* pValues ) const
+{
+ pValues[ 0 ] <<= IsDate();
+ pValues[ 1 ] <<= IsTime();
+ pValues[ 2 ] <<= IsPagename();
+ pValues[ 3 ] <<= IsHiddenPages();
+ pValues[ 4 ] <<= IsPagesize();
+ pValues[ 5 ] <<= IsPagetile();
+ pValues[ 6 ] <<= IsBooklet();
+ pValues[ 7 ] <<= IsFrontPage();
+ pValues[ 8 ] <<= IsBackPage();
+ pValues[ 9 ] <<= IsPaperbin();
+ pValues[ 10 ] <<= (sal_Int32) GetOutputQuality();
+ pValues[ 11 ] <<= IsDraw();
+
+ // just for impress
+ if( GetConfigId() == SDCFG_IMPRESS )
+ {
+ pValues[ 12 ] <<= IsNotes();
+ pValues[ 13 ] <<= IsHandout();
+ pValues[ 14 ] <<= IsOutline();
+ pValues[ 15 ] <<= IsHandoutHorizontal();
+ pValues[ 16 ] <<= GetHandoutPages();
+ }
+
+ return TRUE;
+}
+
+void SdOptionsPrint::SetPrinterOptions( const SdOptionsPrint* pOptions )
+{
+ bDraw = pOptions->bDraw;
+ bNotes = pOptions->bNotes;
+ bHandout = pOptions->bHandout;
+ bOutline = pOptions->bOutline;
+ bDate = pOptions->bDate;
+ bTime = pOptions->bTime;
+ bPagename = pOptions->bPagename;
+ bHiddenPages = pOptions->bHiddenPages;
+ bPagesize = pOptions->bPagesize;
+ bPagetile = pOptions->bPagetile;
+ bWarningPrinter = pOptions->bWarningPrinter;
+ bWarningSize = pOptions->bWarningSize;
+ bWarningOrientation = pOptions->bWarningOrientation;
+ bBooklet = pOptions->bBooklet;
+ bFront = pOptions->bFront;
+ bBack = pOptions->bBack;
+ bCutPage = pOptions->bCutPage;
+ bPaperbin = pOptions->bPaperbin;
+ nQuality = pOptions->nQuality;
+ mnHandoutPages = pOptions->mnHandoutPages;
+ mbHandoutHorizontal = pOptions->mbHandoutHorizontal;
+}
+
+/*************************************************************************
+|*
+|* SdOptionsPrintItem
+|*
+\************************************************************************/
+
+SdOptionsPrintItem::SdOptionsPrintItem( USHORT _nWhich )
+: SfxPoolItem ( _nWhich )
+, maOptionsPrint ( 0, FALSE )
+{
+}
+
+// ----------------------------------------------------------------------
+
+SdOptionsPrintItem::SdOptionsPrintItem( USHORT _nWhich, SdOptions* pOpts, ::sd::FrameView* )
+: SfxPoolItem ( _nWhich )
+, maOptionsPrint ( 0, FALSE )
+{
+ if( pOpts )
+ {
+ maOptionsPrint.SetDraw( pOpts->IsDraw() );
+ maOptionsPrint.SetNotes( pOpts->IsNotes() );
+ maOptionsPrint.SetHandout( pOpts->IsHandout() );
+ maOptionsPrint.SetOutline( pOpts->IsOutline() );
+ maOptionsPrint.SetDate( pOpts->IsDate() );
+ maOptionsPrint.SetTime( pOpts->IsTime() );
+ maOptionsPrint.SetPagename( pOpts->IsPagename() );
+ maOptionsPrint.SetHiddenPages( pOpts->IsHiddenPages() );
+ maOptionsPrint.SetPagesize( pOpts->IsPagesize() );
+ maOptionsPrint.SetPagetile( pOpts->IsPagetile() );
+ maOptionsPrint.SetWarningPrinter( pOpts->IsWarningPrinter() );
+ maOptionsPrint.SetWarningSize( pOpts->IsWarningSize() );
+ maOptionsPrint.SetWarningOrientation( pOpts->IsWarningOrientation() );
+ maOptionsPrint.SetBooklet( pOpts->IsBooklet() );
+ maOptionsPrint.SetFrontPage( pOpts->IsFrontPage() );
+ maOptionsPrint.SetBackPage( pOpts->IsBackPage() );
+ maOptionsPrint.SetCutPage( pOpts->IsCutPage() );
+ maOptionsPrint.SetPaperbin( pOpts->IsPaperbin() );
+ maOptionsPrint.SetOutputQuality( pOpts->GetOutputQuality() );
+ }
+}
+
+// ----------------------------------------------------------------------
+
+SfxPoolItem* SdOptionsPrintItem::Clone( SfxItemPool* ) const
+{
+ return new SdOptionsPrintItem( *this );
+}
+
+// ----------------------------------------------------------------------
+
+int SdOptionsPrintItem::operator==( const SfxPoolItem& rAttr ) const
+{
+ const bool bSameType = SfxPoolItem::operator==(rAttr);
+ DBG_ASSERT( bSameType, "SdOptionsPrintItem::operator==(), differen pool item type!" );
+ return bSameType && ( maOptionsPrint == static_cast< const SdOptionsPrintItem& >( rAttr ).maOptionsPrint );
+}
+
+// -----------------------------------------------------------------------
+
+void SdOptionsPrintItem::SetOptions( SdOptions* pOpts ) const
+{
+ if( pOpts )
+ {
+ pOpts->SetDraw( maOptionsPrint.IsDraw() );
+ pOpts->SetNotes( maOptionsPrint.IsNotes() );
+ pOpts->SetHandout( maOptionsPrint.IsHandout() );
+ pOpts->SetOutline( maOptionsPrint.IsOutline() );
+ pOpts->SetDate( maOptionsPrint.IsDate() );
+ pOpts->SetTime( maOptionsPrint.IsTime() );
+ pOpts->SetPagename( maOptionsPrint.IsPagename() );
+ pOpts->SetHiddenPages( maOptionsPrint.IsHiddenPages() );
+ pOpts->SetPagesize( maOptionsPrint.IsPagesize() );
+ pOpts->SetPagetile( maOptionsPrint.IsPagetile() );
+ pOpts->SetWarningPrinter( maOptionsPrint.IsWarningPrinter() );
+ pOpts->SetWarningSize( maOptionsPrint.IsWarningSize() );
+ pOpts->SetWarningOrientation( maOptionsPrint.IsWarningOrientation() );
+ pOpts->SetBooklet( maOptionsPrint.IsBooklet() );
+ pOpts->SetFrontPage( maOptionsPrint.IsFrontPage() );
+ pOpts->SetBackPage( maOptionsPrint.IsBackPage() );
+ pOpts->SetCutPage( maOptionsPrint.IsCutPage() );
+ pOpts->SetPaperbin( maOptionsPrint.IsPaperbin() );
+ pOpts->SetOutputQuality( maOptionsPrint.GetOutputQuality() );
+ }
+}
+
+/*************************************************************************
+|*
+|* SdOptions
+|*
+\************************************************************************/
+
+SdOptions::SdOptions( USHORT nConfigId ) :
+ SdOptionsLayout( nConfigId, TRUE ),
+ SdOptionsContents( nConfigId, TRUE ),
+ SdOptionsMisc( nConfigId, TRUE ),
+ SdOptionsSnap( nConfigId, TRUE ),
+ SdOptionsZoom( nConfigId, TRUE ),
+ SdOptionsGrid( nConfigId, TRUE ),
+ SdOptionsPrint( nConfigId, TRUE )
+{
+}
+
+// ----------------------------------------------------------------------
+
+SdOptions::~SdOptions()
+{
+}
+
+// ----------------------------------------------------------------------
+
+void SdOptions::SetRangeDefaults( ULONG nOptionsRange )
+{
+ if( nOptionsRange & SD_OPTIONS_LAYOUT )
+ SdOptionsLayout::SetDefaults();
+
+ if( nOptionsRange & SD_OPTIONS_CONTENTS )
+ SdOptionsContents::SetDefaults();
+
+ if( nOptionsRange & SD_OPTIONS_MISC )
+ SdOptionsMisc::SetDefaults();
+
+ if( nOptionsRange & SD_OPTIONS_SNAP )
+ SdOptionsSnap::SetDefaults();
+
+ if( nOptionsRange & SD_OPTIONS_ZOOM )
+ SdOptionsZoom::SetDefaults();
+
+ if( nOptionsRange & SD_OPTIONS_GRID )
+ SdOptionsGrid::SetDefaults();
+
+ if( nOptionsRange & SD_OPTIONS_PRINT )
+ SdOptionsPrint::SetDefaults();
+}
+
+// ----------------------------------------------------------------------
+
+void SdOptions::StoreConfig( ULONG nOptionsRange )
+{
+ if( nOptionsRange & SD_OPTIONS_LAYOUT )
+ SdOptionsLayout::Store();
+
+ if( nOptionsRange & SD_OPTIONS_CONTENTS )
+ SdOptionsContents::Store();
+
+ if( nOptionsRange & SD_OPTIONS_MISC )
+ SdOptionsMisc::Store();
+
+ if( nOptionsRange & SD_OPTIONS_SNAP )
+ SdOptionsSnap::Store();
+
+ if( nOptionsRange & SD_OPTIONS_ZOOM )
+ SdOptionsZoom::Store();
+
+ if( nOptionsRange & SD_OPTIONS_GRID )
+ SdOptionsGrid::Store();
+
+ if( nOptionsRange & SD_OPTIONS_PRINT )
+ SdOptionsPrint::Store();
+}
diff --git a/sd/source/ui/app/popup.src b/sd/source/ui/app/popup.src
new file mode 100644
index 000000000000..db70bd0d361f
--- /dev/null
+++ b/sd/source/ui/app/popup.src
@@ -0,0 +1,556 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: popup.src,v $
+ * $Revision: 1.41 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+ // TEXTOBJ
+ // Impress:
+#include "popup2.src"
+ // Draw (Graphic):
+#undef SD_POPUP
+#define SD_POPUP RID_GRAPHIC_TEXTOBJ_POPUP
+#include "popup2.src"
+#ifndef _GLOBLMN_HRC
+#include <svx/globlmn.hrc>
+#endif
+
+#define DEFINE_SLOTID_FOR_NUMBER_BULLETS SID_OUTLINE_BULLET
+
+Menu RID_DRAW_TEXTOBJ_INSIDE_POPUP
+{
+ ItemList =
+ {
+ MN_SET_DEFAULT
+ SEPARATOR
+ MN_TEXTATTR
+ SEPARATOR
+ MN_TEXT_ATTR
+ MN_TEXT_ALIGN
+ MN_LINESPACING_ATTR
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MenuItem
+ {
+ ITEM_OPEN_HYPERLINK
+ };
+ SEPARATOR
+ MN_BULLET
+ ITEM_FORMAT_NUMBERING
+ ITEM_TRANSLITERATE_MENU
+ SEPARATOR
+ MN_STYLEDT
+ };
+};
+
+Menu RID_DRAW_TABLEOBJ_INSIDE_POPUP
+{
+ ItemList =
+ {
+ MN_SET_DEFAULT
+ SEPARATOR
+ MN_TEXTATTR
+ SEPARATOR
+ MN_TEXT_ATTR
+ MN_TEXT_ALIGN
+ MN_LINESPACING_ATTR
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = SID_FORMAT_TABLE_DLG;
+ HelpID = SID_FORMAT_TABLE_DLG;
+ Text [ en-US ] = "~Table...";
+ };
+ MenuItem
+ {
+ Identifier = DUMMY + 10 ;
+ Command = ".uno:CellMenu" ;
+ Text [ en-US ] = "~Cell" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = SID_TABLE_MERGE_CELLS;
+ HelpID = SID_TABLE_MERGE_CELLS;
+ Text [ en-US ] = "~Merge";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_SPLIT_CELLS;
+ HelpID = SID_TABLE_SPLIT_CELLS;
+ Text [ en-US ] = "~Split...";
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = SID_TABLE_VERT_NONE;
+ HelpID = SID_TABLE_VERT_NONE;
+ Text [ en-US ] = "~Top";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_VERT_CENTER;
+ HelpID = SID_TABLE_VERT_CENTER;
+ Text [ en-US ] = "C~enter";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_VERT_BOTTOM;
+ HelpID = SID_TABLE_VERT_BOTTOM;
+ Text [ en-US ] = "~Bottom";
+ };
+ };
+ };
+ };
+ MenuItem
+ {
+ Identifier = DUMMY + 11 ;
+ Command = ".uno:RowMenu" ;
+ Text [ en-US ] = "~Row" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = SID_TABLE_DISTRIBUTE_ROWS;
+ HelpID = SID_TABLE_DISTRIBUTE_ROWS;
+ Text [ en-US ] = "Space ~Equally";
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = SID_TABLE_SELECT_ROW;
+ HelpID = SID_TABLE_SELECT_ROW;
+ Text [ en-US ] = "~Select";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_INSERT_ROW_DLG;
+ HelpID = SID_TABLE_INSERT_ROW_DLG;
+ Text [ en-US ] = "~Insert...";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_DELETE_ROW;
+ HelpID = SID_TABLE_DELETE_ROW;
+ Text [ en-US ] = "~Delete";
+ };
+ };
+ };
+ };
+ MenuItem
+ {
+ Identifier = DUMMY + 12 ;
+ Command = ".uno:ColumnMenu" ;
+ Text [ en-US ] = "Colu~mn" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = SID_TABLE_DISTRIBUTE_COLUMNS;
+ HelpID = SID_TABLE_DISTRIBUTE_COLUMNS;
+ Text [ en-US ] = "Space ~Equally";
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = SID_TABLE_SELECT_COL;
+ HelpID = SID_TABLE_SELECT_COL;
+ Text [ en-US ] = "~Select";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_INSERT_COL_DLG;
+ HelpID = SID_TABLE_INSERT_COL_DLG;
+ Text [ en-US ] = "~Insert...";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_DELETE_COL;
+ HelpID = SID_TABLE_DELETE_COL;
+ Text [ en-US ] = "~Delete";
+ };
+ };
+ };
+ };
+ SEPARATOR
+ MenuItem
+ {
+ ITEM_OPEN_HYPERLINK
+ };
+ SEPARATOR
+ MN_BULLET
+ ITEM_FORMAT_NUMBERING
+ ITEM_TRANSLITERATE_MENU
+ SEPARATOR
+ MN_STYLEDT
+ };
+};
+
+Menu RID_DRAW_CONTROL_POPUP
+{
+ ItemList =
+ {
+ MN_TRANSFORM
+ MN_CONTROL_SHOW_BROWSER
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ SEPARATOR
+ MN_LEAVE_GROUP
+ MN_DISMANTLE
+ };
+};
+Menu RID_FORM_CONTROL_POPUP
+{
+ ItemList =
+ {
+ MN_TRANSFORM
+ MenuItem { ITEM_FORM_CONTROL_PROPERTIES };
+ MenuItem { ITEM_FORM_PROPERTIES };
+ MenuItem { ITEM_REPLACE_CONTROL };
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ SEPARATOR
+ MN_LEAVE_GROUP
+ MN_DISMANTLE
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+ };
+};
+
+
+
+Menu RID_DRAW_SNAPOBJECT_POPUP
+{
+ ItemList =
+ {
+ MN_SET_SNAPITEM
+ SEPARATOR
+ MN_DELETE_SNAPITEM
+ };
+};
+
+
+Menu RID_DRAW_GLUEPOINT_POPUP
+{
+ ItemList =
+ {
+ MN_GLUE_INSERT_POINT
+ SEPARATOR
+ MN_GLUE_ESC_DIR_LEFT
+ MN_GLUE_ESC_DIR_TOP
+ MN_GLUE_ESC_DIR_RIGHT
+ MN_GLUE_ESC_DIR_BOTTOM
+ SEPARATOR
+ MN_GLUE_PERCENT
+ SEPARATOR
+ MN_GLUE_HORZALIGN_LEFT
+ MN_GLUE_HORZALIGN_CENTER
+ MN_GLUE_HORZALIGN_RIGHT
+ SEPARATOR
+ MN_GLUE_VERTALIGN_TOP
+ MN_GLUE_VERTALIGN_CENTER
+ MN_GLUE_VERTALIGN_BOTTOM
+ };
+};
+
+
+Menu RID_SLIDE_SORTER_IMPRESS_SEL_POPUP
+{
+ ItemList =
+ {
+ MN_INSERT_SLIDE
+ MN_DELETE_SLIDE
+ MN_RENAME_SLIDE
+ SEPARATOR
+ MN_PRESENTATION_LAYOUT
+ MN_MODIFY_PAGE
+ SEPARATOR
+ MN_DIA
+ MN_SHOW_SLIDE
+ MN_HIDE_SLIDE
+ };
+};
+
+
+Menu RID_SLIDE_SORTER_IMPRESS_NOSEL_POPUP
+{
+ ItemList =
+ {
+ MN_INSERT_SLIDE
+ };
+};
+
+Menu RID_SLIDE_SORTER_DRAW_SEL_POPUP
+{
+ ItemList =
+ {
+ MN_INSERT_PAGE
+ MN_DELETE_PAGE
+ MN_RENAME_PAGE
+ };
+};
+
+
+Menu RID_SLIDE_SORTER_DRAW_NOSEL_POPUP
+{
+ ItemList =
+ {
+ MN_INSERT_PAGE
+ };
+};
+
+Menu RID_SLIDE_SORTER_MASTER_SEL_POPUP
+{
+ ItemList =
+ {
+ MN_INSERT_MASTER
+ MN_DELETE_MASTER
+ MN_RENAME_MASTER
+ SEPARATOR
+ MN_PRESENTATION_LAYOUT
+ };
+};
+
+
+Menu RID_SLIDE_SORTER_MASTER_NOSEL_POPUP
+{
+ ItemList =
+ {
+ MN_INSERT_MASTER
+ };
+};
+
+Menu RID_MASTERPAGE_POPUP
+{
+ ItemList =
+ {
+ MN_SET_DEFAULT
+ SEPARATOR
+ MN_LINE
+ MN_AREA
+ MN_TRANSFORM
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ // MN_PRESENTATIONOBJECT
+ SEPARATOR
+ MN_POSITION
+ };
+};
+
+
+Menu RID_OUTLINE_POPUP
+{
+ ItemList =
+ {
+ MN_SET_DEFAULT
+ SEPARATOR
+ MN_TEXT_ATTR
+ SEPARATOR
+ MN_CHAR
+ ITEM_FORMAT_NUMBERING
+ ITEM_TRANSLITERATE_MENU
+ MN_PRESENTATIONOBJECT
+ SEPARATOR
+ MN_DRAWINGMODE
+ MN_DIAMODE
+ MN_PRESENTATION
+ };
+};
+
+/*
+RID_MASTERPAGE_POPUP
+*/
+
+Menu RID_BEZIER_POPUP
+{
+ ItemList =
+ {
+ MN_BEZIER
+ };
+};
+
+
+Menu RID_DRAW_BMP_CONVERT_POPUP
+{
+ ItemList =
+ {
+ MN_CONVERT_TO_1BIT_THRESHOLD
+ MN_CONVERT_TO_1BIT_MATRIX
+ MN_CONVERT_TO_4BIT_GRAYS
+ MN_CONVERT_TO_4BIT_COLORS
+ MN_CONVERT_TO_8BIT_GRAYS
+ MN_CONVERT_TO_8BIT_COLORS
+ MN_CONVERT_TO_24BIT
+ };
+};
+
+
+Menu RID_LAYERTAB_POPUP
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = SID_INSERTLAYER ;
+ HelpID = SID_INSERTLAYER ;
+ /* ### ACHTUNG: Neuer Text in Resource? ~Ebene einfügen... : ~Ebene einf³gen... */
+ Text [ en-US ] = "~Insert Layer..." ;
+ };
+ MenuItem
+ {
+ Identifier = SID_MODIFYLAYER ;
+ HelpID = SID_MODIFYLAYER ;
+ /* ### ACHTUNG: Neuer Text in Resource? E~bene ändern... : E~bene õndern... */
+ Text [ en-US ] = "Modify La~yer..." ;
+ };
+ MenuItem
+ {
+ Identifier = SID_DELETE_LAYER ;
+ HelpID = SID_DELETE_LAYER ;
+ /* ### ACHTUNG: Neuer Text in Resource? Ebe~ne löschen... : Ebe~ne l÷schen... */
+ Text [ en-US ] = "Delete ~Layer..." ;
+ };
+ MN_RENAME_LAYER
+ };
+};
+
+Menu RID_TASKPANE_MASTERPAGESSELECTOR_POPUP
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = SID_TP_APPLY_TO_ALL_SLIDES;
+ HelpID = SID_TP_APPLY_TO_ALL_SLIDES;
+ Text [ en-US ] = "~Apply to All Slides";
+ };
+ MenuItem
+ {
+ Identifier = SID_TP_APPLY_TO_SELECTED_SLIDES;
+ HelpID = SID_TP_APPLY_TO_SELECTED_SLIDES;
+ Text [ en-US ] = "Apply to ~Selected Slides";
+ };
+
+ SEPARATOR
+
+ MenuItem
+ {
+ Identifier = SID_TP_SHOW_LARGE_PREVIEW;
+ HelpID = SID_TP_SHOW_LARGE_PREVIEW;
+ Text[ en-US ] = "Show ~Large Preview";
+ };
+ MenuItem
+ {
+ Identifier = SID_TP_SHOW_SMALL_PREVIEW;
+ HelpID = SID_TP_SHOW_SMALL_PREVIEW;
+ Text[ en-US ] = "Show S~mall Preview";
+ };
+ };
+};
+
+Menu RID_TASKPANE_CURRENT_MASTERPAGESSELECTOR_POPUP
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = SID_TP_APPLY_TO_ALL_SLIDES;
+ HelpID = SID_TP_APPLY_TO_ALL_SLIDES;
+ Text [ en-US ] = "~Apply to All Slides";
+ };
+ MenuItem
+ {
+ Identifier = SID_TP_APPLY_TO_SELECTED_SLIDES;
+ HelpID = SID_TP_APPLY_TO_SELECTED_SLIDES;
+ Text [ en-US ] = "Apply to ~Selected Slides";
+ };
+
+
+ SEPARATOR
+
+ MenuItem
+ {
+ Identifier = SID_TP_EDIT_MASTER;
+ HelpID = SID_TP_EDIT_MASTER;
+ Text[ en-US ] = "~Edit Master...";
+ };
+
+ MN_DELETE_MASTER
+
+ SEPARATOR
+
+ MenuItem
+ {
+ Identifier = SID_TP_SHOW_LARGE_PREVIEW;
+ HelpID = SID_TP_SHOW_LARGE_PREVIEW;
+ Text[ en-US ] = "Show ~Large Preview";
+ };
+ MenuItem
+ {
+ Identifier = SID_TP_SHOW_SMALL_PREVIEW;
+ HelpID = SID_TP_SHOW_SMALL_PREVIEW;
+ Text[ en-US ] = "Show S~mall Preview";
+ };
+ };
+};
+
+Menu RID_TASKPANE_LAYOUTMENU_POPUP
+{
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = SID_TP_APPLY_TO_SELECTED_SLIDES;
+ HelpID = SID_TP_APPLY_TO_SELECTED_SLIDES;
+ Text [ en-US ] = "Apply to ~Selected Slides";
+ };
+
+ SEPARATOR
+
+ MenuItem
+ {
+ Identifier = SID_INSERTPAGE_LAYOUT_MENU;
+ HelpID = SID_INSERTPAGE_LAYOUT_MENU;
+ Text [ en-US ] = "~Insert Slide";
+ };
+ };
+};
diff --git a/sd/source/ui/app/popup2_tmpl.src b/sd/source/ui/app/popup2_tmpl.src
new file mode 100644
index 000000000000..a6c57997be30
--- /dev/null
+++ b/sd/source/ui/app/popup2_tmpl.src
@@ -0,0 +1,875 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: popup2_tmpl.src,v $
+ * $Revision: 1.12 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+
+
+#include "menuids3.src"
+
+#ifndef SD_POPUP
+#define SD_POPUP RID_DRAW_TEXTOBJ_POPUP
+#include "menuids.src"
+#endif
+
+
+
+//
+// TEXTOBJ_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_TEXTOBJ_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_TEXTOBJ_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_SET_DEFAULT
+ SEPARATOR
+ MN_LINE
+ MN_AREA
+ MN_TEXTATTR
+ MN_TRANSFORM
+ MN_FONTWORK
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_CONVERT
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ SEPARATOR
+ MN_STYLEDT
+ };
+};
+
+//
+// GEOMOBJ_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_GEOMOBJ_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_GEOMOBJ_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_LINE
+ MN_AREA
+ MN_TEXTATTR
+ MN_TRANSFORM
+ MN_EDIT_POINTS
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_MIRROR
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_LEAVE_GROUP
+ MN_DISMANTLE
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ SEPARATOR
+ MN_STYLEDT
+ };
+};
+
+//
+// Customshape POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_CUSTOMSHAPE_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_CUSTOMSHAPE_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_LINE
+ MN_AREA
+ MN_TEXTATTR
+ MN_TRANSFORM
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_MIRROR
+ // #i37263#
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_LEAVE_GROUP
+ MN_DISMANTLE
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ SEPARATOR
+ MN_STYLEDT
+ SEPARATOR
+
+ };
+};
+
+//
+// 3DOSCENE_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_3DSCENE_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_3DSCENE_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_LINE
+ MN_AREA
+ MN_TRANSFORM
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_ENTER_GROUP
+ MN_3D_WIN
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+// SEPARATOR
+// MN_STYLEDT
+ };
+};
+
+//
+// 3DOSCENE2_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_3DSCENE2_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_3DSCENE2_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_LINE
+ MN_AREA
+ MN_TRANSFORM
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_ENTER_GROUP
+ MN_LEAVE_GROUP
+ MN_3D_WIN
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+// SEPARATOR
+// MN_STYLEDT
+ };
+};
+
+//
+// 3DOBJ_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_3DOBJ_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_3DOBJ_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_LINE
+ MN_AREA
+ MN_TRANSFORM
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_LEAVE_GROUP
+ MN_3D_WIN
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ SEPARATOR
+ MN_STYLEDT
+ };
+};
+
+//
+// GROUPOBJ_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_GROUPOBJ_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_GROUPOBJ_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_LINE
+ MN_AREA
+ MN_TRANSFORM
+ MN_EDIT_POINTS
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_MIRROR
+ MNSUB_CONVERT
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+ SEPARATOR
+ MN_UNGROUP
+ MN_ENTER_GROUP
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ };
+};
+
+//
+// LINEOBJ_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_LINEOBJ_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_LINEOBJ_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_LINE
+ MN_TRANSFORM
+ MN_EDIT_POINTS
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_MIRROR
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_LEAVE_GROUP
+ MN_DISMANTLE
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ SEPARATOR
+ MN_STYLEDT
+ };
+};
+
+//
+// EDGEOBJ_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_EDGEOBJ_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_EDGEOBJ_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_NEW_ROUTING
+ SEPARATOR
+ MN_LINE
+ MN_CONNECTION
+ MN_TRANSFORM
+ MN_EDIT_POINTS
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_LEAVE_GROUP
+ MN_DISMANTLE
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ SEPARATOR
+ MN_STYLEDT
+ };
+};
+
+//
+// MEASUREOBJ_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_MEASUREOBJ_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_MEASUREOBJ_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_LINE
+ MN_TEXTATTR
+ MN_MEASURE
+ MN_TRANSFORM
+ MN_EDIT_POINTS
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_MIRROR
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_LEAVE_GROUP
+ MN_DISMANTLE
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ SEPARATOR
+ MN_STYLEDT
+ };
+};
+
+
+//
+// POLYLINEOBJ_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_POLYLINEOBJ_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_POLYLINEOBJ_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_LINE
+ MN_TRANSFORM
+ MN_EDIT_POINTS
+ MN_CLOSE_OBJECT
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_MIRROR
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_LEAVE_GROUP
+ MN_DISMANTLE
+ MN_BREAK
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ SEPARATOR
+ MN_STYLEDT
+ };
+};
+
+//
+// NOSEL_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_NOSEL_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_NOSEL_POPUP
+#endif
+{
+ ItemList =
+ {
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ MN_SLIDE_MENU
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ MN_PAGE_MENU
+#endif
+ SEPARATOR
+ MN_CAPTUREPOINT
+ SEPARATOR
+ MN_LEAVE_GROUP
+ SEPARATOR
+ MN_NAVIGATOR
+ SEPARATOR
+ MN_GRID
+ SEPARATOR
+ MN_HELPLINES
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_OUTLINEMODE
+ MN_DIAMODE
+ MN_PRESENTATION
+#endif
+ };
+};
+
+//
+// MULTISELECTION_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_MULTISELECTION_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_MULTISELECTION_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_SET_DEFAULT
+ SEPARATOR
+ MN_LINE
+ MN_AREA
+ MN_TRANSFORM
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_MIRROR
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_GROUP
+ MN_UNGROUP
+ MN_LEAVE_GROUP
+ MN_COMBINE
+ MNSUB_FORMEN
+ MN_DISMANTLE
+ MN_CONNECT
+ MN_BREAK
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ };
+};
+
+//
+// GRAPHIC_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_GRAPHIC_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_GRAPHIC_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_TRANSFORM
+ MN_ORIGINAL_SIZE
+ MN_LINE
+ MN_AREA
+ MN_TEXTATTR
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MN_CROP
+ MN_OBJECT_ALIGN
+ MN_POSITION
+ MN_DISTRIBUTE
+ MNSUB_MIRROR
+ MNSUB_CONVERT
+ MN_BREAK
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ SEPARATOR
+ MN_STYLEDT
+ SEPARATOR
+ MN_SAVEGRAPHIC
+ };
+};
+
+//
+// OLE2_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_OLE2_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_OLE2_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_TRANSFORM
+ MN_ORIGINAL_SIZE
+ MN_OLE_OBJECT
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MN_BREAK
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ };
+};
+
+
+//
+// PAGETAB_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_PAGETAB_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_PAGETAB_POPUP
+#endif
+{
+ ItemList =
+ {
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ MN_INSERT_SLIDE
+ MN_DELETE_SLIDE
+ MN_MODIFY_PAGE
+#else
+ MN_INSERT_PAGE
+ MN_DELETE_PAGE
+#endif
+ MN_RENAME_PAGE
+ };
+};
+
+//
+// Media_POPUP
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_MEDIA_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_MEDIA_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_TRANSFORM
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MN_BREAK
+
+ //-#i68101#----------------------
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+ //-#i68101#----------------------
+
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ };
+};
+
+//
+// Table shape context menu
+//
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ Menu RID_DRAW_TABLE_POPUP
+#elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP
+ Menu RID_GRAPHIC_TABLE_POPUP
+#endif
+{
+ ItemList =
+ {
+ MN_SET_DEFAULT
+ SEPARATOR
+ MN_TRANSFORM
+ SEPARATOR
+ MN_CHAR_PARAGRAPH
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = SID_FORMAT_TABLE_DLG;
+ HelpID = SID_FORMAT_TABLE_DLG;
+ Text [ en-US ] = "~Table...";
+ };
+ MenuItem
+ {
+ Identifier = DUMMY + 10 ;
+ Command = ".uno:CellMenu" ;
+ Text [ en-US ] = "~Cell" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = SID_TABLE_MERGE_CELLS;
+ HelpID = SID_TABLE_MERGE_CELLS;
+ Text [ en-US ] = "~Merge";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_SPLIT_CELLS;
+ HelpID = SID_TABLE_SPLIT_CELLS;
+ Text [ en-US ] = "~Split...";
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = SID_TABLE_VERT_NONE;
+ HelpID = SID_TABLE_VERT_NONE;
+ Text [ en-US ] = "~Top";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_VERT_CENTER;
+ HelpID = SID_TABLE_VERT_CENTER;
+ Text [ en-US ] = "C~enter";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_VERT_BOTTOM;
+ HelpID = SID_TABLE_VERT_BOTTOM;
+ Text [ en-US ] = "~Bottom";
+ };
+ };
+ };
+ };
+ MenuItem
+ {
+ Identifier = DUMMY + 11 ;
+ Command = ".uno:RowMenu" ;
+ Text [ en-US ] = "~Row" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = SID_TABLE_DISTRIBUTE_ROWS;
+ HelpID = SID_TABLE_DISTRIBUTE_ROWS;
+ Text [ en-US ] = "Space ~Equally";
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = SID_TABLE_SELECT_ROW;
+ HelpID = SID_TABLE_SELECT_ROW;
+ Text [ en-US ] = "~Select";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_INSERT_ROW_DLG;
+ HelpID = SID_TABLE_INSERT_ROW_DLG;
+ Text [ en-US ] = "~Insert...";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_DELETE_ROW;
+ HelpID = SID_TABLE_DELETE_ROW;
+ Text [ en-US ] = "~Delete";
+ };
+ };
+ };
+ };
+ MenuItem
+ {
+ Identifier = DUMMY + 12 ;
+ Command = ".uno:ColumnMenu" ;
+ Text [ en-US ] = "Colu~mn" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ Identifier = SID_TABLE_DISTRIBUTE_COLUMNS;
+ HelpID = SID_TABLE_DISTRIBUTE_COLUMNS;
+ Text [ en-US ] = "Space ~Equally";
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = SID_TABLE_SELECT_COL;
+ HelpID = SID_TABLE_SELECT_COL;
+ Text [ en-US ] = "~Select";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_INSERT_COL_DLG;
+ HelpID = SID_TABLE_INSERT_COL_DLG;
+ Text [ en-US ] = "~Insert...";
+ };
+ MenuItem
+ {
+ Identifier = SID_TABLE_DELETE_COL;
+ HelpID = SID_TABLE_DELETE_COL;
+ Text [ en-US ] = "~Delete";
+ };
+ };
+ };
+ };
+ SEPARATOR
+ MN_POSITION
+ MN_OBJECT_ALIGN
+ MN_DISTRIBUTE
+ MNSUB_CONVERT
+ SEPARATOR
+ MN_OBJECT_TITLE_DESCRIPTION
+ MN_NAME_GROUP
+#if SD_POPUP == RID_DRAW_TEXTOBJ_POPUP
+ SEPARATOR
+ MN_EFFECT
+ MN_ACTION
+#endif
+ SEPARATOR
+ MN_STYLEDT
+ };
+};
diff --git a/sd/source/ui/app/res_bmp.src b/sd/source/ui/app/res_bmp.src
new file mode 100644
index 000000000000..4796be585d1e
--- /dev/null
+++ b/sd/source/ui/app/res_bmp.src
@@ -0,0 +1,564 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: res_bmp.src,v $
+ * $Revision: 1.55 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+#include <sfx2/sfx.hrc>
+#include <svtools/style.hrc>
+#include "glob.hrc"
+#include "res_bmp.hrc"
+
+Bitmap BMP_FOIL_00
+{
+ File = "foil00.bmp" ;
+};
+Bitmap BMP_FOIL_00_H
+{
+ File = "foil00_h.bmp" ;
+};
+Bitmap BMP_FOIL_01
+{
+ File = "foil01.bmp" ;
+};
+Bitmap BMP_FOIL_01_H
+{
+ File = "foil01_h.bmp" ;
+};
+Bitmap BMP_FOIL_02
+{
+ File = "foil02.bmp" ;
+};
+Bitmap BMP_FOIL_02_H
+{
+ File = "foil02_h.bmp" ;
+};
+Bitmap BMP_FOIL_03
+{
+ File = "foil03.bmp" ;
+};
+Bitmap BMP_FOIL_03_H
+{
+ File = "foil03_h.bmp" ;
+};
+Bitmap BMP_FOIL_04
+{
+ File = "foil04.bmp" ;
+};
+Bitmap BMP_FOIL_04_H
+{
+ File = "foil04_h.bmp" ;
+};
+Bitmap BMP_FOIL_05
+{
+ File = "foil05.bmp" ;
+};
+Bitmap BMP_FOIL_06
+{
+ File = "foil06.bmp" ;
+};
+Bitmap BMP_FOIL_06_H
+{
+ File = "foil06_h.bmp" ;
+};
+Bitmap BMP_FOIL_07
+{
+ File = "foil07.bmp" ;
+};
+Bitmap BMP_FOIL_07_H
+{
+ File = "foil07_h.bmp" ;
+};
+Bitmap BMP_FOIL_08
+{
+ File = "foil08.bmp" ;
+};
+Bitmap BMP_FOIL_08_H
+{
+ File = "foil08_h.bmp" ;
+};
+Bitmap BMP_FOIL_09
+{
+ File = "foil09.bmp" ;
+};
+Bitmap BMP_FOIL_09_H
+{
+ File = "foil09_h.bmp" ;
+};
+Bitmap BMP_FOIL_10
+{
+ File = "foil10.bmp" ;
+};
+Bitmap BMP_FOIL_10_H
+{
+ File = "foil10_h.bmp" ;
+};
+Bitmap BMP_FOIL_11
+{
+ File = "foil11.bmp" ;
+};
+Bitmap BMP_FOIL_11_H
+{
+ File = "foil11_h.bmp" ;
+};
+Bitmap BMP_FOIL_12
+{
+ File = "foil12.bmp" ;
+};
+Bitmap BMP_FOIL_12_H
+{
+ File = "foil12_h.bmp" ;
+};
+Bitmap BMP_FOIL_13
+{
+ File = "foil13.bmp" ;
+};
+Bitmap BMP_FOIL_13_H
+{
+ File = "foil13_h.bmp" ;
+};
+Bitmap BMP_FOIL_14
+{
+ File = "foil14.bmp" ;
+};
+Bitmap BMP_FOIL_14_H
+{
+ File = "foil14_h.bmp" ;
+};
+Bitmap BMP_FOIL_15
+{
+ File = "foil15.bmp" ;
+};
+Bitmap BMP_FOIL_15_H
+{
+ File = "foil15_h.bmp" ;
+};
+Bitmap BMP_FOIL_16
+{
+ File = "foil16.bmp" ;
+};
+Bitmap BMP_FOIL_16_H
+{
+ File = "foil16_h.bmp" ;
+};
+Bitmap BMP_FOIL_17
+{
+ File = "foil17.bmp" ;
+};
+Bitmap BMP_FOIL_17_H
+{
+ File = "foil17_h.bmp" ;
+};
+Bitmap BMP_FOIL_18
+{
+ File = "foil18.bmp" ;
+};
+Bitmap BMP_FOIL_18_H
+{
+ File = "foil18_h.bmp" ;
+};
+Bitmap BMP_FOIL_19
+{
+ File = "foil19.bmp" ;
+};
+Bitmap BMP_FOIL_19_H
+{
+ File = "foil19_h.bmp" ;
+};
+Bitmap BMP_FOIL_20
+{
+ File = "foil20.bmp" ;
+};
+Bitmap BMP_FOIL_20_H
+{
+ File = "foil20_h.bmp" ;
+};
+Bitmap BMP_FOIL_21
+{
+ File = "foil21.bmp" ;
+};
+Bitmap BMP_FOIL_21_H
+{
+ File = "foil21_h.bmp" ;
+};
+Bitmap BMP_FOIL_22
+{
+ File = "foil22.bmp" ;
+};
+Bitmap BMP_FOIL_22_H
+{
+ File = "foil22_h.bmp" ;
+};
+Bitmap BMP_FOIL_23
+{
+ File = "foil23.bmp" ;
+};
+Bitmap BMP_FOIL_23_H
+{
+ File = "foil23_h.bmp" ;
+};
+Bitmap BMP_FOIL_24
+{
+ File = "foil24.bmp" ;
+};
+Bitmap BMP_FOIL_24_H
+{
+ File = "foil24_h.bmp" ;
+};
+Bitmap BMP_FOIL_25
+{
+ File = "foil25.bmp" ;
+};
+Bitmap BMP_FOIL_25_H
+{
+ File = "foil25_h.bmp" ;
+};
+Bitmap BMP_FOIL_26
+{
+ File = "foil26.bmp" ;
+};
+Bitmap BMP_FOIL_26_H
+{
+ File = "foil26_h.bmp" ;
+};
+Bitmap BMP_FOIL_27
+{
+ File = "foil27.bmp" ;
+};
+Bitmap BMP_FOIL_27_H
+{
+ File = "foil27_h.bmp" ;
+};
+Bitmap BMP_FOILH_01
+{
+ File = "foilh01.bmp" ;
+};
+Bitmap BMP_FOILH_01_H
+{
+ File = "foilh01_h.bmp" ;
+};
+Bitmap BMP_FOILH_02
+{
+ File = "foilh02.bmp" ;
+};
+Bitmap BMP_FOILH_02_H
+{
+ File = "foilh02_h.bmp" ;
+};
+Bitmap BMP_FOILH_03
+{
+ File = "foilh03.bmp" ;
+};
+Bitmap BMP_FOILH_03_H
+{
+ File = "foilh03_h.bmp" ;
+};
+Bitmap BMP_FOILH_04
+{
+ File = "foilh04.bmp" ;
+};
+Bitmap BMP_FOILH_04_H
+{
+ File = "foilh04_h.bmp" ;
+};
+Bitmap BMP_FOILH_06
+{
+ File = "foilh06.bmp" ;
+};
+Bitmap BMP_FOILH_06_H
+{
+ File = "foilh06_h.bmp" ;
+};
+Bitmap BMP_FOILH_09
+{
+ File = "foilh09.bmp" ;
+};
+Bitmap BMP_FOILH_09_H
+{
+ File = "foilh09_h.bmp" ;
+};
+Bitmap BMP_FOILN_01
+{
+ File = "foiln01.bmp" ;
+};
+Bitmap BMP_FOILN_01_H
+{
+ File = "foiln01_h.bmp" ;
+};
+Bitmap BMP_FOIL_NONE
+{
+ File = "foilnone.bmp" ;
+};
+Bitmap BMP_PAGE
+{
+ File = "page.bmp" ;
+};
+Bitmap BMP_PAGE_H
+{
+ File = "page_h.bmp" ;
+};
+Bitmap BMP_PAGE_EXCLUDED
+{
+ File = "pageexcl.bmp" ;
+};
+Bitmap BMP_PAGE_EXCLUDED_H
+{
+ File = "pageexcl_h.bmp" ;
+};
+Bitmap BMP_PAGEOBJS_EXCLUDED
+{
+ File = "pagobjex.bmp" ;
+};
+Bitmap BMP_PAGEOBJS_EXCLUDED_H
+{
+ File = "pagobjex_h.bmp" ;
+};
+Bitmap BMP_PAGEOBJS
+{
+ File = "pageobjs.bmp" ;
+};
+Bitmap BMP_PAGEOBJS_H
+{
+ File = "pageobjs_h.bmp" ;
+};
+Bitmap BMP_OBJECTS
+{
+ File = "objects.bmp" ;
+};
+Bitmap BMP_OBJECTS_H
+{
+ File = "objects_h.bmp" ;
+};
+Bitmap BMP_OLE
+{
+ File = "ole.bmp" ;
+};
+Bitmap BMP_OLE_H
+{
+ File = "ole_h.bmp" ;
+};
+Bitmap BMP_GROUP
+{
+ File = "group.bmp" ;
+};
+Bitmap BMP_GROUP_H
+{
+ File = "group_h.bmp" ;
+};
+Bitmap BMP_DOC_OPEN
+{
+ File = "docopen.bmp" ;
+};
+Bitmap BMP_DOC_OPEN_H
+{
+ File = "docopen_h.bmp" ;
+};
+Bitmap BMP_DOC_CLOSED
+{
+ File = "docclose.bmp" ;
+};
+Bitmap BMP_DOC_CLOSED_H
+{
+ File = "docclose_h.bmp" ;
+};
+Bitmap BMP_DOC_TEXT
+{
+ File = "doctext.bmp" ;
+};
+Bitmap BMP_DOC_TEXT_H
+{
+ File = "doctext_h.bmp" ;
+};
+Bitmap BMP_EXPAND
+{
+ File = "plus.bmp" ;
+};
+Bitmap BMP_EXPAND_H
+{
+ File = "plus_h.bmp" ;
+};
+Bitmap BMP_COLLAPSE
+{
+ File = "minus.bmp" ;
+};
+Bitmap BMP_COLLAPSE_H
+{
+ File = "minus_h.bmp" ;
+};
+Bitmap BMP_GRAPHIC
+{
+ File = "graphic.bmp" ;
+};
+Bitmap BMP_GRAPHIC_H
+{
+ File = "graphic_h.bmp" ;
+};
+Image IMG_PIPETTE_H
+{
+ ImageBitmap = Bitmap { File = "pipette_h.bmp" ; };
+ MaskColor = IMAGE_MASK_STDCOLOR_HC ;
+};
+Image IMG_GET1OBJECT_H
+{
+ ImageBitmap = Bitmap { File = "get1obj_h.bmp" ; };
+ MaskColor = IMAGE_MASK_STDCOLOR_HC ;
+};
+Image IMG_GETALLOBJECT_H
+{
+ ImageBitmap = Bitmap { File = "getallob_h.bmp" ; };
+ MaskColor = IMAGE_MASK_STDCOLOR_HC ;
+};
+Image IMG_REMOVEBMP_H
+{
+ ImageBitmap = Bitmap { File = "del1bmp_h.bmp" ; };
+ MaskColor = IMAGE_MASK_STDCOLOR_HC ;
+};
+Image IMG_REMOVEALLBMP_H
+{
+ ImageBitmap = Bitmap { File = "delall_h.bmp" ; };
+ MaskColor = IMAGE_MASK_STDCOLOR_HC ;
+};
+#define SfxStyleFamiliesRes1\
+ Text [ en-US ] = "Graphics Styles" ;\
+
+#define SfxStyleFamiliesRes2\
+ Text [ en-US ] = "Presentation Styles" ;\
+
+SfxStyleFamilies DLG_STYLE_DESIGNER
+{
+ StyleFamilyList =
+ {
+ SfxStyleFamilyItem RID_GRAPHICSTYLEFAMILY
+ {
+ SfxStyleFamiliesRes1
+ StyleFamily = SFX_STYLE_FAMILY_PARA ;
+ FilterList =
+ {
+ < STR_STYLE_FILTER_ALL ; SFXSTYLEBIT_ALL ; > ;
+ < STR_STYLE_FILTER_USED ; SFXSTYLEBIT_USED ; > ;
+ < STR_STYLE_FILTER_USERDEF ; SFXSTYLEBIT_USERDEF ; > ;
+ };
+ };
+ SfxStyleFamilyItem RID_PRESENTATIONSTYLEFAMILY
+ {
+ SfxStyleFamiliesRes2
+ StyleFamily = SFX_STYLE_FAMILY_PSEUDO ;
+ FilterList =
+ {
+ < STR_STYLE_FILTER_ALL ; SFXSTYLEBIT_ALL ; > ;
+ };
+ };
+ };
+ #define STYLE_IMAGE_LISTEF \
+ IdList = \
+ { \
+ 1; 2; \
+ }; \
+ IdCount = 2;
+
+ ImageList 1 // == BMP_COLOR_NORMAL + 1
+ {
+ Prefix = "sf";
+ MaskColor = IMAGE_MASK_STDCOLOR;
+ STYLE_IMAGE_LISTEF
+ };
+ ImageList 2 // == BMP_COLOR_HIGHCONTRAST + 1
+ {
+ Prefix = "sfh";
+ MaskColor = IMAGE_MASK_STDCOLOR_HC;
+ STYLE_IMAGE_LISTEF
+ };
+ #undef STYLE_IMAGE_LISTEF
+};
+
+Bitmap BMP_PRESOBJ_GRAPHIC
+{
+ File = "image.bmp" ;
+};
+Bitmap BMP_PRESOBJ_OBJECT
+{
+ File = "object.bmp" ;
+};
+Bitmap BMP_PRESOBJ_CHART
+{
+ File = "chart.bmp" ;
+};
+Bitmap BMP_PRESOBJ_ORGCHART
+{
+ File = "orgchart.bmp" ;
+};
+Bitmap BMP_PRESOBJ_TABLE
+{
+ File = "table.bmp" ;
+};
+Bitmap BMP_WAIT_ICON
+{
+ File = "waiticon.bmp";
+};
+
+// ----------------------------------------
+
+Bitmap BMP_CLOSE_DOC
+{
+ File = "closedoc.bmp";
+};
+Bitmap BMP_CLOSE_DOC_H
+{
+ File = "closedochc.bmp";
+};
+Bitmap BMP_TRIANGLE_RIGHT
+{
+ File = "triangle_right.bmp";
+};
+Bitmap BMP_TRIANGLE_RIGHT_H
+{
+ File = "triangle_right_hc.bmp";
+};
+Bitmap BMP_TRIANGLE_DOWN
+{
+ File = "triangle_down.bmp";
+};
+Bitmap BMP_TRIANGLE_DOWN_H
+{
+ File = "triangle_down_hc.bmp";
+};
+Bitmap BMP_FADE_EFFECT_INDICATOR
+{
+ File = "fade_effect_indicator.bmp";
+};
+Bitmap BMP_FADE_EFFECT_INDICATOR_H
+{
+ File = "fade_effect_indicator_hc.bmp";
+};
+Bitmap BMP_COMMENTS_INDICATOR
+{
+ File = "comments_indicator.bmp";
+};
+Bitmap BMP_COMMENTS_INDICATOR_H
+{
+ File = "comments_indicator_hc.bmp";
+}; \ No newline at end of file
diff --git a/sd/source/ui/app/sddll.cxx b/sd/source/ui/app/sddll.cxx
new file mode 100644
index 000000000000..c2ab152d950b
--- /dev/null
+++ b/sd/source/ui/app/sddll.cxx
@@ -0,0 +1,336 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sddll.cxx,v $
+ * $Revision: 1.17 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+#include <svx/eeitem.hxx>
+
+#include <svx/editeng.hxx>
+#include <svx/svdobj.hxx>
+#include <svtools/moduleoptions.hxx>
+#ifndef _FM_FMOBJFAC_HXX
+#include <svx/fmobjfac.hxx>
+#endif
+#include <svx/svdfield.hxx>
+#include <svx/objfac3d.hxx>
+
+
+#include "sddll.hxx"
+#include "DrawDocShell.hxx"
+#include "GraphicDocShell.hxx"
+#include "sdresid.hxx"
+#include "sdobjfac.hxx"
+#include "cfgids.hxx"
+#include "strmname.h"
+#include "SdShapeTypes.hxx"
+
+#include <svx/SvxShapeTypes.hxx>
+#include <sfx2/docfilt.hxx>
+#include <sfx2/docfile.hxx>
+#include <sfx2/fcontnr.hxx>
+#include <tools/urlobj.hxx>
+#include <svx/impgrf.hxx>
+#include <svtools/FilterConfigItem.hxx>
+#include <com/sun/star/util/XArchiver.hpp>
+#include <comphelper/processfactory.hxx>
+
+using namespace ::rtl;
+using namespace ::com::sun::star;
+
+
+/*************************************************************************
+|*
+|* Init
+|*
+\************************************************************************/
+
+void SdDLL::Init()
+{
+ if ( SD_MOD() )
+ return;
+
+ SfxObjectFactory* pDrawFact = NULL;
+ SfxObjectFactory* pImpressFact = NULL;
+
+ if (SvtModuleOptions().IsImpress())
+ pImpressFact = &::sd::DrawDocShell::Factory();
+
+ if (SvtModuleOptions().IsDraw())
+ pDrawFact = &::sd::GraphicDocShell::Factory();
+
+ // the SdModule must be created
+ SdModule** ppShlPtr = (SdModule**) GetAppData(SHL_DRAW);
+
+ // #i46427#
+ // The SfxModule::SfxModule stops when the first given factory
+ // is 0, so we must not give a 0 as first factory
+ if( pImpressFact )
+ {
+ (*ppShlPtr) = new SdModule( pImpressFact, pDrawFact );
+ }
+ else
+ {
+ (*ppShlPtr) = new SdModule( pDrawFact, pImpressFact );
+ }
+
+ if (SvtModuleOptions().IsImpress())
+ {
+ // Register the Impress shape types in order to make the shapes accessible.
+ ::accessibility::RegisterImpressShapeTypes ();
+ ::sd::DrawDocShell::Factory().SetDocumentServiceName( String( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.presentation.PresentationDocument" ) ) );
+ }
+
+ if (SvtModuleOptions().IsDraw())
+ {
+ ::sd::GraphicDocShell::Factory().SetDocumentServiceName( String( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.drawing.DrawingDocument" ) ) );
+ }
+
+ // register your view-factories here
+ RegisterFactorys();
+
+ // register your shell-interfaces here
+ RegisterInterfaces();
+
+ // register your controllers here
+ RegisterControllers();
+
+ // SvDraw-Felder registrieren
+ SdrRegisterFieldClasses();
+
+ // 3D-Objekt-Factory eintragen
+ E3dObjFactory();
+
+ // ::com::sun::star::form::component::Form-Objekt-Factory eintragen
+ FmFormObjFactory();
+
+ // Objekt-Factory eintragen
+ SdrObjFactory::InsertMakeUserDataHdl(LINK(&aSdObjectFactory, SdObjectFactory, MakeUserData));
+}
+
+
+
+/*************************************************************************
+|*
+|* Exit
+|*
+\************************************************************************/
+
+void SdDLL::Exit()
+{
+ // called directly befor unloading the DLL
+ // do whatever you want, Sd-DLL is accessible
+
+ // Objekt-Factory austragen
+ SdrObjFactory::RemoveMakeUserDataHdl(LINK(&aSdObjectFactory, SdObjectFactory, MakeUserData));
+
+ // the SdModule must be destroyed
+ SdModule** ppShlPtr = (SdModule**) GetAppData(SHL_DRAW);
+ delete (*ppShlPtr);
+ (*ppShlPtr) = NULL;
+}
+
+/*
+ULONG SdDLL::DetectFilter(SfxMedium& rMedium, const SfxFilter** ppFilter,
+ SfxFilterFlags nMust, SfxFilterFlags nDont)
+{
+ ULONG nReturn = ERRCODE_ABORT; // Erkennung fehlgeschlagen, Filter ungueltig
+ BOOL bStorage = FALSE;
+
+ if( *ppFilter && (*ppFilter)->GetFilterFlags() & SFX_FILTER_PACKED )
+ {
+ uno::Reference< lang::XMultiServiceFactory > xSMgr( ::comphelper::getProcessServiceFactory() );
+ uno::Reference< util::XArchiver > xPacker( xSMgr->createInstance( OUString::createFromAscii( "com.sun.star.util.Archiver" ) ), uno::UNO_QUERY );
+ if( xPacker.is() )
+ {
+ // extract extra data
+ OUString aPath( rMedium.GetOrigURL() );
+ OUString aExtraData( xPacker->getExtraData( aPath ) );
+ const OUString aSig1= OUString::createFromAscii( "private:" );
+ String aTmp;
+ aTmp += sal_Unicode( '?' );
+ aTmp += String::CreateFromAscii("simpress");
+ const OUString aSig2( aTmp );
+ INT32 nIndex1 = aExtraData.indexOf( aSig1 );
+ INT32 nIndex2 = aExtraData.indexOf( aSig2 );
+ if( nIndex1 == 0 && nIndex2 != -1 )
+ return ERRCODE_NONE;
+ }
+ }
+ else if (rMedium.GetError() == SVSTREAM_OK)
+ {
+ if ( rMedium.IsStorage() )
+ {
+ bStorage = TRUE;
+ SotStorageRef xStorage = rMedium.GetStorage();
+ if ( !xStorage.Is() )
+ return ULONG_MAX;
+
+ if( SvtModuleOptions().IsImpress() )
+ {
+ // Erkennung ueber contained streams (PowerPoint 97-Filter)
+ String aStreamName = UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "PowerPoint Document" ) );
+ if ( xStorage->IsContained( aStreamName ) && xStorage->IsStream( aStreamName ) )
+ {
+ String aFileName(rMedium.GetName());
+ aFileName.ToUpperAscii();
+
+ if( aFileName.SearchAscii( ".POT" ) == STRING_NOTFOUND )
+ *ppFilter = SfxFilter::GetFilterByName( pFilterPowerPoint97);
+ else
+ *ppFilter = SfxFilter::GetFilterByName( pFilterPowerPoint97Template );
+
+ return ERRCODE_NONE;
+ }
+ }
+
+ const SfxFilter* pFilter = *ppFilter;
+ if ( *ppFilter )
+ {
+ if ( (*ppFilter)->GetFormat() == xStorage->GetFormat() )
+ pFilter = *ppFilter;
+ }
+
+ if( !pFilter && SvtModuleOptions().IsImpress() )
+ {
+ SfxFilterMatcher aMatcher( String::CreateFromAscii("simpress") );
+ pFilter = aMatcher.GetFilter4ClipBoardId( xStorage->GetFormat() );
+ if ( pFilter )
+ *ppFilter = pFilter;
+ }
+
+ if( !pFilter && SvtModuleOptions().IsDraw() )
+ {
+ SfxFilterMatcher aMatcher( String::CreateFromAscii("sdraw") );
+ pFilter = aMatcher.GetFilter4ClipBoardId( xStorage->GetFormat() );
+ if ( pFilter )
+ *ppFilter = pFilter;
+ }
+
+ if ( pFilter &&
+ ( pFilter->GetFilterFlags() & nMust ) == nMust &&
+ ( pFilter->GetFilterFlags() & nDont ) == 0 )
+ {
+ *ppFilter = pFilter;
+ nReturn = ERRCODE_NONE;
+ }
+ else
+ {
+ *ppFilter = NULL;
+ nReturn = ERRCODE_NONE;
+ }
+ }
+
+ String aFileName( rMedium.GetName() );
+ aFileName.ToUpperAscii();
+
+ if ( nReturn == ERRCODE_ABORT )
+ {
+ if( bStorage ) // aber keine Clipboard-Id #55337#
+ {
+ *ppFilter = NULL;
+ }
+ else
+ {
+ // Vektorgraphik?
+ SvStream* pStm = rMedium.GetInStream();
+
+ if( !pStm )
+ nReturn = ERRCODE_IO_GENERAL;
+ else
+ {
+ pStm->Seek( STREAM_SEEK_TO_BEGIN );
+
+ const String aFileName( rMedium.GetURLObject().GetMainURL( INetURLObject::NO_DECODE ) );
+ GraphicDescriptor aDesc( *pStm, &aFileName );
+ GraphicFilter* pGrfFilter = GetGrfFilter();
+
+ if( !aDesc.Detect( FALSE ) )
+ {
+ if( SvtModuleOptions().IsImpress() )
+ {
+ *ppFilter = NULL;
+ nReturn = ERRCODE_ABORT;
+ INetURLObject aURL( aFileName );
+ if( aURL.getExtension().equalsIgnoreAsciiCaseAscii( "cgm" ) )
+ {
+ sal_uInt8 n8;
+ pStm->Seek( STREAM_SEEK_TO_BEGIN );
+ *pStm >> n8;
+ if ( ( n8 & 0xf0 ) == 0 ) // we are supporting binary cgm format only, so
+ { // this is a small test to exclude cgm text
+ const String aName = UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "CGM - Computer Graphics Metafile" ) );
+ SfxFilterMatcher aMatch( String::CreateFromAscii("simpress") );
+ *ppFilter = aMatch.GetFilter4FilterName( aName );
+ nReturn = ERRCODE_NONE;
+ }
+ }
+ }
+ }
+ else
+ {
+ if( SvtModuleOptions().IsDraw() )
+ {
+ String aShortName( aDesc.GetImportFormatShortName( aDesc.GetFileFormat() ) );
+ const String aName( pGrfFilter->GetImportFormatTypeName( pGrfFilter->GetImportFormatNumberForShortName( aShortName ) ) );
+
+ if ( *ppFilter && aShortName.EqualsIgnoreCaseAscii( "PCD" ) ) // there is a multiple pcd selection possible
+ {
+ sal_Int32 nBase = 2; // default Base0
+ String aFilterTypeName( (*ppFilter)->GetRealTypeName() );
+ if ( aFilterTypeName.CompareToAscii( "pcd_Photo_CD_Base4" ) == COMPARE_EQUAL )
+ nBase = 1;
+ else if ( aFilterTypeName.CompareToAscii( "pcd_Photo_CD_Base16" ) == COMPARE_EQUAL )
+ nBase = 0;
+ String aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Import/PCD" ) );
+ FilterConfigItem aFilterConfigItem( aFilterConfigPath );
+ aFilterConfigItem.WriteInt32( String( RTL_CONSTASCII_USTRINGPARAM( "Resolution" ) ), nBase );
+ }
+
+ SfxFilterMatcher aMatch( String::CreateFromAscii("draw") );
+ *ppFilter = aMatch.GetFilter4FilterName( aName );
+ nReturn = ERRCODE_NONE;
+ }
+ else
+ {
+ nReturn = ERRCODE_ABORT;
+ *ppFilter = NULL;
+ }
+ }
+ }
+ }
+ }
+ }
+ else
+ {
+ nReturn = rMedium.GetError();
+ }
+
+ return nReturn;
+} */
diff --git a/sd/source/ui/app/sddll1.cxx b/sd/source/ui/app/sddll1.cxx
new file mode 100644
index 000000000000..2ef0815aed3c
--- /dev/null
+++ b/sd/source/ui/app/sddll1.cxx
@@ -0,0 +1,141 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sddll1.cxx,v $
+ * $Revision: 1.19 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+
+
+#include <svtools/moduleoptions.hxx>
+#include "sddll.hxx"
+#include "diactrl.hxx"
+#include "tbx_ww.hxx"
+#include "TextObjectBar.hxx"
+#include "BezierObjectBar.hxx"
+#include "GraphicObjectBar.hxx"
+#include "MediaObjectBar.hxx"
+#include "ImpressViewShellBase.hxx"
+#include "PresentationViewShellBase.hxx"
+#include "OutlineViewShell.hxx"
+#include "PresentationViewShell.hxx"
+#include "OutlineViewShellBase.hxx"
+#include "SlideSorterViewShellBase.hxx"
+#include "DrawViewShell.hxx"
+#include "GraphicViewShell.hxx"
+#include "GraphicViewShellBase.hxx"
+#include "DrawDocShell.hxx"
+#include "GraphicDocShell.hxx"
+#ifndef SD_SLIDEBROWSER_SLIDE_SORTER_VIEW_SHELL_HXX
+#include "SlideSorterViewShell.hxx"
+#endif
+#ifndef SD_SLIDEBROWSER_TASK_PANE_VIEW_SHELL_HXX
+#include "TaskPaneViewShell.hxx"
+#endif
+#include "FactoryIds.hxx"
+#include "sdmod.hxx"
+#include "app.hrc"
+
+namespace sd { namespace ui { namespace table {
+ extern void RegisterInterfaces( SfxModule* pMod );
+} } }
+
+
+/*************************************************************************
+|*
+|* Register all Factorys
+|*
+\************************************************************************/
+
+
+void SdDLL::RegisterFactorys()
+{
+ if (SvtModuleOptions().IsImpress())
+ {
+ ::sd::ImpressViewShellBase::RegisterFactory (
+ ::sd::IMPRESS_FACTORY_ID);
+ ::sd::SlideSorterViewShellBase::RegisterFactory (
+ ::sd::SLIDE_SORTER_FACTORY_ID);
+ ::sd::OutlineViewShellBase::RegisterFactory (
+ ::sd::OUTLINE_FACTORY_ID);
+ ::sd::PresentationViewShellBase::RegisterFactory (
+ ::sd::PRESENTATION_FACTORY_ID);
+ }
+ if (SvtModuleOptions().IsDraw())
+ {
+ ::sd::GraphicViewShellBase::RegisterFactory (::sd::DRAW_FACTORY_ID);
+ }
+}
+
+
+
+/*************************************************************************
+|*
+|* Register all Interfaces
+|*
+\************************************************************************/
+
+void SdDLL::RegisterInterfaces()
+{
+ // Modul
+ SfxModule* pMod = SD_MOD();
+ SdModule::RegisterInterface(pMod);
+
+ // View shell base.
+ ::sd::ViewShellBase::RegisterInterface(pMod);
+
+ // DocShells
+ ::sd::DrawDocShell::RegisterInterface(pMod);
+ ::sd::GraphicDocShell::RegisterInterface(pMod);
+
+ // Impress ViewShells
+ ::sd::DrawViewShell::RegisterInterface(pMod);
+ ::sd::OutlineViewShell::RegisterInterface(pMod);
+ ::sd::PresentationViewShell::RegisterInterface(pMod);
+
+ // Draw ViewShell
+ ::sd::GraphicViewShell::RegisterInterface(pMod);
+
+ // Impress ObjectShells
+ ::sd::BezierObjectBar::RegisterInterface(pMod);
+ ::sd::TextObjectBar::RegisterInterface(pMod);
+ ::sd::GraphicObjectBar::RegisterInterface(pMod);
+
+ // Media ObjectShell
+ ::sd::MediaObjectBar::RegisterInterface(pMod);
+
+ // Table ObjectShell
+ ::sd::ui::table::RegisterInterfaces(pMod);
+
+ // View shells for the side panes.
+ ::sd::slidesorter::SlideSorterViewShell::RegisterInterface (pMod);
+ ::sd::toolpanel::TaskPaneViewShell::RegisterInterface(pMod);
+ // Tell the task pane view shell to register the interfaces of its
+ // controls.
+ ::sd::toolpanel::TaskPaneViewShell::RegisterControls();
+}
diff --git a/sd/source/ui/app/sddll2.cxx b/sd/source/ui/app/sddll2.cxx
new file mode 100644
index 000000000000..c222e5f3cb44
--- /dev/null
+++ b/sd/source/ui/app/sddll2.cxx
@@ -0,0 +1,233 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sddll2.cxx,v $
+ * $Revision: 1.36.70.1 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+
+
+
+#include <svx/editdata.hxx>
+#include "eetext.hxx"
+#include <svx/svxids.hrc>
+#include <svx/eeitem.hxx>
+
+#include <svx/flditem.hxx>
+#include <svx/imapdlg.hxx>
+#include <svx/bmpmask.hxx>
+#include <svx/galbrws.hxx>
+#include <svx/srchdlg.hxx>
+#include <svx/fontwork.hxx>
+#include <svx/colrctrl.hxx>
+#include <svx/verttexttbxctrl.hxx>
+#include <svx/hyprlink.hxx>
+#include <svx/hyperdlg.hxx>
+#include <svx/fillctrl.hxx>
+#include <svx/linectrl.hxx>
+#include <svx/tbcontrl.hxx>
+#include <svx/zoomctrl.hxx>
+#include <svx/zoomsliderctrl.hxx>
+#include <svx/pszctrl.hxx>
+#include <svx/modctrl.hxx>
+#include <svx/fntctl.hxx>
+#include <svx/fntszctl.hxx>
+#include <svx/f3dchild.hxx>
+#include <svx/grafctrl.hxx>
+#include <svx/tbxcustomshapes.hxx>
+#include <svx/fontworkgallery.hxx>
+#include <svx/lboxctrl.hxx>
+#include <svx/clipboardctl.hxx>
+#include <svx/extrusioncontrols.hxx>
+#include <svx/tbxcolor.hxx>
+#include <avmedia/mediaplayer.hxx>
+#include <avmedia/mediatoolbox.hxx>
+
+#include <svx/layctrl.hxx>
+#include <svx/subtoolboxcontrol.hxx>
+
+#include "sddll.hxx"
+#define _SD_DIACTRL_CXX
+#include "diactrl.hxx"
+#include "gluectrl.hxx"
+#include "tbx_ww.hxx"
+#include "AnimationChildWindow.hxx"
+#include "animobjs.hxx"
+#include "NavigatorChildWindow.hxx"
+#ifndef SD_LAZER_DIALOG_CHILD_WINDOW_HXX
+#include "LayerDialogChildWindow.hxx"
+#endif
+//#include "3dchld.hxx"
+#include "app.hrc"
+#include "SpellDialogChildWindow.hxx"
+#include "DrawViewShell.hxx"
+#include "GraphicViewShell.hxx"
+#include <svx/xmlsecctrl.hxx>
+#include <svx/formatpaintbrushctrl.hxx>
+#include "PaneChildWindows.hxx"
+
+#include "tmplctrl.hxx"
+
+/*************************************************************************
+|*
+|* Register all Controllers
+|*
+\************************************************************************/
+
+
+void SdDLL::RegisterControllers()
+{
+ SfxModule* pMod = SD_MOD();
+
+ // ToolBoxControls registrieren
+ SdTbxControl::RegisterControl( SID_OBJECT_ALIGN, pMod );
+ SdTbxControl::RegisterControl( SID_ZOOM_TOOLBOX, pMod );
+ SdTbxControl::RegisterControl( SID_OBJECT_CHOOSE_MODE, pMod );
+ SdTbxControl::RegisterControl( SID_POSITION, pMod );
+ SdTbxControl::RegisterControl( SID_DRAWTBX_TEXT, pMod );
+ SdTbxControl::RegisterControl( SID_DRAWTBX_RECTANGLES, pMod );
+ SdTbxControl::RegisterControl( SID_DRAWTBX_ELLIPSES, pMod );
+ SdTbxControl::RegisterControl( SID_DRAWTBX_LINES, pMod );
+ SdTbxControl::RegisterControl( SID_DRAWTBX_ARROWS, pMod );
+ SdTbxControl::RegisterControl( SID_DRAWTBX_3D_OBJECTS, pMod );
+ SdTbxControl::RegisterControl( SID_DRAWTBX_CONNECTORS, pMod );
+ SdTbxControl::RegisterControl( SID_DRAWTBX_INSERT, pMod );
+
+ SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_BASIC, pMod );
+ SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_SYMBOL, pMod );
+ SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_ARROW, pMod );
+ SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_FLOWCHART, pMod );
+ SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_CALLOUT, pMod );
+ SvxTbxCtlCustomShapes::RegisterControl( SID_DRAWTBX_CS_STAR, pMod );
+// SdTbxCtlDiaEffect::RegisterControl(0, pMod);
+// SdTbxCtlDiaSpeed::RegisterControl(0, pMod);
+// SdTbxCtlDiaAuto::RegisterControl(0, pMod);
+// SdTbxCtlDiaTime::RegisterControl(0, pMod);
+
+ SdTbxCtlDiaPages::RegisterControl( SID_PAGES_PER_ROW, pMod );
+ SdTbxCtlGlueEscDir::RegisterControl( SID_GLUE_ESCDIR, pMod );
+
+ ::sd::AnimationChildWindow::RegisterChildWindow(0, pMod);
+ ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::DrawViewShell::GetInterfaceId(), pMod );
+ ::sd::NavigatorChildWindow::RegisterChildWindowContext( (sal_uInt16) ::sd::GraphicViewShell::GetInterfaceId(), pMod );
+ ::sd::LayerDialogChildWindow::RegisterChildWindow(0, pMod);
+ //Sd3DChildWindow::RegisterChildWindow(0, pMod);
+/*
+ SvxChildWinCustomShapesBasic::RegisterChildWindow( 0, pMod );
+ SvxChildWinCustomShapesSymbol::RegisterChildWindow( 0, pMod );
+ SvxChildWinCustomShapesArrow::RegisterChildWindow( 0, pMod );
+ SvxChildWinCustomShapesFlowChart::RegisterChildWindow( 0, pMod );
+ SvxChildWinCustomShapesCallout::RegisterChildWindow( 0, pMod );
+ SvxChildWinCustomShapesStar::RegisterChildWindow( 0, pMod );
+*/
+ Svx3DChildWindow::RegisterChildWindow(0, pMod);
+ SvxFontWorkChildWindow::RegisterChildWindow(0, pMod);
+ SvxColorChildWindow::RegisterChildWindow(0, pMod, SFX_CHILDWIN_TASK);
+ SvxSearchDialogWrapper::RegisterChildWindow(0, pMod);
+ SvxBmpMaskChildWindow::RegisterChildWindow(0, pMod);
+ GalleryChildWindow::RegisterChildWindow(0, pMod);
+ SvxIMapDlgChildWindow::RegisterChildWindow(0, pMod);
+ SvxHyperlinkDlgWrapper::RegisterChildWindow(0, pMod, SFX_CHILDWIN_FORCEDOCK);
+ SvxHlinkDlgWrapper::RegisterChildWindow(0, pMod);
+ ::sd::SpellDialogChildWindow::RegisterChildWindow(0, pMod);
+ ::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
+ ::sd::LeftPaneImpressChildWindow::RegisterChildWindow(0, pMod);
+ ::sd::LeftPaneDrawChildWindow::RegisterChildWindow(0, pMod);
+ ::sd::RightPaneChildWindow::RegisterChildWindow(0, pMod);
+
+ SvxFillToolBoxControl::RegisterControl(0, pMod);
+ SvxLineStyleToolBoxControl::RegisterControl(0, pMod);
+ SvxLineWidthToolBoxControl::RegisterControl(0, pMod);
+ SvxLineColorToolBoxControl::RegisterControl(0, pMod);
+
+ SvxLineEndToolBoxControl::RegisterControl( SID_ATTR_LINEEND_STYLE, pMod );
+
+ SvxStyleToolBoxControl::RegisterControl(0, pMod);
+ SvxFontNameToolBoxControl::RegisterControl(0, pMod);
+// SvxFontHeightToolBoxControl::RegisterControl(0, pMod);
+ SvxFontColorToolBoxControl::RegisterControl(0, pMod);
+
+ SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod );
+ SvxGrafModeToolBoxControl::RegisterControl( SID_ATTR_GRAF_MODE, pMod );
+ SvxGrafRedToolBoxControl::RegisterControl( SID_ATTR_GRAF_RED, pMod );
+ SvxGrafGreenToolBoxControl::RegisterControl( SID_ATTR_GRAF_GREEN, pMod );
+ SvxGrafBlueToolBoxControl::RegisterControl( SID_ATTR_GRAF_BLUE, pMod );
+ SvxGrafLuminanceToolBoxControl::RegisterControl( SID_ATTR_GRAF_LUMINANCE, pMod );
+ SvxGrafContrastToolBoxControl::RegisterControl( SID_ATTR_GRAF_CONTRAST, pMod );
+ SvxGrafGammaToolBoxControl::RegisterControl( SID_ATTR_GRAF_GAMMA, pMod );
+ SvxGrafTransparenceToolBoxControl::RegisterControl( SID_ATTR_GRAF_TRANSPARENCE, pMod );
+ SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
+ SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
+ SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
+ SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_FONTWORK_VERTICAL, pMod);
+ SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
+ SvxVertTextTbxCtrl::RegisterControl(SID_TEXT_FITTOSIZE_VERTICAL, pMod);
+ SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
+ SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
+
+ // StatusBarControls registrieren
+ SvxZoomStatusBarControl::RegisterControl( SID_ATTR_ZOOM, pMod );
+ SvxPosSizeStatusBarControl::RegisterControl( SID_ATTR_SIZE, pMod );
+ SvxModifyControl::RegisterControl( SID_DOC_MODIFIED, pMod );
+ //SvxInsertStatusBarControl::RegisterControl(0, pModd);
+ SvxZoomSliderControl::RegisterControl( SID_ATTR_ZOOMSLIDER, pMod );
+
+ // MenuControls fuer PopupMenu
+ SvxFontMenuControl::RegisterControl( SID_ATTR_CHAR_FONT, pMod );
+ SvxFontSizeMenuControl::RegisterControl( SID_ATTR_CHAR_FONTHEIGHT, pMod );
+
+ SfxMenuControl::RegisterControl( SID_SET_SNAPITEM, pMod );
+ SfxMenuControl::RegisterControl( SID_DELETE_SNAPITEM, pMod );
+ SfxMenuControl::RegisterControl( SID_BEZIER_CLOSE, pMod );
+
+ // #UndoRedo#
+ SvxUndoRedoControl::RegisterControl( SID_UNDO , pMod );
+ SvxUndoRedoControl::RegisterControl( SID_REDO , pMod );
+
+ svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
+
+ SvxClipBoardControl::RegisterControl( SID_PASTE, pMod );
+
+ svx::ExtrusionDepthControl::RegisterControl( SID_EXTRUSION_DEPTH_FLOATER, pMod );
+ svx::ExtrusionDirectionControl::RegisterControl( SID_EXTRUSION_DIRECTION_FLOATER, pMod );
+ svx::ExtrusionLightingControl::RegisterControl( SID_EXTRUSION_LIGHTING_FLOATER, pMod );
+ svx::ExtrusionSurfaceControl::RegisterControl( SID_EXTRUSION_SURFACE_FLOATER, pMod );
+ svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
+
+ svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
+ svx::FontWorkAlignmentControl::RegisterControl( SID_FONTWORK_ALIGNMENT_FLOATER, pMod );
+ svx::FontWorkCharacterSpacingControl::RegisterControl( SID_FONTWORK_CHARACTER_SPACING_FLOATER, pMod );
+ ::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX, pMod );
+ XmlSecStatusBarControl::RegisterControl( SID_SIGNATURE, pMod );
+ SdTemplateControl::RegisterControl( SID_STATUS_LAYOUT, pMod );
+ SvxTableToolBoxControl::RegisterControl(SID_INSERT_TABLE, pMod );
+ SvxFrameLineStyleToolBoxControl::RegisterControl(SID_FRAME_LINESTYLE, pMod );
+ SvxFrameLineColorToolBoxControl::RegisterControl(SID_FRAME_LINECOLOR, pMod );
+ SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod );
+ SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE, pMod);
+}
diff --git a/sd/source/ui/app/sdmod.cxx b/sd/source/ui/app/sdmod.cxx
new file mode 100644
index 000000000000..957b1aa0475b
--- /dev/null
+++ b/sd/source/ui/app/sdmod.cxx
@@ -0,0 +1,358 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sdmod.cxx,v $
+ * $Revision: 1.35 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+#include <svtools/pathoptions.hxx>
+#include <svtools/languageoptions.hxx>
+#ifndef _UNOTOOLS_UCBSTREAMHELPER_HXX
+#include <unotools/ucbstreamhelper.hxx>
+#endif
+#include <tools/urlobj.hxx>
+#include <vcl/virdev.hxx>
+#include <sfx2/app.hxx>
+#include <vcl/status.hxx>
+#include <svtools/intitem.hxx>
+#include <sfx2/msg.hxx>
+#include <sfx2/objface.hxx>
+#include <sfx2/printer.hxx>
+#include <svx/pszctrl.hxx>
+#include <svx/zoomctrl.hxx>
+#include <svx/modctrl.hxx>
+#include <svtools/zforlist.hxx>
+#include <comphelper/processfactory.hxx>
+#include <svtools/ehdl.hxx>
+
+#include <svx/svxids.hrc>
+#include <sfx2/srchitem.hxx>
+#include <svx/svxerr.hxx>
+
+#include <svx/xmlsecctrl.hxx>
+
+
+#define _SD_DLL // fuer SD_MOD()
+#include "sderror.hxx"
+#include "sdmod.hxx"
+#include "sddll.hxx"
+#include "sdresid.hxx"
+#include "optsitem.hxx"
+#include "DrawDocShell.hxx"
+#include "drawdoc.hxx"
+#include "app.hrc"
+#include "glob.hrc"
+#include "strings.hrc"
+#include "res_bmp.hrc"
+#include "cfgids.hxx"
+#include "tools/SdGlobalResourceContainer.hxx"
+
+TYPEINIT1( SdModule, SfxModule );
+
+#define SdModule
+#include "sdslots.hxx"
+
+
+SFX_IMPL_INTERFACE(SdModule, SfxModule, SdResId(STR_APPLICATIONOBJECTBAR))
+{
+ SFX_STATUSBAR_REGISTRATION(SdResId(RID_DRAW_STATUSBAR));
+}
+
+/*************************************************************************
+|*
+|* Ctor
+|*
+\************************************************************************/
+
+SdModule::SdModule(SfxObjectFactory* pFact1, SfxObjectFactory* pFact2 )
+: SfxModule( SfxApplication::CreateResManager("sd"), FALSE,
+ pFact1, pFact2, NULL ),
+ pTransferClip(NULL),
+ pTransferDrag(NULL),
+ pTransferSelection(NULL),
+ pImpressOptions(NULL),
+ pDrawOptions(NULL),
+ pSearchItem(NULL),
+ pNumberFormatter( NULL ),
+ bWaterCan(FALSE),
+ mpResourceContainer(new ::sd::SdGlobalResourceContainer())
+{
+ SetName( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "StarDraw" ) ) ); // Nicht uebersetzen!
+ pSearchItem = new SvxSearchItem(SID_SEARCH_ITEM);
+ pSearchItem->SetAppFlag(SVX_SEARCHAPP_DRAW);
+ StartListening( *SFX_APP() );
+ SvxErrorHandler::Get();
+ mpErrorHdl = new SfxErrorHandler( RID_SD_ERRHDL,
+ ERRCODE_AREA_SD,
+ ERRCODE_AREA_SD_END,
+ GetResMgr() );
+
+ // Create a new ref device and (by calling SetReferenceDevice())
+ // set its resolution to 600 DPI. This leads to a visually better
+ // formatting of text in small sizes (6 point and below.)
+ VirtualDevice* pDevice = new VirtualDevice;
+ mpVirtualRefDevice = pDevice;
+ pDevice->SetMapMode( MAP_100TH_MM );
+ pDevice->SetReferenceDevice ( VirtualDevice::REFDEV_MODE06 );
+}
+
+
+
+/*************************************************************************
+|*
+|* Dtor
+|*
+\************************************************************************/
+
+SdModule::~SdModule()
+{
+ delete pSearchItem;
+
+ if( pNumberFormatter )
+ delete pNumberFormatter;
+
+ ::sd::DrawDocShell* pDocShell = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if( pDocShell )
+ {
+ ::sd::ViewShell* pViewShell = pDocShell->GetViewShell();
+ if (pViewShell)
+ {
+ // Removing our event listener
+ Application::RemoveEventListener( LINK( this, SdModule, EventListenerHdl ) );
+ }
+ }
+
+ mpResourceContainer.reset();
+
+ // Mark the module in the global AppData structure as deleted.
+ SdModule** ppShellPointer = (SdModule**)GetAppData(SHL_DRAW);
+ if (ppShellPointer != NULL)
+ (*ppShellPointer) = NULL;
+
+ delete mpErrorHdl;
+ delete static_cast< VirtualDevice* >( mpVirtualRefDevice );
+}
+
+
+/*************************************************************************
+|*
+|* Statusbar erzeugen
+|*
+\************************************************************************/
+
+#define AUTOSIZE_WIDTH 180
+#define TEXT_WIDTH(s) rStatusBar.GetTextWidth((s))
+
+void SdModule::FillStatusBar(StatusBar& rStatusBar)
+{
+ // Hinweis
+ rStatusBar.InsertItem( SID_CONTEXT, TEXT_WIDTH( String().Fill( 30, 'x' ) ), // vorher 52
+ SIB_IN | SIB_LEFT | SIB_AUTOSIZE );
+
+ // Groesse und Position
+ rStatusBar.InsertItem( SID_ATTR_SIZE, SvxPosSizeStatusBarControl::GetDefItemWidth(rStatusBar), // vorher 42
+ SIB_IN | SIB_USERDRAW );
+ // SIB_AUTOSIZE | SIB_LEFT | SIB_OWNERDRAW );
+
+ // Massstab
+ rStatusBar.InsertItem( SID_ATTR_ZOOM, SvxZoomStatusBarControl::GetDefItemWidth(rStatusBar), SIB_IN | SIB_CENTER );
+/*
+ // Einfuege- / Uberschreibmodus
+ rStatusBar.InsertItem( SID_ATTR_INSERT, TEXT_WIDTH( "EINFG" ),
+ SIB_IN | SIB_CENTER );
+
+ // Selektionsmodus
+ rStatusBar.InsertItem( SID_STATUS_SELMODE, TEXT_WIDTH( "ERG" ),
+ SIB_IN | SIB_CENTER );
+*/
+ // Dokument geaendert
+ rStatusBar.InsertItem( SID_DOC_MODIFIED, SvxModifyControl::GetDefItemWidth(rStatusBar) );
+
+ // signatures
+ rStatusBar.InsertItem( SID_SIGNATURE, XmlSecStatusBarControl::GetDefItemWidth( rStatusBar ), SIB_USERDRAW );
+ rStatusBar.SetHelpId(SID_SIGNATURE, SID_SIGNATURE);
+
+
+
+ // Seite
+ rStatusBar.InsertItem( SID_STATUS_PAGE, TEXT_WIDTH( String().Fill( 24, 'X' ) ),
+ SIB_IN | SIB_LEFT );
+
+ // Praesentationslayout
+ rStatusBar.InsertItem( SID_STATUS_LAYOUT, TEXT_WIDTH( String().Fill( 10, 'X' ) ),
+ SIB_IN | SIB_LEFT | SIB_AUTOSIZE );
+}
+
+
+
+/*************************************************************************
+|*
+|* get notifications
+|*
+\************************************************************************/
+
+void SdModule::Notify( SfxBroadcaster&, const SfxHint& rHint )
+{
+ if( rHint.ISA( SfxSimpleHint ) &&
+ ( (SfxSimpleHint&) rHint ).GetId() == SFX_HINT_DEINITIALIZING )
+ {
+ delete pImpressOptions, pImpressOptions = NULL;
+ delete pDrawOptions, pDrawOptions = NULL;
+ }
+}
+
+/*************************************************************************
+|*
+|* Optionen zurueckgeben
+|*
+\************************************************************************/
+
+SdOptions* SdModule::GetSdOptions(DocumentType eDocType)
+{
+ SdOptions* pOptions = NULL;
+
+ if (eDocType == DOCUMENT_TYPE_DRAW)
+ {
+ if (!pDrawOptions)
+ pDrawOptions = new SdOptions( SDCFG_DRAW );
+
+ pOptions = pDrawOptions;
+ }
+ else if (eDocType == DOCUMENT_TYPE_IMPRESS)
+ {
+ if (!pImpressOptions)
+ pImpressOptions = new SdOptions( SDCFG_IMPRESS );
+
+ pOptions = pImpressOptions;
+ }
+ if( pOptions )
+ {
+ UINT16 nMetric = pOptions->GetMetric();
+
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() );
+ SdDrawDocument* pDoc = NULL;
+ if (pDocSh)
+ pDoc = pDocSh->GetDoc();
+
+ if( nMetric != 0xffff && pDoc && eDocType == pDoc->GetDocumentType() )
+ PutItem( SfxUInt16Item( SID_ATTR_METRIC, nMetric ) );
+ }
+
+ return(pOptions);
+}
+
+/*************************************************************************
+|*
+|* Optionen-Stream fuer interne Options oeffnen und zurueckgeben;
+|* falls der Stream zum Lesen geoeffnet wird, aber noch nicht
+|* angelegt wurde, wird ein 'leeres' RefObject zurueckgegeben
+|*
+\************************************************************************/
+
+SvStorageStreamRef SdModule::GetOptionStream( const String& rOptionName,
+ SdOptionStreamMode eMode )
+{
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() );
+ SvStorageStreamRef xStm;
+
+ if( pDocSh )
+ {
+ DocumentType eType = pDocSh->GetDoc()->GetDocumentType();
+ String aStmName;
+
+ if( !xOptionStorage.Is() )
+ {
+ INetURLObject aURL( SvtPathOptions().GetUserConfigPath() );
+
+ aURL.Append( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "drawing.cfg" ) ) );
+
+ SvStream* pStm = ::utl::UcbStreamHelper::CreateStream( aURL.GetMainURL( INetURLObject::NO_DECODE ), STREAM_READWRITE );
+
+ if( pStm )
+ xOptionStorage = new SvStorage( pStm, TRUE );
+ }
+
+ if( DOCUMENT_TYPE_DRAW == eType )
+ aStmName.AssignAscii( RTL_CONSTASCII_STRINGPARAM( "Draw_" ) );
+ else
+ aStmName.AssignAscii( RTL_CONSTASCII_STRINGPARAM( "Impress_" ) );
+
+ aStmName += rOptionName;
+
+ if( SD_OPTION_STORE == eMode || xOptionStorage->IsContained( aStmName ) )
+ xStm = xOptionStorage->OpenSotStream( aStmName );
+ }
+
+ return xStm;
+}
+
+/*************************************************************************
+|*
+\************************************************************************/
+
+SvNumberFormatter* SdModule::GetNumberFormatter()
+{
+ if( !pNumberFormatter )
+ pNumberFormatter = new SvNumberFormatter( ::comphelper::getProcessServiceFactory(), LANGUAGE_SYSTEM );
+
+ return pNumberFormatter;
+}
+
+/*************************************************************************
+|*
+\************************************************************************/
+
+OutputDevice* SdModule::GetVirtualRefDevice (void)
+{
+ return mpVirtualRefDevice;
+}
+
+/** This method is deprecated and only an alias to
+ <member>GetVirtualRefDevice()</member>. The given argument is ignored.
+*/
+OutputDevice* SdModule::GetRefDevice (::sd::DrawDocShell& )
+{
+ return GetVirtualRefDevice();
+}
+
+
+/*************************************************************************
+|*
+\************************************************************************/
+
+::com::sun::star::text::WritingMode SdModule::GetDefaultWritingMode() const
+{
+/*
+ const SvtLanguageOptions aLanguageOptions;
+
+ return( aLanguageOptions.IsCTLFontEnabled() ?
+ ::com::sun::star::text::WritingMode_RL_TB :
+ ::com::sun::star::text::WritingMode_LR_TB );
+*/
+ return ::com::sun::star::text::WritingMode_LR_TB;
+}
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
new file mode 100644
index 000000000000..4144b4afb774
--- /dev/null
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -0,0 +1,1100 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sdmod1.cxx,v $
+ * $Revision: 1.52 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+
+#include <svtools/lckbitem.hxx>
+#include <sfx2/frame.hxx>
+#include <sfx2/viewfrm.hxx>
+#include <svtools/moduleoptions.hxx>
+#include "framework/FrameworkHelper.hxx"
+
+#include <svx/dialogs.hrc>
+
+#include <svx/langitem.hxx>
+#include <svx/editdata.hxx>
+#include <vcl/msgbox.hxx>
+#include <svx/svxenum.hxx>
+#include <sfx2/dispatch.hxx>
+#include <sfx2/request.hxx>
+#include <sfx2/printer.hxx>
+#include <sfx2/docfile.hxx>
+#include <svx/paperinf.hxx>
+#include <svx/eeitem.hxx>
+#include <svtools/useroptions.hxx>
+
+#include "app.hrc"
+#include "glob.hrc"
+#include "strings.hrc"
+#include "res_bmp.hrc"
+
+#define _SD_DLL // fuer SD_MOD()
+#include "sdmod.hxx"
+#include "sddll.hxx"
+#include "pres.hxx"
+#include "optsitem.hxx"
+#include "ViewShell.hxx"
+#include "sdattr.hxx"
+#include "sdpage.hxx"
+#include "DrawDocShell.hxx"
+#include "drawdoc.hxx"
+#include "assclass.hxx"
+#include "sdenumdef.hxx"
+#include "sdresid.hxx"
+#include "OutlineViewShell.hxx"
+#include "ViewShellBase.hxx"
+#include "TaskPaneViewShell.hxx"
+#ifndef SD_FRAMW_VIEW_HXX
+#include "FrameView.hxx"
+#endif
+#include "FactoryIds.hxx"
+#include "sdabstdlg.hxx"
+#include <memory>
+#include <boost/shared_ptr.hpp>
+#include <boost/scoped_array.hpp>
+#include "slideshow.hxx"
+
+#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
+#include <com/sun/star/document/XDocumentProperties.hpp>
+
+
+using ::sd::framework::FrameworkHelper;
+
+namespace {
+
+class OutlineToImpressFinalizer
+{
+public:
+ OutlineToImpressFinalizer (
+ ::sd::ViewShellBase& rBase,
+ SdDrawDocument& rDocument,
+ SvLockBytes& rBytes);
+ virtual ~OutlineToImpressFinalizer (void) {};
+ void operator() (bool bEventSeen);
+private:
+ ::sd::ViewShellBase& mrBase;
+ SdDrawDocument& mrDocument;
+ ::boost::shared_ptr<SvMemoryStream> mpStream;
+};
+
+
+} //end of anonymous namespace
+
+
+/*************************************************************************
+|*
+|* Execute
+|*
+\************************************************************************/
+
+void SdModule::Execute(SfxRequest& rReq)
+{
+ const SfxItemSet* pSet = rReq.GetArgs();
+ ULONG nSlotId = rReq.GetSlot();
+
+ switch ( nSlotId )
+ {
+ case SID_NEWDOC:
+ {
+ SFX_APP()->ExecuteSlot(rReq, SFX_APP()->GetInterface());
+ }
+ break;
+
+ case SID_AUTOSPELL_CHECK:
+ {
+ // automatische Rechtschreibpruefung
+ const SfxPoolItem* pItem;
+ if( pSet && SFX_ITEM_SET == pSet->GetItemState(
+ SID_AUTOSPELL_CHECK, FALSE, &pItem ) )
+ {
+ BOOL bOnlineSpelling = ( (const SfxBoolItem*) pItem )->GetValue();
+ // am Dokument sichern:
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if( pDocSh )
+ {
+ SdDrawDocument* pDoc = pDocSh->GetDoc();
+ pDoc->SetOnlineSpell( bOnlineSpelling );
+ }
+ }
+ }
+ break;
+
+ case SID_ATTR_METRIC:
+ {
+ const SfxPoolItem* pItem;
+ if ( pSet && SFX_ITEM_SET == pSet->GetItemState( SID_ATTR_METRIC, TRUE, &pItem ) )
+ {
+ FieldUnit eUnit = (FieldUnit)((const SfxUInt16Item*)pItem)->GetValue();
+ switch( eUnit )
+ {
+ case FUNIT_MM: // nur die Einheiten, die auch im Dialog stehen
+ case FUNIT_CM:
+ case FUNIT_INCH:
+ case FUNIT_PICA:
+ case FUNIT_POINT:
+ {
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() );
+ if(pDocSh)
+ {
+ DocumentType eDocType = pDocSh->GetDoc()->GetDocumentType();
+
+ PutItem( *pItem );
+ SdOptions* pOptions = GetSdOptions( eDocType );
+ if(pOptions)
+ pOptions->SetMetric( (UINT16)eUnit );
+ rReq.Done();
+ }
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ }
+ break;
+
+ case SID_ATTR_LANGUAGE:
+ case SID_ATTR_CHAR_CJK_LANGUAGE:
+ case SID_ATTR_CHAR_CTL_LANGUAGE:
+ {
+ const SfxPoolItem* pItem;
+ if( pSet &&
+ (
+ SFX_ITEM_SET == pSet->GetItemState(SID_ATTR_LANGUAGE, FALSE, &pItem ) ||
+ SFX_ITEM_SET == pSet->GetItemState(SID_ATTR_CHAR_CJK_LANGUAGE, FALSE, &pItem ) ||
+ SFX_ITEM_SET == pSet->GetItemState(SID_ATTR_CHAR_CTL_LANGUAGE, FALSE, &pItem )
+ )
+ )
+ {
+ // am Dokument sichern:
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if ( pDocSh )
+ {
+ LanguageType eLanguage = ( (SvxLanguageItem*)pItem )->GetValue();
+ SdDrawDocument* pDoc = pDocSh->GetDoc();
+
+ if( nSlotId == SID_ATTR_CHAR_CJK_LANGUAGE )
+ pDoc->SetLanguage( eLanguage, EE_CHAR_LANGUAGE_CJK );
+ else if( nSlotId == SID_ATTR_CHAR_CTL_LANGUAGE )
+ pDoc->SetLanguage( eLanguage, EE_CHAR_LANGUAGE_CTL );
+ else
+ pDoc->SetLanguage( eLanguage, EE_CHAR_LANGUAGE );
+
+ if( pDoc->GetOnlineSpell() )
+ {
+ pDoc->StopOnlineSpelling();
+ pDoc->StartOnlineSpelling();
+ }
+ }
+ }
+ }
+ break;
+
+ case SID_SD_AUTOPILOT:
+ case SID_NEWSD:
+ {
+ SfxFrame* pFrame = ExecuteNewDocument( rReq );
+ // #94442# if a frame was created, set it as return value
+ if(pFrame)
+ rReq.SetReturnValue(SfxFrameItem(0, pFrame));
+ }
+
+ break;
+
+ case SID_OPENHYPERLINK:
+ case SID_OPENDOC:
+ {
+ BOOL bIntercept = FALSE;
+ ::sd::DrawDocShell* pDocShell = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if (pDocShell)
+ {
+ ::sd::ViewShell* pViewShell = pDocShell->GetViewShell();
+ if (pViewShell)
+ {
+ if( sd::SlideShow::IsRunning( pViewShell->GetViewShellBase() ) )
+ {
+ // Prevent documents from opening while the slide
+ // show is running, except when this request comes
+ // from a shape interaction.
+ if (rReq.GetArgs() == NULL)
+ {
+ bIntercept = TRUE;
+ }
+ }
+ }
+ }
+
+ if (!bIntercept)
+ {
+ SFX_APP()->ExecuteSlot(rReq, SFX_APP()->GetInterface());
+ }
+ else
+ {
+ ErrorBox(NULL, WB_OK, String(SdResId(STR_CANT_PERFORM_IN_LIVEMODE))).Execute();
+
+ SFX_REQUEST_ARG( rReq, pLinkItem, SfxLinkItem, SID_DONELINK, FALSE );
+ if( pLinkItem )
+ pLinkItem->GetValue().Call( 0 );
+ }
+ }
+ break;
+
+ case SID_OUTLINE_TO_IMPRESS:
+ OutlineToImpress (rReq);
+ break;
+
+ default:
+ break;
+ }
+}
+
+
+
+
+void SdModule::OutlineToImpress (SfxRequest& rRequest)
+{
+ const SfxItemSet* pSet = rRequest.GetArgs();
+
+ if (pSet)
+ {
+ SvLockBytes* pBytes = ((SfxLockBytesItem&) pSet->Get(SID_OUTLINE_TO_IMPRESS)).GetValue();
+
+ if (pBytes)
+ {
+ SfxObjectShellLock xDocShell;
+ ::sd::DrawDocShell* pDocSh;
+ xDocShell = pDocSh = new ::sd::DrawDocShell(
+ SFX_CREATE_MODE_STANDARD, FALSE);
+ if(pDocSh)
+ {
+ pDocSh->DoInitNew(NULL);
+ SdDrawDocument* pDoc = pDocSh->GetDoc();
+ if(pDoc)
+ {
+ pDoc->CreateFirstPages();
+ pDoc->StopWorkStartupDelay();
+ }
+
+ SFX_REQUEST_ARG( rRequest, pFrmItem, SfxFrameItem, SID_DOCFRAME, FALSE);
+ if ( pFrmItem )
+ {
+ SfxFrame* pFrame = pFrmItem->GetFrame();
+ pFrame->InsertDocument( pDocSh );
+ }
+ else
+ SfxViewFrame::CreateViewFrame(*pDocSh, ::sd::OUTLINE_FACTORY_ID);
+
+ ::sd::ViewShell* pViewSh = pDocSh->GetViewShell();
+
+ if (pViewSh)
+ {
+ // AutoLayouts muessen fertig sein
+ pDoc->StopWorkStartupDelay();
+
+ SfxViewFrame* pViewFrame = pViewSh->GetViewFrame();
+
+ // When the view frame has not been just created we have
+ // to switch synchronously to the outline view.
+ // (Otherwise the request will be ignored anyway.)
+ ::sd::ViewShellBase* pBase
+ = dynamic_cast< ::sd::ViewShellBase*>(pViewFrame->GetViewShell());
+ if (pBase != NULL)
+ {
+ ::boost::shared_ptr<FrameworkHelper> pHelper (
+ FrameworkHelper::Instance(*pBase));
+ pHelper->RequestView(
+ FrameworkHelper::msOutlineViewURL,
+ FrameworkHelper::msCenterPaneURL);
+
+ pHelper->RunOnResourceActivation(
+ FrameworkHelper::CreateResourceId(
+ FrameworkHelper::msOutlineViewURL,
+ FrameworkHelper::msCenterPaneURL),
+ OutlineToImpressFinalizer(*pBase, *pDoc, *pBytes));
+ }
+ }
+ }
+ }
+ }
+
+ rRequest.IsDone();
+}
+
+
+
+
+/*************************************************************************
+|*
+|* GetState
+|*
+\************************************************************************/
+
+static bool bOnce = false;
+
+void SdModule::GetState(SfxItemSet& rItemSet)
+{
+ // Autopilot waehrend der Praesentation disablen
+ if (rItemSet.GetItemState(SID_SD_AUTOPILOT) != SFX_ITEM_UNKNOWN)
+ {
+ if (!SvtModuleOptions().IsImpress())
+ {
+ rItemSet.DisableItem(SID_SD_AUTOPILOT);
+ }
+ else
+ {
+ ::sd::DrawDocShell* pDocShell = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if (pDocShell)
+ {
+ ::sd::ViewShell* pViewShell = pDocShell->GetViewShell();
+ if (pViewShell)
+ {
+ if( sd::SlideShow::IsRunning( pViewShell->GetViewShellBase() ) )
+ {
+ rItemSet.DisableItem(SID_SD_AUTOPILOT);
+ }
+ }
+ }
+ }
+ }
+
+ if( SFX_ITEM_AVAILABLE == rItemSet.GetItemState( SID_ATTR_METRIC ) )
+ {
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() );
+ if(pDocSh)
+ {
+ DocumentType eDocType = pDocSh->GetDoc()->GetDocumentType();
+
+ SdOptions* pOptions = GetSdOptions(eDocType);
+ rItemSet.Put( SfxUInt16Item( SID_ATTR_METRIC, pOptions->GetMetric() ) );
+ }
+ }
+
+ // der Status von SID_OPENDOC wird von der Basisklasse bestimmt
+ if (rItemSet.GetItemState(SID_OPENDOC) != SFX_ITEM_UNKNOWN)
+ {
+ const SfxPoolItem* pItem = SFX_APP()->GetSlotState(SID_OPENDOC, SFX_APP()->GetInterface());
+ if (pItem)
+ rItemSet.Put(*pItem);
+ }
+
+ // der Status von SID_OPENHYPERLINK wird von der Basisklasse bestimmt
+ if (rItemSet.GetItemState(SID_OPENHYPERLINK) != SFX_ITEM_UNKNOWN)
+ {
+ const SfxPoolItem* pItem = SFX_APP()->GetSlotState(SID_OPENHYPERLINK, SFX_APP()->GetInterface());
+ if (pItem)
+ rItemSet.Put(*pItem);
+ }
+
+ if( SFX_ITEM_AVAILABLE == rItemSet.GetItemState( SID_AUTOSPELL_CHECK ) )
+ {
+ ::sd::DrawDocShell* pDocSh =
+ PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if( pDocSh )
+ {
+ SdDrawDocument* pDoc = pDocSh->GetDoc();
+ rItemSet.Put( SfxBoolItem( SID_AUTOSPELL_CHECK, pDoc->GetOnlineSpell() ) );
+ }
+ }
+
+ if( SFX_ITEM_AVAILABLE == rItemSet.GetItemState( SID_ATTR_LANGUAGE ) )
+ {
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if( pDocSh )
+ rItemSet.Put( SvxLanguageItem( pDocSh->GetDoc()->GetLanguage( EE_CHAR_LANGUAGE ), SID_ATTR_LANGUAGE ) );
+ }
+
+ if( SFX_ITEM_AVAILABLE == rItemSet.GetItemState( SID_ATTR_CHAR_CJK_LANGUAGE ) )
+ {
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if( pDocSh )
+ rItemSet.Put( SvxLanguageItem( pDocSh->GetDoc()->GetLanguage( EE_CHAR_LANGUAGE_CJK ), SID_ATTR_CHAR_CJK_LANGUAGE ) );
+ }
+
+ if( SFX_ITEM_AVAILABLE == rItemSet.GetItemState( SID_ATTR_CHAR_CTL_LANGUAGE ) )
+ {
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if( pDocSh )
+ rItemSet.Put( SvxLanguageItem( pDocSh->GetDoc()->GetLanguage( EE_CHAR_LANGUAGE_CTL ), SID_ATTR_CHAR_CTL_LANGUAGE ) );
+ }
+
+ if ( !bOnce )
+ {
+ ::sd::DrawDocShell* pDocShell = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if( pDocShell ) // Impress or Draw ?
+ {
+ ::sd::ViewShell* pViewShell = pDocShell->GetViewShell();
+
+ if( pViewShell && (pDocShell->GetDocumentType() == DOCUMENT_TYPE_IMPRESS) )
+ {
+ // add our event listener as soon as possible
+ Application::AddEventListener( LINK( this, SdModule, EventListenerHdl ) );
+ bOnce = true;
+ }
+ }
+ }
+}
+
+IMPL_LINK( SdModule, EventListenerHdl, VclSimpleEvent*, pEvent )
+{
+ if( pEvent && (pEvent->GetId() == VCLEVENT_WINDOW_COMMAND) && static_cast<VclWindowEvent*>(pEvent)->GetData() )
+ {
+ const CommandEvent& rEvent = *(const CommandEvent*)static_cast<VclWindowEvent*>(pEvent)->GetData();
+
+ if( rEvent.GetCommand() == COMMAND_MEDIA )
+ {
+ switch( rEvent.GetMediaCommand() )
+ {
+ case MEDIA_COMMAND_PLAY:
+ {
+ ::sd::DrawDocShell* pDocShell = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current());
+ if( pDocShell ) // Impress or Draw ?
+ {
+ ::sd::ViewShell* pViewShell = pDocShell->GetViewShell();
+
+ // #i97925# start the presentation if and only if an Impress document is focused
+ if( pViewShell && (pDocShell->GetDocumentType() == DOCUMENT_TYPE_IMPRESS) )
+ pViewShell->GetViewFrame()->GetDispatcher()->Execute( SID_PRESENTATION );
+ }
+ }
+ break;
+
+ default:
+ break;
+ }
+ }
+ }
+ return 0;
+}
+
+
+void SdModule::AddSummaryPage (SfxViewFrame* pViewFrame, SdDrawDocument* pDocument)
+{
+ if( !pViewFrame || !pViewFrame->GetDispatcher() || !pDocument )
+ return;
+
+ pViewFrame->GetDispatcher()->Execute(SID_SUMMARY_PAGE,
+ SFX_CALLMODE_SYNCHRON | SFX_CALLMODE_RECORD);
+
+ OSL_ASSERT (pDocument!=NULL);
+
+ sal_Int32 nPageCount = pDocument->GetSdPageCount (PK_STANDARD);
+
+ // We need at least two pages: the summary page and one to use as
+ // template to take the transition parameters from.
+ if (nPageCount >= 2)
+ {
+ // Get a page from which to retrieve the transition parameters.
+ SdPage* pTemplatePage = pDocument->GetSdPage (0, PK_STANDARD);
+ OSL_ASSERT (pTemplatePage!=NULL);
+
+ // The summary page, if it exists, is the last page.
+ SdPage* pSummaryPage = pDocument->GetSdPage (
+ (USHORT)nPageCount-1, PK_STANDARD);
+ OSL_ASSERT (pSummaryPage!=NULL);
+
+ // Take the change mode of the template page as indication of the
+ // document's kiosk mode.
+ pSummaryPage->setTransitionDuration(pTemplatePage->getTransitionDuration());
+ pSummaryPage->SetPresChange(pTemplatePage->GetPresChange());
+ pSummaryPage->SetTime(pTemplatePage->GetTime());
+ pSummaryPage->SetSound(pTemplatePage->IsSoundOn());
+ pSummaryPage->SetSoundFile(pTemplatePage->GetSoundFile());
+ pSummaryPage->setTransitionType(pTemplatePage->getTransitionType());
+ pSummaryPage->setTransitionSubtype(pTemplatePage->getTransitionSubtype());
+ pSummaryPage->setTransitionDirection(pTemplatePage->getTransitionDirection());
+ pSummaryPage->setTransitionFadeColor(pTemplatePage->getTransitionFadeColor());
+ pSummaryPage->setTransitionDuration(pTemplatePage->getTransitionDuration());
+ }
+}
+
+SfxFrame* SdModule::CreateFromTemplate( const String& rTemplatePath, SfxFrame* pTargetFrame )
+{
+ SfxFrame* pFrame = 0;
+
+ SfxObjectShellLock xDocShell;
+
+ SfxItemSet* pSet = new SfxAllItemSet( SFX_APP()->GetPool() );
+ pSet->Put( SfxBoolItem( SID_TEMPLATE, TRUE ) );
+
+ ULONG lErr = SFX_APP()->LoadTemplate( xDocShell, rTemplatePath, TRUE, pSet );
+
+ SfxObjectShell* pDocShell = xDocShell;
+
+ if( lErr )
+ {
+ ErrorHandler::HandleError(lErr);
+ }
+ else if( pDocShell )
+ {
+ if ( pTargetFrame )
+ {
+ pFrame = pTargetFrame;
+ pFrame->InsertDocument( pDocShell );
+ }
+ else
+ {
+ SfxViewFrame* pViewFrame = SfxViewFrame::CreateViewFrame( *pDocShell );
+ if( pViewFrame )
+ pFrame = pViewFrame->GetFrame();
+ }
+ }
+
+ return pFrame;
+
+}
+
+SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
+{
+ SfxFrame* pFrame = 0;
+ if ( SvtModuleOptions().IsImpress() )
+ {
+ SfxFrame* pTargetFrame = 0;
+ SFX_REQUEST_ARG( rReq, pFrmItem, SfxFrameItem, SID_DOCFRAME, FALSE);
+ if ( pFrmItem )
+ pTargetFrame = pFrmItem->GetFrame();
+
+ bool bMakeLayoutVisible = false;
+ SfxViewFrame* pViewFrame = NULL;
+
+ SdOptions* pOpt = GetSdOptions(DOCUMENT_TYPE_IMPRESS);
+ bool bStartWithTemplate = pOpt->IsStartWithTemplate();
+
+ bool bNewDocDirect = rReq.GetSlot() == SID_NEWSD;
+ if( bNewDocDirect && !bStartWithTemplate )
+ {
+ //we start without wizard
+
+ //check wether we should load a template document
+ const ::rtl::OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.presentation.PresentationDocument" ) );
+ String aStandardTemplate( SfxObjectFactory::GetStandardTemplate( aServiceName ) );
+
+ if( aStandardTemplate.Len() > 0 )
+ {
+ //load a template document
+ pFrame = CreateFromTemplate( aStandardTemplate, pTargetFrame );
+ }
+ else
+ {
+ //create an empty document
+ pFrame = CreateEmptyDocument( DOCUMENT_TYPE_IMPRESS, pTargetFrame );
+ bMakeLayoutVisible = true;
+ }
+ }
+ else
+ {
+ SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
+ std::auto_ptr< AbstractAssistentDlg > pPilotDlg( pFact ? pFact->CreateAssistentDlg( NULL, !bNewDocDirect ) : 0 );
+
+ // Open the Pilot
+ if( pPilotDlg.get() && pPilotDlg->Execute()==RET_OK )
+ {
+ const String aDocPath( pPilotDlg->GetDocPath());
+ const sal_Bool bIsDocEmpty = pPilotDlg->IsDocEmpty();
+
+ // So that you can open the document without AutoLayout-Dialog
+ pOpt->SetStartWithTemplate(FALSE);
+ if(bNewDocDirect && !pPilotDlg->GetStartWithFlag())
+ bStartWithTemplate = FALSE;
+
+ if( pPilotDlg->GetStartType() == ST_OPEN )
+ {
+ String aFileToOpen = aDocPath;
+
+ DBG_ASSERT( aFileToOpen.Len()!=0, "The autopilot should have asked for a file itself already!" );
+ if(aFileToOpen.Len() != 0)
+ {
+ const String aPasswrd( pPilotDlg->GetPassword() );
+
+ SfxStringItem aFile( SID_FILE_NAME, aFileToOpen );
+ SfxStringItem aReferer( SID_REFERER, UniString() );
+ SfxStringItem aPassword( SID_PASSWORD, aPasswrd );
+
+ if ( pTargetFrame )
+ {
+ SfxAllItemSet aSet( *rReq.GetArgs()->GetPool() );
+ aSet.Put( aFile );
+ aSet.Put( aReferer );
+ // Put the password into the request
+ // only if it is not empty.
+ if (aPasswrd.Len() > 0)
+ aSet.Put( aPassword );
+
+ const SfxPoolItem* pRet = pTargetFrame->LoadDocumentSynchron( aSet );
+ const SfxViewFrameItem* pFrameItem = PTR_CAST( SfxViewFrameItem, pRet );
+ if ( pFrameItem && pFrameItem->GetFrame() )
+ pFrame = pFrameItem->GetFrame()->GetFrame();
+ }
+ else
+ {
+ SfxRequest aRequest (SID_OPENDOC, SFX_CALLMODE_SYNCHRON, SFX_APP()->GetPool());
+ aRequest.AppendItem (aFile);
+ aRequest.AppendItem (aReferer);
+ // Put the password into the request
+ // only if it is not empty.
+ if (aPasswrd.Len() > 0)
+ aRequest.AppendItem (aPassword);
+ aRequest.AppendItem (SfxStringItem (
+ SID_TARGETNAME,
+ String (RTL_CONSTASCII_USTRINGPARAM ("_default"))));
+ try
+ {
+ const SfxPoolItem* pRet = SFX_APP()->ExecuteSlot (aRequest);
+ const SfxViewFrameItem* pFrameItem = PTR_CAST( SfxViewFrameItem, pRet );
+ if ( pFrameItem )
+ pFrame = pFrameItem->GetFrame()->GetFrame();
+ }
+ catch (::com::sun::star::uno::Exception e)
+ {
+ DBG_ASSERT (FALSE, "caught IllegalArgumentException while loading document from Impress autopilot");
+ }
+ }
+ }
+
+ pOpt->SetStartWithTemplate(bStartWithTemplate);
+ if(bNewDocDirect && !bStartWithTemplate)
+ {
+ std::auto_ptr< SfxItemSet > pRet( CreateItemSet( SID_SD_EDITOPTIONS ) );
+ if(pRet.get())
+ ApplyItemSet( SID_SD_EDITOPTIONS, *pRet.get() );
+
+ }
+ }
+ else
+ {
+ SfxObjectShellLock xShell( pPilotDlg->GetDocument() );
+ SfxObjectShell* pShell = xShell;
+ if( pShell )
+ {
+ if ( pTargetFrame )
+ {
+ pFrame = pTargetFrame;
+ pFrame->InsertDocument( pShell );
+ pViewFrame = pFrame->GetCurrentViewFrame();
+ }
+ else
+ {
+ pViewFrame = SfxViewFrame::CreateViewFrame( *pShell );
+ if( pViewFrame )
+ pFrame = pViewFrame->GetFrame();
+ }
+
+ DBG_ASSERT( pViewFrame, "no ViewFrame!!" );
+
+ if(bNewDocDirect && !bStartWithTemplate)
+ {
+ std::auto_ptr< SfxItemSet > pRet( CreateItemSet( SID_SD_EDITOPTIONS ) );
+ if(pRet.get())
+ ApplyItemSet( SID_SD_EDITOPTIONS, *pRet.get() );
+ }
+
+ if( pShell && pViewFrame )
+ {
+ ::sd::DrawDocShell* pDocShell =
+ PTR_CAST(::sd::DrawDocShell,pShell);
+ SdDrawDocument* pDoc = pDocShell->GetDoc();
+
+ ::sd::ViewShellBase* pBase =
+ ::sd::ViewShellBase::GetViewShellBase (
+ pViewFrame);
+ OSL_ASSERT (pBase!=NULL);
+ ::boost::shared_ptr<sd::ViewShell> pViewSh = pBase->GetMainViewShell();
+ SdOptions* pOptions = GetSdOptions(pDoc->GetDocumentType());
+
+ if (pOptions && pViewSh.get())
+ {
+ // The AutoPilot-document shall be open without its own options
+ ::sd::FrameView* pFrameView = pViewSh->GetFrameView();
+ pFrameView->Update(pOptions);
+ pViewSh->ReadFrameViewData(pFrameView);
+ }
+
+ ChangeMedium( pDocShell, pViewFrame, pPilotDlg->GetOutputMedium() );
+
+ if(pPilotDlg->IsSummary())
+ AddSummaryPage(pViewFrame, pDoc);
+
+ // empty document
+ if((aDocPath.Len() == 0) && pViewFrame && pViewFrame->GetDispatcher())
+ {
+ SfxBoolItem aIsChangedItem(SID_MODIFYPAGE, !bIsDocEmpty);
+ SfxUInt32Item eAutoLayout( ID_VAL_WHATLAYOUT, (UINT32) AUTOLAYOUT_TITLE );
+ pViewFrame->GetDispatcher()->Execute(SID_MODIFYPAGE,
+ SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aIsChangedItem, &eAutoLayout, 0L);
+ }
+
+ // clear document info
+ using namespace ::com::sun::star;
+ uno::Reference<document::XDocumentPropertiesSupplier> xDPS(
+ pDocShell->GetModel(), uno::UNO_QUERY_THROW);
+ uno::Reference<document::XDocumentProperties>
+ xDocProps(xDPS->getDocumentProperties());
+ DBG_ASSERT(xDocProps.is(), "no DocumentProperties");
+ xDocProps->resetUserData(
+ SvtUserOptions().GetFullName() );
+ xDocProps->setTemplateName(xDocProps->getTitle());
+ xDocProps->setTemplateURL(pPilotDlg->GetDocPath());
+
+ pDoc->SetChanged(!bIsDocEmpty);
+
+ pDocShell->SetUseUserData(TRUE);
+
+ // #94652# clear UNDO stack after autopilot
+ pDocShell->ClearUndoBuffer();
+
+ bMakeLayoutVisible = true;
+ }
+ }
+ pOpt->SetStartWithTemplate(bStartWithTemplate);
+ }
+ }
+ }
+
+ if (bMakeLayoutVisible && pViewFrame!=NULL)
+ {
+ // Make the layout menu visible in the tool pane.
+ ::sd::ViewShellBase* pBase = ::sd::ViewShellBase::GetViewShellBase(pViewFrame);
+ if (pBase != NULL)
+ {
+ FrameworkHelper::Instance(*pBase)->RequestTaskPanel(
+ FrameworkHelper::msLayoutTaskPanelURL);
+ }
+ }
+ }
+
+ return pFrame;
+}
+
+SfxFrame* SdModule::CreateEmptyDocument( DocumentType eDocType, SfxFrame* pTargetFrame )
+{
+ SfxFrame* pFrame = 0;
+
+ SfxObjectShellLock xDocShell;
+ ::sd::DrawDocShell* pNewDocSh;
+ xDocShell = pNewDocSh = new ::sd::DrawDocShell(SFX_CREATE_MODE_STANDARD,FALSE,eDocType);
+ if(pNewDocSh)
+ {
+ pNewDocSh->DoInitNew(NULL);
+ SdDrawDocument* pDoc = pNewDocSh->GetDoc();
+ if(pDoc)
+ {
+ pDoc->CreateFirstPages();
+ pDoc->StopWorkStartupDelay();
+ }
+
+ if ( pTargetFrame )
+ {
+ pFrame = pTargetFrame;
+ pFrame->InsertDocument( pNewDocSh );
+ }
+ else
+ {
+ SfxViewFrame* pViewFrame = SfxViewFrame::CreateViewFrame( *pNewDocSh );
+ if( pViewFrame )
+ pFrame = pViewFrame->GetFrame();
+ }
+ }
+
+ return pFrame;
+}
+
+void SdModule::ChangeMedium( ::sd::DrawDocShell* pDocShell, SfxViewFrame* pViewFrame, const sal_Int32 eMedium )
+{
+ if( !pDocShell )
+ return;
+
+ SdDrawDocument* pDoc = pDocShell->GetDoc();
+ if( !pDoc )
+ return;
+
+ // settings for the Outputmedium
+ Size aNewSize;
+ UINT32 nLeft = 0;
+ UINT32 nRight = 0;
+ UINT32 nLower = 0;
+ UINT32 nUpper = 0;
+ switch(eMedium)
+ {
+ case OUTPUT_PAGE:
+ case OUTPUT_OVERHEAD:
+ {
+ SfxPrinter* pPrinter = pDocShell->GetPrinter(TRUE);
+
+ if( pPrinter && pPrinter->IsValid())
+ {
+ // Der Printer gibt leider kein exaktes
+ // Format (z.B. A4) zurueck
+ Size aSize(pPrinter->GetPaperSize());
+ Paper ePaper = SvxPaperInfo::GetSvxPaper( aSize, MAP_100TH_MM, TRUE);
+
+ if (ePaper != PAPER_USER)
+ {
+ // Korrekte Size holen
+ aSize = SvxPaperInfo::GetPaperSize(ePaper, MAP_100TH_MM);
+ }
+
+ if (aSize.Height() > aSize.Width())
+ {
+ // Stets Querformat
+ aNewSize.Width() = aSize.Height();
+ aNewSize.Height() = aSize.Width();
+ }
+ else
+ {
+ aNewSize = aSize;
+ }
+ }
+ else
+ {
+ aNewSize=Size(29700, 21000);
+ }
+
+ if (eMedium == OUTPUT_PAGE)
+ {
+ nLeft =1000;
+ nRight=1000;
+ nUpper=1000;
+ nLower=1000;
+ }
+ else
+ {
+ nLeft =0;
+ nRight=0;
+ nUpper=0;
+ nLower=0;
+ }
+ }
+ break;
+
+ case OUTPUT_SLIDE:
+ {
+ aNewSize = Size(27000, 18000);
+ nLeft =0;
+ nRight=0;
+ nUpper=0;
+ nLower=0;
+ }
+ break;
+
+ case OUTPUT_PRESENTATION:
+ {
+ aNewSize = Size(28000, 21000);
+ nLeft =0;
+ nRight=0;
+ nUpper=0;
+ nLower=0;
+ }
+ break;
+ }
+
+ BOOL bScaleAll = TRUE;
+ USHORT nPageCnt = pDoc->GetMasterSdPageCount(PK_STANDARD);
+ USHORT i;
+ SdPage* pPage;
+
+ // master pages first
+ for (i = 0; i < nPageCnt; i++)
+ {
+ pPage = pDoc->GetMasterSdPage(i, PK_STANDARD);
+
+ if (pPage)
+ {
+ if(eMedium != OUTPUT_ORIGINAL)
+ {
+ Rectangle aBorderRect(nLeft, nUpper, nRight, nLower);
+ pPage->ScaleObjects(aNewSize, aBorderRect, bScaleAll);
+ pPage->SetSize(aNewSize);
+ pPage->SetBorder(nLeft, nUpper, nRight, nLower);
+ }
+ SdPage* pNotesPage = pDoc->GetMasterSdPage(i, PK_NOTES);
+ DBG_ASSERT( pNotesPage, "Wrong page ordering!" );
+ if( pNotesPage ) pNotesPage->CreateTitleAndLayout();
+ pPage->CreateTitleAndLayout();
+ }
+ }
+
+ nPageCnt = pDoc->GetSdPageCount(PK_STANDARD);
+
+ // then slides
+ for (i = 0; i < nPageCnt; i++)
+ {
+ pPage = pDoc->GetSdPage(i, PK_STANDARD);
+
+ if (pPage)
+ {
+ if(eMedium != OUTPUT_ORIGINAL)
+ {
+ Rectangle aBorderRect(nLeft, nUpper, nRight, nLower);
+ pPage->ScaleObjects(aNewSize, aBorderRect, bScaleAll);
+ pPage->SetSize(aNewSize);
+ pPage->SetBorder(nLeft, nUpper, nRight, nLower);
+ }
+ SdPage* pNotesPage = pDoc->GetSdPage(i, PK_NOTES);
+ DBG_ASSERT( pNotesPage, "Wrong page ordering!" );
+ if( pNotesPage ) pNotesPage->SetAutoLayout( pNotesPage->GetAutoLayout() );
+ pPage->SetAutoLayout( pPage->GetAutoLayout() );
+ }
+ }
+
+ SdPage* pHandoutPage = pDoc->GetSdPage(0, PK_HANDOUT);
+ pHandoutPage->CreateTitleAndLayout(TRUE);
+
+ if( (eMedium != OUTPUT_ORIGINAL) && pViewFrame && pViewFrame->GetDispatcher())
+ {
+ pViewFrame->GetDispatcher()->Execute(SID_SIZE_PAGE, SFX_CALLMODE_SYNCHRON | SFX_CALLMODE_RECORD);
+ }
+}
+
+
+
+
+//===== OutlineToImpressFinalize ==============================================
+
+namespace {
+
+OutlineToImpressFinalizer::OutlineToImpressFinalizer (
+ ::sd::ViewShellBase& rBase,
+ SdDrawDocument& rDocument,
+ SvLockBytes& rBytes)
+ : mrBase(rBase),
+ mrDocument(rDocument),
+ mpStream()
+{
+ // The given stream has a lifetime shorter than this new
+ // OutlineToImpressFinalizer object. Therefore a local copy of the
+ // stream is created.
+ const SvStream* pStream (rBytes.GetStream());
+ if (pStream != NULL)
+ {
+ // Create a memory stream and prepare to fill it with the content of
+ // the original stream.
+ mpStream.reset(new SvMemoryStream());
+ static const sal_Size nBufferSize = 4096;
+ ::boost::scoped_array<sal_Int8> pBuffer (new sal_Int8[nBufferSize]);
+
+ sal_Size nReadPosition (0);
+ bool bLoop (true);
+ while (bLoop)
+ {
+ // Read the next part of the original stream.
+ sal_Size nReadByteCount (0);
+ const ErrCode nErrorCode (
+ rBytes.ReadAt(
+ nReadPosition,
+ reinterpret_cast<void*>(pBuffer.get()),
+ nBufferSize,
+ &nReadByteCount));
+
+ // Check the error code and stop copying the stream data when an
+ // error has occured.
+ switch (nErrorCode)
+ {
+ case ERRCODE_NONE:
+ if (nReadByteCount == 0)
+ bLoop = false;
+ break;
+ case ERRCODE_IO_PENDING:
+ break;
+
+ default:
+ bLoop = false;
+ nReadByteCount = 0;
+ break;
+ }
+
+ // Append the read bytes to the end of the memory stream.
+ if (nReadByteCount > 0)
+ {
+ mpStream->Write(reinterpret_cast<void*>(pBuffer.get()), nReadByteCount);
+ nReadPosition += nReadByteCount;
+ }
+ }
+
+ // Rewind the memory stream so that in the operator() method its
+ // content is properly read.
+ mpStream->Seek(STREAM_SEEK_TO_BEGIN);
+ }
+}
+
+
+
+
+void OutlineToImpressFinalizer::operator() (bool)
+{
+ // Fetch the new outline view shell.
+ ::sd::OutlineViewShell* pOutlineShell
+ = dynamic_cast<sd::OutlineViewShell*>(FrameworkHelper::Instance(mrBase)->GetViewShell(FrameworkHelper::msCenterPaneURL).get());
+
+ if (pOutlineShell != NULL && mpStream.get() != NULL)
+ {
+ sd::OutlineView* pView = static_cast<sd::OutlineView*>(pOutlineShell->GetView());
+ // mba: the stream can't contain any relative URLs, because we don't
+ // have any information about a BaseURL!
+ if ( pOutlineShell->Read(*mpStream, String(), EE_FORMAT_RTF) == 0 )
+ {
+/*
+ sd::OutlineViewPageChangesGuard aGuard( pView );
+
+ // Remove the first empty pages
+ USHORT nPageCount = mrDocument.GetPageCount();
+ mrDocument.RemovePage( --nPageCount ); // notes page
+ mrDocument.RemovePage( --nPageCount ); // standard page
+*/
+ }
+
+ // Call UpdatePreview once for every slide to resync the
+ // document with the outliner of the OutlineViewShell.
+ USHORT nPageCount (mrDocument.GetSdPageCount(PK_STANDARD));
+ for (USHORT nIndex=0; nIndex<nPageCount; nIndex++)
+ {
+ SdPage* pPage = mrDocument.GetSdPage(nIndex, PK_STANDARD);
+ // Make the page the actual page so that the
+ // following UpdatePreview() call accesses the
+ // correct paragraphs.
+ pView->SetActualPage(pPage);
+ pOutlineShell->UpdatePreview(pPage, true);
+ }
+ // Select the first slide.
+ SdPage* pPage = mrDocument.GetSdPage(0, PK_STANDARD);
+ pView->SetActualPage(pPage);
+ pOutlineShell->UpdatePreview(pPage, true);
+ }
+
+
+ // #97231# Undo-Stack needs to be cleared, else the user may remove the
+ // only drawpage and this is a state we cannot handle ATM.
+ ::sd::DrawDocShell* pDocShell = mrDocument.GetDocSh();
+ if( pDocShell )
+ pDocShell->ClearUndoBuffer();
+}
+
+
+} // end of anonymous namespace
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx
new file mode 100644
index 000000000000..bbf80e942602
--- /dev/null
+++ b/sd/source/ui/app/sdmod2.cxx
@@ -0,0 +1,837 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sdmod2.cxx,v $
+ * $Revision: 1.55 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+#include <svx/eeitem.hxx>
+#include <svx/flditem.hxx>
+#include <sfx2/printer.hxx>
+#include <svtools/inethist.hxx>
+#include <svtools/poolitem.hxx>
+#include <svtools/flagitem.hxx>
+#include <svtools/useroptions.hxx>
+#include <sfx2/bindings.hxx>
+#include <vcl/msgbox.hxx>
+#include <sfx2/viewfrm.hxx>
+#include <sfx2/docfile.hxx>
+#include <sfx2/request.hxx>
+
+#include <svx/svdfield.hxx>
+#include <svx/editstat.hxx>
+#include <svx/editeng.hxx>
+
+#include <svx/dialogs.hrc>
+#include <svx/svdotext.hxx>
+#include <svx/svdpagv.hxx>
+#include <svx/svdopage.hxx>
+
+#include <sfx2/sfxdlg.hxx>
+
+
+#include <svx/sdr/contact/displayinfo.hxx>
+
+#define _SD_DLL // fuer SD_MOD()
+#include "sdmod.hxx"
+#include "sddll.hxx"
+#include "app.hrc"
+#include "glob.hrc"
+#include "strings.hrc"
+#include "res_bmp.hrc"
+#include "ViewShell.hxx"
+#ifndef SD_FRAMW_VIEW_HXX
+#include "FrameView.hxx"
+#endif
+#include "sdattr.hxx"
+#include "tpoption.hrc"
+#include "optsitem.hxx"
+#include "DrawDocShell.hxx"
+#include "drawdoc.hxx"
+#include "Outliner.hxx"
+#include "sdresid.hxx"
+#include "pres.hxx"
+#include "DrawViewShell.hxx"
+#include "OutlineViewShell.hxx"
+#include "OutlineView.hxx"
+#include "ViewShellBase.hxx"
+#include "sdpage.hxx"
+#include "sdxfer.hxx"
+#include "sdabstdlg.hxx"
+#include "tpoption.hrc"
+#include "prntopts.hrc"
+#include <svtools/intitem.hxx>
+
+/** retrieves the page that is currently painted. This will only be the master page
+ if the current drawn view only shows the master page*/
+static SdPage* GetCurrentPage( sd::ViewShell* pViewSh, EditFieldInfo* pInfo, bool& bMasterView )
+{
+ if( !pInfo )
+ return 0;
+
+ bMasterView = false;
+ SdPage* pPage = dynamic_cast< SdPage* >( pInfo->GetSdrPage() );
+ SdrOutliner* pOutliner = dynamic_cast< SdrOutliner* >( pInfo->GetOutliner() );
+
+ // special case, someone already set the current page on the EditFieldInfo
+ // This is used from the svx::UnoGraphicsExporter f.e.
+ if( pPage )
+ {
+ bMasterView = false;
+ return pPage;
+ }
+
+ // first try to check if we are inside the outline view
+ sd::OutlineView* pSdView = NULL;
+ if( pViewSh && pViewSh->ISA(sd::OutlineViewShell))
+ pSdView = static_cast<sd::OutlineView*> (static_cast<sd::OutlineViewShell*>(pViewSh)->GetView());
+
+ if (pSdView != NULL && (pOutliner == pSdView->GetOutliner()))
+ {
+ // outline mode
+ int nPgNum = 0;
+ Outliner* pOutl = pSdView->GetOutliner();
+ long nPos = pInfo->GetPara();
+ ULONG nParaPos = 0;
+
+ for( Paragraph* pPara = pOutl->GetParagraph( 0 ); pPara && nPos >= 0; pPara = pOutl->GetParagraph( ++nParaPos ), nPos-- )
+ {
+ if( pOutl->HasParaFlag( pPara, PARAFLAG_ISPAGE ) )
+ nPgNum++;
+ }
+
+ pPage = pViewSh->GetDoc()->GetSdPage( (USHORT)nPgNum, PK_STANDARD );
+ }
+ else
+ {
+ // draw mode, slide mode and preview. Get the processed page from the outliner
+ if(pOutliner)
+ {
+ pPage = dynamic_cast< SdPage* >(const_cast< SdrPage* >(pOutliner->getVisualizedPage()));
+ }
+
+ // The path using GetPaintingPageView() and GetCurrentPaintingDisplayInfo()
+ // is no longer needed. I debugged and checked all usages of PageNumber decompositions
+ // which all use the new possibility of setting the visualized page at the SdrOutliner.
+
+ // if all else failed, geht the current page from the object that is
+ // currently formated from the document
+ if(!pPage)
+ {
+ const SdrTextObj* pTextObj = (pViewSh && pViewSh->GetDoc()) ? pViewSh->GetDoc()->GetFormattingTextObj() : NULL;
+
+ if( pTextObj )
+ {
+ pPage = dynamic_cast< SdPage* >( pTextObj->GetPage() );
+ }
+ }
+
+ if(pPage)
+ {
+ bMasterView = pPage && pPage->IsMasterPage();
+ }
+ }
+
+ return pPage;
+}
+
+/*************************************************************************
+|*
+|* Link fuer CalcFieldValue des Outliners
+|*
+\************************************************************************/
+
+IMPL_LINK(SdModule, CalcFieldValueHdl, EditFieldInfo*, pInfo)
+{
+ if (pInfo)
+ {
+ const SvxFieldData* pField = pInfo->GetField().GetField();
+ ::sd::DrawDocShell* pDocShell = NULL;
+ SdDrawDocument* pDoc = 0;
+
+ if( pInfo->GetOutliner() )
+ {
+ const SdrTextObj* pTextObj = static_cast< SdrOutliner* >( pInfo->GetOutliner() )->GetTextObj();
+
+ if( pTextObj )
+ pDoc = dynamic_cast< SdDrawDocument* >( pTextObj->GetModel() );
+
+ if( pDoc )
+ pDocShell = pDoc->GetDocSh();
+ }
+
+ if( !pDocShell )
+ pDocShell = dynamic_cast< ::sd::DrawDocShell *>( SfxObjectShell::Current() );
+
+ const SvxDateField* pDateField = 0;
+ const SvxExtTimeField* pExtTimeField = 0;
+ const SvxExtFileField* pExtFileField = 0;
+ const SvxAuthorField* pAuthorField = 0;
+ const SvxURLField* pURLField = 0;
+
+ if( (pDateField = dynamic_cast< const SvxDateField* >(pField)) != 0 )
+ {
+ LanguageType eLang = pInfo->GetOutliner()->GetLanguage( pInfo->GetPara(), pInfo->GetPos() );
+ pInfo->SetRepresentation( pDateField->GetFormatted( *GetNumberFormatter(), eLang ) );
+ }
+ else if( (pExtTimeField = dynamic_cast< const SvxExtTimeField *>(pField)) != 0 )
+ {
+ LanguageType eLang = pInfo->GetOutliner()->GetLanguage( pInfo->GetPara(), pInfo->GetPos() );
+ pInfo->SetRepresentation( pExtTimeField->GetFormatted( *GetNumberFormatter(), eLang ) );
+ }
+ else if( (pExtFileField = dynamic_cast< const SvxExtFileField * >(pField)) != 0 )
+ {
+ if( pDocShell && (pExtFileField->GetType() != SVXFILETYPE_FIX) )
+ {
+ String aName;
+ if( pDocShell->HasName() )
+ aName = pDocShell->GetMedium()->GetName();
+ else
+ aName = pDocShell->GetName();
+
+ const_cast< SvxExtFileField* >(pExtFileField)->SetFile( aName );
+ }
+ pInfo->SetRepresentation( pExtFileField->GetFormatted() );
+
+ }
+ else if( (pAuthorField = dynamic_cast< const SvxAuthorField* >( pField )) != 0 )
+ {
+ if( pAuthorField->GetType() != SVXAUTHORTYPE_FIX )
+ {
+ SvtUserOptions aUserOptions;
+ SvxAuthorField aAuthorField(
+ aUserOptions.GetFirstName(), aUserOptions.GetLastName(), aUserOptions.GetID(),
+ pAuthorField->GetType(), pAuthorField->GetFormat() );
+
+ *(const_cast< SvxAuthorField* >(pAuthorField)) = aAuthorField;
+ }
+ pInfo->SetRepresentation( pAuthorField->GetFormatted() );
+
+ }
+ else if( dynamic_cast< const SvxPageField* >(pField) )
+ {
+ String aRepresentation;
+ aRepresentation += sal_Unicode( ' ' );
+
+ ::sd::ViewShell* pViewSh = pDocShell ? pDocShell->GetViewShell() : NULL;
+ if(pViewSh == NULL)
+ {
+ ::sd::ViewShellBase* pBase = PTR_CAST(::sd::ViewShellBase, SfxViewShell::Current());
+ if(pBase)
+ pViewSh = pBase->GetMainViewShell().get();
+ }
+ if( !pDoc && pViewSh )
+ pDoc = pViewSh->GetDoc();
+
+ bool bMasterView;
+ SdPage* pPage = GetCurrentPage( pViewSh, pInfo, bMasterView );
+
+ if( pPage && pDoc && !bMasterView )
+ {
+ int nPgNum;
+
+ if( (pPage->GetPageKind() == PK_HANDOUT) && pViewSh )
+ {
+ nPgNum = pViewSh->GetPrintedHandoutPageNum();
+ }
+ else
+ {
+ nPgNum = (pPage->GetPageNum() - 1) / 2 + 1;
+ }
+ aRepresentation = pDoc->CreatePageNumValue((USHORT)nPgNum);
+ }
+ else
+ {
+ static String aNumberText( SdResId( STR_FIELD_PLACEHOLDER_NUMBER ) );
+ aRepresentation = aNumberText;
+ }
+
+ pInfo->SetRepresentation( aRepresentation );
+ }
+ else if( dynamic_cast< const SvxPagesField* >(pField) )
+ {
+ String aRepresentation;
+ aRepresentation += sal_Unicode( ' ' );
+
+ ::sd::ViewShell* pViewSh = pDocShell ? pDocShell->GetViewShell() : NULL;
+ if(pViewSh == NULL)
+ {
+ ::sd::ViewShellBase* pBase = PTR_CAST(::sd::ViewShellBase, SfxViewShell::Current());
+ if(pBase)
+ pViewSh = pBase->GetMainViewShell().get();
+ }
+ if( !pDoc && pViewSh )
+ pDoc = pViewSh->GetDoc();
+
+ bool bMasterView;
+ SdPage* pPage = GetCurrentPage( pViewSh, pInfo, bMasterView );
+
+ USHORT nPageCount = 0;
+
+ if( !bMasterView )
+ {
+ if( pPage && (pPage->GetPageKind() == PK_HANDOUT) && pViewSh )
+ {
+ nPageCount = pViewSh->GetPrintedHandoutPageCount();
+ }
+ else if( pDoc )
+ {
+ nPageCount = (USHORT)pDoc->GetSdPageCount(PK_STANDARD);
+ }
+ }
+
+ if( nPageCount > 0 )
+ {
+ aRepresentation = pDoc->CreatePageNumValue(nPageCount);
+ }
+ else
+ {
+ static String aNumberText( SdResId( STR_FIELD_PLACEHOLDER_COUNT ) );
+ aRepresentation = aNumberText;
+ }
+
+ pInfo->SetRepresentation( aRepresentation );
+ }
+ else if( (pURLField = dynamic_cast< const SvxURLField* >(pField)) != 0 )
+ {
+ switch ( pURLField->GetFormat() )
+ {
+ case SVXURLFORMAT_APPDEFAULT: //!!! einstellbar an App???
+ case SVXURLFORMAT_REPR:
+ pInfo->SetRepresentation( pURLField->GetRepresentation() );
+ break;
+
+ case SVXURLFORMAT_URL:
+ pInfo->SetRepresentation( pURLField->GetURL() );
+ break;
+ }
+
+ String aURL = pURLField->GetURL();
+
+ svtools::ColorConfig aConfig;
+ svtools::ColorConfigEntry eEntry =
+ INetURLHistory::GetOrCreate()->QueryUrl( aURL ) ? svtools::LINKSVISITED : svtools::LINKS;
+ pInfo->SetTxtColor( aConfig.GetColorValue(eEntry).nColor );
+ }
+ else if ( dynamic_cast< const SdrMeasureField* >(pField))
+ {
+ pInfo->ClearFldColor();
+ }
+ else
+ {
+ String aRepresentation;
+
+ bool bHeaderField = dynamic_cast< const SvxHeaderField* >( pField ) != 0;
+ bool bFooterField = !bHeaderField && (dynamic_cast< const SvxFooterField* >( pField ) != 0 );
+ bool bDateTimeField = !bHeaderField && !bFooterField && (dynamic_cast< const SvxDateTimeField* >( pField ) != 0);
+
+ if( bHeaderField || bFooterField || bDateTimeField )
+ {
+ sd::ViewShell* pViewSh = pDocShell ? pDocShell->GetViewShell() : NULL;
+ bool bMasterView = false;
+ SdPage* pPage = GetCurrentPage( pViewSh, pInfo, bMasterView );
+
+ if( (pPage == NULL) || bMasterView )
+ {
+ if( bHeaderField )
+ {
+ static String aHeaderStr( SdResId( STR_FIELD_PLACEHOLDER_HEADER ) );
+ aRepresentation = aHeaderStr;
+ }
+ else if (bFooterField )
+ {
+ static String aFooterStr( SdResId( STR_FIELD_PLACEHOLDER_FOOTER ) );
+ aRepresentation = aFooterStr;
+ }
+ else if (bDateTimeField )
+ {
+ static String aDateTimeStr( SdResId( STR_FIELD_PLACEHOLDER_DATETIME ) );
+ aRepresentation = aDateTimeStr;
+ }
+ }
+ else
+ {
+ const sd::HeaderFooterSettings &rSettings = pPage->getHeaderFooterSettings();
+
+ if( bHeaderField )
+ {
+ aRepresentation = rSettings.maHeaderText;
+ }
+ else if( bFooterField )
+ {
+ aRepresentation = rSettings.maFooterText;
+ }
+ else if( bDateTimeField )
+ {
+ if( rSettings.mbDateTimeIsFixed )
+ {
+ aRepresentation = rSettings.maDateTimeText;
+ }
+ else
+ {
+ Date aDate;
+ Time aTime;
+ LanguageType eLang = pInfo->GetOutliner()->GetLanguage( pInfo->GetPara(), pInfo->GetPos() );
+ aRepresentation = SvxDateTimeField::GetFormatted( aDate, aTime, (SvxDateFormat)rSettings.meDateTimeFormat, *GetNumberFormatter(), eLang );
+ }
+ }
+ }
+ }
+ else
+ {
+ DBG_ERROR("sd::SdModule::CalcFieldValueHdl(), unknown field type!");
+ }
+
+ if( aRepresentation.Len() == 0 ) // TODO: Edit engine doesn't handle empty fields?
+ aRepresentation += sal_Unicode( ' ' );
+ pInfo->SetRepresentation( aRepresentation );
+ }
+ }
+
+ return(0);
+}
+
+
+
+/*************************************************************************
+|*
+|* virt. Methoden fuer Optionendialog
+|*
+\************************************************************************/
+SfxItemSet* SdModule::CreateItemSet( USHORT nSlot )
+{
+ ::sd::FrameView* pFrameView = NULL;
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() );
+ SdDrawDocument* pDoc = NULL;
+
+ // Hier wird der DocType vom Optionsdialog gesetzt (nicht Dokument!)
+ DocumentType eDocType = DOCUMENT_TYPE_IMPRESS;
+ if( nSlot == SID_SD_GRAPHIC_OPTIONS )
+ eDocType = DOCUMENT_TYPE_DRAW;
+
+ ::sd::ViewShell* pViewShell = NULL;
+
+ if (pDocSh)
+ {
+ pDoc = pDocSh->GetDoc();
+
+ // Wenn der Optionsdialog zum Dokumenttyp identisch ist,
+ // kann auch die FrameView mit uebergeben werden:
+ if( pDoc && eDocType == pDoc->GetDocumentType() )
+ pFrameView = pDocSh->GetFrameView();
+
+ pViewShell = pDocSh->GetViewShell();
+ if (pViewShell != NULL)
+ pViewShell->WriteFrameViewData();
+ }
+
+ SdOptions* pOptions = GetSdOptions(eDocType);
+
+ // Pool hat standardmaessig MapUnit Twips (Baeh!)
+ SfxItemPool& rPool = GetPool();
+ rPool.SetDefaultMetric( SFX_MAPUNIT_100TH_MM );
+
+ SfxItemSet* pRet = new SfxItemSet( rPool,
+ SID_ATTR_METRIC, SID_ATTR_METRIC,
+ SID_ATTR_DEFTABSTOP, SID_ATTR_DEFTABSTOP,
+
+ ATTR_OPTIONS_LAYOUT, ATTR_OPTIONS_LAYOUT,
+ ATTR_OPTIONS_CONTENTS, ATTR_OPTIONS_CONTENTS,
+ ATTR_OPTIONS_MISC, ATTR_OPTIONS_MISC,
+
+ ATTR_OPTIONS_SNAP, ATTR_OPTIONS_SNAP,
+
+ ATTR_OPTIONS_SCALE_START, ATTR_OPTIONS_SCALE_END,
+
+ ATTR_OPTIONS_PRINT, ATTR_OPTIONS_PRINT,
+
+ SID_ATTR_GRID_OPTIONS, SID_ATTR_GRID_OPTIONS,
+ 0 );
+
+ // TP_OPTIONS_LAYOUT:
+ pRet->Put( SdOptionsLayoutItem( ATTR_OPTIONS_LAYOUT, pOptions, pFrameView ) );
+
+ UINT16 nDefTab = 0;
+ if( pFrameView)
+ nDefTab = pDoc->GetDefaultTabulator();
+ else
+ nDefTab = pOptions->GetDefTab();
+ pRet->Put( SfxUInt16Item( SID_ATTR_DEFTABSTOP, nDefTab ) );
+
+ FieldUnit nMetric = (FieldUnit)0xffff;
+ if( pFrameView)
+ nMetric = pDoc->GetUIUnit();
+ else
+ nMetric = (FieldUnit)pOptions->GetMetric();
+
+ if( nMetric == (FieldUnit)0xffff )
+ nMetric = GetModuleFieldUnit();
+
+ pRet->Put( SfxUInt16Item( SID_ATTR_METRIC, (UINT16)nMetric ) );
+
+ // TP_OPTIONS_CONTENTS:
+ pRet->Put( SdOptionsContentsItem( ATTR_OPTIONS_CONTENTS, pOptions, pFrameView ) );
+
+ // TP_OPTIONS_MISC:
+ SdOptionsMiscItem aSdOptionsMiscItem( ATTR_OPTIONS_MISC, pOptions, pFrameView );
+ if ( pFrameView )
+ {
+ aSdOptionsMiscItem.GetOptionsMisc().SetSummationOfParagraphs( pDoc->IsSummationOfParagraphs() );
+ aSdOptionsMiscItem.GetOptionsMisc().SetPrinterIndependentLayout (
+ (USHORT)pDoc->GetPrinterIndependentLayout());
+ }
+ pRet->Put( aSdOptionsMiscItem );
+
+
+ // TP_OPTIONS_SNAP:
+ pRet->Put( SdOptionsSnapItem( ATTR_OPTIONS_SNAP, pOptions, pFrameView ) );
+
+ // TP_SCALE:
+ UINT32 nW = 10L;
+ UINT32 nH = 10L;
+ INT32 nX;
+ INT32 nY;
+ if( pDocSh )
+ {
+ SdrPage* pPage = (SdrPage*) pDoc->GetSdPage(0, PK_STANDARD);
+ Size aSize(pPage->GetSize());
+ nW = aSize.Width();
+ nH = aSize.Height();
+ }
+
+ if(pFrameView)
+ {
+ const Fraction& rFraction = pDoc->GetUIScale();
+ nX=rFraction.GetNumerator();
+ nY=rFraction.GetDenominator();
+ }
+ else
+ {
+ // Optionen aus Configdatei holen
+ pOptions->GetScale( nX, nY );
+ }
+
+ pRet->Put( SfxInt32Item( ATTR_OPTIONS_SCALE_X, nX ) );
+ pRet->Put( SfxInt32Item( ATTR_OPTIONS_SCALE_Y, nY ) );
+ pRet->Put( SfxUInt32Item( ATTR_OPTIONS_SCALE_WIDTH, nW ) );
+ pRet->Put( SfxUInt32Item( ATTR_OPTIONS_SCALE_HEIGHT, nH ) );
+
+
+ // TP_OPTIONS_PRINT:
+ pRet->Put( SdOptionsPrintItem( ATTR_OPTIONS_PRINT, pOptions ) );
+
+ // RID_SVXPAGE_GRID:
+ pRet->Put( SdOptionsGridItem( SID_ATTR_GRID_OPTIONS, pOptions ) );
+
+ return pRet;
+}
+void SdModule::ApplyItemSet( USHORT nSlot, const SfxItemSet& rSet )
+{
+ const SfxPoolItem* pItem = NULL;
+ BOOL bNewDefTab = FALSE;
+ BOOL bNewPrintOptions = FALSE;
+ BOOL bMiscOptions = FALSE;
+
+ ::sd::FrameView* pFrameView = NULL;
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() );
+ SdDrawDocument* pDoc = NULL;
+ // Hier wird der DocType vom Optionsdialog gesetzt (nicht Dokument!)
+ DocumentType eDocType = DOCUMENT_TYPE_IMPRESS;
+ if( nSlot == SID_SD_GRAPHIC_OPTIONS )
+ eDocType = DOCUMENT_TYPE_DRAW;
+
+ ::sd::ViewShell* pViewShell = NULL;
+
+ if (pDocSh)
+ {
+ pDoc = pDocSh->GetDoc();
+
+ // Wenn der Optionsdialog zum Dokumenttyp identisch ist,
+ // kann auch die FrameView mit uebergeben werden:
+ if( pDoc && eDocType == pDoc->GetDocumentType() )
+ pFrameView = pDocSh->GetFrameView();
+
+ pViewShell = pDocSh->GetViewShell();
+ if (pViewShell != NULL)
+ pViewShell->WriteFrameViewData();
+ }
+ SdOptions* pOptions = GetSdOptions(eDocType);
+ // Raster
+ if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_GRID_OPTIONS ,
+ FALSE, (const SfxPoolItem**) &pItem ))
+ {
+ const SdOptionsGridItem* pGridItem = (SdOptionsGridItem*) pItem;
+ pGridItem->SetOptions( pOptions );
+ }
+
+ // Layout
+ const SdOptionsLayoutItem* pLayoutItem = NULL;
+ if( SFX_ITEM_SET == rSet.GetItemState( ATTR_OPTIONS_LAYOUT,
+ FALSE, (const SfxPoolItem**) &pLayoutItem ))
+ {
+ pLayoutItem->SetOptions( pOptions );
+ }
+
+ // Metric
+ if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_METRIC, FALSE, &pItem ) )
+ {
+ if( pDoc && eDocType == pDoc->GetDocumentType() )
+ PutItem( *pItem );
+ pOptions->SetMetric( ( (SfxUInt16Item*) pItem )->GetValue() );
+ }
+ UINT16 nDefTab = pOptions->GetDefTab();
+ // Default-Tabulator
+ if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_DEFTABSTOP, FALSE, &pItem ) )
+ {
+ nDefTab = ( (SfxUInt16Item*) pItem )->GetValue();
+ pOptions->SetDefTab( nDefTab );
+
+ bNewDefTab = TRUE;
+ }
+
+ // Massstab
+ if( SFX_ITEM_SET == rSet.GetItemState( ATTR_OPTIONS_SCALE_X, FALSE, &pItem ) )
+ {
+ INT32 nX = ( (SfxInt32Item*) pItem )->GetValue();
+ if( SFX_ITEM_SET == rSet.GetItemState( ATTR_OPTIONS_SCALE_Y, FALSE, &pItem ) )
+ {
+ INT32 nY = ( (SfxInt32Item*) pItem )->GetValue();
+ pOptions->SetScale( nX, nY );
+
+ // #92067# Apply to document only if doc type match
+ if( pDocSh && pDoc && eDocType == pDoc->GetDocumentType() )
+ {
+ pDoc->SetUIScale( Fraction( nX, nY ) );
+ if( pViewShell )
+ pViewShell->SetRuler( pViewShell->HasRuler() );
+ }
+ }
+ }
+
+ // Contents (Inhalte)
+ const SdOptionsContentsItem* pContentsItem = NULL;
+ if( SFX_ITEM_SET == rSet.GetItemState( ATTR_OPTIONS_CONTENTS,
+ FALSE, (const SfxPoolItem**) &pContentsItem ))
+ {
+ pContentsItem->SetOptions( pOptions );
+ }
+
+ // Misc (Sonstiges)
+ const SdOptionsMiscItem* pMiscItem = NULL;
+ if( SFX_ITEM_SET == rSet.GetItemState( ATTR_OPTIONS_MISC,
+ FALSE, (const SfxPoolItem**) &pMiscItem ))
+ {
+ pMiscItem->SetOptions( pOptions );
+ bMiscOptions = TRUE;
+ }
+
+ // Fangen/Einrasten
+ const SdOptionsSnapItem* pSnapItem = NULL;
+ if( SFX_ITEM_SET == rSet.GetItemState( ATTR_OPTIONS_SNAP,
+ FALSE, (const SfxPoolItem**) &pSnapItem ))
+ {
+ pSnapItem->SetOptions( pOptions );
+ }
+
+ SfxItemSet aPrintSet( GetPool(),
+ SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
+ SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
+ ATTR_OPTIONS_PRINT, ATTR_OPTIONS_PRINT,
+ 0 );
+
+ // Drucken
+ const SdOptionsPrintItem* pPrintItem = NULL;
+ if( SFX_ITEM_SET == rSet.GetItemState( ATTR_OPTIONS_PRINT,
+ FALSE, (const SfxPoolItem**) &pPrintItem ))
+ {
+ pPrintItem->SetOptions( pOptions );
+
+ // PrintOptionsSet setzen
+ SdOptionsPrintItem aPrintItem( ATTR_OPTIONS_PRINT, pOptions );
+ SfxFlagItem aFlagItem( SID_PRINTER_CHANGESTODOC );
+ USHORT nFlags = 0;
+
+ nFlags = (aPrintItem.GetOptionsPrint().IsWarningSize() ? SFX_PRINTER_CHG_SIZE : 0) |
+ (aPrintItem.GetOptionsPrint().IsWarningOrientation() ? SFX_PRINTER_CHG_ORIENTATION : 0);
+ aFlagItem.SetValue( nFlags );
+
+ aPrintSet.Put( aPrintItem );
+ aPrintSet.Put( SfxBoolItem( SID_PRINTER_NOTFOUND_WARN, aPrintItem.GetOptionsPrint().IsWarningPrinter() ) );
+ aPrintSet.Put( aFlagItem );
+
+ bNewPrintOptions = TRUE;
+ }
+
+ // Nur, wenn auch der Dokumenttyp uebereinstimmt...
+ if( pDocSh && pDoc && eDocType == pDoc->GetDocumentType() )
+ {
+ if( bNewPrintOptions )
+ {
+ pDocSh->GetPrinter(TRUE)->SetOptions( aPrintSet );
+ }
+
+ // Am Model den DefTab setzen
+ if( bNewDefTab )
+ {
+ SdDrawDocument* pDocument = pDocSh->GetDoc();
+ pDocument->SetDefaultTabulator( nDefTab );
+
+ ::sd::Outliner* pOutl = pDocument->GetOutliner( FALSE );
+ if( pOutl )
+ pOutl->SetDefTab( nDefTab );
+
+ ::sd::Outliner* pInternalOutl = pDocument->GetInternalOutliner( FALSE );
+ if( pInternalOutl )
+ pInternalOutl->SetDefTab( nDefTab );
+ }
+ if ( bMiscOptions )
+ {
+ pDoc->SetSummationOfParagraphs( pMiscItem->GetOptionsMisc().IsSummationOfParagraphs() );
+ sal_uInt32 nSum = pMiscItem->GetOptionsMisc().IsSummationOfParagraphs() ? EE_CNTRL_ULSPACESUMMATION : 0;
+ sal_uInt32 nCntrl;
+
+ SdDrawDocument* pDocument = pDocSh->GetDoc();
+ SdrOutliner& rOutl = pDocument->GetDrawOutliner( FALSE );
+ nCntrl = rOutl.GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION;
+ rOutl.SetControlWord( nCntrl | nSum );
+ ::sd::Outliner* pOutl = pDocument->GetOutliner( FALSE );
+ if( pOutl )
+ {
+ nCntrl = pOutl->GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION;
+ pOutl->SetControlWord( nCntrl | nSum );
+ }
+ pOutl = pDocument->GetInternalOutliner( FALSE );
+ if( pOutl )
+ {
+ nCntrl = pOutl->GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION;
+ pOutl->SetControlWord( nCntrl | nSum );
+ }
+
+ // Set printer independent layout mode.
+ if( pDoc->GetPrinterIndependentLayout() != pMiscItem->GetOptionsMisc().GetPrinterIndependentLayout() )
+ pDoc->SetPrinterIndependentLayout (pMiscItem->GetOptionsMisc().GetPrinterIndependentLayout());
+ }
+ }
+
+ pOptions->StoreConfig();
+
+ // Nur, wenn auch der Dokumenttyp uebereinstimmt...
+ if( pDocSh && pDoc && eDocType == pDoc->GetDocumentType() )
+ {
+ FieldUnit eUIUnit = (FieldUnit) pOptions->GetMetric();
+ pDoc->SetUIUnit(eUIUnit);
+
+ if (pViewShell)
+ {
+ // #74495# make sure no one is in text edit mode, cause there
+ // are some pointers remembered else (!)
+ if(pViewShell->GetView())
+ pViewShell->GetView()->SdrEndTextEdit();
+
+ ::sd::FrameView* pFrame = pViewShell->GetFrameView();
+ pFrame->Update(pOptions);
+ pViewShell->ReadFrameViewData(pFrame);
+ pViewShell->SetUIUnit(eUIUnit);
+ pViewShell->SetDefTabHRuler( nDefTab );
+ }
+ }
+
+ if( pViewShell && pViewShell->GetViewFrame() )
+ pViewShell->GetViewFrame()->GetBindings().InvalidateAll( TRUE );
+}
+
+SfxTabPage* SdModule::CreateTabPage( USHORT nId, Window* pParent, const SfxItemSet& rSet )
+{
+ SfxTabPage* pRet = NULL;
+ SfxAllItemSet aSet(*(rSet.GetPool()));
+ SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
+ if( pFact )
+ {
+ switch(nId)
+ {
+ case SID_SD_TP_CONTENTS:
+ case SID_SI_TP_CONTENTS:
+ { ::CreateTabPage fnCreatePage = pFact->GetSdOptionsContentsTabPageCreatorFunc();
+ if( fnCreatePage )
+ pRet = (*fnCreatePage)( pParent, rSet );
+ }
+ break;
+ case SID_SD_TP_SNAP:
+ case SID_SI_TP_SNAP:
+ { ::CreateTabPage fnCreatePage = pFact->GetSdOptionsSnapTabPageCreatorFunc();
+ if( fnCreatePage )
+ pRet = (*fnCreatePage)( pParent, rSet );
+ }
+ break;
+ case SID_SD_TP_PRINT:
+ case SID_SI_TP_PRINT:
+ {
+ ::CreateTabPage fnCreatePage = pFact->GetSdPrintOptionsTabPageCreatorFunc();
+ if( fnCreatePage )
+ {
+ pRet = (*fnCreatePage)( pParent, rSet );
+ if(SID_SD_TP_PRINT == nId)
+ aSet.Put (SfxUInt32Item(SID_SDMODE_FLAG,SD_DRAW_MODE));
+ pRet->PageCreated(aSet);
+ }
+ }
+ break;
+ case SID_SI_TP_MISC:
+ case SID_SD_TP_MISC:
+ {
+ ::CreateTabPage fnCreatePage = pFact->GetSdOptionsMiscTabPageCreatorFunc();
+ if( fnCreatePage )
+ {
+ pRet = (*fnCreatePage)( pParent, rSet );
+ if(SID_SD_TP_MISC == nId)
+ aSet.Put (SfxUInt32Item(SID_SDMODE_FLAG,SD_DRAW_MODE));
+ else
+ aSet.Put (SfxUInt32Item(SID_SDMODE_FLAG,SD_IMPRESS_MODE));
+ pRet->PageCreated(aSet);
+ }
+ }
+ break;
+ case RID_OFA_TP_INTERNATIONAL_SD:
+ case RID_OFA_TP_INTERNATIONAL_IMPR:
+ case RID_SVXPAGE_TEXTANIMATION :
+ {
+ SfxAbstractDialogFactory* pSfxFact = SfxAbstractDialogFactory::Create();
+ if ( pSfxFact )
+ {
+ ::CreateTabPage fnCreatePage = pSfxFact->GetTabPageCreatorFunc( nId );
+ if ( fnCreatePage )
+ pRet = (*fnCreatePage)( pParent, rSet );
+ }
+ }
+ break;
+ }
+ DBG_ASSERT( pRet, "SdModule::CreateTabPage(): no valid ID for TabPage!" );
+ }
+
+ return pRet;
+}
diff --git a/sd/source/ui/app/sdpopup.cxx b/sd/source/ui/app/sdpopup.cxx
new file mode 100644
index 000000000000..211e3a1fd02e
--- /dev/null
+++ b/sd/source/ui/app/sdpopup.cxx
@@ -0,0 +1,341 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sdpopup.cxx,v $
+ * $Revision: 1.12 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+
+
+#include <svx/eeitem.hxx>
+
+#include <svx/editeng.hxx>
+#include <svx/flditem.hxx>
+#include <svtools/zforlist.hxx>
+#include <sfx2/objsh.hxx>
+#include <sfx2/docfile.hxx>
+#include <svtools/useroptions.hxx>
+
+#include "strings.hrc"
+#include "sdpopup.hxx"
+#include "sdresid.hxx"
+#include "sdmod.hxx"
+#include "drawdoc.hxx"
+#include "DrawDocShell.hxx"
+
+/*************************************************************************
+|*
+|* PopupMenu zum Bearbeiten von Feldbefehlen
+|*
+\************************************************************************/
+
+SdFieldPopup::SdFieldPopup( const SvxFieldData* pInField, LanguageType eLanguage ) :
+ PopupMenu (),
+ pField ( pInField )
+{
+ Fill( eLanguage );
+}
+
+/*************************************************************************
+|*
+|* Dtor
+|*
+\************************************************************************/
+
+SdFieldPopup::~SdFieldPopup()
+{
+}
+
+/*************************************************************************
+|*
+|* Fill
+|*
+\************************************************************************/
+
+void SdFieldPopup::Fill( LanguageType eLanguage )
+{
+ USHORT nID = 1;
+ USHORT nStyle = MIB_RADIOCHECK | MIB_AUTOCHECK;
+ InsertItem( nID++, String( SdResId( STR_FIX ) ), nStyle );
+ InsertItem( nID++, String( SdResId( STR_VAR ) ), nStyle );
+ InsertSeparator();
+
+ if( pField->ISA( SvxDateField ) )
+ {
+ const SvxDateField* pDateField = (const SvxDateField*) pField;
+ SvxDateField aDateField( *pDateField );
+
+ if( pDateField->GetType() == SVXDATETYPE_FIX )
+ CheckItem( 1 );
+ else
+ CheckItem( 2 );
+
+ //SVXDATEFORMAT_APPDEFAULT, // Wird nicht benutzt
+ //SVXDATEFORMAT_SYSTEM, // Wird nicht benutzt
+ InsertItem( nID++, String( SdResId( STR_STANDARD_SMALL ) ), nStyle );
+ InsertItem( nID++, String( SdResId( STR_STANDARD_BIG ) ), nStyle );
+
+ SvNumberFormatter* pNumberFormatter = SD_MOD()->GetNumberFormatter();
+ aDateField.SetFormat( SVXDATEFORMAT_A ); // 13.02.96
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+ aDateField.SetFormat( SVXDATEFORMAT_B ); // 13.02.1996
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+ aDateField.SetFormat( SVXDATEFORMAT_C ); // 13.Feb 1996
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+
+ aDateField.SetFormat( SVXDATEFORMAT_D ); // 13.Februar 1996
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+ aDateField.SetFormat( SVXDATEFORMAT_E ); // Die, 13.Februar 1996
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+ aDateField.SetFormat( SVXDATEFORMAT_F ); // Dienstag, 13.Februar 1996
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+
+ CheckItem( (USHORT) ( pDateField->GetFormat() ) + 1 ); // - 2 + 3 !
+ }
+ else if( pField->ISA( SvxExtTimeField ) )
+ {
+ const SvxExtTimeField* pTimeField = (const SvxExtTimeField*) pField;
+ SvxExtTimeField aTimeField( *pTimeField );
+
+ if( pTimeField->GetType() == SVXTIMETYPE_FIX )
+ CheckItem( 1 );
+ else
+ CheckItem( 2 );
+
+ //SVXTIMEFORMAT_APPDEFAULT, // Wird nicht benutzt
+ //SVXTIMEFORMAT_SYSTEM, // Wird nicht benutzt
+ InsertItem( nID++, String( SdResId( STR_STANDARD_NORMAL ) ), nStyle );
+
+ SvNumberFormatter* pNumberFormatter = SD_MOD()->GetNumberFormatter();
+ aTimeField.SetFormat( SVXTIMEFORMAT_24_HM ); // 13:49
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+ aTimeField.SetFormat( SVXTIMEFORMAT_24_HMS ); // 13:49:38
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+ aTimeField.SetFormat( SVXTIMEFORMAT_24_HMSH ); // 13:49:38.78
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+
+ aTimeField.SetFormat( SVXTIMEFORMAT_12_HM ); // 01:49
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+ aTimeField.SetFormat( SVXTIMEFORMAT_12_HMS ); // 01:49:38
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+ aTimeField.SetFormat( SVXTIMEFORMAT_12_HMSH ); // 01:49:38.78
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
+ //SVXTIMEFORMAT_AM_HM, // 01:49 PM
+ //SVXTIMEFORMAT_AM_HMS, // 01:49:38 PM
+ //SVXTIMEFORMAT_AM_HMSH // 01:49:38.78 PM
+
+ CheckItem( (USHORT) ( pTimeField->GetFormat() ) + 1 ); // - 2 + 3 !
+ }
+ else if( pField->ISA( SvxExtFileField ) )
+ {
+ const SvxExtFileField* pFileField = (const SvxExtFileField*) pField;
+ //SvxExtFileField aFileField( *pFileField );
+
+ if( pFileField->GetType() == SVXFILETYPE_FIX )
+ CheckItem( 1 );
+ else
+ CheckItem( 2 );
+
+ InsertItem( nID++, String( SdResId( STR_FILEFORMAT_NAME_EXT ) ), nStyle );
+ InsertItem( nID++, String( SdResId( STR_FILEFORMAT_FULLPATH ) ), nStyle );
+ InsertItem( nID++, String( SdResId( STR_FILEFORMAT_PATH ) ), nStyle );
+ InsertItem( nID++, String( SdResId( STR_FILEFORMAT_NAME ) ), nStyle );
+
+ CheckItem( (USHORT) ( pFileField->GetFormat() ) + 3 );
+ }
+ else if( pField->ISA( SvxAuthorField ) )
+ {
+ const SvxAuthorField* pAuthorField = (const SvxAuthorField*) pField;
+ SvxAuthorField aAuthorField( *pAuthorField );
+
+ if( pAuthorField->GetType() == SVXAUTHORTYPE_FIX )
+ CheckItem( 1 );
+ else
+ CheckItem( 2 );
+
+ for( USHORT i = 0; i < 4; i++ )
+ {
+ aAuthorField.SetFormat( (SvxAuthorFormat) i );
+ InsertItem( nID++, aAuthorField.GetFormatted(), nStyle );
+ }
+ CheckItem( (USHORT) ( pAuthorField->GetFormat() ) + 3 );
+ }
+}
+
+/*************************************************************************
+|*
+|* Gibt das neue Feld zurueck, gehoert dem Caller.
+|* Liefert NULL, wenn sich nichts geaendert hat.
+|*
+\************************************************************************/
+
+SvxFieldData* SdFieldPopup::GetField()
+{
+ SvxFieldData* pNewField = NULL;
+ USHORT nCount = GetItemCount();
+
+ if( pField->ISA( SvxDateField ) )
+ {
+ const SvxDateField* pDateField = (const SvxDateField*) pField;
+ SvxDateType eType;
+ SvxDateFormat eFormat;
+ USHORT i;
+
+ if( IsItemChecked( 1 ) )
+ eType = SVXDATETYPE_FIX;
+ else
+ eType = SVXDATETYPE_VAR;
+
+ for( i = 3; i <= nCount; i++ )
+ {
+ if( IsItemChecked( i ) )
+ break;
+ }
+ eFormat = (SvxDateFormat) ( i - 1 );
+
+ if( pDateField->GetFormat() != eFormat ||
+ pDateField->GetType() != eType )
+ {
+ pNewField = new SvxDateField( *pDateField );
+ ( (SvxDateField*) pNewField )->SetType( eType );
+ ( (SvxDateField*) pNewField )->SetFormat( eFormat );
+
+ if( (pDateField->GetType() == SVXDATETYPE_VAR) && (eType == SVXDATETYPE_FIX) )
+ {
+ Date aDate;
+ ( (SvxDateField*) pNewField )->SetFixDate( aDate );
+ }
+ }
+ }
+ else if( pField->ISA( SvxExtTimeField ) )
+ {
+ const SvxExtTimeField* pTimeField = (const SvxExtTimeField*) pField;
+ SvxTimeType eType;
+ SvxTimeFormat eFormat;
+ USHORT i;
+
+ if( IsItemChecked( 1 ) )
+ eType = SVXTIMETYPE_FIX;
+ else
+ eType = SVXTIMETYPE_VAR;
+
+ for( i = 3; i <= nCount; i++ )
+ {
+ if( IsItemChecked( i ) )
+ break;
+ }
+ eFormat = (SvxTimeFormat) ( i - 1 );
+
+ if( pTimeField->GetFormat() != eFormat ||
+ pTimeField->GetType() != eType )
+ {
+ pNewField = new SvxExtTimeField( *pTimeField );
+ ( (SvxExtTimeField*) pNewField )->SetType( eType );
+ ( (SvxExtTimeField*) pNewField )->SetFormat( eFormat );
+
+ if( (pTimeField->GetType() == SVXTIMETYPE_VAR) && (eType == SVXTIMETYPE_FIX) )
+ {
+ Time aTime;
+ ( (SvxExtTimeField*) pNewField )->SetFixTime( aTime );
+ }
+
+ }
+ }
+ else if( pField->ISA( SvxExtFileField ) )
+ {
+ const SvxExtFileField* pFileField = (const SvxExtFileField*) pField;
+ SvxFileType eType;
+ SvxFileFormat eFormat;
+ USHORT i;
+
+ if( IsItemChecked( 1 ) )
+ eType = SVXFILETYPE_FIX;
+ else
+ eType = SVXFILETYPE_VAR;
+
+ for( i = 3; i <= nCount; i++ )
+ {
+ if( IsItemChecked( i ) )
+ break;
+ }
+ eFormat = (SvxFileFormat) ( i - 3 );
+
+ if( pFileField->GetFormat() != eFormat ||
+ pFileField->GetType() != eType )
+ {
+ ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell,
+ SfxObjectShell::Current() );
+
+ if( pDocSh )
+ {
+ SvxExtFileField aFileField( *pFileField );
+
+ String aName;
+ if( pDocSh->HasName() )
+ aName = pDocSh->GetMedium()->GetName();
+
+ // #91225# Get current filename, not the one stored in the old field
+ pNewField = new SvxExtFileField( aName );
+ ( (SvxExtFileField*) pNewField )->SetType( eType );
+ ( (SvxExtFileField*) pNewField )->SetFormat( eFormat );
+ }
+ }
+ }
+ else if( pField->ISA( SvxAuthorField ) )
+ {
+ const SvxAuthorField* pAuthorField = (const SvxAuthorField*) pField;
+ SvxAuthorType eType;
+ SvxAuthorFormat eFormat;
+ USHORT i;
+
+ if( IsItemChecked( 1 ) )
+ eType = SVXAUTHORTYPE_FIX;
+ else
+ eType = SVXAUTHORTYPE_VAR;
+
+ for( i = 3; i <= nCount; i++ )
+ {
+ if( IsItemChecked( i ) )
+ break;
+ }
+ eFormat = (SvxAuthorFormat) ( i - 3 );
+
+ if( pAuthorField->GetFormat() != eFormat ||
+ pAuthorField->GetType() != eType )
+ {
+ // #91225# Get current state of address, not the old one
+ SvtUserOptions aUserOptions;
+ pNewField = new SvxAuthorField( aUserOptions.GetFirstName(), aUserOptions.GetLastName(), aUserOptions.GetID() );
+ ( (SvxAuthorField*) pNewField )->SetType( eType );
+ ( (SvxAuthorField*) pNewField )->SetFormat( eFormat );
+ }
+ }
+ return( pNewField );
+}
+
+
diff --git a/sd/source/ui/app/sdresid.cxx b/sd/source/ui/app/sdresid.cxx
new file mode 100644
index 000000000000..b6a3cbb22b79
--- /dev/null
+++ b/sd/source/ui/app/sdresid.cxx
@@ -0,0 +1,49 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sdresid.cxx,v $
+ * $Revision: 1.5 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+
+#include "sddll.hxx"
+#include "sdresid.hxx"
+
+
+/*************************************************************************
+|*
+|* Ctor
+|*
+\************************************************************************/
+
+SdResId::SdResId(USHORT nId) :
+ ResId(nId, *SD_MOD()->GetResMgr())
+{
+}
+
+
diff --git a/sd/source/ui/app/sdstring.src b/sd/source/ui/app/sdstring.src
new file mode 100644
index 000000000000..e1bb96a9b318
--- /dev/null
+++ b/sd/source/ui/app/sdstring.src
@@ -0,0 +1,55 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sdstring.src,v $
+ * $Revision: 1.32 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+#include "sdstring.hrc"
+String STR_SAR_NOT_FOUND
+{
+ Text [ en-US ] = "Search key not found.";
+};
+
+String STR_SAR_WRAP_FORWARD
+{
+ Text [ en-US ] = "%PRODUCTNAME Impress has searched to the end of the presentation. Do you want to continue at the beginning?";
+};
+
+String STR_SAR_WRAP_BACKWARD
+{
+ Text [ en-US ] = "%PRODUCTNAME Impress has searched to the beginning of the presentation. Do you want to continue at the end?";
+};
+
+String STR_SAR_WRAP_FORWARD_DRAW
+{
+ Text [ en-US ] = "%PRODUCTNAME Draw has searched to the end of the document. Do you want to continue at the beginning?";
+};
+
+String STR_SAR_WRAP_BACKWARD_DRAW
+{
+ Text [ en-US ] = "%PRODUCTNAME Draw has searched to the beginning of the document. Do you want to continue at the end?";
+};
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx
new file mode 100644
index 000000000000..f22af4ad2887
--- /dev/null
+++ b/sd/source/ui/app/sdxfer.cxx
@@ -0,0 +1,884 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sdxfer.cxx,v $
+ * $Revision: 1.58 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+#include <com/sun/star/embed/XTransactedObject.hpp>
+#include <com/sun/star/embed/XEmbedPersist.hpp>
+#include <com/sun/star/embed/ElementModes.hpp>
+#include <com/sun/star/lang/XComponent.hpp>
+#include <vos/mutex.hxx>
+#include <unotools/ucbstreamhelper.hxx>
+#ifndef _UNTOOLS_TEMPFILE_HXX
+#include <unotools/tempfile.hxx>
+#endif
+#include <svx/eeitem.hxx>
+#include <svx/flditem.hxx>
+#include <svx/svdpagv.hxx>
+#include <sfx2/app.hxx>
+#include <vcl/msgbox.hxx>
+#include <svx/svdoole2.hxx>
+#include <svx/svdograf.hxx>
+#include <svx/svdotext.hxx>
+#include <svx/outlobj.hxx>
+#include <sot/storage.hxx>
+#include <svtools/itempool.hxx>
+#include <svx/editobj.hxx>
+#include <svx/fmglob.hxx>
+#include <svx/svdouno.hxx>
+#include <tools/urlobj.hxx>
+#include <sot/formats.hxx>
+#include <svtools/urlbmk.hxx>
+#include <svx/outliner.hxx>
+
+//#ifndef _SVDETC_HXX //autogen
+//#include <svx/svdetc.hxx>
+//#endif
+#include <com/sun/star/form/FormButtonType.hpp>
+#include <com/sun/star/beans/XPropertySet.hpp>
+#include <unotools/streamwrap.hxx>
+
+#include <svx/svdotable.hxx>
+#include <svx/unomodel.hxx>
+#include <svx/svditer.hxx>
+#include <sfx2/docfile.hxx>
+#include <comphelper/storagehelper.hxx>
+#include <svtools/embedtransfer.hxx>
+#include "DrawDocShell.hxx"
+#include "View.hxx"
+#include "sdpage.hxx"
+#include "drawview.hxx"
+#include "drawdoc.hxx"
+#include "stlpool.hxx"
+#include "strings.hrc"
+#include "sdresid.hxx"
+#include "imapinfo.hxx"
+#include "sdxfer.hxx"
+#include "unomodel.hxx"
+#include <vcl/virdev.hxx>
+
+// --------------
+// - Namespaces -
+// --------------
+
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::io;
+using namespace ::com::sun::star::datatransfer;
+using namespace ::com::sun::star::datatransfer::clipboard;
+
+// -----------
+// - Defines -
+// -----------
+
+#define SDTRANSFER_OBJECTTYPE_DRAWMODEL 0x00000001
+#define SDTRANSFER_OBJECTTYPE_DRAWOLE 0x00000002
+
+// ------------------
+// - SdTransferable -
+// ------------------
+
+SdTransferable::SdTransferable( SdDrawDocument* pSrcDoc, ::sd::View* pWorkView, BOOL bInitOnGetData )
+: mpPageDocShell( NULL )
+, mpOLEDataHelper( NULL )
+, mpObjDesc( NULL )
+, mpSdView( pWorkView )
+, mpSdViewIntern( pWorkView )
+, mpSdDrawDocument( NULL )
+, mpSdDrawDocumentIntern( NULL )
+, mpSourceDoc( pSrcDoc )
+, mpVDev( NULL )
+, mpBookmark( NULL )
+, mpGraphic( NULL )
+, mpImageMap( NULL )
+, mbInternalMove( FALSE )
+, mbOwnDocument( FALSE )
+, mbOwnView( FALSE )
+, mbLateInit( bInitOnGetData )
+, mbPageTransferable( FALSE )
+, mbPageTransferablePersistent( FALSE )
+, mbIsUnoObj( false )
+{
+ if( mpSourceDoc )
+ StartListening( *mpSourceDoc );
+
+ if( pWorkView )
+ StartListening( *pWorkView );
+
+ if( !mbLateInit )
+ CreateData();
+}
+
+// -----------------------------------------------------------------------------
+
+SdTransferable::~SdTransferable()
+{
+ if( mpSourceDoc )
+ EndListening( *mpSourceDoc );
+
+ if( mpSdView )
+ EndListening( *const_cast< sd::View *>( mpSdView) );
+
+ Application::GetSolarMutex().acquire();
+
+ ObjectReleased();
+
+ for( void* p = maPageBookmarks.First(); p; p = maPageBookmarks.Next() )
+ delete static_cast< String* >( p );
+
+ if( mbOwnView )
+ delete mpSdViewIntern;
+
+ delete mpOLEDataHelper;
+
+ if( maDocShellRef.Is() )
+ {
+ SfxObjectShell* pObj = maDocShellRef;
+ ::sd::DrawDocShell* pDocSh = static_cast< ::sd::DrawDocShell*>(pObj);
+ pDocSh->DoClose();
+ }
+
+ maDocShellRef.Clear();
+
+ if( mbOwnDocument )
+ delete mpSdDrawDocumentIntern;
+
+ delete mpGraphic;
+ delete mpBookmark;
+ delete mpImageMap;
+
+ delete mpVDev;
+ delete mpObjDesc;
+
+ Application::GetSolarMutex().release();
+}
+
+// -----------------------------------------------------------------------------
+
+void SdTransferable::CreateObjectReplacement( SdrObject* pObj )
+{
+ if( pObj )
+ {
+ delete mpOLEDataHelper, mpOLEDataHelper = NULL;
+ delete mpGraphic, mpGraphic = NULL;
+ delete mpBookmark, mpBookmark = NULL;
+ delete mpImageMap, mpImageMap = NULL;
+
+ if( pObj->ISA( SdrOle2Obj ) )
+ {
+ try
+ {
+ uno::Reference < embed::XEmbeddedObject > xObj = static_cast< SdrOle2Obj* >( pObj )->GetObjRef();
+ uno::Reference < embed::XEmbedPersist > xPersist( xObj, uno::UNO_QUERY );
+ if( xObj.is() && xPersist.is() && xPersist->hasEntry() )
+ {
+ mpOLEDataHelper = new TransferableDataHelper( new SvEmbedTransferHelper( xObj, static_cast< SdrOle2Obj* >( pObj )->GetGraphic(), static_cast< SdrOle2Obj* >( pObj )->GetAspect() ) );
+
+ // TODO/LATER: the standalone handling of the graphic should not be used any more in future
+ // The EmbedDataHelper should bring the graphic in future
+ Graphic* pObjGr = static_cast< SdrOle2Obj* >( pObj )->GetGraphic();
+ if ( pObjGr )
+ mpGraphic = new Graphic( *pObjGr );
+ }
+ }
+ catch( uno::Exception& )
+ {}
+ }
+ else if( pObj->ISA( SdrGrafObj ) && (mpSourceDoc && !mpSourceDoc->GetAnimationInfo( pObj )) )
+ {
+ mpGraphic = new Graphic( static_cast< SdrGrafObj* >( pObj )->GetTransformedGraphic() );
+ }
+ else if( pObj->IsUnoObj() && FmFormInventor == pObj->GetObjInventor() && ( pObj->GetObjIdentifier() == (UINT16) OBJ_FM_BUTTON ) )
+ {
+ SdrUnoObj* pUnoCtrl = static_cast< SdrUnoObj* >( pObj );
+
+ if (pUnoCtrl && FmFormInventor == pUnoCtrl->GetObjInventor())
+ {
+ Reference< ::com::sun::star::awt::XControlModel > xControlModel( pUnoCtrl->GetUnoControlModel() );
+
+ if( !xControlModel.is() )
+ return;
+
+ Reference< ::com::sun::star::beans::XPropertySet > xPropSet( xControlModel, UNO_QUERY );
+
+ if( !xPropSet.is() )
+ return;
+
+ ::com::sun::star::form::FormButtonType eButtonType;
+ Any aTmp( xPropSet->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ButtonType" ) ) ) );
+
+ if( aTmp >>= eButtonType )
+ {
+ ::rtl::OUString aLabel, aURL;
+
+ xPropSet->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Label" ) ) ) >>= aLabel;
+ xPropSet->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("TargetURL") ) ) >>= aURL;
+
+ mpBookmark = new INetBookmark( String( aURL ), String( aLabel ) );
+ }
+ }
+ }
+ else if( pObj->ISA( SdrTextObj ) )
+ {
+ const OutlinerParaObject* pPara;
+
+ if( (pPara = static_cast< SdrTextObj* >( pObj )->GetOutlinerParaObject()) != 0 )
+ {
+ const SvxFieldItem* pField;
+
+ if( (pField = pPara->GetTextObject().GetField()) != 0 )
+ {
+ const SvxFieldData* pData = pField->GetField();
+
+ if( pData && pData->ISA( SvxURLField ) )
+ {
+ const SvxURLField* pURL = (SvxURLField*) pData;
+
+ mpBookmark = new INetBookmark( pURL->GetURL(), pURL->GetRepresentation() );
+ }
+ }
+ }
+ }
+
+ SdIMapInfo* pInfo = static_cast< SdDrawDocument* >( pObj->GetModel() )->GetIMapInfo( static_cast< SdrObject* >( pObj ) );
+
+ if( pInfo )
+ mpImageMap = new ImageMap( pInfo->GetImageMap() );
+
+ mbIsUnoObj = pObj && pObj->IsUnoObj();
+ }
+}
+
+// -----------------------------------------------------------------------------
+
+void SdTransferable::CreateData()
+{
+ if( mpSdDrawDocument && !mpSdViewIntern )
+ {
+ mbOwnView = TRUE;
+
+ SdPage* pPage = mpSdDrawDocument->GetSdPage(0, PK_STANDARD);
+
+ if( 1 == pPage->GetObjCount() )
+ CreateObjectReplacement( pPage->GetObj( 0 ) );
+
+ mpVDev = new VirtualDevice( *Application::GetDefaultDevice() );
+ mpVDev->SetMapMode( MapMode( mpSdDrawDocumentIntern->GetScaleUnit(), Point(), mpSdDrawDocumentIntern->GetScaleFraction(), mpSdDrawDocumentIntern->GetScaleFraction() ) );
+ mpSdViewIntern = new ::sd::View( mpSdDrawDocumentIntern, mpVDev );
+ mpSdViewIntern->EndListening(*mpSdDrawDocumentIntern );
+ mpSdViewIntern->hideMarkHandles();
+ SdrPageView* pPageView = mpSdViewIntern->ShowSdrPage(pPage);
+ ((SdrMarkView*)mpSdViewIntern)->MarkAllObj(pPageView);
+ }
+ else if( mpSdView && !mpSdDrawDocumentIntern )
+ {
+ const SdrMarkList& rMarkList = mpSdView->GetMarkedObjectList();
+
+ if( rMarkList.GetMarkCount() == 1 )
+ CreateObjectReplacement( rMarkList.GetMark( 0 )->GetMarkedSdrObj() );
+
+ if( mpSourceDoc )
+ mpSourceDoc->CreatingDataObj(this);
+ mpSdDrawDocumentIntern = (SdDrawDocument*) mpSdView->GetAllMarkedModel();
+ if( mpSourceDoc )
+ mpSourceDoc->CreatingDataObj(0);
+
+ if( !maDocShellRef.Is() && mpSdDrawDocumentIntern->GetDocSh() )
+ maDocShellRef = mpSdDrawDocumentIntern->GetDocSh();
+
+ if( !maDocShellRef.Is() )
+ {
+ DBG_ERROR( "SdTransferable::CreateData(), failed to create a model with persist, clipboard operation will fail for OLE objects!" );
+ mbOwnDocument = TRUE;
+ }
+
+ // Groesse der Source-Seite uebernehmen
+ SdrPageView* pPgView = mpSdView->GetSdrPageView();
+ SdPage* pOldPage = (SdPage*) pPgView->GetPage();
+ SdrModel* pOldModel = mpSdView->GetModel();
+ SdStyleSheetPool* pOldStylePool = (SdStyleSheetPool*) pOldModel->GetStyleSheetPool();
+ SdStyleSheetPool* pNewStylePool = (SdStyleSheetPool*) mpSdDrawDocumentIntern->GetStyleSheetPool();
+ SdPage* pPage = mpSdDrawDocumentIntern->GetSdPage( 0, PK_STANDARD );
+ String aOldLayoutName( pOldPage->GetLayoutName() );
+
+ pPage->SetSize( pOldPage->GetSize() );
+ pPage->SetLayoutName( aOldLayoutName );
+ pNewStylePool->CopyGraphicSheets( *pOldStylePool );
+ pNewStylePool->CopyCellSheets( *pOldStylePool );
+ pNewStylePool->CopyTableStyles( *pOldStylePool );
+ aOldLayoutName.Erase( aOldLayoutName.SearchAscii( SD_LT_SEPARATOR ) );
+ SdStyleSheetVector aCreatedSheets;
+ pNewStylePool->CopyLayoutSheets( aOldLayoutName, *pOldStylePool, aCreatedSheets );
+ }
+
+ // set VisArea and adjust objects if neccessary
+ if( maVisArea.IsEmpty() &&
+ mpSdDrawDocumentIntern && mpSdViewIntern &&
+ mpSdDrawDocumentIntern->GetPageCount() )
+ {
+ SdPage* pPage = mpSdDrawDocumentIntern->GetSdPage( 0, PK_STANDARD );
+
+ if( 1 == mpSdDrawDocumentIntern->GetPageCount() )
+ {
+ Point aOrigin( ( maVisArea = mpSdViewIntern->GetAllMarkedRect() ).TopLeft() );
+ Size aVector( -aOrigin.X(), -aOrigin.Y() );
+
+ for( ULONG nObj = 0, nObjCount = pPage->GetObjCount(); nObj < nObjCount; nObj++ )
+ {
+ SdrObject* pObj = pPage->GetObj( nObj );
+ pObj->NbcMove( aVector );
+ }
+ }
+ else
+ maVisArea.SetSize( pPage->GetSize() );
+
+ // Die Ausgabe soll am Nullpunkt erfolgen
+ maVisArea.SetPos( Point() );
+ }
+}
+
+// -----------------------------------------------------------------------------
+
+BOOL lcl_HasOnlyControls( SdrModel* pModel )
+{
+ BOOL bOnlyControls = FALSE; // default if there are no objects
+
+ if ( pModel )
+ {
+ SdrPage* pPage = pModel->GetPage(0);
+ if (pPage)
+ {
+ SdrObjListIter aIter( *pPage, IM_DEEPNOGROUPS );
+ SdrObject* pObj = aIter.Next();
+ if ( pObj )
+ {
+ bOnlyControls = TRUE; // only set if there are any objects at all
+ while ( pObj )
+ {
+ if (!pObj->ISA(SdrUnoObj))
+ {
+ bOnlyControls = FALSE;
+ break;
+ }
+ pObj = aIter.Next();
+ }
+ }
+ }
+ }
+
+ return bOnlyControls;
+}
+
+// -----------------------------------------------------------------------------
+
+bool lcl_HasOnlyOneTable( SdrModel* pModel )
+{
+ if ( pModel )
+ {
+ SdrPage* pPage = pModel->GetPage(0);
+ if (pPage && pPage->GetObjCount() == 1 )
+ {
+ if( dynamic_cast< sdr::table::SdrTableObj* >( pPage->GetObj(0) ) != 0 )
+ return true;
+ }
+ }
+ return false;
+}
+
+// -----------------------------------------------------------------------------
+
+void SdTransferable::AddSupportedFormats()
+{
+ if( !mbPageTransferable || mbPageTransferablePersistent )
+ {
+ if( !mbLateInit )
+ CreateData();
+
+ if( mpObjDesc )
+ AddFormat( SOT_FORMATSTR_ID_OBJECTDESCRIPTOR );
+
+ if( mpOLEDataHelper )
+ {
+ AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
+
+ DataFlavorExVector aVector( mpOLEDataHelper->GetDataFlavorExVector() );
+ DataFlavorExVector::iterator aIter( aVector.begin() ), aEnd( aVector.end() );
+
+ while( aIter != aEnd )
+ AddFormat( *aIter++ );
+ }
+ else if( mpGraphic )
+ {
+ // #i25616#
+ AddFormat( SOT_FORMATSTR_ID_DRAWING );
+
+ AddFormat( SOT_FORMATSTR_ID_SVXB );
+
+ if( mpGraphic->GetType() == GRAPHIC_BITMAP )
+ {
+ AddFormat( SOT_FORMAT_BITMAP );
+ AddFormat( SOT_FORMAT_GDIMETAFILE );
+ }
+ else
+ {
+ AddFormat( SOT_FORMAT_GDIMETAFILE );
+ AddFormat( SOT_FORMAT_BITMAP );
+ }
+ }
+ else if( mpBookmark )
+ {
+ AddFormat( SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK );
+ AddFormat( FORMAT_STRING );
+ }
+ else
+ {
+ AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE );
+ AddFormat( SOT_FORMATSTR_ID_DRAWING );
+ if( !mpSdDrawDocument || !lcl_HasOnlyControls( mpSdDrawDocument ) )
+ {
+ AddFormat( SOT_FORMAT_GDIMETAFILE );
+ AddFormat( SOT_FORMAT_BITMAP );
+ }
+
+ if( lcl_HasOnlyOneTable( mpSdDrawDocument ) )
+ AddFormat( SOT_FORMAT_RTF );
+ }
+
+ if( mpImageMap )
+ AddFormat( SOT_FORMATSTR_ID_SVIM );
+ }
+}
+
+// -----------------------------------------------------------------------------
+
+sal_Bool SdTransferable::GetData( const DataFlavor& rFlavor )
+{
+ if (SD_MOD()==NULL)
+ return sal_False;
+
+ sal_uInt32 nFormat = SotExchange::GetFormat( rFlavor );
+ sal_Bool bOK = sal_False;
+
+ CreateData();
+
+ if( nFormat == SOT_FORMAT_RTF && lcl_HasOnlyOneTable( mpSdDrawDocument ) )
+ {
+ bOK = SetTableRTF( mpSdDrawDocument, rFlavor );
+ }
+ else if( mpOLEDataHelper && mpOLEDataHelper->HasFormat( rFlavor ) )
+ {
+ ULONG nOldSwapMode = 0;
+
+ if( mpSdDrawDocumentIntern )
+ {
+ nOldSwapMode = mpSdDrawDocumentIntern->GetSwapGraphicsMode();
+ mpSdDrawDocumentIntern->SetSwapGraphicsMode( SDR_SWAPGRAPHICSMODE_PURGE );
+ }
+
+ // TODO/LATER: support all the graphical formats, the embedded object scenario should not have separated handling
+ if( nFormat == FORMAT_GDIMETAFILE && mpGraphic )
+ bOK = SetGDIMetaFile( mpGraphic->GetGDIMetaFile(), rFlavor );
+ else
+ bOK = SetAny( mpOLEDataHelper->GetAny( rFlavor ), rFlavor );
+
+ if( mpSdDrawDocumentIntern )
+ mpSdDrawDocumentIntern->SetSwapGraphicsMode( nOldSwapMode );
+ }
+ else if( HasFormat( nFormat ) )
+ {
+ if( ( nFormat == SOT_FORMATSTR_ID_LINKSRCDESCRIPTOR || nFormat == SOT_FORMATSTR_ID_OBJECTDESCRIPTOR ) && mpObjDesc )
+ {
+ bOK = SetTransferableObjectDescriptor( *mpObjDesc, rFlavor );
+ }
+ else if( nFormat == SOT_FORMATSTR_ID_DRAWING )
+ {
+ SfxObjectShellRef aOldRef( maDocShellRef );
+
+ maDocShellRef.Clear();
+
+ if( mpSdViewIntern )
+ {
+ SdDrawDocument* pInternDoc = mpSdViewIntern->GetDoc();
+ if( pInternDoc )
+ pInternDoc->CreatingDataObj(this);
+ SdDrawDocument* pDoc = dynamic_cast< SdDrawDocument* >( mpSdViewIntern->GetAllMarkedModel() );
+ if( pInternDoc )
+ pInternDoc->CreatingDataObj(0);
+
+ bOK = SetObject( pDoc, SDTRANSFER_OBJECTTYPE_DRAWMODEL, rFlavor );
+
+ if( maDocShellRef.Is() )
+ {
+ maDocShellRef->DoClose();
+ }
+ else
+ {
+ delete pDoc;
+ }
+ }
+
+ maDocShellRef = aOldRef;
+ }
+ else if( nFormat == FORMAT_GDIMETAFILE )
+ {
+ if( mpSdViewIntern )
+ bOK = SetGDIMetaFile( mpSdViewIntern->GetAllMarkedMetaFile( TRUE ), rFlavor );
+ }
+ else if( nFormat == FORMAT_BITMAP )
+ {
+ if( mpSdViewIntern )
+ bOK = SetBitmap( mpSdViewIntern->GetAllMarkedBitmap( TRUE ), rFlavor );
+ }
+ else if( ( nFormat == FORMAT_STRING ) && mpBookmark )
+ {
+ bOK = SetString( mpBookmark->GetURL(), rFlavor );
+ }
+ else if( ( nFormat == SOT_FORMATSTR_ID_SVXB ) && mpGraphic )
+ {
+ bOK = SetGraphic( *mpGraphic, rFlavor );
+ }
+ else if( ( nFormat == SOT_FORMATSTR_ID_SVIM ) && mpImageMap )
+ {
+ bOK = SetImageMap( *mpImageMap, rFlavor );
+ }
+ else if( mpBookmark )
+ {
+ bOK = SetINetBookmark( *mpBookmark, rFlavor );
+ }
+ else if( nFormat == SOT_FORMATSTR_ID_EMBED_SOURCE )
+ {
+ ULONG nOldSwapMode = 0;
+
+ if( mpSdDrawDocumentIntern )
+ {
+ nOldSwapMode = mpSdDrawDocumentIntern->GetSwapGraphicsMode();
+ mpSdDrawDocumentIntern->SetSwapGraphicsMode( SDR_SWAPGRAPHICSMODE_PURGE );
+ }
+
+ if( !maDocShellRef.Is() )
+ {
+ maDocShellRef = new ::sd::DrawDocShell(
+ mpSdDrawDocumentIntern,
+ SFX_CREATE_MODE_EMBEDDED,
+ TRUE,
+ mpSdDrawDocumentIntern->GetDocumentType());
+ mbOwnDocument = FALSE;
+ maDocShellRef->DoInitNew( NULL );
+ }
+
+ maDocShellRef->SetVisArea( maVisArea );
+ bOK = SetObject( &maDocShellRef, SDTRANSFER_OBJECTTYPE_DRAWOLE, rFlavor );
+
+ if( mpSdDrawDocumentIntern )
+ mpSdDrawDocumentIntern->SetSwapGraphicsMode( nOldSwapMode );
+ }
+ }
+
+ return bOK;
+}
+
+// -----------------------------------------------------------------------------
+
+/* testcode
+#include <sfx2/docfile.hxx>
+*/
+
+sal_Bool SdTransferable::WriteObject( SotStorageStreamRef& rxOStm, void* pObject, sal_uInt32 nObjectType, const DataFlavor& )
+{
+ sal_Bool bRet = sal_False;
+
+ switch( nObjectType )
+ {
+ case( SDTRANSFER_OBJECTTYPE_DRAWMODEL ):
+ {
+ try
+ {
+ static const BOOL bDontBurnInStyleSheet = ( getenv( "AVOID_BURN_IN_FOR_GALLERY_THEME" ) != NULL );
+ SdDrawDocument* pDoc = (SdDrawDocument*) pObject;
+ if ( !bDontBurnInStyleSheet )
+ pDoc->BurnInStyleSheetAttributes();
+ rxOStm->SetBufferSize( 16348 );
+
+ Reference< XComponent > xComponent( new SdXImpressDocument( pDoc, sal_True ) );
+ pDoc->setUnoModel( Reference< XInterface >::query( xComponent ) );
+
+ {
+ com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> xDocOut( new utl::OOutputStreamWrapper( *rxOStm ) );
+ if( SvxDrawingLayerExport( pDoc, xDocOut, xComponent, (pDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS) ? "com.sun.star.comp.Impress.XMLClipboardExporter" : "com.sun.star.comp.DrawingLayer.XMLExporter" ) )
+ rxOStm->Commit();
+ }
+
+ /* testcode
+ {
+ const rtl::OUString aURL( RTL_CONSTASCII_USTRINGPARAM( "file:///e:/test.xml" ) );
+ SfxMedium aMedium( aURL, STREAM_WRITE | STREAM_TRUNC, TRUE );
+ aMedium.IsRemote();
+ com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> xDocOut( new utl::OOutputStreamWrapper( *aMedium.GetOutStream() ) );
+ if( SvxDrawingLayerExport( pDoc, xDocOut, xComponent, (pDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS) ? "com.sun.star.comp.Impress.XMLClipboardExporter" : "com.sun.star.comp.DrawingLayer.XMLExporter" ) )
+ aMedium.Commit();
+ }
+ */
+
+ xComponent->dispose();
+ bRet = ( rxOStm->GetError() == ERRCODE_NONE );
+ }
+ catch( Exception& )
+ {
+ DBG_ERROR( "sd::SdTransferable::WriteObject(), exception catched!" );
+ bRet = FALSE;
+ }
+ }
+ break;
+
+ case( SDTRANSFER_OBJECTTYPE_DRAWOLE ):
+ {
+ SfxObjectShell* pEmbObj = (SfxObjectShell*) pObject;
+ ::utl::TempFile aTempFile;
+ aTempFile.EnableKillingFile();
+
+ try
+ {
+ uno::Reference< embed::XStorage > xWorkStore =
+ ::comphelper::OStorageHelper::GetStorageFromURL( aTempFile.GetURL(), embed::ElementModes::READWRITE );
+
+ // write document storage
+ pEmbObj->SetupStorage( xWorkStore, SOFFICE_FILEFORMAT_CURRENT, sal_False );
+ // mba: no relative ULRs for clipboard!
+ SfxMedium aMedium( xWorkStore, String() );
+ bRet = pEmbObj->DoSaveObjectAs( aMedium, FALSE );
+ pEmbObj->DoSaveCompleted();
+
+ uno::Reference< embed::XTransactedObject > xTransact( xWorkStore, uno::UNO_QUERY );
+ if ( xTransact.is() )
+ xTransact->commit();
+
+ SvStream* pSrcStm = ::utl::UcbStreamHelper::CreateStream( aTempFile.GetURL(), STREAM_READ );
+ if( pSrcStm )
+ {
+ rxOStm->SetBufferSize( 0xff00 );
+ *rxOStm << *pSrcStm;
+ delete pSrcStm;
+ }
+
+ bRet = TRUE;
+ rxOStm->Commit();
+ }
+ catch ( Exception& )
+ {}
+ }
+
+ break;
+
+ default:
+ break;
+ }
+
+ return bRet;
+}
+
+// -----------------------------------------------------------------------------
+
+void SdTransferable::DragFinished( sal_Int8 nDropAction )
+{
+ if( mpSdView )
+ ( (::sd::View*) mpSdView )->DragFinished( nDropAction );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdTransferable::ObjectReleased()
+{
+ if( this == SD_MOD()->pTransferClip )
+ SD_MOD()->pTransferClip = NULL;
+
+ if( this == SD_MOD()->pTransferDrag )
+ SD_MOD()->pTransferDrag = NULL;
+
+ if( this == SD_MOD()->pTransferSelection )
+ SD_MOD()->pTransferSelection = NULL;
+}
+
+// -----------------------------------------------------------------------------
+
+void SdTransferable::SetObjectDescriptor( const TransferableObjectDescriptor& rObjDesc )
+{
+ delete mpObjDesc;
+ mpObjDesc = new TransferableObjectDescriptor( rObjDesc );
+ PrepareOLE( rObjDesc );
+}
+
+// -----------------------------------------------------------------------------
+
+void SdTransferable::SetPageBookmarks( const List& rPageBookmarks, BOOL bPersistent )
+{
+ if( mpSourceDoc )
+ {
+ if( mpSdViewIntern )
+ mpSdViewIntern->HideSdrPage();
+
+ // #116168#
+ mpSdDrawDocument->ClearModel(sal_False);
+
+ mpPageDocShell = NULL;
+
+ for( void* p = maPageBookmarks.First(); p; p = maPageBookmarks.Next() )
+ delete static_cast< String* >( p );
+
+ if( bPersistent )
+ {
+ mpSdDrawDocument->CreateFirstPages(mpSourceDoc);
+ mpSdDrawDocument->InsertBookmarkAsPage( const_cast< List* >( &rPageBookmarks ), NULL, FALSE, TRUE, 1, TRUE, mpSourceDoc->GetDocSh(), TRUE, TRUE, FALSE );
+ }
+ else
+ {
+ mpPageDocShell = mpSourceDoc->GetDocSh();
+
+ for( ULONG i = 0; i < rPageBookmarks.Count(); i++ )
+ maPageBookmarks.Insert( new String( *static_cast< String* >( rPageBookmarks.GetObject( i ) ) ), LIST_APPEND );
+ }
+
+ if( mpSdViewIntern && mpSdDrawDocument )
+ {
+ SdPage* pPage = mpSdDrawDocument->GetSdPage( 0, PK_STANDARD );
+
+ if( pPage )
+ {
+ ( (SdrMarkView*) mpSdViewIntern )->MarkAllObj( (SdrPageView*) mpSdViewIntern->ShowSdrPage( pPage ) );
+ }
+ }
+
+ // set flags for page transferable; if ( mbPageTransferablePersistent == FALSE ),
+ // don't offer any formats => it's just for internal puposes
+ mbPageTransferable = TRUE;
+ mbPageTransferablePersistent = bPersistent;
+ }
+}
+
+// -----------------------------------------------------------------------------
+
+sal_Int64 SAL_CALL SdTransferable::getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw( ::com::sun::star::uno::RuntimeException )
+{
+ sal_Int64 nRet;
+
+ if( ( rId.getLength() == 16 ) &&
+ ( 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) ) )
+ {
+ nRet = sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this));
+ }
+ else
+ {
+ nRet = 0;
+ }
+
+ return nRet;
+}
+
+// -----------------------------------------------------------------------------
+
+const ::com::sun::star::uno::Sequence< sal_Int8 >& SdTransferable::getUnoTunnelId()
+{
+ static ::com::sun::star::uno::Sequence< sal_Int8 > aSeq;
+
+ if( !aSeq.getLength() )
+ {
+ static osl::Mutex aCreateMutex;
+ osl::MutexGuard aGuard( aCreateMutex );
+
+ aSeq.realloc( 16 );
+ rtl_createUuid( reinterpret_cast< sal_uInt8* >( aSeq.getArray() ), 0, sal_True );
+ }
+
+ return aSeq;
+}
+
+// -----------------------------------------------------------------------------
+
+SdTransferable* SdTransferable::getImplementation( const Reference< XInterface >& rxData ) throw()
+{
+ try
+ {
+ Reference< ::com::sun::star::lang::XUnoTunnel > xUnoTunnel( rxData, UNO_QUERY_THROW );
+ return reinterpret_cast<SdTransferable*>(sal::static_int_cast<sal_uIntPtr>(xUnoTunnel->getSomething( SdTransferable::getUnoTunnelId()) ) );
+ }
+ catch( const ::com::sun::star::uno::Exception& )
+ {
+ }
+ return NULL;
+}
+
+// -----------------------------------------------------------------------------
+
+// SfxListener
+void SdTransferable::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
+{
+ const SdrHint* pSdrHint = dynamic_cast< const SdrHint* >( &rHint );
+ if( pSdrHint )
+ {
+ if( HINT_MODELCLEARED == pSdrHint->GetKind() )
+ {
+ EndListening(*mpSourceDoc);
+ mpSourceDoc = 0;
+ }
+ }
+ else
+ {
+ const SfxSimpleHint* pSimpleHint = dynamic_cast< const SfxSimpleHint * >(&rHint);
+ if(pSimpleHint && (pSimpleHint->GetId() == SFX_HINT_DYING) )
+ {
+ if( &rBC == mpSourceDoc )
+ mpSourceDoc = 0;
+ if( &rBC == mpSdViewIntern )
+ mpSdViewIntern = 0;
+ if( &rBC == mpSdView )
+ mpSdView = 0;
+ }
+ }
+}
+
+sal_Bool SdTransferable::SetTableRTF( SdDrawDocument* pModel, const DataFlavor& rFlavor)
+{
+ if ( pModel )
+ {
+ SdrPage* pPage = pModel->GetPage(0);
+ if (pPage && pPage->GetObjCount() == 1 )
+ {
+ sdr::table::SdrTableObj* pTableObj = dynamic_cast< sdr::table::SdrTableObj* >( pPage->GetObj(0) );
+ if( pTableObj )
+ {
+ SvMemoryStream aMemStm( 65535, 65535 );
+ sdr::table::SdrTableObj::ExportAsRTF( aMemStm, *pTableObj );
+ return SetAny( Any( Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( aMemStm.GetData() ), aMemStm.Seek( STREAM_SEEK_TO_END ) ) ), rFlavor );
+ }
+ }
+ }
+
+ return sal_False;
+}
diff --git a/sd/source/ui/app/strings.src b/sd/source/ui/app/strings.src
new file mode 100644
index 000000000000..696e92940b9f
--- /dev/null
+++ b/sd/source/ui/app/strings.src
@@ -0,0 +1,1275 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: strings.src,v $
+ * $Revision: 1.123 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+#include "strings.hrc"
+#include "glob.hrc"
+String STR_DRAW_TOOLBOX
+{
+ Text [ en-US ] = "Drawings Toolbar" ;
+};
+String STR_GRAPHIC_TOOLBOX
+{
+ Text [ en-US ] = "Draw toolbar/Graphics" ;
+};
+String STR_SLIDE_TOOLBOX
+{
+ Text [ en-US ] = "Slide Bar" ;
+};
+String STR_OUTLINE_TOOLBOX
+{
+ Text [ en-US ] = "Outline Bar" ;
+};
+String STR_DRAW_OBJ_TOOLBOX
+{
+ Text [ en-US ] = "Draw Object Bar" ;
+};
+String STR_GRAPHIC_OBJ_TOOLBOX
+{
+ Text [ en-US ] = "Draw object bar/Graphics" ;
+};
+String STR_DRAW_OPTIONS_TOOLBOX
+{
+ Text [ en-US ] = "Options Bar" ;
+};
+String STR_GRAPHIC_OPTIONS_TOOLBOX
+{
+ Text [ en-US ] = "Options bar/Graphics" ;
+};
+String STR_DRAW_COMMONTASK_TOOLBOX
+{
+ Text [ en-US ] = "Presentation" ;
+};
+String STR_SLIDE_OBJ_TOOLBOX
+{
+ Text [ en-US ] = "Slide Object Bar" ;
+};
+String STR_BEZIER_TOOLBOX
+{
+ Text [ en-US ] = "Bézier object bar" ;
+};
+String STR_GLUEPOINTS_TOOLBOX
+{
+ Text [ en-US ] = "Glue Point Object Bar" ;
+};
+String STR_DRAW_TEXT_TOOLBOX
+{
+ Text [ en-US ] = "Text Object Bar" ;
+};
+String STR_GRAPHIC_TEXT_TOOLBOX
+{
+ Text [ en-US ] = "Text Object Bar/Draw" ;
+};
+String RID_APPTITLE
+{
+ Text = "StarImpress 4.0" ;
+};
+String STR_DEFAULTVIEW
+{
+ Text [ en-US ] = "Default" ;
+};
+String STR_NULL
+{
+ Text [ en-US ] = "None" ;
+};
+String STR_INSERTPAGE
+{
+ Text [ en-US ] = "Insert Slide" ;
+};
+String STR_INSERTLAYER
+{
+ Text [ en-US ] = "Insert Layer" ;
+};
+String STR_MODIFYLAYER
+{
+ Text [ en-US ] = "Modify Layer" ;
+};
+String STR_UNDO_SLIDE_PARAMS
+{
+ Text [ en-US ] = "Slide parameter" ;
+};
+String STR_UNDO_SLIDE_MOVE
+{
+ Text [ en-US ] = "Move slide" ;
+};
+String STR_UNDO_CUT
+{
+ Text [ en-US ] = "Cut" ;
+};
+String STR_UNDO_REPLACE
+{
+ Text [ en-US ] = "Replace" ;
+};
+String STR_UNDO_DRAGDROP
+{
+ Text [ en-US ] = "Drag and Drop" ;
+};
+String STR_INSERTGRAPHIC
+{
+ Text [ en-US ] = "Insert picture" ;
+};
+String STR_SLOW
+{
+ Text [ en-US ] = "Slow" ;
+};
+String STR_MEDIUM
+{
+ Text [ en-US ] = "Medium" ;
+};
+String STR_FAST
+{
+ Text [ en-US ] = "Fast" ;
+};
+String STR_UNDO_BEZCLOSE
+{
+ Text [ en-US ] = "Close Polygon" ;
+};
+String STR_SLIDE_MODE
+{
+ Text [ en-US ] = "Slide Sorter" ;
+};
+String STR_DRAW_MODE
+{
+ Text [ en-US ] = "Normal" ;
+};
+String STR_OUTLINE_MODE
+{
+ Text [ en-US ] = "Outline" ;
+};
+String STR_NOTES_MODE
+{
+ Text [ en-US ] = "Notes" ;
+};
+String STR_HANDOUT_MODE
+{
+ Text [ en-US ] = "Handout" ;
+};
+String STR_AUTOLAYOUT_NONE
+{
+ Text [ en-US ] = "Blank Slide" ;
+};
+String STR_AUTOLAYOUT_ONLY_TITLE
+{
+ Text [ en-US ] = "Title Only" ;
+};
+String STR_AUTOLAYOUT_ONLY_TEXT
+{
+ Text [ en-US ] = "Centered Text" ;
+};
+String STR_AUTOLAYOUT_TITLE
+{
+ Text [ en-US ] = "Title Slide" ;
+};
+String STR_AUTOLAYOUT_OBJ
+{
+ Text [ en-US ] = "Title, Object" ;
+};
+String STR_AUTOLAYOUT_ENUM
+{
+ Text [ en-US ] = "Title, Text" ;
+};
+String STR_AUTOLAYOUT_CHART
+{
+ Text [ en-US ] = "Title, Chart" ;
+};
+String STR_AUTOLAYOUT_TAB
+{
+ Text [ en-US ] = "Title, Spreadsheet" ;
+};
+String STR_AUTOLAYOUT_CLIPTEXT
+{
+ Text [ en-US ] = "Title, Clipart, Text" ;
+};
+String STR_AUTOLAYOUT_2TEXT
+{
+ Text [ en-US ] = "Title, 2 Text Blocks" ;
+};
+String STR_AUTOLAYOUT_TEXTCHART
+{
+ Text [ en-US ] = "Title, Text, Chart" ;
+};
+String STR_AUTOLAYOUT_TEXTCLIP
+{
+ Text [ en-US ] = "Title, Text, Clipart" ;
+};
+String STR_AUTOLAYOUT_CHARTTEXT
+{
+ Text [ en-US ] = "Title, Chart, Text" ;
+};
+String STR_AUTOLAYOUT_TEXTOBJ
+{
+ Text [ en-US ] = "Title, Text, Object" ;
+};
+String STR_AUTOLAYOUT_TEXT2OBJ
+{
+ Text [ en-US ] = "Title, Text, 2 Objects" ;
+};
+String STR_AUTOLAYOUT_OBJTEXT
+{
+ Text [ en-US ] = "Title, Object, Text" ;
+};
+String STR_AUTOLAYOUT_OBJOVERTEXT
+{
+ Text [ en-US ] = "Title, Object Above Text" ;
+};
+String STR_AUTOLAYOUT_2OBJTEXT
+{
+ Text [ en-US ] = "Title, 2 Objects, Text" ;
+};
+String STR_AUTOLAYOUT_2OBJOVERTEXT
+{
+ Text [ en-US ] = "Title, 2 Objects Above Text" ;
+};
+String STR_AUTOLAYOUT_TEXTOVEROBJ
+{
+ Text [ en-US ] = "Title, Text Above Object" ;
+};
+String STR_AUTOLAYOUT_4OBJ
+{
+ Text [ en-US ] = "Title, 4 Objects" ;
+};
+String STR_AUTOLAYOUT_4CLIPART
+{
+ Text [ en-US ] = "Title, 4 Cliparts" ;
+};
+String STR_AL_TITLE_VERT_OUTLINE
+{
+ Text [ en-US ] = "Title, Vertical Text" ;
+};
+String STR_AL_TITLE_VERT_OUTLINE_CLIPART
+{
+ Text [ en-US ] = "Title, Vertical Text, Clipart" ;
+};
+String STR_AL_VERT_TITLE_TEXT_CHART
+{
+ Text [ en-US ] = "Vertical Title, Text, Chart" ;
+};
+String STR_AL_VERT_TITLE_VERT_OUTLINE
+{
+ Text [ en-US ] = "Vertical Title, Vertical Text" ;
+};
+String STR_AUTOLAYOUT_6CLIPART
+{
+ Text [ en-US ] = "Title, 6 Cliparts" ;
+};
+
+String STR_AUTOLAYOUT_HANDOUT1
+{
+ Text [ en-US ] = "One Slide" ;
+};
+String STR_AUTOLAYOUT_HANDOUT2
+{
+ Text [ en-US ] = "Two Slides" ;
+};
+String STR_AUTOLAYOUT_HANDOUT3
+{
+ Text [ en-US ] = "Three Slides" ;
+};
+String STR_AUTOLAYOUT_HANDOUT4
+{
+ Text [ en-US ] = "Four Slides" ;
+};
+String STR_AUTOLAYOUT_HANDOUT6
+{
+ Text [ en-US ] = "Six Slides" ;
+};
+String STR_AUTOLAYOUT_HANDOUT9
+{
+ Text [ en-US ] = "Nine Slides" ;
+};
+
+String STR_AUTOLAYOUT_NOTES
+{
+ Text [ en-US ] = "Notes" ;
+};
+String STR_TRANSFORM
+{
+ Text [ en-US ] = "transform" ;
+};
+String STR_LINEEND
+{
+ Text [ en-US ] = "Line Ends" ;
+};
+String STR_DESC_LINEEND
+{
+ Text [ en-US ] = "Please enter a name for the new arrowhead:" ;
+};
+String STR_WARN_NAME_DUPLICATE
+{
+ Text [ en-US ] = "The name chosen already exists. \nPlease enter another name." ;
+};
+String STR_UNDO_ANIMATION
+{
+ Text [ en-US ] = "Animation parameters" ;
+};
+String STR_EXPORT_HTML_NAME
+{
+ Text [ en-US ] = "Web Page";
+};
+String STR_EXPORT_HTML_FILTER
+{
+ Text = "*.html;*.htm" ;
+};
+String STR_EXPORT_DIALOG_TITLE
+{
+ Text [ en-US ] = "Export" ;
+};
+String STR_HTMLEXP_DEFAULT_EXTENSION
+{
+ Text = ".html";
+};
+String STR_UNDO_COPYOBJECTS
+{
+ Text [ en-US ] = "Duplicate" ;
+};
+String STR_TITLE_NAMEGROUP
+{
+ Text [ en-US ] = "Name Object";
+};
+String STR_DESC_NAMEGROUP
+{
+ Text [ en-US ] = "Name";
+};
+String STR_WARN_PAGE_EXISTS
+{
+ Text [ en-US ] = "The slide name already exists or is invalid. Please enter another name." ;
+};
+String STR_SNAPDLG_SETLINE
+{
+ Text [ en-US ] = "Edit Snap Line" ;
+};
+String STR_SNAPDLG_SETPOINT
+{
+ Text [ en-US ] = "Edit Snap Point" ;
+};
+String STR_POPUP_EDIT_SNAPLINE
+{
+ Text [ en-US ] = "Edit Snap Line..." ;
+};
+String STR_POPUP_EDIT_SNAPPOINT
+{
+ Text [ en-US ] = "Edit Snap Point..." ;
+};
+String STR_POPUP_DELETE_SNAPLINE
+{
+ Text [ en-US ] = "Delete Snap Line" ;
+};
+String STR_POPUP_DELETE_SNAPPOINT
+{
+ Text [ en-US ] = "Delete Snap Point" ;
+};
+String STR_IMPRESS
+{
+ Text [ en-US ] = "StarImpress 4.0" ;
+};
+String STR_LAYER
+{
+ Text [ en-US ] = "Layer" ;
+};
+String STR_UNDO_DELETEPAGES
+{
+ Text [ en-US ] = "Delete slides" ;
+};
+String STR_UNDO_INSERTPAGES
+{
+ Text [ en-US ] = "Insert slides" ;
+};
+String STR_ASK_DELETE_LAYER
+{
+ Text [ en-US ] = "Are you sure you want to delete the level \"$\"?\nNote: All objects on this level will be deleted!" ;
+};
+String STR_ASK_DELETE_ALL_PICTURES
+{
+ Text [ en-US ] = "Do you really want to delete all images?" ;
+};
+String STR_UNDO_CHANGE_TITLE_AND_LAYOUT
+{
+ Text [ en-US ] = "Modify title and outline" ;
+};
+String STR_WAV_FILE
+{
+ Text [ en-US ] = "Sound" ;
+};
+String STR_MIDI_FILE
+{
+ Text [ en-US ] = "MIDI" ;
+};
+String STR_AU_FILE
+{
+ Text [ en-US ] = "Sun/NeXT Audio" ;
+};
+String STR_VOC_FILE
+{
+ Text [ en-US ] = "Creative Labs Audio" ;
+};
+String STR_AIFF_FILE
+{
+ Text [ en-US ] = "Apple/SGI Audio" ;
+};
+String STR_SVX_FILE
+{
+ Text [ en-US ] = "Amiga SVX Audio" ;
+};
+String STR_SD_PAGE
+{
+ Text [ en-US ] = "Slide" ;
+};
+String STR_ALL_FILES
+{
+ Text [ en-US ] = "All files (*.*)" ;
+};
+String STR_UNDO_INSERT_TEXTFRAME
+{
+ Text [ en-US ] = "Insert text frame" ;
+};
+String STR_ACTION_NOTPOSSIBLE
+{
+ Text [ en-US ] = "This function cannot be run \nwith the selected objects." ;
+};
+String STR_DLG_INSERT_PAGES_FROM_FILE
+{
+ Text [ en-US ] = "Insert File" ;
+};
+String STR_READ_DATA_ERROR
+{
+ Text [ en-US ] = "The file could not be loaded!" ;
+};
+String STR_SCALE_OBJECTS
+{
+ Text [ en-US ] = "The format of the new pages will be adapted.\nDo you want to adapt the objects, too?" ;
+};
+String STR_CREATE_PAGES
+{
+ Text [ en-US ] = "Create slides" ;
+};
+String STR_UNDO_CHANGE_PAGEFORMAT
+{
+ Text [ en-US ] = "Modify page format" ;
+};
+String STR_UNDO_CHANGE_PAGEBORDER
+{
+ Text [ en-US ] = "Modify page margins" ;
+};
+String STR_EDIT_OBJ
+{
+ Text [ en-US ] = "~Edit" ;
+};
+ModalDialog RID_UNDO_DELETE_WARNING
+{
+ OutputSize = TRUE;
+ Size = MAP_APPFONT( 175 + 39 + (3 * 6), (7 * 12) + 6 );
+ Moveable = TRUE;
+ Closeable = TRUE;
+
+ HelpID = RID_UNDO_DELETE_WARNING;
+
+ FixedImage IMG_UNDO_DELETE_WARNING
+ {
+ Pos = MAP_APPFONT( 6, 6 );
+ Size = MAP_APPFONT( 30, 30 );
+ };
+ FixedText FT_UNDO_DELETE_WARNING
+ {
+ Pos = MAP_APPFONT( 39, 6 );
+ Size = MAP_APPFONT( 175, 4 * 12 );
+ WordBreak = TRUE;
+ Text [ en-US ] = "This action deletes the list of actions that can\nbe undone. Previous changes made to the document are still valid,\nbut cannot be undone. Do you want to continue and\nthus assign the new slide design?";
+ };
+ CheckBox CB_UNDO_DELETE_DISABLE
+ {
+ Pos = MAP_APPFONT( 39, (4 * 12) + 9 );
+ Size = MAP_APPFONT( 175, 12 );
+ Text [ en-US ] = "~Do not show this warning again";
+ };
+ OKButton BTN_UNDO_DELETE_YES
+ {
+ Pos = MAP_APPFONT( 60, (5 * 12) + 13 );
+ Size = MAP_APPFONT( 50, 14 );
+ };
+ CancelButton BTN_UNDO_DELETE_NO
+ {
+ Pos = MAP_APPFONT( 120, (5 * 12) + 13 );
+ Size = MAP_APPFONT( 50, 14 );
+ DefButton = TRUE;
+ };
+ Text [ en-US ] = "%PRODUCTNAME %PRODUCTVERSION";
+};
+
+String STR_DELETE_PAGES
+{
+ Text [ en-US ] = "Delete slides" ;
+};
+String STR_WARN_PRINTFORMAT_FAILURE
+{
+ Text [ en-US ] = "The document format could not be set on the specified printer." ;
+};
+String STR_REMOVE_LINK
+{
+ Text [ en-US ] = "This graphic is linked to a document. \nDo you want to unlink the graphic in order to edit it?" ;
+};
+String STR_IMPORT_GRFILTER_OPENERROR
+{
+ Text [ en-US ] = "Graphics file cannot be opened" ;
+};
+String STR_IMPORT_GRFILTER_IOERROR
+{
+ Text [ en-US ] = "Graphics file cannot be read" ;
+};
+String STR_IMPORT_GRFILTER_FORMATERROR
+{
+ Text [ en-US ] = "Unknown graphics format" ;
+};
+String STR_IMPORT_GRFILTER_VERSIONERROR
+{
+ Text [ en-US ] = "This graphics file version is not supported" ;
+};
+String STR_IMPORT_GRFILTER_FILTERERROR
+{
+ Text [ en-US ] = "Graphics filter not found" ;
+};
+String STR_IMPORT_GRFILTER_TOOBIG
+{
+ Text [ en-US ] = "Not enough memory to import graphics" ;
+};
+String STR_OBJECTS
+{
+ Text [ en-US ] = "Objects" ;
+};
+String STR_END_SEARCHING
+{
+ Text [ en-US ] = "The document search is finished." ;
+};
+String STR_END_SPELLING
+{
+ Text [ en-US ] = "Spellcheck of entire document has been completed." ;
+};
+String STR_END_SPELLING_OBJ
+{
+ Text [ en-US ] = "The spellcheck for the selected objects has been completed." ;
+};
+String STR_NOLANGUAGE
+{
+ Text [ en-US ] = "The selected language is not available." ;
+};
+String STR_ASK_FOR_CONVERT_TO_BEZIER
+{
+ Text [ en-US ] = "Convert selected object to curve?" ;
+};
+String STR_UNDO_CHANGE_PRES_OBJECT
+{
+ Text [ en-US ] = "Modify presentation object '$'" ;
+};
+String STR_UNDO_MODIFY_PAGE
+{
+ Text [ en-US ] = "Slide layout" ;
+};
+String STR_STATSTR_PRINT
+{
+ Text [ en-US ] = "Printing..." ;
+};
+String STR_UNDO_INSERT_FILE
+{
+ Text [ en-US ] = "Insert file" ;
+};
+String STR_SCALE_OBJS_TO_PAGE
+{
+ Text [ en-US ] = "Should the graphics be scaled to the new slide format?" ;
+};
+String STR_UNDO_INSERT_SPECCHAR
+{
+ Text [ en-US ] = "Insert special character" ;
+};
+String STR_UNDO_SET_PRESLAYOUT
+{
+ Text [ en-US ] = "Apply presentation layout" ;
+};
+String STR_STRING_NOTFOUND
+{
+ Text [ en-US ] = "Search key not found." ;
+};
+String STR_PLAY
+{
+ Text [ en-US ] = "~Play" ;
+};
+String STR_STOP
+{
+ Text [ en-US ] = "Sto~p" ;
+};
+String STR_UNDO_ORIGINALSIZE
+{
+ Text [ en-US ] = "Original Size" ;
+};
+String STR_PRINT_DRAWING
+{
+ Text [ en-US ] = " (Drawing)" ;
+};
+String STR_PRINT_NOTES
+{
+ Text [ en-US ] = " (Notes)" ;
+};
+String STR_PRINT_HANDOUT
+{
+ Text [ en-US ] = " (Handout)" ;
+};
+String STR_PRINT_OUTLINE
+{
+ Text [ en-US ] = " (Outline)" ;
+};
+String STR_WARN_SCALE_FAIL
+{
+ Text [ en-US ] = "The specified scale is invalid.\nDo you want to enter a new one?" ;
+};
+String STR_CLICK_ACTION_NONE
+{
+ Text [ en-US ] = "No action" ;
+};
+String STR_CLICK_ACTION_PREVPAGE
+{
+ Text [ en-US ] = "Go to previous slide" ;
+};
+String STR_CLICK_ACTION_NEXTPAGE
+{
+ Text [ en-US ] = "Go to next slide" ;
+};
+String STR_CLICK_ACTION_FIRSTPAGE
+{
+ Text [ en-US ] = "Go to first slide" ;
+};
+String STR_CLICK_ACTION_LASTPAGE
+{
+ Text [ en-US ] = "Go to last slide" ;
+};
+String STR_CLICK_ACTION_BOOKMARK
+{
+ Text [ en-US ] = "Go to page or object" ;
+};
+String STR_CLICK_ACTION_DOCUMENT
+{
+ Text [ en-US ] = "Go to document" ;
+};
+String STR_CLICK_ACTION_VANISH
+{
+ Text [ en-US ] = "Fade object" ;
+};
+String STR_CLICK_ACTION_INVISIBLE
+{
+ Text [ en-US ] = "Hide object" ;
+};
+String STR_CLICK_ACTION_SOUND
+{
+ Text [ en-US ] = "Play sound" ;
+};
+String STR_CLICK_ACTION_VERB
+{
+ Text [ en-US ] = "Start object action" ;
+};
+String STR_CLICK_ACTION_PROGRAM
+{
+ Text [ en-US ] = "Run program" ;
+};
+String STR_CLICK_ACTION_MACRO
+{
+ Text [ en-US ] = "Run macro" ;
+};
+String STR_CLICK_ACTION_STOPPRESENTATION
+{
+ Text [ en-US ] = "Exit presentation" ;
+};
+String STR_EFFECTDLG_JUMP
+{
+ Text [ en-US ] = "Target";
+};
+String STR_EFFECTDLG_ACTION
+{
+ Text [ en-US ] = "Act~ion";
+};
+String STR_EFFECTDLG_SOUND
+{
+ Text [ en-US ] = "Sound" ;
+};
+String STR_EFFECTDLG_PAGE_OBJECT
+{
+ Text [ en-US ] = "Slide / Object" ;
+};
+String STR_EFFECTDLG_DOCUMENT
+{
+ Text [ en-US ] = "Document" ;
+};
+String STR_EFFECTDLG_PROGRAM
+{
+ Text [ en-US ] = "Program" ;
+};
+String STR_EFFECTDLG_MACRO
+{
+ Text [ en-US ] = "Macro" ;
+};
+ // Strings fuer Animations-Effekte
+String STR_EFFECT_NONE
+{
+ Text [ en-US ] = "No Effect" ;
+};
+String STR_INSERT_TEXT
+{
+ Text [ en-US ] = "Insert Text" ;
+};
+String STR_SLIDE_SINGULAR
+{
+ Text [ en-US ] = " Slide" ;
+};
+String STR_SLIDE_PLURAL
+{
+ Text [ en-US ] = " Slides" ;
+};
+String STR_LOAD_PRESENTATION_LAYOUT
+{
+ Text [ en-US ] = "Load Slide Design" ;
+};
+String STR_DRAGTYPE_URL
+{
+ Text [ en-US ] = "Insert as hyperlink" ;
+};
+String STR_DRAGTYPE_EMBEDDED
+{
+ Text [ en-US ] = "Insert as copy" ;
+};
+String STR_DRAGTYPE_LINK
+{
+ Text [ en-US ] = "Insert as link" ;
+};
+String STR_GLUE_ESCDIR_SMART
+{
+ Text [ en-US ] = "Smart" ;
+};
+String STR_GLUE_ESCDIR_LEFT
+{
+ Text [ en-US ] = "Left" ;
+};
+String STR_GLUE_ESCDIR_RIGHT
+{
+ Text [ en-US ] = "Right" ;
+};
+String STR_GLUE_ESCDIR_TOP
+{
+ Text [ en-US ] = "Top" ;
+};
+String STR_GLUE_ESCDIR_BOTTOM
+{
+ Text [ en-US ] = "Bottom" ;
+};
+String STR_GLUE_ESCDIR_LO
+{
+ Text [ en-US ] = "Top Left?" ;
+};
+String STR_GLUE_ESCDIR_LU
+{
+ Text [ en-US ] = "Bottom Left?" ;
+};
+String STR_GLUE_ESCDIR_RO
+{
+ Text [ en-US ] = "Top Right?" ;
+};
+String STR_GLUE_ESCDIR_RU
+{
+ Text [ en-US ] = "Bottom Right?" ;
+};
+String STR_GLUE_ESCDIR_HORZ
+{
+ Text [ en-US ] = "Horizontal" ;
+};
+String STR_GLUE_ESCDIR_VERT
+{
+ Text [ en-US ] = "Vertical" ;
+};
+String STR_GLUE_ESCDIR_ALL
+{
+ Text [ en-US ] = "All?" ;
+};
+String STR_CANT_PERFORM_IN_LIVEMODE
+{
+ Text [ en-US ] = "This action can't be run in the live mode." ;
+};
+String STR_PUBLISH_BACK
+{
+ Text [ en-US ] = "Back" ;
+};
+String STR_PUBLISH_NEXT
+{
+ Text [ en-US ] = "Continue" ;
+};
+String STR_PUBLISH_OUTLINE
+{
+ Text [ en-US ] = "Overview" ;
+};
+String STR_EYEDROPPER
+{
+ Text [ en-US ] = "Eyedropper" ;
+};
+String STR_UNDO_MORPHING
+{
+ Text [ en-US ] = "Cross-fading" ;
+};
+String STR_UNDO_COLORRESOLUTION
+{
+ Text [ en-US ] = "Color resolution" ;
+};
+String STR_UNDO_EXPAND_PAGE
+{
+ Text [ en-US ] = "Expand Slide" ;
+};
+String STR_UNDO_SUMMARY_PAGE
+{
+ Text [ en-US ] = "Table of Contents Slide" ;
+};
+String STR_TWAIN_NO_SOURCE_UNX
+{
+ Text [ en-US ] = "No SANE source is available at the moment." ;
+};
+
+String STR_TWAIN_NO_SOURCE
+{
+ Text [ en-US ] = "At present, no TWAIN source is available." ;
+};
+
+String STR_FIX
+{
+ Text [ en-US ] = "Fixed" ;
+};
+String STR_VAR
+{
+ Text [ en-US ] = "Variable" ;
+};
+String STR_STANDARD_NORMAL
+{
+ Text [ en-US ] = "Standard" ;
+};
+String STR_STANDARD_SMALL
+{
+ Text [ en-US ] = "Standard (short)" ;
+};
+String STR_STANDARD_BIG
+{
+ Text [ en-US ] = "Standard (long)" ;
+};
+String STR_FILEFORMAT_NAME_EXT
+{
+ Text [ en-US ] = "File name" ;
+};
+String STR_FILEFORMAT_FULLPATH
+{
+ Text [ en-US ] = "Path/File name" ;
+};
+String STR_FILEFORMAT_PATH
+{
+ Text [ en-US ] = "Path" ;
+};
+String STR_FILEFORMAT_NAME
+{
+ Text [ en-US ] = "File name without extension" ;
+};
+String STR_RELEASE_GRAPHICLINK
+{
+ Text [ en-US ] = "This graphic is linked to a document. Do you want to unlink the graphic in order to edit it?" ;
+};
+String STR_NEW_CUSTOMSHOW
+{
+ Text [ en-US ] = "New Custom Slide Show" ;
+};
+String STR_COPY_CUSTOMSHOW
+{
+ Text [ en-US ] = "Copy " ;
+};
+String STR_IMPRESS_DOCUMENT
+{
+ Text [ en-US ] = "Presentation" ;
+};
+String STR_IMPRESS_DOCUMENT_FULLTYPE_60
+{
+ Text [ en-US ] = "%PRODUCTNAME %PRODUCTVERSION Presentation" ;
+};
+String STR_GRAPHIC_DOCUMENT
+{
+ Text [ en-US ] = "Drawing" ;
+};
+String STR_GRAPHIC_DOCUMENT_FULLTYPE_60
+{
+ Text [ en-US ] = "%PRODUCTNAME %PRODUCTVERSION Drawing" ;
+};
+String STR_BREAK_METAFILE
+{
+ Text [ en-US ] = "Ungroup Metafile(s)...";
+};
+String STR_BREAK_FAIL
+{
+ Text [ en-US ] = "It was not possible to ungroup all drawing objects.";
+};
+
+// HtmlExport
+String STR_PUBDLG_SAMENAME
+{
+ Text [ en-US ] = "A design already exists with this name.\nDo you want to replace it?";
+};
+
+String STR_HTMLATTR_TEXT
+{
+ Text [ en-US ] = "Text";
+};
+
+String STR_HTMLATTR_LINK
+{
+ Text [ en-US ] = "Hyperlink";
+};
+
+String STR_HTMLATTR_VLINK
+{
+ Text [ en-US ] = "Visited link";
+};
+
+String STR_HTMLATTR_ALINK
+{
+ Text [ en-US ] = "Active link";
+};
+
+String STR_HTMLEXP_NOTES
+{
+ Text [ en-US ] = "Notes";
+};
+
+String STR_HTMLEXP_CONTENTS
+{
+ Text [ en-US ] = "Table of contents";
+};
+
+String STR_HTMLEXP_CLICKSTART
+{
+ Text [ en-US ] = "Click here to start";
+};
+
+String STR_HTMLEXP_AUTHOR
+{
+ Text [ en-US ] = "Author";
+};
+
+String STR_HTMLEXP_EMAIL
+{
+ Text [ en-US ] = "E-mail";
+};
+
+String STR_HTMLEXP_HOMEPAGE
+{
+ Text [ en-US ] = "Homepage";
+};
+
+String STR_HTMLEXP_INFO
+{
+ Text [ en-US ] = "Further information";
+};
+
+String STR_HTMLEXP_DOWNLOAD
+{
+ Text [ en-US ] = "Download presentation";
+};
+
+String STR_HTMLEXP_NOFRAMES
+{
+ Text [ en-US ] = "Unfortunately your browser does not support floating frames.";
+};
+
+String STR_HTMLEXP_FIRSTPAGE
+{
+ Text [ en-US ] = "First page";
+};
+
+String STR_HTMLEXP_LASTPAGE
+{
+ Text [ en-US ] = "Last page";
+};
+
+String STR_HTMLEXP_SETTEXT
+{
+ Text [ en-US ] = "Text";
+};
+
+String STR_HTMLEXP_SETGRAPHIC
+{
+ Text [ en-US ] = "Graphics";
+};
+
+String STR_HTMLEXP_OUTLINE
+{
+ Text [ en-US ] = "With contents";
+};
+
+String STR_HTMLEXP_NOOUTLINE
+{
+ Text [ en-US ] = "Without contents";
+};
+
+String STR_WEBVIEW_SAVE
+{
+ Text [ en-US ] = "To given page";
+};
+
+String STR_UNDO_VECTORIZE
+{
+ Text [ en-US ] = "Convert bitmap to polygon" ;
+};
+
+String STR_PRES_SOFTEND
+{
+ Text [ en-US ] = "Click to exit presentation..." ;
+};
+
+String STR_PRES_PAUSE
+{
+ Text [ en-US ] = "Pause..." ;
+};
+
+STRING STR_WIZARD_ORIGINAL
+{
+ Text [ en-US ] = "<Original>";
+};
+
+STRING STR_ISLOADING
+{
+ Text [ en-US ] = "Loading...";
+};
+
+String STR_DRAW_GRAF_TOOLBOX
+{
+ Text [ en-US ] = "Graphics Object Bar" ;
+};
+
+String STR_UNDO_APPLY_3D_FAVOURITE
+{
+ Text [ en-US ] = "Apply 3D favorite";
+};
+
+String STR_UNDO_GRAFFILTER
+{
+ Text [ en-US ] = "Graphics filter" ;
+};
+
+String STR_WARNING_NOSOUNDFILE
+{
+ Text [ en-US ] = "The file %\nis not a valid sound file !" ;
+};
+
+String STR_UNDO_CONVERT_TO_METAFILE
+{
+ Text [ en-US ] = "Convert to metafile" ;
+};
+
+String STR_UNDO_CONVERT_TO_BITMAP
+{
+ Text [ en-US ] = "Convert to bitmap" ;
+};
+String STR_HTMLEXP_ERROR_CREATE_FILE
+{
+ Text [ en-US ] = "Cannot create the file $(URL1).";
+};
+String STR_HTMLEXP_ERROR_OPEN_FILE
+{
+ Text [ en-US ] = "Could not open the file $(URL1).";
+};
+String STR_HTMLEXP_ERROR_COPY_FILE
+{
+ Text [ en-US ] = "The file $(URL1) could not be copied to $(URL2)";
+};
+String STR_PAGE_BACKGROUND_TITLE
+{
+ Text [ en-US ] = "Page Settings" ;
+};
+String STR_PAGE_BACKGROUND_TXT
+{
+ Text [ en-US ] = "Background settings for all pages?" ;
+};
+String STR_TITLE_RENAMESLIDE
+{
+ Text [ en-US ] = "Rename Slide";
+};
+String STR_TITLE_SAVE_AS_PICTURE
+{
+ Text [ en-US ] = "Save as Picture";
+};
+String STR_DESC_RENAMESLIDE
+{
+ Text [ en-US ] = "Name";
+};
+
+String STR_PLACEHOLDER_DESCRIPTION_TITLE
+{
+ Text [ en-US ] = "Title Area for AutoLayouts" ;
+};
+
+String STR_PLACEHOLDER_DESCRIPTION_OUTLINE
+{
+ Text [ en-US ] = "Object Area for AutoLayouts" ;
+};
+
+String STR_PLACEHOLDER_DESCRIPTION_FOOTER
+{
+ Text [ en-US ] = "Footer Area" ;
+};
+
+String STR_PLACEHOLDER_DESCRIPTION_HEADER
+{
+ Text [ en-US ] = "Header Area" ;
+};
+
+String STR_PLACEHOLDER_DESCRIPTION_DATETIME
+{
+ Text [ en-US ] = "Date Area" ;
+};
+
+String STR_PLACEHOLDER_DESCRIPTION_SLIDE
+{
+ Text [ en-US ] = "Slide Number Area" ;
+};
+
+String STR_PLACEHOLDER_DESCRIPTION_NUMBER
+{
+ Text [ en-US ] = "Page Number Area" ;
+};
+
+String STR_FIELD_PLACEHOLDER_HEADER
+{
+ Text [ en-US ] = "<header>" ;
+};
+
+String STR_FIELD_PLACEHOLDER_FOOTER
+{
+ Text [ en-US ] = "<footer>" ;
+};
+
+String STR_FIELD_PLACEHOLDER_DATETIME
+{
+ Text [ en-US ] = "<date/time>" ;
+};
+String STR_FIELD_PLACEHOLDER_NUMBER
+{
+ Text [ en-US ] = "<number>" ;
+};
+String STR_FIELD_PLACEHOLDER_COUNT
+{
+ Text [ en-US ]="<count>" ;
+};
+
+String STR_PLACEHOLDER_DESCRIPTION_NOTES
+{
+ Text [ en-US ] = "Notes Area";
+};
+
+String STR_UNDO_HANGULHANJACONVERSION
+{
+ Text [ en-US ] = "Hangul/Hanja Conversion";
+};
+
+String STR_LEFT_PANE_IMPRESS_TITLE
+{
+ Text [ en-US ] = "Slides";
+};
+String STR_LEFT_PANE_DRAW_TITLE
+{
+ Text [ en-US ] = "Pages";
+};
+String STR_RIGHT_PANE_TITLE
+{
+ Text [ en-US ] = "Tasks";
+};
+String STR_TASKPANEL_MASTER_PAGE_TITLE
+{
+ Text [ en-US ] = "Master Pages";
+};
+String STR_TASKPANEL_MASTER_PAGE_MENU_TITLE
+{
+ Text [ en-US ] = "View";
+};
+String STR_TASKPANEL_MASTER_PAGE_MENU_LOCK
+{
+ Text [ en-US ] = "~Dock Task Pane";
+};
+String STR_TASKPANEL_MASTER_PAGE_MENU_UNLOCK
+{
+ Text [ en-US ] = "~Undock Task Pane";
+};
+String STR_TASKPANEL_CURRENT_MASTER_PAGES_TITLE
+{
+ Text [ en-US ] = "Used in This Presentation";
+};
+String STR_TASKPANEL_RECENT_MASTER_PAGES_TITLE
+{
+ Text [ en-US ] = "Recently Used";
+};
+String STR_TASKPANEL_ALL_MASTER_PAGES_TITLE
+{
+ Text [ en-US ] = "Available for Use";
+};
+String STR_TASKPANEL_NOT_AVAILABLE_SUBSTITUTION
+{
+ Text [ en-US ] = "Preview not available";
+};
+String STR_TASKPANEL_PREPARING_PREVIEW_SUBSTITUTION
+{
+ Text [ en-US ] = "Preparing preview";
+};
+String STR_TASKPANEL_LAYOUT_MENU_TITLE
+{
+ Text [ en-US ] = "Layouts";
+};
+String STR_GRAPHICS_STYLE_FAMILY
+{
+ Text [ en-US ] = "Graphics Styles";
+};
+String STR_CELL_STYLE_FAMILY
+{
+ Text [ en-US ] = "Cell Styles";
+};
+String DLG_TABLEDESIGNPANE
+{
+ Text [ en-US ] = "Table Designs";
+};
+String STR_NAVIGATOR_SHOW_NAMED_SHAPES
+{
+ Text [ en-US ] = "Named shapes";
+};
+String STR_NAVIGATOR_SHOW_ALL_SHAPES
+{
+ Text [ en-US ] = "All shapes";
+};
+String STR_NAVIGATOR_SHAPE_BASE_NAME
+{
+ Text [ en-US ] = "Shape %1";
+};
+String STR_SET_BACKGROUND_PICTURE
+{
+ Text [ en-US ] = "Set Background Picture for Slide ..." ;
+};
+String RID_ANNOTATIONS_START
+{
+ Text [ en-US ] = "Comments";
+};
diff --git a/sd/source/ui/app/tbx_ww.src b/sd/source/ui/app/tbx_ww.src
new file mode 100644
index 000000000000..7a5448982d67
--- /dev/null
+++ b/sd/source/ui/app/tbx_ww.src
@@ -0,0 +1,1127 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: tbx_ww.src,v $
+ * $Revision: 1.36 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+#include <svx/svxids.hrc>
+#include <svx/globlmn.hrc>
+#include "app.hrc"
+#include "res_bmp.hrc"
+#include "helpids.h"
+
+FloatingWindow RID_ALIGNMENT
+{
+ HelpId = HID_SD_FW_ALIGNMENT ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Text [ en-US ] = "Alignment" ;
+ ToolBox RID_ALIGNMENT_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ ITEM_FORMAT_OBJECT_ALIGN_LEFT
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_OBJECT_ALIGN_CENTER
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_OBJECT_ALIGN_RIGHT
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_OBJECT_ALIGN_UP
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_OBJECT_ALIGN_MIDDLE
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_OBJECT_ALIGN_DOWN
+ };
+ };
+ };
+};
+FloatingWindow RID_ZOOM
+{
+ HelpId = HID_SD_FW_ZOOM ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Text [ en-US ] = "Zoom" ;
+ ToolBox RID_ZOOM_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ LineCount = 2 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_ZOOM_OUT ;
+ HelpID = SID_ZOOM_OUT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ZOOM_IN ;
+ HelpID = SID_ZOOM_IN ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_SIZE_REAL ;
+ HelpID = SID_SIZE_REAL ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ZOOM_PREV ;
+ HelpID = SID_ZOOM_PREV ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ZOOM_NEXT ;
+ HelpID = SID_ZOOM_NEXT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_SIZE_PAGE ;
+ HelpID = SID_SIZE_PAGE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_SIZE_PAGE_WIDTH ;
+ HelpID = SID_SIZE_PAGE_WIDTH ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_SIZE_ALL ;
+ HelpID = SID_SIZE_ALL ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_SIZE_OPTIMAL ;
+ HelpID = SID_SIZE_OPTIMAL ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ZOOM_PANNING ;
+ HelpID = SID_ZOOM_PANNING ;
+ };
+ };
+ };
+};
+FloatingWindow RID_CHOOSE_MODE
+{
+ HelpId = HID_SD_FW_CHOOSE_MODE ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Text [ en-US ] = "Effects" ;
+ ToolBox RID_CHOOSE_MODE_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ LineCount = 2 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_OBJECT_ROTATE
+ Checkable = TRUE ;
+ RadioCheck = TRUE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_OBJECT_MIRROR ;
+ HelpID = SID_OBJECT_MIRROR ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONVERT_TO_3D_LATHE ;
+ HelpID = SID_CONVERT_TO_3D_LATHE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_OBJECT_CROOK_ROTATE ;
+ HelpID = SID_OBJECT_CROOK_ROTATE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_OBJECT_CROOK_SLANT ;
+ HelpID = SID_OBJECT_CROOK_SLANT ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_OBJECT_SHEAR ;
+ HelpID = SID_OBJECT_SHEAR ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_OBJECT_TRANSPARENCE ;
+ HelpID = SID_OBJECT_TRANSPARENCE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_OBJECT_GRADIENT ;
+ HelpID = SID_OBJECT_GRADIENT ;
+ };
+ };
+ };
+};
+FloatingWindow RID_TEXT
+{
+ HelpId = HID_SD_FW_TEXT ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ ToolBox RID_TEXT_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ LineCount = 2 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_ATTR_CHAR ;
+ HelpID = SID_ATTR_CHAR ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_TEXT_FITTOSIZE ;
+ HelpID = SID_TEXT_FITTOSIZE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_DRAW_CAPTION ;
+ HelpId = SID_DRAW_CAPTION ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_DRAW_FONTWORK ;
+ HelpId = SID_DRAW_FONTWORK ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_ATTR_CHAR_VERTICAL ;
+ HelpID = SID_ATTR_CHAR_VERTICAL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_TEXT_FITTOSIZE_VERTICAL ;
+ HelpID = SID_TEXT_FITTOSIZE_VERTICAL ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_DRAW_CAPTION_VERTICAL ;
+ HelpId = SID_DRAW_CAPTION_VERTICAL ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_DRAW_FONTWORK_VERTICAL ;
+ HelpId = SID_DRAW_FONTWORK_VERTICAL ;
+ };
+ };
+ };
+ Text [ en-US ] = "Text" ;
+};
+FloatingWindow RID_RECTANGLES
+{
+ HelpId = HID_SD_FW_RECTANGLES ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Text [ en-US ] = "Rectangles" ;
+ ToolBox RID_RECTANGLES_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ LineCount = 2 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_RECT ;
+ HelpID = SID_DRAW_RECT ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_SQUARE ;
+ HelpID = SID_DRAW_SQUARE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_RECT_ROUND ;
+ HelpID = SID_DRAW_RECT_ROUND ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_SQUARE_ROUND ;
+ HelpID = SID_DRAW_SQUARE_ROUND ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_RECT_NOFILL ;
+ HelpID = SID_DRAW_RECT_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_SQUARE_NOFILL ;
+ HelpID = SID_DRAW_SQUARE_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_RECT_ROUND_NOFILL ;
+ HelpID = SID_DRAW_RECT_ROUND_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_SQUARE_ROUND_NOFILL ;
+ HelpID = SID_DRAW_SQUARE_ROUND_NOFILL ;
+ };
+ };
+ };
+};
+FloatingWindow RID_ELLIPSES
+{
+ HelpId = HID_SD_FW_ELLIPSES ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Text [ en-US ] = "Ellipses" ;
+ ToolBox RID_ELLIPSES_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ LineCount = 2 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_ELLIPSE ;
+ HelpID = SID_DRAW_ELLIPSE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_CIRCLE ;
+ HelpID = SID_DRAW_CIRCLE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_PIE ;
+ HelpID = SID_DRAW_PIE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_CIRCLEPIE ;
+ HelpID = SID_DRAW_CIRCLEPIE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_ELLIPSECUT ;
+ HelpID = SID_DRAW_ELLIPSECUT ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_CIRCLECUT ;
+ HelpID = SID_DRAW_CIRCLECUT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_ELLIPSE_NOFILL ;
+ HelpID = SID_DRAW_ELLIPSE_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_CIRCLE_NOFILL ;
+ HelpID = SID_DRAW_CIRCLE_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_PIE_NOFILL ;
+ HelpID = SID_DRAW_PIE_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_CIRCLEPIE_NOFILL ;
+ HelpID = SID_DRAW_CIRCLEPIE_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_ELLIPSECUT_NOFILL ;
+ HelpID = SID_DRAW_ELLIPSECUT_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_CIRCLECUT_NOFILL ;
+ HelpID = SID_DRAW_CIRCLECUT_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_ARC ;
+ HelpID = SID_DRAW_ARC ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_CIRCLEARC ;
+ HelpID = SID_DRAW_CIRCLEARC ;
+ };
+ };
+ };
+};
+FloatingWindow RID_LINES
+{
+ HelpId = HID_SD_FW_LINES ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Text [ en-US ] = "Curves" ;
+ ToolBox RID_LINES_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ HelpID = 1 ;
+ LineCount = 2 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_BEZIER_FILL ;
+ HelpID = SID_DRAW_BEZIER_FILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_POLYGON ;
+ HelpID = SID_DRAW_POLYGON ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_XPOLYGON ;
+ HelpID = SID_DRAW_XPOLYGON ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_FREELINE ;
+ HelpID = SID_DRAW_FREELINE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_BEZIER_NOFILL ;
+ HelpID = SID_DRAW_BEZIER_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_POLYGON_NOFILL ;
+ HelpID = SID_DRAW_POLYGON_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_XPOLYGON_NOFILL ;
+ HelpID = SID_DRAW_XPOLYGON_NOFILL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_DRAW_FREELINE_NOFILL ;
+ HelpID = SID_DRAW_FREELINE_NOFILL ;
+ };
+ };
+ };
+};
+FloatingWindow RID_ARROWS
+{
+ HelpId = HID_SD_FW_ARROWS ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Text [ en-US ] = "Lines" ;
+ ToolBox RID_ARROWS_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ LineCount = 3 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_LINE ;
+ HelpID = SID_DRAW_LINE ;
+ };
+ ToolBoxItem
+ {
+ Checkable = TRUE ;
+ RadioCheck = TRUE ;
+ Identifier = SID_LINE_ARROW_END ;
+ HelpID = SID_LINE_ARROW_END ;
+ };
+ ToolBoxItem
+ {
+ Checkable = TRUE ;
+ RadioCheck = TRUE ;
+ Identifier = SID_LINE_ARROW_CIRCLE ;
+ HelpID = SID_LINE_ARROW_CIRCLE ;
+ };
+ ToolBoxItem
+ {
+ Checkable = TRUE ;
+ RadioCheck = TRUE ;
+ Identifier = SID_LINE_ARROW_SQUARE ;
+ HelpID = SID_LINE_ARROW_SQUARE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_XLINE ;
+ HelpID = SID_DRAW_XLINE ;
+ };
+ ToolBoxItem
+ {
+ Checkable = TRUE ;
+ RadioCheck = TRUE ;
+ Identifier = SID_LINE_ARROW_START ;
+ HelpID = SID_LINE_ARROW_START ;
+ };
+ ToolBoxItem
+ {
+ Checkable = TRUE ;
+ RadioCheck = TRUE ;
+ Identifier = SID_LINE_CIRCLE_ARROW ;
+ HelpID = SID_LINE_CIRCLE_ARROW ;
+ };
+ ToolBoxItem
+ {
+ Checkable = TRUE ;
+ RadioCheck = TRUE ;
+ Identifier = SID_LINE_SQUARE_ARROW ;
+ HelpID = SID_LINE_SQUARE_ARROW ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_DRAW_MEASURELINE ;
+ HelpID = SID_DRAW_MEASURELINE ;
+ };
+ ToolBoxItem
+ {
+ Checkable = TRUE ;
+ RadioCheck = TRUE ;
+ Identifier = SID_LINE_ARROWS ;
+ HelpID = SID_LINE_ARROWS ;
+ };
+ };
+ };
+};
+FloatingWindow RID_3D_OBJECTS
+{
+ HelpId = HID_SD_FW_3D_OBJECTS ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Text [ en-US ] = "3D Objects" ;
+ ToolBox RID_3D_OBJECTS_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ HelpID = 1 ;
+ LineCount = 2 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_3D_CUBE ;
+ HelpID = SID_3D_CUBE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_3D_SPHERE ;
+ HelpID = SID_3D_SPHERE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_3D_CYLINDER ;
+ HelpID = SID_3D_CYLINDER ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_3D_CONE ;
+ HelpID = SID_3D_CONE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_3D_PYRAMID ;
+ HelpID = SID_3D_PYRAMID ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_3D_TORUS ;
+ HelpID = SID_3D_TORUS ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_3D_SHELL ;
+ HelpID = SID_3D_SHELL ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Identifier = SID_3D_HALF_SPHERE ;
+ HelpID = SID_3D_HALF_SPHERE ;
+ };
+ };
+ };
+};
+FloatingWindow RID_CONNECTORS
+{
+ HelpId = HID_SD_FW_CONNECTORS ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Text [ en-US ] = "Connectors" ;
+ ToolBox RID_CONNECTORS_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ LineCount = 4 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_TOOL_CONNECTOR ;
+ HelpID = SID_TOOL_CONNECTOR ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_ARROW_START ;
+ HelpID = SID_CONNECTOR_ARROW_START ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_ARROW_END ;
+ HelpID = SID_CONNECTOR_ARROW_END ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_ARROWS ;
+ HelpID = SID_CONNECTOR_ARROWS ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_CIRCLE_START ;
+ HelpID = SID_CONNECTOR_CIRCLE_START ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_CIRCLE_END ;
+ HelpID = SID_CONNECTOR_CIRCLE_END ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_CIRCLES ;
+ HelpID = SID_CONNECTOR_CIRCLES ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINES ;
+ HelpID = SID_CONNECTOR_LINES ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINES_ARROW_START ;
+ HelpID = SID_CONNECTOR_LINES_ARROW_START ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINES_ARROW_END ;
+ HelpID = SID_CONNECTOR_LINES_ARROW_END ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINES_ARROWS ;
+ HelpID = SID_CONNECTOR_LINES_ARROWS ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINES_CIRCLE_START ;
+ HelpID = SID_CONNECTOR_LINES_CIRCLE_START ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINES_CIRCLE_END ;
+ HelpID = SID_CONNECTOR_LINES_CIRCLE_END ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINES_CIRCLES ;
+ HelpID = SID_CONNECTOR_LINES_CIRCLES ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINE ;
+ HelpID = SID_CONNECTOR_LINE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINE_ARROW_START ;
+ HelpID = SID_CONNECTOR_LINE_ARROW_START ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINE_ARROW_END ;
+ HelpID = SID_CONNECTOR_LINE_ARROW_END ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINE_ARROWS ;
+ HelpID = SID_CONNECTOR_LINE_ARROWS ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINE_CIRCLE_START ;
+ HelpID = SID_CONNECTOR_LINE_CIRCLE_START ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINE_CIRCLE_END ;
+ HelpID = SID_CONNECTOR_LINE_CIRCLE_END ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_LINE_CIRCLES ;
+ HelpID = SID_CONNECTOR_LINE_CIRCLES ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_CURVE ;
+ HelpID = SID_CONNECTOR_CURVE ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_CURVE_ARROW_START ;
+ HelpID = SID_CONNECTOR_CURVE_ARROW_START ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_CURVE_ARROW_END ;
+ HelpID = SID_CONNECTOR_CURVE_ARROW_END ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_CURVE_ARROWS ;
+ HelpID = SID_CONNECTOR_CURVE_ARROWS ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_CURVE_CIRCLE_START ;
+ HelpID = SID_CONNECTOR_CURVE_CIRCLE_START ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_CURVE_CIRCLE_END ;
+ HelpID = SID_CONNECTOR_CURVE_CIRCLE_END ;
+ };
+ ToolBoxItem
+ {
+ RadioCheck = TRUE ;
+ Checkable = TRUE ;
+ Identifier = SID_CONNECTOR_CURVE_CIRCLES ;
+ HelpID = SID_CONNECTOR_CURVE_CIRCLES ;
+ };
+ };
+ };
+};
+FloatingWindow RID_INSERT
+{
+ HelpId = HID_SD_FW_INSERT ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ /* ### ACHTUNG: Neuer Text in Resource? Einfügen : Einf³gen */
+ Text [ en-US ] = "Insert" ;
+ ToolBox RID_INSERT_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ HelpID = 1 ;
+ LineCount = 2 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_DIAGRAM ;
+ HelpID = SID_INSERT_DIAGRAM;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_MATH ;
+ HelpID = SID_INSERT_MATH ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_FLOATINGFRAME ;
+ HelpID = SID_INSERT_FLOATINGFRAME ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_OBJECT ;
+ HelpID = SID_INSERT_OBJECT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_PLUGIN ;
+ HelpID = SID_INSERT_PLUGIN ;
+ };
+#ifdef SOLAR_JAVA
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_APPLET ;
+ HelpID = SID_INSERT_APPLET ;
+ };
+#endif
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_TABLE ;
+ HelpID = SID_ATTR_TABLE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERTFILE ;
+ HelpID = SID_INSERTFILE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERTPAGE ;
+ HelpID = SID_INSERTPAGE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_GRAPHIC ;
+ HelpID = SID_INSERT_GRAPHIC ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_SOUND ;
+ HelpID = SID_INSERT_SOUND ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_VIDEO ;
+ HelpID = SID_INSERT_VIDEO ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_INSERT_AVMEDIA ;
+ HelpID = SID_INSERT_AVMEDIA ;
+ };
+ };
+ };
+};
+FloatingWindow RID_POSITION
+{
+ HelpId = HID_SD_FW_POSITION ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ SVLook = TRUE ;
+ Text [ en-US ] = "Arrange" ;
+ ToolBox RID_POSITION_TBX
+ {
+ SVLook = TRUE ;
+ MenuStrings = TRUE ;
+ LineCount = 2 ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ ITEM_FORMAT_FRAME_TO_TOP
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_MOREFRONT ;
+ HelpID = SID_MOREFRONT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_MOREBACK ;
+ HelpID = SID_MOREBACK ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_FRAME_TO_BOTTOM
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_BREAK ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEFORE_OBJ ;
+ HelpID = SID_BEFORE_OBJ ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEHIND_OBJ ;
+ HelpID = SID_BEHIND_OBJ ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SPACE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_REVERSE_ORDER ;
+ HelpID = SID_REVERSE_ORDER ;
+ };
+ };
+ };
+};
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sd/source/ui/app/tbxids_tmpl.src b/sd/source/ui/app/tbxids_tmpl.src
new file mode 100644
index 000000000000..3a8aa4e85609
--- /dev/null
+++ b/sd/source/ui/app/tbxids_tmpl.src
@@ -0,0 +1,539 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: tbxids_tmpl.src,v $
+ * $Revision: 1.7 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+#ifndef _TBXIDS_SRC
+#define _TBXIDS_SRC
+#define SEPARATOR ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
+#define TBI(x) ToolBoxItem { x };
+ //
+ // Werkzeugleiste
+ //
+#define TBI_OBJECT_SELECT \
+ ToolBoxItem\
+ {\
+ Identifier = SID_OBJECT_SELECT ; \
+ HelpID = SID_OBJECT_SELECT ; \
+ RadioCheck = TRUE ; \
+ Checkable = TRUE ; \
+ };
+
+#define TBI_ZOOM_TOOLBOX \
+ ToolBoxItem\
+ {\
+ Identifier = SID_ZOOM_TOOLBOX ; \
+ HelpID = SID_ZOOM_TOOLBOX ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_OBJECT_CHOOSE_MODE \
+ ToolBoxItem\
+ {\
+ Identifier = SID_OBJECT_CHOOSE_MODE ; \
+ HelpID = SID_OBJECT_CHOOSE_MODE ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_OBJECT_ALIGN \
+ ToolBoxItem\
+ {\
+ Identifier = SID_OBJECT_ALIGN ; \
+ HelpID = SID_OBJECT_ALIGN ; \
+ DropDown = TRUE ; \
+ };
+
+#define TBI_POSITION \
+ ToolBoxItem\
+ {\
+ Identifier = SID_POSITION ; \
+ HelpID = SID_POSITION ; \
+ DropDown = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_TEXT \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_TEXT ; \
+ HelpID = SID_DRAWTBX_TEXT ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_RECTANGLES \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_RECTANGLES ; \
+ HelpID = SID_DRAWTBX_RECTANGLES ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_ELLIPSES \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_ELLIPSES ; \
+ HelpID = SID_DRAWTBX_ELLIPSES ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_LINES \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_LINES ; \
+ HelpID = SID_DRAWTBX_LINES ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_ARROWS \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_ARROWS ; \
+ HelpID = SID_DRAWTBX_ARROWS ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_FONTWORK_GALLERY_FLOATER \
+ ToolBoxItem\
+ {\
+ Identifier = SID_FONTWORK_GALLERY_FLOATER ; \
+ HelpID = SID_FONTWORK_GALLERY_FLOATER ; \
+ DropDown = FALSE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_CS_BASIC \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_CS_BASIC ; \
+ HelpID = SID_DRAWTBX_CS_BASIC ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_CS_SYMBOL \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_CS_SYMBOL ; \
+ HelpID = SID_DRAWTBX_CS_SYMBOL ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_CS_ARROW \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_CS_ARROW ; \
+ HelpID = SID_DRAWTBX_CS_ARROW ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_CS_FLOWCHART \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_CS_FLOWCHART ; \
+ HelpID = SID_DRAWTBX_CS_FLOWCHART ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_CS_CALLOUT \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_CS_CALLOUT ; \
+ HelpID = SID_DRAWTBX_CS_CALLOUT ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_CS_STAR \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_CS_STAR ; \
+ HelpID = SID_DRAWTBX_CS_STAR ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_3D_OBJECTS \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_3D_OBJECTS ; \
+ HelpID = SID_DRAWTBX_3D_OBJECTS ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ Hide = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_CONNECTORS \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_CONNECTORS ; \
+ HelpID = SID_DRAWTBX_CONNECTORS ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_DRAWTBX_INSERT \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DRAWTBX_INSERT ; \
+ HelpID = SID_DRAWTBX_INSERT ; \
+ DropDown = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_PRESENTATION \
+ ToolBoxItem\
+ {\
+ Identifier = SID_PRESENTATION ; \
+ HelpID = SID_PRESENTATION ; \
+ };
+
+#define TBI_EFFECT_WIN \
+ ToolBoxItem\
+ {\
+ Identifier = SID_CUSTOM_ANIMATION_PANEL ; \
+ HelpID = SID_CUSTOM_ANIMATION_PANEL ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_ANIMATION_EFFECTS \
+ ToolBoxItem\
+ {\
+ Identifier = SID_ANIMATION_EFFECTS ; \
+ HelpID = SID_ANIMATION_EFFECTS ; \
+ };
+
+#define TBI_ANIMATION_OBJECTS \
+ ToolBoxItem\
+ {\
+ Identifier = SID_ANIMATION_OBJECTS ; \
+ HelpID = SID_ANIMATION_OBJECTS ; \
+ AutoCheck = TRUE ; \
+ Hide = TRUE; \
+ };
+
+#define TBI_3D_WIN \
+ ToolBoxItem\
+ {\
+ Identifier = SID_3D_WIN ; \
+ HelpID = SID_3D_WIN ; \
+ AutoCheck = TRUE ; \
+ Hide = TRUE; \
+ };
+
+ //
+ // Objektleiste
+ //
+#define TBI_FORMAT_BEZIER_EDIT_RC \
+ ToolBoxItem\
+ {\
+ ITEM_FORMAT_BEZIER_EDIT\
+ AutoCheck = TRUE ; \
+ Checkable = TRUE ; \
+ RadioCheck = TRUE ; \
+ };
+
+#define TBI_ATTR_FILL_SHADOW \
+ ToolBoxItem\
+ {\
+ Identifier = SID_ATTR_FILL_SHADOW ; \
+ HelpID = SID_ATTR_FILL_SHADOW ; \
+ };
+
+#define TBI_TOGGLECOMMONTASKBAR \
+ ToolBoxItem\
+ {\
+ Identifier = SID_TOGGLECOMMONTASKBAR ; \
+ HelpID = SID_TOGGLECOMMONTASKBAR ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_IMAGEMAP \
+ ToolBoxItem\
+ {\
+ Identifier = SID_IMAP ; \
+ HelpID = SID_IMAP; \
+ Hide = TRUE; \
+ };
+
+#define TBI_ZOOM_IN \
+ ToolBoxItem\
+ {\
+ Identifier = SID_ZOOM_IN ; \
+ HelpID = SID_ZOOM_IN; \
+ Hide = TRUE; \
+ };
+
+#define TBI_ZOOM_OUT \
+ ToolBoxItem\
+ {\
+ Identifier = SID_ZOOM_OUT ; \
+ HelpID = SID_ZOOM_OUT; \
+ Hide = TRUE; \
+ };
+
+#define TBI_ATTR_TRANSFORM \
+ ToolBoxItem\
+ {\
+ Identifier = SID_ATTR_TRANSFORM; \
+ HelpID = SID_ATTR_TRANSFORM; \
+ Hide = TRUE; \
+ };
+
+#define TBI_MIRROR \
+ ToolBoxItem\
+ {\
+ Identifier = SID_OBJECT_MIRROR; \
+ HelpID = SID_OBJECT_MIRROR; \
+ Hide = TRUE; \
+ };
+
+#define TBI_TRANSPARENCE \
+ ToolBoxItem\
+ {\
+ Identifier = SID_OBJECT_TRANSPARENCE; \
+ HelpID = SID_OBJECT_TRANSPARENCE; \
+ Hide = TRUE; \
+ };
+
+#define TBI_GRADIENT \
+ ToolBoxItem\
+ {\
+ Identifier = SID_OBJECT_GRADIENT; \
+ HelpID = SID_OBJECT_GRADIENT; \
+ Hide = TRUE; \
+ };
+
+#define TBI_CONVERT \
+ ToolBoxItem\
+ {\
+ Identifier = SID_CONVERT;\
+ HelpID = SID_CONVERT;\
+ Hide = TRUE; \
+ };
+
+#define TBI_LSPACE_10 \
+ ToolBoxItem \
+ {\
+ Identifier = SID_ATTR_PARA_LINESPACE_10; \
+ HelpID = SID_ATTR_PARA_LINESPACE_10; \
+ Hide = TRUE; \
+ };
+
+#define TBI_LSPACE_15 \
+ ToolBoxItem \
+ {\
+ Identifier = SID_ATTR_PARA_LINESPACE_15; \
+ HelpID = SID_ATTR_PARA_LINESPACE_15; \
+ Hide = TRUE; \
+ };
+
+#define TBI_LSPACE_20 \
+ ToolBoxItem \
+ {\
+ Identifier = SID_ATTR_PARA_LINESPACE_20; \
+ HelpID = SID_ATTR_PARA_LINESPACE_20; \
+ Hide = TRUE; \
+ };
+
+
+
+ //
+ // Optionsleiste
+ //
+#define TBI_FORMAT_BEZIER_EDIT \
+ ToolBoxItem\
+ {\
+ ITEM_FORMAT_BEZIER_EDIT\
+ AutoCheck = TRUE ; \
+ Checkable = TRUE ; \
+ };
+
+#define TBI_GLUE_EDITMODE \
+ ToolBoxItem\
+ {\
+ Checkable = TRUE ; \
+ AutoCheck = TRUE ; \
+ Identifier = SID_GLUE_EDITMODE ; \
+ HelpID = SID_GLUE_EDITMODE ; \
+ };
+
+#define TBI_CLICK_CHANGE_ROTATION \
+ ToolBoxItem\
+ {\
+ Identifier = SID_CLICK_CHANGE_ROTATION ; \
+ HelpID = SID_CLICK_CHANGE_ROTATION ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_GRID_VISIBLE \
+ ToolBoxItem\
+ {\
+ Identifier = SID_GRID_VISIBLE ; \
+ HelpID = SID_GRID_VISIBLE ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_HELPLINES_VISIBLE \
+ ToolBoxItem\
+ {\
+ Identifier = SID_HELPLINES_VISIBLE ; \
+ HelpID = SID_HELPLINES_VISIBLE ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_HELPLINES_MOVE \
+ ToolBoxItem\
+ {\
+ Identifier = SID_HELPLINES_MOVE ; \
+ HelpID = SID_HELPLINES_MOVE ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_GRID_USE \
+ ToolBoxItem\
+ {\
+ Identifier = SID_GRID_USE ; \
+ HelpID = SID_GRID_USE ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_HELPLINES_USE \
+ ToolBoxItem\
+ {\
+ Identifier = SID_HELPLINES_USE ; \
+ HelpID = SID_HELPLINES_USE ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_SNAP_BORDER \
+ ToolBoxItem\
+ {\
+ Identifier = SID_SNAP_BORDER ; \
+ HelpID = SID_SNAP_BORDER ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_SNAP_FRAME \
+ ToolBoxItem\
+ {\
+ Identifier = SID_SNAP_FRAME ; \
+ HelpID = SID_SNAP_FRAME ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_SNAP_POINTS \
+ ToolBoxItem\
+ {\
+ Identifier = SID_SNAP_POINTS ; \
+ HelpID = SID_SNAP_POINTS ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_QUICKEDIT \
+ ToolBoxItem\
+ {\
+ Identifier = SID_QUICKEDIT ; \
+ HelpID = SID_QUICKEDIT ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_PICK_THROUGH \
+ ToolBoxItem\
+ {\
+ Identifier = SID_PICK_THROUGH ; \
+ HelpID = SID_PICK_THROUGH ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_DOUBLECLICK_TEXTEDIT \
+ ToolBoxItem\
+ {\
+ Identifier = SID_DOUBLECLICK_TEXTEDIT ; \
+ HelpID = SID_DOUBLECLICK_TEXTEDIT ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_HANDLES_DRAFT \
+ ToolBoxItem\
+ {\
+ Identifier = SID_HANDLES_DRAFT ; \
+ HelpID = SID_HANDLES_DRAFT ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_BIG_HANDLES \
+ ToolBoxItem\
+ {\
+ Identifier = SID_BIG_HANDLES ; \
+ HelpID = SID_BIG_HANDLES ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_SOLID_CREATE \
+ ToolBoxItem\
+ {\
+ Identifier = SID_SOLID_CREATE ; \
+ HelpID = SID_SOLID_CREATE ; \
+ AutoCheck = TRUE ; \
+ };
+
+#define TBI_LEAVE_ALL_GROUPS \
+ ToolBoxItem\
+ {\
+ Identifier = SID_LEAVE_ALL_GROUPS ; \
+ HelpID = SID_LEAVE_ALL_GROUPS ; \
+ AutoCheck = TRUE ; \
+ };
+
+#endif // _TBXIDS_SRC
diff --git a/sd/source/ui/app/tbxww.cxx b/sd/source/ui/app/tbxww.cxx
new file mode 100644
index 000000000000..4318f8f9b4ac
--- /dev/null
+++ b/sd/source/ui/app/tbxww.cxx
@@ -0,0 +1,475 @@
+ /*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: tbxww.cxx,v $
+ * $Revision: 1.22 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+
+
+#include <sfx2/bindings.hxx>
+#include <svx/svxids.hrc>
+#include <svx/grafctrl.hxx>
+#include <svtools/cjkoptions.hxx>
+#include <sfx2/viewsh.hxx>
+#ifndef _SFX_IMAGEMGR_HXX
+#include <sfx2/imagemgr.hxx>
+#endif
+#include <rtl/ustring.hxx>
+#include <rtl/ustrbuf.hxx>
+
+#include "sddll.hxx"
+#include "GraphicDocShell.hxx"
+
+#include <vcl/toolbox.hxx>
+
+#include "app.hxx"
+#include "app.hrc"
+#include "res_bmp.hrc"
+#include "sdresid.hxx"
+#include "tbx_ww.hxx"
+#include "tbx_ww.hrc"
+
+SFX_IMPL_TOOLBOX_CONTROL( SdTbxControl, TbxImageItem )
+
+/*************************************************************************
+|*
+|* PopUp-Window
+|*
+\************************************************************************/
+/*
+SdPopupWindowTbx::SdPopupWindowTbx( USHORT nId, WindowAlign eAlign,
+ SdResId aRIdWin, SdResId aRIdTbx,
+ SfxBindings& rBindings ) :
+ SfxPopupWindow ( nId, aRIdWin, rBindings ),
+ aTbx ( this, GetBindings(), aRIdTbx ),
+ aSdResIdWin ( aRIdWin ),
+ aSdResIdTbx ( aRIdTbx ),
+ eTbxAlign ( eAlign )
+{
+ aTbx.UseDefault();
+ aSelectLink = aTbx.GetToolBox().GetSelectHdl();
+ aTbx.GetToolBox().SetSelectHdl( LINK( this, SdPopupWindowTbx, TbxSelectHdl ) );
+
+ FreeResource();
+
+ if( ( eAlign == WINDOWALIGN_TOP ) || ( eAlign == WINDOWALIGN_BOTTOM ) )
+ {
+ if ( aSdResIdWin.GetId() != RID_TEXT )
+ aTbx.GetToolBox().SetAlign( WINDOWALIGN_LEFT );
+
+ SetText( String() );
+ }
+
+ AdaptToCTL();
+}
+
+
+void SdPopupWindowTbx::AdaptToCTL (void)
+{
+ Size aSize = aTbx.CalcWindowSizePixel();
+ if (aSdResIdWin.GetId() == RID_TEXT)
+ {
+ SvtCJKOptions aCJKOptions;
+ if ( ! aCJKOptions.IsVerticalTextEnabled())
+ {
+ ToolBox& aToolBox = aTbx.GetToolBox();
+
+ // Iterate over all tool box items and remove those that are
+ // specific to complex text layout.
+ USHORT i=0;
+ while (i < aToolBox.GetItemCount())
+ {
+ USHORT nIndex = aToolBox.GetItemId(i);
+ switch (nIndex)
+ {
+ case 0: // Line break.
+ case SID_ATTR_CHAR_VERTICAL:
+ case SID_TEXT_FITTOSIZE_VERTICAL:
+ case SID_DRAW_CAPTION_VERTICAL:
+ case SID_DRAW_FONTWORK_VERTICAL:
+ aToolBox.RemoveItem (i);
+ break;
+
+ default:
+ // Leave the item unmodified. Advance to the next one.
+ i+=1;
+ }
+ }
+ aToolBox.RecalcItems();
+ // Why is this necessary?
+ aToolBox.SetLineCount(1);
+ USHORT nLineCount = aToolBox.GetLineCount();
+ aSize = aToolBox.CalcWindowSizePixel(nLineCount);
+ }
+ }
+ aTbx.SetPosSizePixel( Point(), aSize );
+ SetOutputSizePixel( aSize );
+}
+*/
+
+/*-------------------------------------------------------------------------*/
+/*
+SdPopupWindowTbx::~SdPopupWindowTbx()
+{
+}
+*/
+/*-------------------------------------------------------------------------*/
+/*
+SfxPopupWindow* SdPopupWindowTbx::Clone() const
+{
+ SfxBindings& rBindings = (SfxBindings&)GetBindings();
+
+ return( new SdPopupWindowTbx( GetId(), eTbxAlign,
+ aSdResIdWin, aSdResIdTbx, rBindings ) );
+
+ //return( SfxPopupWindow::Clone() );
+}
+*/
+/*-------------------------------------------------------------------------*/
+/*
+void SdPopupWindowTbx::Update()
+{
+ AdaptToCTL();
+
+ ToolBox *pBox = &aTbx.GetToolBox();
+ aTbx.Activate( pBox );
+ aTbx.Deactivate( pBox );
+}
+*/
+/*-------------------------------------------------------------------------*/
+/*
+void SdPopupWindowTbx::PopupModeEnd()
+{
+ aTbx.GetToolBox().EndSelection();
+
+ SfxPopupWindow::PopupModeEnd();
+}
+*/
+/*-------------------------------------------------------------------------*/
+/*
+IMPL_LINK( SdPopupWindowTbx, TbxSelectHdl, ToolBox*, pBox)
+{
+ if( IsInPopupMode() )
+ EndPopupMode();
+
+ aSelectLink.Call( &aTbx.GetToolBox() );
+
+ if ( pBox->GetModifier() & KEY_MOD1 )
+ {
+ // #99013# if selected with control key, return focus to current view
+ Window* pShellWnd = SfxViewShell::Current()->GetWindow();
+ if ( pShellWnd )
+ pShellWnd->GrabFocus();
+ }
+
+ return( 0L );
+}
+*/
+/*************************************************************************
+|*
+|* Klasse fuer Toolbox
+|*
+\************************************************************************/
+
+SdTbxControl::SdTbxControl( USHORT nSlotId, USHORT nId, ToolBox& rTbx ) :
+ SfxToolBoxControl( nSlotId, nId, rTbx )
+{
+ rTbx.SetItemBits( nId, TIB_DROPDOWN | rTbx.GetItemBits( nId ) );
+ rTbx.Invalidate();
+}
+
+/*-------------------------------------------------------------------------*/
+
+SfxPopupWindowType SdTbxControl::GetPopupWindowType() const
+{
+ return( SFX_POPUPWINDOW_ONTIMEOUT );
+}
+
+/*************************************************************************
+|*
+|* Hier wird das Fenster erzeugt
+|* Lage der Toolbox mit GetToolBox() abfragbar
+|* rItemRect sind die Screen-Koordinaten
+|*
+\************************************************************************/
+
+SfxPopupWindow* SdTbxControl::CreatePopupWindow()
+{
+ SfxPopupWindow *pWin = NULL;
+ rtl::OUString aToolBarResStr;
+ rtl::OUStringBuffer aTbxResName( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:resource/toolbar/" )));
+ switch( GetSlotId() )
+ {
+ case SID_OBJECT_ALIGN:
+ aTbxResName.appendAscii( "alignmentbar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_ZOOM_TOOLBOX:
+ aTbxResName.appendAscii( "zoombar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_OBJECT_CHOOSE_MODE:
+ aTbxResName.appendAscii( "choosemodebar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_POSITION:
+ aTbxResName.appendAscii( "positionbar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_DRAWTBX_TEXT:
+ aTbxResName.appendAscii( "textbar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_DRAWTBX_RECTANGLES:
+ aTbxResName.appendAscii( "rectanglesbar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_DRAWTBX_ELLIPSES:
+ aTbxResName.appendAscii( "ellipsesbar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_DRAWTBX_LINES:
+ aTbxResName.appendAscii( "linesbar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_DRAWTBX_ARROWS:
+ aTbxResName.appendAscii( "arrowsbar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_DRAWTBX_3D_OBJECTS:
+ aTbxResName.appendAscii( "3dobjectsbar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_DRAWTBX_CONNECTORS:
+ aTbxResName.appendAscii( "connectorsbar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ case SID_DRAWTBX_INSERT:
+ aTbxResName.appendAscii( "insertbar" );
+ aToolBarResStr = aTbxResName.makeStringAndClear();
+ break;
+ }
+
+ if ( aToolBarResStr.getLength() > 0 )
+ createAndPositionSubToolBar( aToolBarResStr );
+
+ return( pWin );
+}
+
+/*-------------------------------------------------------------------------*/
+
+void SdTbxControl::StateChanged( USHORT nSId,
+ SfxItemState eState, const SfxPoolItem* pState )
+{
+ SfxToolBoxControl::StateChanged( nSId, eState, pState );
+
+ if( eState == SFX_ITEM_AVAILABLE )
+ {
+ TbxImageItem* pItem = PTR_CAST( TbxImageItem, pState );
+ //DBG_ASSERT( pItem, "TbxImageItem erwartet!" );
+ // Im StarDesktop kann jetzt auch ein anderes Item ankommen,
+ // das nicht ausgewertet werden darf (#33802# und #33838#)
+ if( pItem )
+ {
+ ToolBox& rTbx = GetToolBox();
+ USHORT nImage = pItem->GetValue();
+ if( nImage == 0 )
+ {
+ if( rTbx.IsItemChecked( nSId ) )
+ rTbx.CheckItem( nSId, FALSE );
+ }
+ else
+ {
+ rtl::OUString aSlotURL( RTL_CONSTASCII_USTRINGPARAM( "slot:" ));
+ aSlotURL += rtl::OUString::valueOf( sal_Int32( nImage ));
+ Image aImage = GetImage( m_xFrame,
+ aSlotURL,
+ hasBigImages(),
+ GetToolBox().GetSettings().GetStyleSettings().GetHighContrastMode() );
+
+ // !-Operator prueft, ob Image nicht vorhanden ist
+ if( !!aImage )
+ {
+ rTbx.SetItemImage( GetId(), aImage );
+ rTbx.CheckItem( GetId(), IsCheckable( nImage ) );
+
+ if( nSId != SID_ZOOM_TOOLBOX &&
+ nSId != SID_DRAWTBX_INSERT &&
+ nSId != SID_POSITION &&
+ nSId != SID_OBJECT_ALIGN )
+ {
+ if( nSId != SID_OBJECT_CHOOSE_MODE &&
+ rTbx.IsItemChecked( SID_OBJECT_CHOOSE_MODE ) )
+ rTbx.CheckItem( SID_OBJECT_CHOOSE_MODE, FALSE );
+ if( nSId != SID_DRAWTBX_TEXT &&
+ rTbx.IsItemChecked( SID_DRAWTBX_TEXT ) )
+ rTbx.CheckItem( SID_DRAWTBX_TEXT, FALSE );
+ if( nSId != SID_DRAWTBX_RECTANGLES &&
+ rTbx.IsItemChecked( SID_DRAWTBX_RECTANGLES ) )
+ rTbx.CheckItem( SID_DRAWTBX_RECTANGLES, FALSE );
+ if( nSId != SID_DRAWTBX_ELLIPSES &&
+ rTbx.IsItemChecked( SID_DRAWTBX_ELLIPSES ) )
+ rTbx.CheckItem( SID_DRAWTBX_ELLIPSES, FALSE );
+ if( nSId != SID_DRAWTBX_LINES &&
+ rTbx.IsItemChecked( SID_DRAWTBX_LINES ) )
+ rTbx.CheckItem( SID_DRAWTBX_LINES, FALSE );
+ if( nSId != SID_DRAWTBX_ARROWS &&
+ rTbx.IsItemChecked( SID_DRAWTBX_ARROWS ) )
+ rTbx.CheckItem( SID_DRAWTBX_ARROWS, FALSE );
+ if( nSId != SID_DRAWTBX_3D_OBJECTS &&
+ rTbx.IsItemChecked( SID_DRAWTBX_3D_OBJECTS ) )
+ rTbx.CheckItem( SID_DRAWTBX_3D_OBJECTS, FALSE );
+ if( nSId != SID_DRAWTBX_CONNECTORS &&
+ rTbx.IsItemChecked( SID_DRAWTBX_CONNECTORS ) )
+ rTbx.CheckItem( SID_DRAWTBX_CONNECTORS, FALSE );
+ }
+ }
+ }
+ }
+ }
+}
+
+/*-------------------------------------------------------------------------*/
+
+BOOL SdTbxControl::IsCheckable( USHORT nSId )
+{
+ switch( nSId )
+ {
+ case SID_OBJECT_ROTATE:
+ case SID_OBJECT_MIRROR:
+ case SID_OBJECT_CROP:
+ case SID_OBJECT_TRANSPARENCE:
+ case SID_OBJECT_GRADIENT:
+ case SID_OBJECT_SHEAR:
+ case SID_OBJECT_CROOK_ROTATE:
+ case SID_OBJECT_CROOK_SLANT:
+ case SID_OBJECT_CROOK_STRETCH:
+ case SID_CONVERT_TO_3D_LATHE:
+
+ case SID_ATTR_CHAR:
+ case SID_ATTR_CHAR_VERTICAL:
+ case SID_TEXT_FITTOSIZE:
+ case SID_TEXT_FITTOSIZE_VERTICAL:
+ case SID_DRAW_CAPTION:
+ case SID_DRAW_CAPTION_VERTICAL:
+ case SID_DRAW_FONTWORK:
+ case SID_DRAW_FONTWORK_VERTICAL:
+
+ case SID_DRAW_RECT:
+ case SID_DRAW_SQUARE:
+ case SID_DRAW_RECT_ROUND:
+ case SID_DRAW_SQUARE_ROUND:
+ case SID_DRAW_RECT_NOFILL:
+ case SID_DRAW_SQUARE_NOFILL:
+ case SID_DRAW_RECT_ROUND_NOFILL:
+ case SID_DRAW_SQUARE_ROUND_NOFILL:
+
+ case SID_DRAW_ELLIPSE:
+ case SID_DRAW_CIRCLE:
+ case SID_DRAW_PIE:
+ case SID_DRAW_CIRCLEPIE:
+ case SID_DRAW_ELLIPSECUT:
+ case SID_DRAW_CIRCLECUT:
+ case SID_DRAW_ARC:
+ case SID_DRAW_CIRCLEARC:
+ case SID_DRAW_ELLIPSE_NOFILL:
+ case SID_DRAW_CIRCLE_NOFILL:
+ case SID_DRAW_PIE_NOFILL:
+ case SID_DRAW_CIRCLEPIE_NOFILL:
+ case SID_DRAW_ELLIPSECUT_NOFILL:
+ case SID_DRAW_CIRCLECUT_NOFILL:
+
+ case SID_DRAW_BEZIER_NOFILL:
+ case SID_DRAW_POLYGON_NOFILL:
+ case SID_DRAW_XPOLYGON_NOFILL:
+ case SID_DRAW_BEZIER_FILL:
+ case SID_DRAW_POLYGON:
+ case SID_DRAW_XPOLYGON:
+ case SID_DRAW_FREELINE:
+ case SID_DRAW_FREELINE_NOFILL:
+
+ case SID_DRAW_LINE:
+ case SID_DRAW_XLINE:
+ case SID_DRAW_MEASURELINE:
+ case SID_LINE_ARROW_START:
+ case SID_LINE_ARROW_END:
+ case SID_LINE_ARROWS:
+ case SID_LINE_ARROW_CIRCLE:
+ case SID_LINE_CIRCLE_ARROW:
+ case SID_LINE_ARROW_SQUARE:
+ case SID_LINE_SQUARE_ARROW:
+
+ case SID_3D_CUBE:
+ case SID_3D_SPHERE:
+ case SID_3D_CYLINDER:
+ case SID_3D_CONE:
+ case SID_3D_PYRAMID:
+ case SID_3D_TORUS:
+ case SID_3D_SHELL:
+ case SID_3D_HALF_SPHERE:
+
+ case SID_TOOL_CONNECTOR:
+ case SID_CONNECTOR_ARROW_START:
+ case SID_CONNECTOR_ARROW_END:
+ case SID_CONNECTOR_ARROWS:
+ case SID_CONNECTOR_CIRCLE_START:
+ case SID_CONNECTOR_CIRCLE_END:
+ case SID_CONNECTOR_CIRCLES:
+ case SID_CONNECTOR_LINE:
+ case SID_CONNECTOR_LINE_ARROW_START:
+ case SID_CONNECTOR_LINE_ARROW_END:
+ case SID_CONNECTOR_LINE_ARROWS:
+ case SID_CONNECTOR_LINE_CIRCLE_START:
+ case SID_CONNECTOR_LINE_CIRCLE_END:
+ case SID_CONNECTOR_LINE_CIRCLES:
+ case SID_CONNECTOR_CURVE:
+ case SID_CONNECTOR_CURVE_ARROW_START:
+ case SID_CONNECTOR_CURVE_ARROW_END:
+ case SID_CONNECTOR_CURVE_ARROWS:
+ case SID_CONNECTOR_CURVE_CIRCLE_START:
+ case SID_CONNECTOR_CURVE_CIRCLE_END:
+ case SID_CONNECTOR_CURVE_CIRCLES:
+ case SID_CONNECTOR_LINES:
+ case SID_CONNECTOR_LINES_ARROW_START:
+ case SID_CONNECTOR_LINES_ARROW_END:
+ case SID_CONNECTOR_LINES_ARROWS:
+ case SID_CONNECTOR_LINES_CIRCLE_START:
+ case SID_CONNECTOR_LINES_CIRCLE_END:
+ case SID_CONNECTOR_LINES_CIRCLES:
+
+
+
+ //case SID_ZOOM_OUT:
+ return( TRUE );
+ }
+ return( FALSE );
+}
+
+
+
diff --git a/sd/source/ui/app/tmplctrl.cxx b/sd/source/ui/app/tmplctrl.cxx
new file mode 100644
index 000000000000..ce7f1ff28acc
--- /dev/null
+++ b/sd/source/ui/app/tmplctrl.cxx
@@ -0,0 +1,164 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: tmplctrl.cxx,v $
+ *
+ * $Revision: 1.3 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_sd.hxx"
+
+// include ---------------------------------------------------------------
+
+
+#include <vcl/menu.hxx>
+#include <vcl/status.hxx>
+#include <svtools/style.hxx>
+#include <svtools/stritem.hxx>
+#include <sfx2/dispatch.hxx>
+
+#include "tmplctrl.hxx"
+#include "ViewShellBase.hxx"
+#include "drawdoc.hxx"
+#include "sdattr.hrc"
+#include "app.hrc"
+
+SFX_IMPL_STATUSBAR_CONTROL( SdTemplateControl, SfxStringItem );
+
+// class TemplatePopup_Impl --------------------------------------------------
+
+class TemplatePopup_Impl : public PopupMenu
+{
+public:
+ TemplatePopup_Impl();
+
+ USHORT GetCurId() const { return nCurId; }
+
+private:
+ USHORT nCurId;
+
+ virtual void Select();
+};
+
+// -----------------------------------------------------------------------
+
+TemplatePopup_Impl::TemplatePopup_Impl() :
+ PopupMenu(),
+ nCurId(USHRT_MAX)
+{
+}
+
+// -----------------------------------------------------------------------
+
+void TemplatePopup_Impl::Select()
+{
+ nCurId = GetCurItemId();
+}
+
+// class SdTemplateControl ------------------------------------------
+
+SdTemplateControl::SdTemplateControl( USHORT _nSlotId,
+ USHORT _nId,
+ StatusBar& rStb ) :
+ SfxStatusBarControl( _nSlotId, _nId, rStb )
+{
+}
+
+// -----------------------------------------------------------------------
+
+SdTemplateControl::~SdTemplateControl()
+{
+}
+
+// -----------------------------------------------------------------------
+
+void SdTemplateControl::StateChanged(
+ USHORT /*nSID*/, SfxItemState eState, const SfxPoolItem* pState )
+{
+ if( eState != SFX_ITEM_AVAILABLE || pState->ISA( SfxVoidItem ) )
+ GetStatusBar().SetItemText( GetId(), String() );
+ else if ( pState->ISA( SfxStringItem ) )
+ {
+ msTemplate = ((SfxStringItem*)pState)->GetValue();
+ GetStatusBar().SetItemText( GetId(), msTemplate );
+ }
+}
+
+// -----------------------------------------------------------------------
+
+void SdTemplateControl::Paint( const UserDrawEvent& )
+{
+ GetStatusBar().SetItemText( GetId(), msTemplate );
+}
+
+// -----------------------------------------------------------------------
+
+void SdTemplateControl::Command( const CommandEvent& rCEvt )
+{
+ if ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU && GetStatusBar().GetItemText( GetId() ).Len() )
+ {
+ SfxViewFrame* pViewFrame = SfxViewFrame::Current();
+
+ sd::ViewShellBase* pViewShellBase = sd::ViewShellBase::GetViewShellBase( pViewFrame );
+ if( !pViewShellBase )
+ return;
+
+ SdDrawDocument* pDoc = pViewShellBase->GetDocument();
+ if( !pDoc )
+ return;
+
+ CaptureMouse();
+ TemplatePopup_Impl aPop;
+ {
+ const USHORT nMasterCount = pDoc->GetMasterSdPageCount(PK_STANDARD);
+
+ USHORT nCount = 0;
+ for( USHORT nPage = 0; nPage < nMasterCount; ++nPage )
+ {
+ SdPage* pMaster = pDoc->GetMasterSdPage(nPage, PK_STANDARD);
+ if( pMaster )
+ aPop.InsertItem( ++nCount, pMaster->GetName() );
+ }
+ aPop.Execute( &GetStatusBar(), rCEvt.GetMousePosPixel());
+
+ USHORT nCurrId = aPop.GetCurId()-1;
+ if( nCurrId < nMasterCount )
+ {
+ SdPage* pMaster = pDoc->GetMasterSdPage(nCurrId, PK_STANDARD);
+ SfxStringItem aStyle( ATTR_PRESLAYOUT_NAME, pMaster->GetName() );
+ pViewFrame->GetDispatcher()->Execute(SID_PRESENTATION_LAYOUT,SFX_CALLMODE_SLOT, &aStyle, 0L );
+ pViewFrame->GetBindings().Invalidate(SID_PRESENTATION_LAYOUT);
+ pViewFrame->GetBindings().Invalidate(SID_STATUS_LAYOUT);
+ }
+ }
+
+ ReleaseMouse();
+ }
+}
+
+
+
diff --git a/sd/source/ui/app/toolbox.src b/sd/source/ui/app/toolbox.src
new file mode 100644
index 000000000000..6346626811ce
--- /dev/null
+++ b/sd/source/ui/app/toolbox.src
@@ -0,0 +1,789 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: toolbox.src,v $
+ * $Revision: 1.24 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+#include "app.hrc"
+#include "cfgids.hxx"
+#include "helpids.h"
+#include <svx/svxids.hrc>
+ // Werkzeugleiste (Impress)
+ // Objektleiste (Impress)
+ // Optionsleiste (Impress)
+#include "toolbox2_tmpl.src"
+ // Werkzeugleiste (Draw (Graphic))
+ // Objektleiste (Draw (Graphic))
+ // Optionsleiste (Draw (Graphic))
+#undef SD_TOOLBOX
+#define SD_TOOLBOX RID_GRAPHIC_TOOLBOX
+#include "toolbox2_tmpl.src"
+
+ToolBox RID_SLIDE_TOOLBOX
+{
+ HelpId = HID_SD_SLIDE_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_LEFT ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Checkable = TRUE ;
+ Identifier = SID_OBJECT_SELECT ;
+ HelpID = SID_OBJECT_SELECT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ZOOM_TOOLBOX ;
+ HelpID = SID_ZOOM_TOOLBOX ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PRESENTATION ;
+ HelpID = SID_PRESENTATION ;
+ };
+ TBI_ZOOM_IN
+ TBI_ZOOM_OUT
+ };
+};
+ToolBox RID_OUTLINE_TOOLBOX
+{
+ HelpId = HID_SD_OUTLINE_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_LEFT ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_ZOOM_TOOLBOX ;
+ HelpID = SID_ZOOM_TOOLBOX ;
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_COLLAPSE_ALL ;
+ HelpID = SID_OUTLINE_COLLAPSE_ALL ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_EXPAND_ALL ;
+ HelpID = SID_OUTLINE_EXPAND_ALL ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_COLLAPSE ;
+ HelpID = SID_OUTLINE_COLLAPSE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_EXPAND ;
+ HelpID = SID_OUTLINE_EXPAND ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_FORMAT ;
+ HelpID = SID_OUTLINE_FORMAT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_COLORVIEW ;
+ HelpID = SID_COLORVIEW ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PRESENTATION ;
+ HelpID = SID_PRESENTATION ;
+ };
+ TBI_ZOOM_IN
+ TBI_ZOOM_OUT
+ };
+};
+ToolBox RID_DRAW_COMMONTASK_TOOLBOX
+{
+ HelpId = HID_SD_DRAW_COMMONTASK_TOOLBOX ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_INSERTPAGE ;
+ HelpID = SID_INSERTPAGE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_MODIFYPAGE ;
+ HelpID = SID_MODIFYPAGE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PRESENTATION_LAYOUT ;
+ HelpID = SID_PRESENTATION_LAYOUT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_DUPLICATE_PAGE ;
+ HelpID = SID_DUPLICATE_PAGE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_EXPAND_PAGE ;
+ HelpID = SID_EXPAND_PAGE ;
+ };
+ };
+};
+ToolBox RID_BEZIER_TOOLBOX
+{
+ HelpId = HID_SD_BEZIER_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_TOP ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ ITEM_FORMAT_BEZIER_EDIT
+ AutoCheck = TRUE ;
+ Checkable = TRUE ;
+ RadioCheck = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_MOVE ;
+ HelpID = SID_BEZIER_MOVE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_INSERT ;
+ HelpID = SID_BEZIER_INSERT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_DELETE ;
+ HelpID = SID_BEZIER_DELETE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_CUTLINE ;
+ HelpID = SID_BEZIER_CUTLINE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_CONVERT ;
+ HelpID = SID_BEZIER_CONVERT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_EDGE ;
+ HelpID = SID_BEZIER_EDGE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_SMOOTH ;
+ HelpID = SID_BEZIER_SMOOTH ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_SYMMTR ;
+ HelpID = SID_BEZIER_SYMMTR ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_CLOSE ;
+ HelpID = SID_BEZIER_CLOSE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_BEZIER_ELIMINATE_POINTS ;
+ HelpID = SID_BEZIER_ELIMINATE_POINTS ;
+ };
+ };
+};
+ToolBox RID_GLUEPOINTS_TOOLBOX
+{
+ HelpId = HID_SD_GLUEPOINTS_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_TOP ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_INSERT_POINT ;
+ HelpID = SID_GLUE_INSERT_POINT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_ESCDIR_LEFT ;
+ HelpID = SID_GLUE_ESCDIR_LEFT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_ESCDIR_TOP ;
+ HelpID = SID_GLUE_ESCDIR_TOP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_ESCDIR_RIGHT ;
+ HelpID = SID_GLUE_ESCDIR_RIGHT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_ESCDIR_BOTTOM ;
+ HelpID = SID_GLUE_ESCDIR_BOTTOM ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_PERCENT ;
+ HelpID = SID_GLUE_PERCENT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_HORZALIGN_LEFT ;
+ HelpID = SID_GLUE_HORZALIGN_LEFT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_HORZALIGN_CENTER ;
+ HelpID = SID_GLUE_HORZALIGN_CENTER ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_HORZALIGN_RIGHT ;
+ HelpID = SID_GLUE_HORZALIGN_RIGHT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_VERTALIGN_TOP ;
+ HelpID = SID_GLUE_VERTALIGN_TOP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_VERTALIGN_CENTER ;
+ HelpID = SID_GLUE_VERTALIGN_CENTER ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_GLUE_VERTALIGN_BOTTOM ;
+ HelpID = SID_GLUE_VERTALIGN_BOTTOM ;
+ };
+ };
+};
+ToolBox RID_SLIDE_OBJ_TOOLBOX
+{
+ HelpId = HID_SD_SLIDE_OBJ_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_TOP ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_REHEARSE_TIMINGS ;
+ HelpID = SID_REHEARSE_TIMINGS ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_HIDE_SLIDE ;
+ HelpID = SID_HIDE_SLIDE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PAGES_PER_ROW ;
+ HelpID = SID_PAGES_PER_ROW ;
+ };
+ };
+};
+ToolBox RID_DRAW_GRAF_TOOLBOX
+{
+ HelpId = HID_SD_DRAW_GRAF_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_TOP ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_GRFFILTER;
+ HelpID = SID_GRFFILTER;
+ DropDown = TRUE ;
+ Checkable = FALSE ;
+ RadioCheck = FALSE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_MODE;
+ HelpID = SID_ATTR_GRAF_MODE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_RED;
+ HelpID = SID_ATTR_GRAF_RED;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_GREEN;
+ HelpID = SID_ATTR_GRAF_GREEN;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_BLUE;
+ HelpID = SID_ATTR_GRAF_BLUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_LUMINANCE;
+ HelpID = SID_ATTR_GRAF_BLUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_CONTRAST;
+ HelpID = SID_ATTR_GRAF_BLUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_GAMMA;
+ HelpID = SID_ATTR_GRAF_BLUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_TRANSPARENCE;
+ HelpID = SID_ATTR_GRAF_BLUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+
+ // #i25616#
+ ToolBoxItem
+ {
+ Identifier = SID_ATTRIBUTES_LINE;
+ HelpID = SID_ATTRIBUTES_LINE;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTRIBUTES_AREA;
+ HelpID = SID_ATTRIBUTES_AREA;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_FILL_SHADOW;
+ HelpID = SID_ATTR_FILL_SHADOW;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_GRAF_CROP;
+ HelpID = SID_ATTR_GRAF_CROP;
+ };
+ };
+};
+
+String RID_DRAW_VIEWER_TOOLBOX
+{
+ Text [ en-US ] = "Function Bar (viewing mode)" ;
+};
+
+ToolBox RID_DRAW_VIEWER_TOOLBOX
+{
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ LineSpacing = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_SAVEASDOC ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_EDITDOC ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_MAIL_SENDDOC ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_DIRECTEXPORTDOCASPDF ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PRINTDOCDIRECT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_COPY ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_SEARCH_DLG ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_NAVIGATOR ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_ZOOM ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PRESENTATION;
+ };
+ };
+ Scroll = TRUE ;
+};
+
+String RID_GRAPHIC_VIEWER_TOOLBOX
+{
+ Text [ en-US ] = "Function Bar (viewing mode)" ;
+};
+
+ToolBox RID_GRAPHIC_VIEWER_TOOLBOX
+{
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ LineSpacing = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Hide = TRUE ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_SAVEASDOC ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_EDITDOC ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_MAIL_SENDDOC ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_DIRECTEXPORTDOCASPDF ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PRINTDOCDIRECT ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_COPY ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_SEARCH_DLG ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_NAVIGATOR ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_ZOOM ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ };
+ Scroll = TRUE ;
+};
+
+ToolBox RID_DRAW_MEDIA_TOOLBOX
+{
+ HelpId = HID_SD_DRAW_MEDIA_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_TOP ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ Identifier = SID_AVMEDIA_TOOLBOX;
+ HelpID = SID_AVMEDIA_TOOLBOX;
+ };
+ };
+};
+String RID_DRAW_MEDIA_TOOLBOX
+{
+ Text [ en-US ] = "Media Playback" ;
+};
+String RID_DRAW_TABLE_TOOLBOX
+{
+ TEXT [ de ] = "Tabelle" ;
+ Text [ en-US ] = "Table" ;
+};
diff --git a/sd/source/ui/app/toolbox2_tmpl.src b/sd/source/ui/app/toolbox2_tmpl.src
new file mode 100644
index 000000000000..09ccd217c89e
--- /dev/null
+++ b/sd/source/ui/app/toolbox2_tmpl.src
@@ -0,0 +1,888 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: toolbox2_tmpl.src,v $
+ * $Revision: 1.9.106.1 $
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+#ifndef SD_TOOLBOX
+#define SD_TOOLBOX RID_DRAW_TOOLBOX
+#include "tbxids_tmpl.src"
+#include <svx/svxids.hrc>
+#include <svx/globlmn.hrc>
+#endif
+ //
+ // Werkzeugleiste
+ //
+ToolBox SD_TOOLBOX
+{
+ HelpId = HID_SD_DRAW_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_LEFT ;
+ ItemList =
+ {
+ TBI_OBJECT_SELECT
+ SEPARATOR
+ TBI_ZOOM_TOOLBOX
+ SEPARATOR
+ TBI_DRAWTBX_TEXT
+ TBI_DRAWTBX_RECTANGLES
+ TBI_DRAWTBX_ELLIPSES
+ TBI_DRAWTBX_3D_OBJECTS
+ TBI_DRAWTBX_LINES
+ TBI_DRAWTBX_ARROWS
+ TBI_DRAWTBX_CONNECTORS
+ TBI_FONTWORK_GALLERY_FLOATER
+ SEPARATOR
+ TBI_DRAWTBX_CS_BASIC
+ TBI_DRAWTBX_CS_SYMBOL
+ TBI_DRAWTBX_CS_ARROW
+ TBI_DRAWTBX_CS_FLOWCHART
+ TBI_DRAWTBX_CS_CALLOUT
+ TBI_DRAWTBX_CS_STAR
+ SEPARATOR
+#if SD_TOOLBOX != RID_DRAW_TOOLBOX
+ TBI_OBJECT_CHOOSE_MODE
+#endif
+#if SD_TOOLBOX == RID_DRAW_TOOLBOX
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_OBJECT_ROTATE
+ Checkable = TRUE ;
+ RadioCheck = TRUE ;
+ };
+#endif
+ TBI_OBJECT_ALIGN
+ TBI_POSITION
+ SEPARATOR
+ TBI_DRAWTBX_INSERT
+ ToolboxItem
+ {
+ ITEM_FORM_CONFIG
+ Hide = TRUE;
+ };
+ SEPARATOR
+#if SD_TOOLBOX == RID_DRAW_TOOLBOX
+ /* TBI_EFFECT_WIN */
+ TBI_ANIMATION_EFFECTS
+ TBI_ANIMATION_OBJECTS
+#endif
+ TBI_3D_WIN
+#if SD_TOOLBOX == RID_DRAW_TOOLBOX
+ SEPARATOR
+ TBI_PRESENTATION
+#endif
+ TBI_ZOOM_IN
+ TBI_ZOOM_OUT
+ TBI_ATTR_TRANSFORM
+ TBI_MIRROR
+ SEPARATOR
+ ToolboxItem
+ {
+ Identifier = SID_CHANGEBEZIER;
+ HelpID = SID_CHANGEBEZIER;
+ Hide = TRUE;
+ };
+ ToolboxItem
+ {
+ Identifier = SID_CHANGEPOLYGON;
+ HelpID = SID_CHANGEPOLYGON;
+ Hide = TRUE;
+ };
+ ToolboxItem
+ {
+ Identifier = SID_CONVERT_TO_3D;
+ HelpID = SID_CONVERT_TO_3D;
+ Hide = TRUE;
+ };
+ ToolboxItem
+ {
+ Identifier = SID_CONVERT_TO_3D_LATHE_FAST;
+ HelpID = SID_CONVERT_TO_3D_LATHE_FAST;
+ Hide = TRUE;
+ };
+ };
+};
+ //
+ // Objektleiste
+ //
+#if SD_TOOLBOX == RID_DRAW_TOOLBOX
+ToolBox RID_DRAW_OBJ_TOOLBOX
+#elif SD_TOOLBOX == RID_GRAPHIC_TOOLBOX
+ToolBox RID_GRAPHIC_OBJ_TOOLBOX
+#endif
+{
+ HelpId = HID_SD_DRAW_OBJ_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_TOP ;
+ ItemList =
+ {
+ TBI_FORMAT_BEZIER_EDIT_RC
+ SEPARATOR
+ TBI ( ITEM_FORMAT_ATTRIBUTES_LINE )
+ TBI ( ITEM_TOOLBAR_ATTR_LINEEND_STYLE )
+ TBI ( ITEM_TOOLBAR_ATTR_LINE_STYLE )
+ TBI ( ITEM_TOOLBAR_ATTR_LINE_WIDTH )
+ TBI ( ITEM_TOOLBAR_ATTR_LINE_COLOR )
+ SEPARATOR
+ TBI ( ITEM_FORMAT_ATTRIBUTES_AREA )
+ TBI ( ITEM_TOOLBAR_ATTR_FILL_STYLE )
+ SEPARATOR
+ TBI_ATTR_FILL_SHADOW
+#if SD_TOOLBOX == RID_DRAW_TOOLBOX
+ TBI_TOGGLECOMMONTASKBAR
+#endif
+ TBI_IMAGEMAP
+ };
+};
+ //
+ // Optionsleiste
+ //
+#if SD_TOOLBOX == RID_DRAW_TOOLBOX
+ToolBox RID_DRAW_OPTIONS_TOOLBOX
+#elif SD_TOOLBOX == RID_GRAPHIC_TOOLBOX
+ToolBox RID_GRAPHIC_OPTIONS_TOOLBOX
+#endif
+{
+ HelpId = HID_SD_DRAW_OPTIONS_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_TOP ;
+ ItemList =
+ {
+ TBI_FORMAT_BEZIER_EDIT
+ TBI_GLUE_EDITMODE
+ SEPARATOR
+ TBI_CLICK_CHANGE_ROTATION
+ SEPARATOR
+ TBI_GRID_VISIBLE
+ TBI_HELPLINES_VISIBLE
+ TBI_HELPLINES_MOVE
+ SEPARATOR
+ TBI_GRID_USE
+ TBI_HELPLINES_USE
+ TBI_SNAP_BORDER
+ TBI_SNAP_FRAME
+ TBI_SNAP_POINTS
+ SEPARATOR
+ TBI_QUICKEDIT
+ TBI_PICK_THROUGH
+ TBI_DOUBLECLICK_TEXTEDIT
+ SEPARATOR
+ TBI_HANDLES_DRAFT
+ TBI_BIG_HANDLES
+#if SD_TOOLBOX != RID_DRAW_TOOLBOX
+ TBI_SOLID_CREATE
+#endif
+ SEPARATOR
+ TBI_LEAVE_ALL_GROUPS
+ };
+};
+#if SD_TOOLBOX == RID_DRAW_TOOLBOX
+ToolBox RID_DRAW_TEXT_TOOLBOX
+#elif SD_TOOLBOX == RID_GRAPHIC_TOOLBOX
+ToolBox RID_GRAPHIC_TEXT_TOOLBOX
+#endif
+{
+ HelpId = HID_SD_TEXT_TOOLBOX ;
+ LineSpacing = TRUE ;
+ Dockable = TRUE ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Zoomable = TRUE ;
+ Scroll = TRUE ;
+ HideWhenDeactivate = TRUE ;
+ Border = TRUE ;
+ SVLook = TRUE ;
+ Customize = TRUE ;
+ MenuStrings = TRUE ;
+ Size = MAP_APPFONT ( 0 , 0 ) ;
+ Align = BOXALIGN_TOP ;
+ ItemList =
+ {
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_FONT
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_FONTHEIGHT
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_WEIGHT
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_POSTURE
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_UNDERLINE
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_OVERLINE
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_ATTR_CHAR_COLOR
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_PARA_ADJUST_LEFT
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_PARA_ADJUST_CENTER
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_PARA_ADJUST_RIGHT
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_PARA_ADJUST_BLOCK ;
+ HelpID = SID_ATTR_PARA_ADJUST_BLOCK ;
+ RadioCheck = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;
+ HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;
+ HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PARASPACE_INCREASE ;
+ HelpID = SID_PARASPACE_INCREASE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PARASPACE_DECREASE ;
+ HelpID = SID_PARASPACE_DECREASE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+#if SD_TOOLBOX != RID_DRAW_TOOLBOX
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_10
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_15
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_20
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_ON ;
+ HelpID = FN_NUM_BULLET_ON ;
+ };
+#else
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_10
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_15
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_20
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_ON ;
+ HelpID = FN_NUM_BULLET_ON ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_LEFT ;
+ HelpID = SID_OUTLINE_LEFT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_RIGHT ;
+ HelpID = SID_OUTLINE_RIGHT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_UP ;
+ HelpID = SID_OUTLINE_UP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_DOWN ;
+ HelpID = SID_OUTLINE_DOWN ;
+ };
+#endif
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_TEXTDIRECTION_LEFT_TO_RIGHT ;
+ HelpID = SID_TEXTDIRECTION_LEFT_TO_RIGHT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_TEXTDIRECTION_TOP_TO_BOTTOM ;
+ HelpID = SID_TEXTDIRECTION_TOP_TO_BOTTOM ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_CHAR_DLG
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_DLG
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+#if SD_TOOLBOX == RID_DRAW_TOOLBOX
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_BULLET ;
+ HelpID = SID_OUTLINE_BULLET ;
+ };
+#endif
+ ToolBoxItem
+ {
+ Identifier = SID_CHARMAP;
+ HelpId = SID_CHARMAP;
+ Hide = TRUE;
+ };
+ };
+ ItemList[ar] =
+ {
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_FONT
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_FONTHEIGHT
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_WEIGHT
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_POSTURE
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_UNDERLINE
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_OVERLINE
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_ATTR_CHAR_COLOR
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_PARA_ADJUST_RIGHT
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_PARA_ADJUST_CENTER
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_PARA_ADJUST_LEFT
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_PARA_ADJUST_BLOCK ;
+ HelpID = SID_ATTR_PARA_ADJUST_BLOCK ;
+ RadioCheck = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;
+ HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;
+ HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PARASPACE_INCREASE ;
+ HelpID = SID_PARASPACE_INCREASE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PARASPACE_DECREASE ;
+ HelpID = SID_PARASPACE_DECREASE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+#if SD_TOOLBOX != RID_DRAW_TOOLBOX
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_10
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_15
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_20
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_ON ;
+ HelpID = FN_NUM_BULLET_ON ;
+ };
+#else
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_10
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_15
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_20
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_ON ;
+ HelpID = FN_NUM_BULLET_ON ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_LEFT ;
+ HelpID = SID_OUTLINE_LEFT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_RIGHT ;
+ HelpID = SID_OUTLINE_RIGHT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_UP ;
+ HelpID = SID_OUTLINE_UP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_DOWN ;
+ HelpID = SID_OUTLINE_DOWN ;
+ };
+#endif
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_TEXTDIRECTION_LEFT_TO_RIGHT ;
+ HelpID = SID_TEXTDIRECTION_LEFT_TO_RIGHT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_TEXTDIRECTION_TOP_TO_BOTTOM ;
+ HelpID = SID_TEXTDIRECTION_TOP_TO_BOTTOM ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_CHAR_DLG
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_DLG
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+#if SD_TOOLBOX == RID_DRAW_TOOLBOX
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_BULLET ;
+ HelpID = SID_OUTLINE_BULLET ;
+ };
+#endif
+ ToolBoxItem
+ {
+ Identifier = SID_CHARMAP;
+ HelpId = SID_CHARMAP;
+ Hide = TRUE;
+ };
+ };
+ ItemList[he] =
+ {
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_FONT
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_FONTHEIGHT
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_WEIGHT
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_POSTURE
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_UNDERLINE
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_CHAR_OVERLINE
+ };
+ ToolBoxItem
+ {
+ ITEM_TOOLBAR_ATTR_CHAR_COLOR
+ DropDown = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_PARA_ADJUST_RIGHT
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_PARA_ADJUST_CENTER
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_ATTR_PARA_ADJUST_LEFT
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_PARA_ADJUST_BLOCK ;
+ HelpID = SID_ATTR_PARA_ADJUST_BLOCK ;
+ RadioCheck = TRUE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;
+ HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;
+ HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;
+ RadioCheck = TRUE ;
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PARASPACE_INCREASE ;
+ HelpID = SID_PARASPACE_INCREASE ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_PARASPACE_DECREASE ;
+ HelpID = SID_PARASPACE_DECREASE ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+#if SD_TOOLBOX != RID_DRAW_TOOLBOX
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_10
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_15
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_20
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_ON ;
+ HelpID = FN_NUM_BULLET_ON ;
+ };
+#else
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_10
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_15
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_LINESPACE_20
+ Hide = TRUE;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = FN_NUM_BULLET_ON ;
+ HelpID = FN_NUM_BULLET_ON ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_LEFT ;
+ HelpID = SID_OUTLINE_LEFT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_RIGHT ;
+ HelpID = SID_OUTLINE_RIGHT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_UP ;
+ HelpID = SID_OUTLINE_UP ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_DOWN ;
+ HelpID = SID_OUTLINE_DOWN ;
+ };
+#endif
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_TEXTDIRECTION_LEFT_TO_RIGHT ;
+ HelpID = SID_TEXTDIRECTION_LEFT_TO_RIGHT ;
+ };
+ ToolBoxItem
+ {
+ Identifier = SID_TEXTDIRECTION_TOP_TO_BOTTOM ;
+ HelpID = SID_TEXTDIRECTION_TOP_TO_BOTTOM ;
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_CHAR_DLG
+ };
+ ToolBoxItem
+ {
+ ITEM_FORMAT_PARA_DLG
+ };
+ ToolBoxItem
+ {
+ Type = TOOLBOXITEM_SEPARATOR ;
+ };
+#if SD_TOOLBOX == RID_DRAW_TOOLBOX
+ ToolBoxItem
+ {
+ Identifier = SID_OUTLINE_BULLET ;
+ HelpID = SID_OUTLINE_BULLET ;
+ };
+#endif
+ ToolBoxItem
+ {
+ Identifier = SID_CHARMAP;
+ HelpId = SID_CHARMAP;
+ Hide = TRUE;
+ };
+ };
+};
+