summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/ActionDescriptionProvider.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-05-22 14:19:55 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-05-22 14:19:55 +0000
commitd5b661d34df38d7a07cdde2a80178f27e8ef2e26 (patch)
tree9ada5323446953b910f91470cfe663ad38f15fce /svx/source/svdraw/ActionDescriptionProvider.cxx
parent3951c802d47b9839d2ba6a81968b255668a06371 (diff)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED
2007/02/08 14:40:22 iha 1.1.2.4: resync m195 -> m202 2005/11/22 10:31:24 bm 1.1.2.3: new action POS_SIZE for usage of the Position and Size dialog 2005/10/20 14:43:14 bm 1.1.2.2: license header change 2004/05/17 16:27:49 iha 1.1.2.1: #i27507# make undo resourcen available for use in other applications
Diffstat (limited to 'svx/source/svdraw/ActionDescriptionProvider.cxx')
-rw-r--r--svx/source/svdraw/ActionDescriptionProvider.cxx90
1 files changed, 90 insertions, 0 deletions
diff --git a/svx/source/svdraw/ActionDescriptionProvider.cxx b/svx/source/svdraw/ActionDescriptionProvider.cxx
new file mode 100644
index 000000000000..a3d3852548b7
--- /dev/null
+++ b/svx/source/svdraw/ActionDescriptionProvider.cxx
@@ -0,0 +1,90 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: ActionDescriptionProvider.cxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: vg $ $Date: 2007-05-22 15:19:55 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_svx.hxx"
+
+#include "ActionDescriptionProvider.hxx"
+#include "svdglob.hxx"
+#include "svdstr.hrc"
+
+::rtl::OUString ActionDescriptionProvider::createDescription( ActionType eActionType
+ , const ::rtl::OUString& rObjectName )
+{
+ USHORT nResID=0;
+ switch( eActionType )
+ {
+ case INSERT:
+ nResID=STR_UndoInsertObj;
+ break;
+ case DELETE:
+ nResID= STR_EditDelete;
+ break;
+ case CUT:
+ nResID= STR_ExchangeClpCut;
+ break;
+ case MOVE:
+ nResID= STR_EditMove;
+ break;
+ case RESIZE:
+ nResID= STR_EditResize;
+ break;
+ case ROTATE:
+ nResID= STR_EditRotate;
+ break;
+ case TRANSFORM:
+ nResID= STR_EditTransform;
+ break;
+ case FORMAT:
+ nResID= STR_EditSetAttributes;
+ break;
+ case MOVE_TOTOP:
+ nResID= STR_EditMovToTop;
+ break;
+ case MOVE_TOBOTTOM:
+ nResID= STR_EditMovToBtm;
+ break;
+ case POS_SIZE:
+ nResID = STR_EditPosSize;
+ break;
+ }
+ if(!nResID)
+ return rtl::OUString();
+
+ XubString aStr(ImpGetResStr(nResID));
+ XubString aName(rObjectName);
+ aStr.SearchAndReplaceAscii("%O", aName);
+ return rtl::OUString(aStr);
+}