#86683# absolute position of controls

This commit is contained in:
Thomas Benisch 2001-05-15 12:16:52 +00:00
parent e8f99d4c4e
commit dc044c8827
2 changed files with 60 additions and 24 deletions

View file

@ -2,9 +2,9 @@
*
* $RCSfile: dlgedobj.cxx,v $
*
* $Revision: 1.20 $
* $Revision: 1.21 $
*
* last change: $Author: tbe $ $Date: 2001-05-14 11:23:57 $
* last change: $Author: tbe $ $Date: 2001-05-15 13:12:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -969,18 +969,11 @@ void DlgEdObj::NbcMove( const Size& rSize )
// set geometry properties
SetPropsFromRect();
// dialog model changed
if ( ISA(DlgEdForm) )
{
((DlgEdForm*)this)->GetDlgEditor()->SetDialogModelChanged(TRUE);
}
else
{
GetDlgEdForm()->GetDlgEditor()->SetDialogModelChanged(TRUE);
}
// start listening
StartListening();
// dialog model changed
GetDlgEdForm()->GetDlgEditor()->SetDialogModelChanged(TRUE);
}
//----------------------------------------------------------------------------
@ -995,18 +988,11 @@ void DlgEdObj::NbcResize(const Point& rRef, const Fraction& xFract, const Fracti
// set geometry properties
SetPropsFromRect();
// dialog model changed
if ( ISA(DlgEdForm) )
{
((DlgEdForm*)this)->GetDlgEditor()->SetDialogModelChanged(TRUE);
}
else
{
GetDlgEdForm()->GetDlgEditor()->SetDialogModelChanged(TRUE);
}
// start listening
StartListening();
// dialog model changed
GetDlgEdForm()->GetDlgEditor()->SetDialogModelChanged(TRUE);
}
//----------------------------------------------------------------------------
@ -1465,6 +1451,54 @@ SdrObject* DlgEdForm::CheckHit( const Point& rPnt, USHORT nTol,
//----------------------------------------------------------------------------
void DlgEdForm::NbcMove( const Size& rSize )
{
SdrUnoObj::NbcMove( rSize );
// set geometry properties of form
EndListening(sal_False);
SetPropsFromRect();
StartListening();
// set geometry properties of all childs
::std::vector<DlgEdObj*>::iterator aIter;
for ( aIter = pChilds.begin() ; aIter != pChilds.end() ; aIter++ )
{
(*aIter)->EndListening(sal_False);
(*aIter)->SetPropsFromRect();
(*aIter)->StartListening();
}
// dialog model changed
GetDlgEditor()->SetDialogModelChanged(TRUE);
}
//----------------------------------------------------------------------------
void DlgEdForm::NbcResize(const Point& rRef, const Fraction& xFract, const Fraction& yFract)
{
SdrUnoObj::NbcResize( rRef, xFract, yFract );
// set geometry properties of form
EndListening(sal_False);
SetPropsFromRect();
StartListening();
// set geometry properties of all childs
::std::vector<DlgEdObj*>::iterator aIter;
for ( aIter = pChilds.begin() ; aIter != pChilds.end() ; aIter++ )
{
(*aIter)->EndListening(sal_False);
(*aIter)->SetPropsFromRect();
(*aIter)->StartListening();
}
// dialog model changed
GetDlgEditor()->SetDialogModelChanged(TRUE);
}
//----------------------------------------------------------------------------
FASTBOOL DlgEdForm::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd)
{
sal_Bool bResult = SdrUnoObj::EndCreate(rStat, eCmd);

View file

@ -2,9 +2,9 @@
*
* $RCSfile: dlgedobj.hxx,v $
*
* $Revision: 1.10 $
* $Revision: 1.11 $
*
* last change: $Author: tbe $ $Date: 2001-05-04 15:20:34 $
* last change: $Author: tbe $ $Date: 2001-05-15 13:09:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -180,6 +180,8 @@ protected:
const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxSFac);
DlgEdForm();
virtual void NbcMove( const Size& rSize );
virtual void NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact);
virtual FASTBOOL EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd);
public: