Kaydet (Commit) ecf6acca authored tarafından pw's avatar pw

#79891# Waitcursor while loading document

üst 97ddbb67
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: hldoctp.cxx,v $ * $RCSfile: hldoctp.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: pw $ $Date: 2000-10-10 12:33:43 $ * last change: $Author: pw $ $Date: 2000-11-22 13:38:19 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -433,10 +433,14 @@ IMPL_LINK ( SvxHyperlinkDocTp, ClickTargetHdl_Impl, void *, EMPTYARG ) ...@@ -433,10 +433,14 @@ IMPL_LINK ( SvxHyperlinkDocTp, ClickTargetHdl_Impl, void *, EMPTYARG )
{ {
mpMarkWnd->SetError( LERR_NOERROR ); mpMarkWnd->SetError( LERR_NOERROR );
EnterWait();
if ( maStrURL.EqualsIgnoreCaseAscii( sFileScheme ) ) if ( maStrURL.EqualsIgnoreCaseAscii( sFileScheme ) )
mpMarkWnd->RefreshTree ( aEmptyStr ); mpMarkWnd->RefreshTree ( aEmptyStr );
else else
mpMarkWnd->RefreshTree ( maStrURL ); mpMarkWnd->RefreshTree ( maStrURL );
LeaveWait();
} }
else else
mpMarkWnd->SetError( LERR_DOCNOTOPEN ); mpMarkWnd->SetError( LERR_DOCNOTOPEN );
...@@ -479,10 +483,14 @@ IMPL_LINK ( SvxHyperlinkDocTp, TimeoutHdl_Impl, Timer *, EMPTYARG ) ...@@ -479,10 +483,14 @@ IMPL_LINK ( SvxHyperlinkDocTp, TimeoutHdl_Impl, Timer *, EMPTYARG )
maStrURL == aEmptyStr || maStrURL == aEmptyStr ||
maStrURL.EqualsIgnoreCaseAscii( sFileScheme ) ) ) maStrURL.EqualsIgnoreCaseAscii( sFileScheme ) ) )
{ {
EnterWait();
if ( maStrURL.EqualsIgnoreCaseAscii( sFileScheme ) ) if ( maStrURL.EqualsIgnoreCaseAscii( sFileScheme ) )
mpMarkWnd->RefreshTree ( aEmptyStr ); mpMarkWnd->RefreshTree ( aEmptyStr );
else else
mpMarkWnd->RefreshTree ( maStrURL ); mpMarkWnd->RefreshTree ( maStrURL );
LeaveWait();
} }
return( 0L ); return( 0L );
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: hlinettp.cxx,v $ * $RCSfile: hlinettp.cxx,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change: $Author: pw $ $Date: 2000-10-10 12:34:28 $ * last change: $Author: pw $ $Date: 2000-11-22 13:40:45 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -607,7 +607,11 @@ IMPL_LINK ( SvxHyperlinkInternetTp, TimeoutHdl_Impl, Timer *, EMPTYARG ) ...@@ -607,7 +607,11 @@ IMPL_LINK ( SvxHyperlinkInternetTp, TimeoutHdl_Impl, Timer *, EMPTYARG )
if ( !aStrURL.EqualsIgnoreCaseAscii( sHTTPScheme ) && if ( !aStrURL.EqualsIgnoreCaseAscii( sHTTPScheme ) &&
!aStrURL.EqualsIgnoreCaseAscii( sHTTPSScheme ) ) !aStrURL.EqualsIgnoreCaseAscii( sHTTPSScheme ) )
{
EnterWait();
mpMarkWnd->RefreshTree ( aStrURL ); mpMarkWnd->RefreshTree ( aStrURL );
LeaveWait();
}
} }
return( 0L ); return( 0L );
...@@ -860,7 +864,11 @@ IMPL_LINK ( SvxHyperlinkInternetTp, LostFocusTargetHdl_Impl, void *, EMPTYARG ) ...@@ -860,7 +864,11 @@ IMPL_LINK ( SvxHyperlinkInternetTp, LostFocusTargetHdl_Impl, void *, EMPTYARG )
} }
if ( maRbtLinktypInternet.IsChecked() && aStrURL.Len()!=0 && IsMarkWndVisible() ) if ( maRbtLinktypInternet.IsChecked() && aStrURL.Len()!=0 && IsMarkWndVisible() )
{
EnterWait();
mpMarkWnd->RefreshTree ( maCbbTarget.GetText() ); mpMarkWnd->RefreshTree ( maCbbTarget.GetText() );
LeaveWait();
}
ModifiedTargetHdl_Impl ( NULL ); ModifiedTargetHdl_Impl ( NULL );
...@@ -909,12 +917,14 @@ IMPL_LINK ( SvxHyperlinkInternetTp, ClickTargetHdl_Impl, void *, EMPTYARG ) ...@@ -909,12 +917,14 @@ IMPL_LINK ( SvxHyperlinkInternetTp, ClickTargetHdl_Impl, void *, EMPTYARG )
if ( maRbtLinktypInternet.IsChecked() ) if ( maRbtLinktypInternet.IsChecked() )
{ {
String aStrURL( maCbbTarget.GetText() ); String aStrURL( maCbbTarget.GetText() );
EnterWait();
if ( !aStrURL.EqualsIgnoreCaseAscii( sHTTPScheme ) && if ( !aStrURL.EqualsIgnoreCaseAscii( sHTTPScheme ) &&
!aStrURL.EqualsIgnoreCaseAscii(sHTTPSScheme ) && !aStrURL.EqualsIgnoreCaseAscii(sHTTPSScheme ) &&
aStrURL != aEmptyStr ) aStrURL != aEmptyStr )
mpMarkWnd->RefreshTree ( aStrURL ); mpMarkWnd->RefreshTree ( aStrURL );
else else
mpMarkWnd->SetError( LERR_DOCNOTOPEN ); mpMarkWnd->SetError( LERR_DOCNOTOPEN );
LeaveWait();
} }
ShowMarkWnd (); ShowMarkWnd ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment