Kaydet (Commit) 073f7a34 authored tarafından Oliver Specht's avatar Oliver Specht

#83537# Auto mark URL has to be a URL

üst 475ded85
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: cnttab.cxx,v $ * $RCSfile: cnttab.cxx,v $
* *
* $Revision: 1.9 $ * $Revision: 1.10 $
* *
* last change: $Author: os $ $Date: 2001-01-25 16:27:51 $ * last change: $Author: os $ $Date: 2001-02-06 08:13:38 $
* *
* 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
...@@ -4704,8 +4704,6 @@ SwAutoMarkDlg_Impl::SwAutoMarkDlg_Impl(Window* pParent, const String& rAutoMarkU ...@@ -4704,8 +4704,6 @@ SwAutoMarkDlg_Impl::SwAutoMarkDlg_Impl(Window* pParent, const String& rAutoMarkU
FreeResource(); FreeResource();
aOKPB.SetClickHdl(LINK(this, SwAutoMarkDlg_Impl, OkHdl)); aOKPB.SetClickHdl(LINK(this, SwAutoMarkDlg_Impl, OkHdl));
INetURLObject aURLObj( sAutoMarkURL );
sAutoMarkURL = aURLObj.PathToFileName();
String sTitle = GetText(); String sTitle = GetText();
sTitle.AppendAscii( RTL_CONSTASCII_STRINGPARAM(": ")); sTitle.AppendAscii( RTL_CONSTASCII_STRINGPARAM(": "));
sTitle += sAutoMarkURL; sTitle += sAutoMarkURL;
...@@ -4716,7 +4714,7 @@ SwAutoMarkDlg_Impl::SwAutoMarkDlg_Impl(Window* pParent, const String& rAutoMarkU ...@@ -4716,7 +4714,7 @@ SwAutoMarkDlg_Impl::SwAutoMarkDlg_Impl(Window* pParent, const String& rAutoMarkU
else else
{ {
SfxMedium aMed( sAutoMarkURL, STREAM_STD_READ, FALSE ); SfxMedium aMed( sAutoMarkURL, STREAM_STD_READ, FALSE );
if( !aMed.GetInStream()->GetError() ) if( aMed.GetInStream() && !aMed.GetInStream()->GetError() )
aEntriesBB.ReadEntries( *aMed.GetInStream() ); aEntriesBB.ReadEntries( *aMed.GetInStream() );
else else
bError = sal_True; bError = sal_True;
......
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