summaryrefslogtreecommitdiff
path: root/reportdesign/source/ui/report/dlgedfunc.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-05 17:14:05 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-05 17:14:05 +0000
commit2b2542ecb510175d1ac3fdb13e318895f5267736 (patch)
tree891fbd951f0512c445c6557cdc842547bd7f8096 /reportdesign/source/ui/report/dlgedfunc.cxx
parentdb67a57e9880ba09ec7eb937959eb42612db7c75 (diff)
INTEGRATION: CWS rptchart01_DEV300 (1.5.62); FILE MERGED
2008/02/21 10:00:11 oj 1.5.62.4: #i85225# create DatabaseDataProvider in factory 2008/02/19 17:11:38 oj 1.5.62.3: merge conflict 2008/02/19 09:23:08 oj 1.5.62.2: RESYNC: (1.5-1.6); FILE MERGED 2008/01/24 12:39:33 oj 1.5.62.1: #i85225# changes for chart
Diffstat (limited to 'reportdesign/source/ui/report/dlgedfunc.cxx')
-rw-r--r--reportdesign/source/ui/report/dlgedfunc.cxx22
1 files changed, 19 insertions, 3 deletions
diff --git a/reportdesign/source/ui/report/dlgedfunc.cxx b/reportdesign/source/ui/report/dlgedfunc.cxx
index 678ae0801e14..1563bbc09779 100644
--- a/reportdesign/source/ui/report/dlgedfunc.cxx
+++ b/reportdesign/source/ui/report/dlgedfunc.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: dlgedfunc.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2008-01-29 13:52:33 $
+ * last change: $Author: kz $ $Date: 2008-03-05 18:14:05 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -92,11 +92,12 @@
#ifndef _SVDITER_HXX
#include <svx/svditer.hxx>
#endif
-
+#include <toolkit/helper/vclunohelper.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <uistrings.hrc>
#include "UndoEnv.hxx"
#include <RptModel.hxx>
+#include "InsertFunctions.hxx"
#define DEFAUL_MOVE_SIZE 100
namespace rptui
@@ -641,6 +642,21 @@ BOOL DlgEdFuncInsert::MouseButtonUp( const MouseEvent& rMEvt )
}
bReturn = m_pView->AreObjectsMarked();
+ if ( bReturn )
+ {
+ OReportController* pController = m_pParent->getViewsWindow()->getView()->getReportView()->getController();
+ const SdrMarkList& rMarkList = m_pView->GetMarkedObjectList();
+ for (sal_uInt32 i = 0; i < rMarkList.GetMarkCount();++i )
+ {
+ SdrMark* pMark = rMarkList.GetMark(i);
+ // bCheck = dynamic_cast<OUnoObject*>(pMark->GetMarkedSdrObj()) != NULL;
+ OOle2Obj* pObj = dynamic_cast<OOle2Obj*>(pMark->GetMarkedSdrObj());
+ if ( pObj && !pObj->IsEmpty() )
+ {
+ InitializeChart(pController->getModel(),pObj->GetObjRef());
+ }
+ }
+ }
}
else
checkMovementAllowed(rMEvt);