diff options
Diffstat (limited to 'sc/source/ui/docshell/servobj.cxx')
-rw-r--r-- | sc/source/ui/docshell/servobj.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sc/source/ui/docshell/servobj.cxx b/sc/source/ui/docshell/servobj.cxx index 186b94f3bf83..7aecfb6d0b08 100644 --- a/sc/source/ui/docshell/servobj.cxx +++ b/sc/source/ui/docshell/servobj.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,7 +40,7 @@ #include "impex.hxx" #include "brdcst.hxx" #include "rangenam.hxx" -#include "sc.hrc" // SC_HINT_AREAS_CHANGED +#include "sc.hrc" // SC_HINT_AREAS_CHANGED using namespace formula; @@ -87,15 +87,15 @@ ScServerObject::ScServerObject( ScDocShell* pShell, const String& rItem ) : pDocSh( pShell ), bRefreshListener( FALSE ) { - // parse item string + // parse item string if ( lcl_FillRangeFromName( aRange, pDocSh, rItem ) ) { - aItemStr = rItem; // must be parsed again on ref update + aItemStr = rItem; // must be parsed again on ref update } else { - // parse ref + // parse ref ScDocument* pDoc = pDocSh->GetDocument(); SCTAB nTab = pDocSh->GetCurTab(); aRange.aStart.SetTab( nTab ); @@ -120,8 +120,8 @@ ScServerObject::ScServerObject( ScDocShell* pShell, const String& rItem ) : pDocSh->GetDocument()->GetLinkManager()->InsertServer( this ); pDocSh->GetDocument()->StartListeningArea( aRange, &aForwarder ); - StartListening(*pDocSh); // um mitzubekommen, wenn die DocShell geloescht wird - StartListening(*SFX_APP()); // for SC_HINT_AREAS_CHANGED + StartListening(*pDocSh); // um mitzubekommen, wenn die DocShell geloescht wird + StartListening(*SFX_APP()); // for SC_HINT_AREAS_CHANGED } __EXPORT ScServerObject::~ScServerObject() @@ -169,7 +169,7 @@ BOOL __EXPORT ScServerObject::GetData( if ( bRefreshListener ) { - // refresh the listeners now (this is called from a timer) + // refresh the listeners now (this is called from a timer) EndListeningAll(); pDocSh->GetDocument()->StartListeningArea( aRange, &aForwarder ); @@ -217,15 +217,15 @@ void __EXPORT ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint { BOOL bDataChanged = FALSE; - // DocShell can't be tested via type info, because SFX_HINT_DYING comes from the dtor + // DocShell can't be tested via type info, because SFX_HINT_DYING comes from the dtor if ( &rBC == pDocSh ) { - // from DocShell, only SFX_HINT_DYING is interesting + // from DocShell, only SFX_HINT_DYING is interesting if ( rHint.ISA(SfxSimpleHint) && ((const SfxSimpleHint&)rHint).GetId() == SFX_HINT_DYING ) { pDocSh = NULL; EndListening(*SFX_APP()); - // don't access DocShell anymore for EndListening etc. + // don't access DocShell anymore for EndListening etc. } } else if (rBC.ISA(SfxApplication)) @@ -233,7 +233,7 @@ void __EXPORT ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint if ( aItemStr.Len() && rHint.ISA(SfxSimpleHint) && ((const SfxSimpleHint&)rHint).GetId() == SC_HINT_AREAS_CHANGED ) { - // check if named range was modified + // check if named range was modified ScRange aNew; if ( lcl_FillRangeFromName( aNew, pDocSh, aItemStr ) && aNew != aRange ) bDataChanged = TRUE; @@ -241,12 +241,12 @@ void __EXPORT ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint } else { - // must be from Area broadcasters + // must be from Area broadcasters const ScHint* pScHint = PTR_CAST( ScHint, &rHint ); if( pScHint && (pScHint->GetId() & (SC_HINT_DATACHANGED | SC_HINT_DYING)) ) bDataChanged = TRUE; - else if (rHint.ISA(ScAreaChangedHint)) // position of broadcaster changed + else if (rHint.ISA(ScAreaChangedHint)) // position of broadcaster changed { ScRange aNewRange = ((const ScAreaChangedHint&)rHint).GetRange(); if ( aRange != aNewRange ) @@ -260,8 +260,8 @@ void __EXPORT ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ULONG nId = ((const SfxSimpleHint&)rHint).GetId(); if (nId == SFX_HINT_DYING) { - // If the range is being deleted, listening must be restarted - // after the deletion is complete (done in GetData) + // If the range is being deleted, listening must be restarted + // after the deletion is complete (done in GetData) bRefreshListener = TRUE; bDataChanged = TRUE; } |