summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2000-11-20 13:47:36 +0000
committerjp <jp@openoffice.org>2000-11-20 13:47:36 +0000
commitc2b32c16a4f365bb69b8f88febb342a3ba076144 (patch)
treeee4b55f2559a98e13afcf8f7be83d480ec3d6f14
parent65aa717f98d717bb1f31debdfddcd36ee52ed1cc (diff)
UpdateDocStat without second parameter
-rw-r--r--sw/inc/doc.hxx6
-rw-r--r--sw/source/core/doc/doc.cxx8
-rw-r--r--sw/source/core/edit/editsh.cxx6
-rw-r--r--sw/source/core/unocore/unofield.cxx6
4 files changed, 13 insertions, 13 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index ca1799d3f748..80b320959699 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: doc.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: os $ $Date: 2000-11-08 11:19:54 $
+ * last change: $Author: jp $ $Date: 2000-11-20 14:47:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1191,7 +1191,7 @@ public:
// Dokument - Statistics
inline const SwDocStat &GetDocStat() const { return *pDocStat; }
void SetDocStat( const SwDocStat& rStat );
- void UpdateDocStat( SwDocStat& rStat, sal_uInt16 nNumPages );
+ void UpdateDocStat( SwDocStat& rStat );
//PageDescriptor-Schnittstelle
sal_uInt16 GetPageDescCnt() const { return aPageDescs.Count(); }
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index b52b8eb5fe36..4fdc768fcf0b 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: doc.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: jp $ $Date: 2000-10-25 15:31:10 $
+ * last change: $Author: jp $ $Date: 2000-11-20 14:47:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -625,7 +625,7 @@ void SwDoc::SetDocStat( const SwDocStat& rStat )
* void UpdateDocStat( const SwDocStat& rStat );
*************************************************************************/
-void SwDoc::UpdateDocStat( SwDocStat& rStat, USHORT nNumPages )
+void SwDoc::UpdateDocStat( SwDocStat& rStat )
{
if( rStat.bModified )
{
@@ -696,7 +696,7 @@ void SwDoc::UpdateDocStat( SwDocStat& rStat, USHORT nNumPages )
case ND_SECTIONNODE: break;
}
- rStat.nPage = nNumPages;
+ rStat.nPage = GetRootFrm() ? GetRootFrm()->GetPageNum() : 0;
rStat.bModified = FALSE;
SetDocStat( rStat );
// event. Stat. Felder Updaten
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx
index 226cf71d8ead..5a0c1e484844 100644
--- a/sw/source/core/edit/editsh.cxx
+++ b/sw/source/core/edit/editsh.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: editsh.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: jp $ $Date: 2000-10-06 13:06:39 $
+ * last change: $Author: jp $ $Date: 2000-11-20 14:46:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -541,7 +541,7 @@ String SwEditShell::GetCurWord()
void SwEditShell::UpdateDocStat( SwDocStat& rStat )
{
StartAllAction();
- GetDoc()->UpdateDocStat( rStat, GetNumPages() );
+ GetDoc()->UpdateDocStat( rStat );
EndAllAction();
}
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index df9956e679b9..2ff99239cd5f 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unofield.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: os $ $Date: 2000-11-17 16:24:47 $
+ * last change: $Author: jp $ $Date: 2000-11-20 14:46:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2934,7 +2934,7 @@ void SwXTextFieldTypes::refresh(void) throw( uno::RuntimeException )
throw uno::RuntimeException();
UnoActionContext aContext(GetDoc());
SwDocStat aDocStat;
- GetDoc()->UpdateDocStat(aDocStat, 0);
+ GetDoc()->UpdateDocStat(aDocStat);
GetDoc()->UpdateFlds(0, sal_False);
}
/* -----------------24.02.99 16:19-------------------