during rebuild of view only delete the view and its single draw page; keep draw model and draw view alive -> dialog can be kept alive during view rebuild
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: ChartController.cxx,v $
|
* $RCSfile: ChartController.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.9 $
|
* $Revision: 1.10 $
|
||||||
*
|
*
|
||||||
* last change: $Author: iha $ $Date: 2003-11-15 08:48:34 $
|
* last change: $Author: iha $ $Date: 2003-11-17 17:03:13 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -481,8 +481,6 @@ void SAL_CALL ChartController
|
|||||||
this->EndTextEdit();
|
this->EndTextEdit();
|
||||||
|
|
||||||
delete m_pChartView; m_pChartView = NULL;
|
delete m_pChartView; m_pChartView = NULL;
|
||||||
delete m_pDrawViewWrapper; m_pDrawViewWrapper = NULL;
|
|
||||||
delete m_pDrawModelWrapper; m_pDrawModelWrapper = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SAL_CALL ChartController
|
sal_Bool SAL_CALL ChartController
|
||||||
@@ -493,6 +491,7 @@ void SAL_CALL ChartController
|
|||||||
if(!m_pChartWindow || !m_aModel.is() )
|
if(!m_pChartWindow || !m_aModel.is() )
|
||||||
return sal_False;
|
return sal_False;
|
||||||
|
|
||||||
|
if( !m_pDrawModelWrapper )
|
||||||
m_pDrawModelWrapper = new DrawModelWrapper(m_xCC
|
m_pDrawModelWrapper = new DrawModelWrapper(m_xCC
|
||||||
,wrapper::SchItemPool::CreateSchItemPool());
|
,wrapper::SchItemPool::CreateSchItemPool());
|
||||||
|
|
||||||
@@ -509,7 +508,10 @@ void SAL_CALL ChartController
|
|||||||
// m_pChartWindow->SetChartView(m_pChartView);//enable event flow from window to View (Window knows View)
|
// m_pChartWindow->SetChartView(m_pChartView);//enable event flow from window to View (Window knows View)
|
||||||
|
|
||||||
//create draw view:
|
//create draw view:
|
||||||
|
if(!m_pDrawViewWrapper)
|
||||||
m_pDrawViewWrapper = new DrawViewWrapper(&m_pDrawModelWrapper->getSdrModel(),m_pChartWindow);
|
m_pDrawViewWrapper = new DrawViewWrapper(&m_pDrawModelWrapper->getSdrModel(),m_pChartWindow);
|
||||||
|
else
|
||||||
|
m_pDrawViewWrapper->ReInit();
|
||||||
//test:
|
//test:
|
||||||
//Rectangle aTest = m_pDrawViewWrapper->GetWorkArea();
|
//Rectangle aTest = m_pDrawViewWrapper->GetWorkArea();
|
||||||
//m_pDrawViewWrapper->SetWorkArea(pOutDev->PixelToLogic(Rectangle(rOfs, rSize)));
|
//m_pDrawViewWrapper->SetWorkArea(pOutDev->PixelToLogic(Rectangle(rOfs, rSize)));
|
||||||
|
Reference in New Issue
Block a user