chartuno.cxx (7d1ce60b) chartuno.cxx (6f0b96b4)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 25 unchanged lines hidden (view full) ---

34#include <svx/svditer.hxx>
35#include <svx/svdoole2.hxx>
36#include <svx/svdpage.hxx>
37#include <svx/svdundo.hxx>
38#include <sfx2/app.hxx>
39#include <unotools/moduleoptions.hxx>
40#include <sot/clsids.hxx>
41#include <toolkit/helper/vclunohelper.hxx>
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 25 unchanged lines hidden (view full) ---

34#include <svx/svditer.hxx>
35#include <svx/svdoole2.hxx>
36#include <svx/svdpage.hxx>
37#include <svx/svdundo.hxx>
38#include <sfx2/app.hxx>
39#include <unotools/moduleoptions.hxx>
40#include <sot/clsids.hxx>
41#include <toolkit/helper/vclunohelper.hxx>
42#include <svx/charthelper.hxx>
42
43#include "chartuno.hxx"
44#include "miscuno.hxx"
45#include "docsh.hxx"
46#include "drwlayer.hxx"
47#include "undodat.hxx"
48#include "chartarr.hxx"
49#include "chartlis.hxx"

--- 236 unchanged lines hidden (view full) ---

286 pChartListener->StartListeningTo();
287
288 SdrOle2Obj* pObj = new SdrOle2Obj( ::svt::EmbeddedObjectRef( xObj, embed::Aspects::MSOLE_CONTENT ), aObjName, aInsRect );
289
290 // set VisArea
291 if( xObj.is())
292 xObj->setVisualAreaSize( nAspect, aSz );
293
43
44#include "chartuno.hxx"
45#include "miscuno.hxx"
46#include "docsh.hxx"
47#include "drwlayer.hxx"
48#include "undodat.hxx"
49#include "chartarr.hxx"
50#include "chartlis.hxx"

--- 236 unchanged lines hidden (view full) ---

287 pChartListener->StartListeningTo();
288
289 SdrOle2Obj* pObj = new SdrOle2Obj( ::svt::EmbeddedObjectRef( xObj, embed::Aspects::MSOLE_CONTENT ), aObjName, aInsRect );
290
291 // set VisArea
292 if( xObj.is())
293 xObj->setVisualAreaSize( nAspect, aSz );
294
295 // #121334#
296 ChartHelper::AdaptDefaultsForChart( xObj );
297
294 pPage->InsertObject( pObj );
295 pModel->AddUndo( new SdrUndoNewObj( *pObj ) );
296
297 // Dies veranlaesst Chart zum sofortigen Update
298 //SvData aEmpty;
299 //aIPObj->SendDataChanged( aEmpty );
300 }
301}

--- 526 unchanged lines hidden ---
298 pPage->InsertObject( pObj );
299 pModel->AddUndo( new SdrUndoNewObj( *pObj ) );
300
301 // Dies veranlaesst Chart zum sofortigen Update
302 //SvData aEmpty;
303 //aIPObj->SendDataChanged( aEmpty );
304 }
305}

--- 526 unchanged lines hidden ---