diff options
author | Armin Le Grand <alg@apache.org> | 2012-11-14 12:24:03 +0000 |
---|---|---|
committer | Armin Le Grand <alg@apache.org> | 2012-11-14 12:24:03 +0000 |
commit | af9220c24c9d80e5415d9d7d8f273b28d0d27cdb (patch) | |
tree | 69694542c9a2b6f285bf1c9c85e3102daa077f04 /sc | |
parent | 0050a8e4eace17ed1b55c7ec919edaa0daadc3a7 (diff) |
#121334# turbned back chart non-fill defaults, done the non-fill using tooling when chreating new chart modules
Notes
Notes:
merged as: 7c486ba2574486f886612b8c4c130c55acd7d93e
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xiescher.cxx | 4 | ||||
-rw-r--r-- | sc/source/filter/starcalc/scfobj.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/fuins2.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/chartuno.cxx | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index 534e44a5f308..a60993d7319a 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -75,6 +75,7 @@ #include <svx/unoapi.hxx> #include <svx/svditer.hxx> #include <editeng/writingmodeitem.hxx> +#include <svx/charthelper.hxx> #include "scitems.hxx" #include <editeng/eeitem.hxx> @@ -1731,6 +1732,9 @@ SdrObject* XclImpChartObj::DoCreateSdrObj( XclImpDffConverter& rDffConv, const R ::com::sun::star::awt::Size aAwtSize( aSize.Width(), aSize.Height() ); xEmbObj->setVisualAreaSize( nAspect, aAwtSize ); + // #121334# + ChartHelper::AdaptDefaultsForChart( xEmbObj ); + // create the container OLE object xSdrObj.reset( new SdrOle2Obj( svt::EmbeddedObjectRef( xEmbObj, nAspect ), aEmbObjName, rAnchorRect ) ); } diff --git a/sc/source/filter/starcalc/scfobj.cxx b/sc/source/filter/starcalc/scfobj.cxx index d865ab933f2e..97f5e456da1d 100644 --- a/sc/source/filter/starcalc/scfobj.cxx +++ b/sc/source/filter/starcalc/scfobj.cxx @@ -41,6 +41,7 @@ using namespace com::sun::star; #include <sot/storage.hxx> #include <sfx2/app.hxx> #include <sot/clsids.hxx> +#include <svx/charthelper.hxx> #include "address.hxx" #include "scfobj.hxx" @@ -86,6 +87,9 @@ void Sc10InsertObject::InsertChart( ScDocument* pDoc, SCTAB nDestTab, const Rect aSz.Height = rRect.GetSize().Height(); xObj->setVisualAreaSize( embed::Aspects::MSOLE_CONTENT, aSz ); + // #121334# + ChartHelper::AdaptDefaultsForChart( xObj ); + // hier kann das Chart noch nicht mit Daten gefuettert werden, // weil die Formeln noch nicht berechnet sind. // Deshalb in die ChartCollection, die Daten werden dann im diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx index 81f3412b1ffd..f2bfe807ade2 100644 --- a/sc/source/ui/drawfunc/fuins2.cxx +++ b/sc/source/ui/drawfunc/fuins2.cxx @@ -51,6 +51,7 @@ #include <svx/svdpage.hxx> #include <svx/svdundo.hxx> #include <sfx2/msgpool.hxx> +#include <svx/charthelper.hxx> #include <scmod.hxx> // BM/IHA -- @@ -665,6 +666,9 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, Window* pWin, ScDrawView* SdrOle2Obj* pObj = new SdrOle2Obj( svt::EmbeddedObjectRef( xObj, nAspect ), aName, aRect); SdrPageView* pPV = pView->GetSdrPageView(); + // #121334# + ChartHelper::AdaptDefaultsForChart( xObj ); + // pView->InsertObjectAtView(pObj, *pPV);//this call leads to an immidiate redraw and asks the chart for a visual representation // use the page instead of the view to insert, so no undo action is created yet diff --git a/sc/source/ui/unoobj/chartuno.cxx b/sc/source/ui/unoobj/chartuno.cxx index 4a667f05e4c7..6f896ac8b717 100644 --- a/sc/source/ui/unoobj/chartuno.cxx +++ b/sc/source/ui/unoobj/chartuno.cxx @@ -39,6 +39,7 @@ #include <unotools/moduleoptions.hxx> #include <sot/clsids.hxx> #include <toolkit/helper/vclunohelper.hxx> +#include <svx/charthelper.hxx> #include "chartuno.hxx" #include "miscuno.hxx" @@ -291,6 +292,9 @@ void SAL_CALL ScChartsObj::addNewByName( const rtl::OUString& aName, if( xObj.is()) xObj->setVisualAreaSize( nAspect, aSz ); + // #121334# + ChartHelper::AdaptDefaultsForChart( xObj ); + pPage->InsertObject( pObj ); pModel->AddUndo( new SdrUndoNewObj( *pObj ) ); |