summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/editsrc.cxx
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2001-06-13 16:02:55 +0000
committerSascha Ballach <sab@openoffice.org>2001-06-13 16:02:55 +0000
commiteb528975a74725c6232a7da3f09cd4bd471c888d (patch)
tree90ee1556cc016c9af41f02b078f92e09735b0aa7 /sc/source/ui/unoobj/editsrc.cxx
parent06e36bbd710852bca9b132c22b198a7f94a6b08d (diff)
#79771#; move the dirty flag to the CellTextData
Diffstat (limited to 'sc/source/ui/unoobj/editsrc.cxx')
-rw-r--r--sc/source/ui/unoobj/editsrc.cxx28
1 files changed, 11 insertions, 17 deletions
diff --git a/sc/source/ui/unoobj/editsrc.cxx b/sc/source/ui/unoobj/editsrc.cxx
index ab0a69f7fa56..f1d2d52001da 100644
--- a/sc/source/ui/unoobj/editsrc.cxx
+++ b/sc/source/ui/unoobj/editsrc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: editsrc.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: sab $ $Date: 2001-06-12 12:52:38 $
+ * last change: $Author: sab $ $Date: 2001-06-13 17:02:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -209,9 +209,7 @@ void ScHeaderFooterEditSource::Notify( SfxBroadcaster& rBC, const SfxHint& rHint
//------------------------------------------------------------------------
ScSharedCellEditSource::ScSharedCellEditSource( ScCellTextData* pData ) :
- pCellTextData( pData ),
- bDoUpdateData(sal_True),
- bDirty(sal_False)
+ pCellTextData( pData )
{
// pCellTextData is part of the ScCellTextObj.
// Text range and cursor keep a reference to their parent text, so the text object is
@@ -224,10 +222,7 @@ ScSharedCellEditSource::~ScSharedCellEditSource()
SvxEditSource* ScSharedCellEditSource::Clone() const
{
- ScSharedCellEditSource* pTemp = new ScSharedCellEditSource( pCellTextData );
- pTemp->bDoUpdateData = bDoUpdateData;
- pTemp->bDirty = bDirty;
- return pTemp;
+ return new ScSharedCellEditSource( pCellTextData );
}
SvxTextForwarder* ScSharedCellEditSource::GetTextForwarder()
@@ -237,18 +232,17 @@ SvxTextForwarder* ScSharedCellEditSource::GetTextForwarder()
void ScSharedCellEditSource::UpdateData()
{
- if (bDoUpdateData)
- {
- pCellTextData->UpdateData();
- bDirty = sal_False;
- }
- else
- bDirty = sal_True;
+ pCellTextData->UpdateData();
}
void ScSharedCellEditSource::SetDoUpdateData(sal_Bool bValue)
{
- bDoUpdateData = bValue;
+ pCellTextData->SetDoUpdate(bValue);
+}
+
+sal_Bool ScSharedCellEditSource::IsDirty() const
+{
+ return pCellTextData->IsDirty();
}
ScEditEngineDefaulter* ScSharedCellEditSource::GetEditEngine()