Kaydet (Commit) b6cae067 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS oj14 (1.67.60); FILE MERGED

2007/06/04 20:59:15 oj 1.67.60.4: RESYNC: (1.71-1.73); FILE MERGED
2007/02/20 16:24:13 oj 1.67.60.3: RESYNC: (1.70-1.71); FILE MERGED
2006/12/18 15:56:34 oj 1.67.60.2: RESYNC: (1.67-1.70); FILE MERGED
2006/11/12 13:38:45 cl 1.67.60.1: #i71036# added basic PropertyChangeListener support for SvxShape
üst a19108eb
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: svdmodel.cxx,v $ * $RCSfile: svdmodel.cxx,v $
* *
* $Revision: 1.74 $ * $Revision: 1.75 $
* *
* last change: $Author: hr $ $Date: 2007-06-27 19:03:54 $ * last change: $Author: rt $ $Date: 2007-07-06 07:40:36 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -187,6 +187,7 @@ struct SdrModelImpl ...@@ -187,6 +187,7 @@ struct SdrModelImpl
{ {
SfxUndoManager* mpUndoManager; SfxUndoManager* mpUndoManager;
SdrUndoFactory* mpUndoFactory; SdrUndoFactory* mpUndoFactory;
bool mbAllowShapePropertyChangeListener;
}; };
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
...@@ -199,6 +200,7 @@ void SdrModel::ImpCtor(SfxItemPool* pPool, SfxObjectShell* pPers, ...@@ -199,6 +200,7 @@ void SdrModel::ImpCtor(SfxItemPool* pPool, SfxObjectShell* pPers,
mpImpl = new SdrModelImpl; mpImpl = new SdrModelImpl;
mpImpl->mpUndoManager=0; mpImpl->mpUndoManager=0;
mpImpl->mpUndoFactory=0; mpImpl->mpUndoFactory=0;
mpImpl->mbAllowShapePropertyChangeListener=false;
mbInDestruction=false; mbInDestruction=false;
aObjUnit=SdrEngineDefaults::GetMapFraction(); aObjUnit=SdrEngineDefaults::GetMapFraction();
eObjUnit=SdrEngineDefaults::GetMapUnit(); eObjUnit=SdrEngineDefaults::GetMapUnit();
...@@ -2088,6 +2090,21 @@ void SdrModel::SetSdrUndoFactory( SdrUndoFactory* pUndoFactory ) ...@@ -2088,6 +2090,21 @@ void SdrModel::SetSdrUndoFactory( SdrUndoFactory* pUndoFactory )
} }
} }
/** cl: added this for OJ to complete his reporting engine, does not work
correctly so only enable it for his model */
bool SdrModel::IsAllowShapePropertyChangeListener() const
{
return mpImpl && mpImpl->mbAllowShapePropertyChangeListener;
}
void SdrModel::SetAllowShapePropertyChangeListener( bool bAllow )
{
if( mpImpl )
{
mpImpl->mbAllowShapePropertyChangeListener = bAllow;
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
TYPEINIT1(SdrHint,SfxHint); TYPEINIT1(SdrHint,SfxHint);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment