summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/inc/scmod.hxx6
-rw-r--r--sc/source/ui/app/scmod.cxx9
2 files changed, 8 insertions, 7 deletions
diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx
index 1cd1e0230..dad014577 100644
--- a/sc/inc/scmod.hxx
+++ b/sc/inc/scmod.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: scmod.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:44:50 $
+ * last change: $Author: nn $ $Date: 2000-11-09 19:51:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -260,7 +260,7 @@ public:
ScFormEditData* GetFormEditData() { return pFormEditData; }
// Referenzeingabe:
- void SetRefDialog( USHORT nId, BOOL bVis );
+ void SetRefDialog( USHORT nId, BOOL bVis, SfxViewFrame* pViewFrm = NULL );
BOOL IsModalMode(SfxObjectShell* pDocSh = NULL);
BOOL IsFormulaMode();
BOOL IsRefDialogOpen();
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 08306263c..ba996afb2 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: scmod.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: nn $ $Date: 2000-10-27 08:14:54 $
+ * last change: $Author: nn $ $Date: 2000-11-09 19:52:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1364,14 +1364,15 @@ void ScModule::CloseDialogs()
SetRefDialog( nCurRefDlgId, FALSE );
}
-void ScModule::SetRefDialog( USHORT nId, BOOL bVis )
+void ScModule::SetRefDialog( USHORT nId, BOOL bVis, SfxViewFrame* pViewFrm )
{
//! move reference dialog handling to view
//! (only keep function autopilot here for references to other documents)
if(nCurRefDlgId==0 || (nId==nCurRefDlgId && !bVis))
{
- SfxViewFrame* pViewFrm = SfxViewFrame::Current();
+ if ( !pViewFrm )
+ pViewFrm = SfxViewFrame::Current();
// #79379# bindings update causes problems with update of stylist if
// current style family has changed