#78631# #78943# RefreshNoteFlags: UpdateAllComments
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
*
|
||||
* $RCSfile: documen9.cxx,v $
|
||||
*
|
||||
* $Revision: 1.1.1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: hr $ $Date: 2000-09-19 00:16:14 $
|
||||
* last change: $Author: nn $ $Date: 2000-09-25 11:46:10 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
@@ -98,6 +98,7 @@
|
||||
#include "rechead.hxx"
|
||||
#include "docpool.hxx"
|
||||
#include "chartarr.hxx"
|
||||
#include "detfunc.hxx" // for UpdateAllComments
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
@@ -526,6 +527,7 @@ void ScDocument::RefreshNoteFlags()
|
||||
if (!pDrawLayer)
|
||||
return;
|
||||
|
||||
BOOL bAnyNote = FALSE;
|
||||
USHORT nTab;
|
||||
ScPostIt aNote;
|
||||
for (nTab=0; nTab<=MAXTAB && pTab[nTab]; nTab++)
|
||||
@@ -540,6 +542,7 @@ void ScDocument::RefreshNoteFlags()
|
||||
{
|
||||
if ( pObject->GetLayer() == SC_LAYER_INTERN && pObject->ISA( SdrCaptionObj ) )
|
||||
{
|
||||
bAnyNote = TRUE;
|
||||
ScDrawObjData* pData = ScDrawLayer::GetObjData( pObject );
|
||||
if ( pData )
|
||||
{
|
||||
@@ -555,6 +558,14 @@ void ScDocument::RefreshNoteFlags()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bAnyNote)
|
||||
{
|
||||
// update attributes for all note objects
|
||||
|
||||
ScDetectiveFunc aFunc( this, 0 );
|
||||
aFunc.UpdateAllComments();
|
||||
}
|
||||
}
|
||||
|
||||
BOOL ScDocument::HasBackgroundDraw( USHORT nTab, const Rectangle& rMMRect )
|
||||
|
Reference in New Issue
Block a user