chg: now uses the new config items

This commit is contained in:
Peter Burow
2000-09-26 08:29:01 +00:00
parent 8dd64d22c2
commit 3397efb369
3 changed files with 65 additions and 72 deletions

View File

@@ -2,9 +2,9 @@
* *
* $RCSfile: hldocntp.cxx,v $ * $RCSfile: hldocntp.cxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 17:01:08 $ * last change: $Author: pb $ $Date: 2000-09-26 09:29:01 $
* *
* 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
@@ -59,6 +59,7 @@
* *
************************************************************************/ ************************************************************************/
#include "hldocntp.hxx"
#ifndef _SFXVIEWFRM_HXX #ifndef _SFXVIEWFRM_HXX
#include <sfx2/viewfrm.hxx> #include <sfx2/viewfrm.hxx>
@@ -66,56 +67,46 @@
#ifndef _SFX_OBJFAC_HXX #ifndef _SFX_OBJFAC_HXX
#include <sfx2/docfac.hxx> #include <sfx2/docfac.hxx>
#endif #endif
#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_ #ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
#include <com/sun/star/uno/Reference.h> #include <com/sun/star/uno/Reference.h>
#endif #endif
#ifndef _UCBHELPER_CONTENTBROKER_HXX #ifndef _UCBHELPER_CONTENTBROKER_HXX
#include <ucbhelper/contentbroker.hxx> #include <ucbhelper/contentbroker.hxx>
#endif #endif
#ifndef _UCBHELPER_CONTENT_HXX #ifndef _UCBHELPER_CONTENT_HXX
#include <ucbhelper/content.hxx> #include <ucbhelper/content.hxx>
#endif #endif
#ifndef _COM_SUN_STAR_SDBC_XRESULTSET_HPP_ #ifndef _COM_SUN_STAR_SDBC_XRESULTSET_HPP_
#include <com/sun/star/sdbc/XResultSet.hpp> #include <com/sun/star/sdbc/XResultSet.hpp>
#endif #endif
#ifndef _COM_SUN_STAR_UNO_SEQUENCE_H_ #ifndef _COM_SUN_STAR_UNO_SEQUENCE_H_
#include <com/sun/star/uno/Sequence.h> #include <com/sun/star/uno/Sequence.h>
#endif #endif
#ifndef _COM_SUN_STAR_SDBC_XROW_HPP_ #ifndef _COM_SUN_STAR_SDBC_XROW_HPP_
#include <com/sun/star/sdbc/XRow.hpp> #include <com/sun/star/sdbc/XRow.hpp>
#endif #endif
#ifndef _COM_SUN_STAR_UCB_XCONTENTACCESS_HPP_ #ifndef _COM_SUN_STAR_UCB_XCONTENTACCESS_HPP_
#include <com/sun/star/ucb/XContentAccess.hpp> #include <com/sun/star/ucb/XContentAccess.hpp>
#endif #endif
#ifndef _COM_SUN_STAR_UNO_EXCEPTION_HPP_ #ifndef _COM_SUN_STAR_UNO_EXCEPTION_HPP_
#include <com/sun/star/uno/Exception.hpp> #include <com/sun/star/uno/Exception.hpp>
#endif #endif
#ifndef _SV_CONFIG_HXX #ifndef _SV_CONFIG_HXX
#include <vcl/config.hxx> #include <vcl/config.hxx>
#endif #endif
#ifndef _SV_SYSTEM_HXX #ifndef _SV_SYSTEM_HXX
#include <vcl/system.hxx> #include <vcl/system.hxx>
#endif #endif
#ifndef _SV_IMAGE_HXX #ifndef _SV_IMAGE_HXX
#include <vcl/image.hxx> #include <vcl/image.hxx>
#endif #endif
#ifndef _URLOBJ_HXX #ifndef _URLOBJ_HXX
#include <tools/urlobj.hxx> #include <tools/urlobj.hxx>
#endif #endif
#ifndef INCLUDED_SVTOOLS_PATHOPTIONS_HXX
#include <svtools/pathoptions.hxx>
#endif
#include "hldocntp.hxx"
#include "hyperdlg.hrc" #include "hyperdlg.hrc"
using namespace ::rtl; using namespace ::rtl;
@@ -205,7 +196,8 @@ void SvxHyperlinkNewDocTp::ReadURLFile( const String& rFile, String& rTitle, Str
// read URL // read URL
rURL = aCfg.ReadKey( ByteString( RTL_CONSTASCII_STRINGPARAM( INTERNETSHORTCUT_URL_TAG) ), RTL_TEXTENCODING_ASCII_US ); rURL = aCfg.ReadKey( ByteString( RTL_CONSTASCII_STRINGPARAM( INTERNETSHORTCUT_URL_TAG) ), RTL_TEXTENCODING_ASCII_US );
rURL = SFX_INIMANAGER()->SubstPathVars( rURL ); SvtPathOptions aPathOpt;
rURL = aPathOpt.SubstituteVariable( rURL );
// read target // read target
if ( pShowAsFolder ) if ( pShowAsFolder )
@@ -219,7 +211,7 @@ void SvxHyperlinkNewDocTp::ReadURLFile( const String& rFile, String& rTitle, Str
rIconId = aStrIconId.ToInt32(); rIconId = aStrIconId.ToInt32();
// read title // read title
String aLangStr = SfxIniManager::Get()->SubstPathVars( String::CreateFromAscii( "$(vlang)" ) ); String aLangStr = aPathOpt.SubstituteVariable( DEFINE_CONST_UNICODE("$(vlang)") );
ByteString aLang( aLangStr, RTL_TEXTENCODING_UTF8 ); ByteString aLang( aLangStr, RTL_TEXTENCODING_UTF8 );
ByteString aGroup = INTERNETSHORTCUT_ID_TAG; ByteString aGroup = INTERNETSHORTCUT_ID_TAG;
( ( aGroup += '-' ) += aLang ) += ".W"; ( ( aGroup += '-' ) += aLang ) += ".W";
@@ -230,10 +222,8 @@ void SvxHyperlinkNewDocTp::ReadURLFile( const String& rFile, String& rTitle, Str
void SvxHyperlinkNewDocTp::FillDocumentList () void SvxHyperlinkNewDocTp::FillDocumentList ()
{ {
EnterWait(); EnterWait();
SvtPathOptions aPathOpt;
SfxIniManager* pIni = SFX_APP()->GetIniManager(); String aStrDirName( aPathOpt.GetNewMenuPath() );
String aStrDirName( pIni->Get( SFX_KEY_NEW_DIR ) );
INetURLObject aFolderObj( aStrDirName, INET_PROT_FILE ); INetURLObject aFolderObj( aStrDirName, INET_PROT_FILE );
try try
{ {
@@ -278,7 +268,7 @@ void SvxHyperlinkNewDocTp::FillDocumentList ()
sal_Char const sTilde[] = "~"; sal_Char const sTilde[] = "~";
aTitle.Erase ( aTitle.SearchAscii( sTilde ), 1 ); aTitle.Erase ( aTitle.SearchAscii( sTilde ), 1 );
aURL = pIni->SubstPathVars( aURL ); aURL = aPathOpt.SubstituteVariable( aURL );
if( !bShowAsFolder ) if( !bShowAsFolder )
{ {
@@ -349,7 +339,7 @@ void SvxHyperlinkNewDocTp::GetCurentItemData ( String& aStrURL, String& aStrName
if( aURL.getFSysPath( INetURLObject::FSYS_DETECT ).Len() - aURL.getName().Len() <= 1 || if( aURL.getFSysPath( INetURLObject::FSYS_DETECT ).Len() - aURL.getName().Len() <= 1 ||
aURL.getFSysPath( INetURLObject::FSYS_DETECT ).Search( '.' ) == 0 ) aURL.getFSysPath( INetURLObject::FSYS_DETECT ).Search( '.' ) == 0 )
{ {
INetURLObject aTmpURL( SFX_APP()->GetIniManager()->Get( SFX_KEY_WORK_PATH ), INET_PROT_FILE ); INetURLObject aTmpURL( SvtPathOptions().GetWorkPath(), INET_PROT_FILE );
if( !aTmpURL.hasFinalSlash() ) if( !aTmpURL.hasFinalSlash() )
aTmpURL.setFinalSlash(); aTmpURL.setFinalSlash();
aTmpURL.Append( aURL.getName() ); aTmpURL.Append( aURL.getName() );
@@ -505,7 +495,7 @@ void SvxHyperlinkNewDocTp::DoApply ()
if( aURL.getFSysPath( INetURLObject::FSYS_DETECT ).Len() - aURL.getName().Len() <= 1 || if( aURL.getFSysPath( INetURLObject::FSYS_DETECT ).Len() - aURL.getName().Len() <= 1 ||
aURL.getFSysPath( INetURLObject::FSYS_DETECT ).Search( '.' ) == 0 ) aURL.getFSysPath( INetURLObject::FSYS_DETECT ).Search( '.' ) == 0 )
{ {
INetURLObject aTmpURL( SFX_APP()->GetIniManager()->Get( SFX_KEY_WORK_PATH ), INET_PROT_FILE ); INetURLObject aTmpURL( SvtPathOptions().GetWorkPath(), INET_PROT_FILE );
if( !aTmpURL.hasFinalSlash() ) if( !aTmpURL.hasFinalSlash() )
aTmpURL.setFinalSlash(); aTmpURL.setFinalSlash();
aTmpURL.Append( aURL.getName() ); aTmpURL.Append( aURL.getName() );
@@ -622,9 +612,7 @@ IMPL_LINK ( SvxHyperlinkNewDocTp, ClickNewHdl_Impl, void *, EMPTYARG )
String aStrName = GetName ( maEdPath.GetText() ); String aStrName = GetName ( maEdPath.GetText() );
if ( aStrPath == aEmptyStr ) if ( aStrPath == aEmptyStr )
{ aStrPath = SvtPathOptions().GetWorkPath();
aStrPath = SFX_APP()->GetIniManager()->Get( SFX_KEY_WORK_PATH );
}
aDlg.SetPath ( aStrPath ); aDlg.SetPath ( aStrPath );

View File

@@ -2,9 +2,9 @@
* *
* $RCSfile: hlinettp.cxx,v $ * $RCSfile: hlinettp.cxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 17:01:08 $ * last change: $Author: pb $ $Date: 2000-09-26 09:27:42 $
* *
* 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
@@ -62,6 +62,12 @@
#ifndef _ADRPARSE_HXX #ifndef _ADRPARSE_HXX
#include <svtools/adrparse.hxx> #include <svtools/adrparse.hxx>
#endif #endif
#ifndef INCLUDED_SVTOOLS_PATHOPTIONS_HXX
#include <svtools/pathoptions.hxx>
#endif
#ifndef INCLUDED_SVTOOLS_USEROPTIONS_HXX
#include <svtools/useroptions.hxx>
#endif
#include "hlinettp.hxx" #include "hlinettp.hxx"
#include "hyperdlg.hrc" #include "hyperdlg.hrc"
@@ -118,7 +124,7 @@ SvxHyperlinkInternetTp::SvxHyperlinkInternetTp ( Window *pParent,
maCbbTarget.SetHelpId( HID_HYPERDLG_INET_PATH ); maCbbTarget.SetHelpId( HID_HYPERDLG_INET_PATH );
// Find Path to Std-Doc // Find Path to Std-Doc
String aStrBasePaths( SFX_APP()->GetIniManager()->Get( SFX_KEY_TEMPLATE_PATH ) ); String aStrBasePaths( SvtPathOptions().GetTemplatePath() );
BOOL bFound = FALSE; BOOL bFound = FALSE;
String aStrFilename; String aStrFilename;
DirEntry aFileEntry; DirEntry aFileEntry;
@@ -291,9 +297,8 @@ void SvxHyperlinkInternetTp::FillDlgFields ( String& aStrURL )
maFtPassword.Disable (); maFtPassword.Disable ();
maEdLogin.SetText ( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( sAnonymous ) ) ); maEdLogin.SetText ( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( sAnonymous ) ) );
SvAddressParser aAddress(SFX_INIMANAGER()->GetAddressToken(ADDRESS_EMAIL)); SvAddressParser aAddress( SvtUserOptions().GetEmail() );
maEdPassword.SetText ( aAddress.Count() ? maEdPassword.SetText( aAddress.Count() ? aAddress.GetEmailAddress(0) : String() );
aAddress.GetEmailAddress(0) : String() );
} }
else else
{ {
@@ -812,9 +817,9 @@ IMPL_LINK ( SvxHyperlinkInternetTp, ClickAnonymousHdl_Impl, void *, EMPTYARG )
// disable login-editfields if checked // disable login-editfields if checked
if ( maCbAnonymous.IsChecked() ) if ( maCbAnonymous.IsChecked() )
{ {
SvAddressParser aAddress(SFX_INIMANAGER()->GetAddressToken(ADDRESS_EMAIL)); SvAddressParser aAddress( SvtUserOptions().GetEmail() );
maEdLogin.SetText ( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM ( sAnonymous ) ) ); maEdLogin.SetText( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM ( sAnonymous ) ) );
maEdPassword.SetText ( aAddress.Count() ? aAddress.GetEmailAddress(0) : String() ); maEdPassword.SetText( aAddress.Count() ? aAddress.GetEmailAddress(0) : String() );
maFtLogin.Disable (); maFtLogin.Disable ();
maFtPassword.Disable (); maFtPassword.Disable ();

View File

@@ -2,9 +2,9 @@
* *
* $RCSfile: imapdlg.cxx,v $ * $RCSfile: imapdlg.cxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 17:01:09 $ * last change: $Author: pb $ $Date: 2000-09-26 09:27:22 $
* *
* 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
@@ -91,8 +91,8 @@
#ifndef _SFXENUMITEM_HXX //autogen #ifndef _SFXENUMITEM_HXX //autogen
#include <svtools/eitem.hxx> #include <svtools/eitem.hxx>
#endif #endif
#ifndef _SFXINIMGR_HXX #ifndef INCLUDED_SVTOOLS_PATHOPTIONS_HXX
#include <svtools/iniman.hxx> #include <svtools/pathoptions.hxx>
#endif #endif
#ifndef _SFXDISPATCH_HXX #ifndef _SFXDISPATCH_HXX
#include <sfx2/dispatch.hxx> #include <sfx2/dispatch.hxx>
@@ -281,8 +281,8 @@ SvxIMapDlg::SvxIMapDlg( SfxBindings *pBindings, SfxChildWindow *pCW,
SetMinOutputSizePixel( aLastSize = GetOutputSizePixel() ); SetMinOutputSizePixel( aLastSize = GetOutputSizePixel() );
aStbStatus.InsertItem( 1, 130, SIB_LEFT | SIB_IN | SIB_AUTOSIZE ); aStbStatus.InsertItem( 1, 130, SIB_LEFT | SIB_IN | SIB_AUTOSIZE );
aStbStatus.InsertItem( 2, 10 + GetTextWidth( String::CreateFromAscii( " 9999,99 cm / 9999,99 cm ") ), SIB_CENTER | SIB_IN ); aStbStatus.InsertItem( 2, 10 + GetTextWidth( DEFINE_CONST_UNICODE( " 9999,99 cm / 9999,99 cm ") ), SIB_CENTER | SIB_IN );
aStbStatus.InsertItem( 3, 10 + GetTextWidth( String::CreateFromAscii( " 9999,99 cm x 9999,99 cm ") ), SIB_CENTER | SIB_IN ); aStbStatus.InsertItem( 3, 10 + GetTextWidth( DEFINE_CONST_UNICODE( " 9999,99 cm x 9999,99 cm ") ), SIB_CENTER | SIB_IN );
aFtURL.Disable(); aFtURL.Disable();
aCbbURL.Disable(); aCbbURL.Disable();
@@ -638,23 +638,23 @@ void SvxIMapDlg::DoOpen()
{ {
SfxSimpleFileDialog aDlg( this, WB_3DLOOK | WB_OPEN ); SfxSimpleFileDialog aDlg( this, WB_3DLOOK | WB_OPEN );
ImageMap aLoadIMap; ImageMap aLoadIMap;
const String aFilter( String::CreateFromAscii( IMAP_ALL_FILTER ) ); const String aFilter( DEFINE_CONST_UNICODE( IMAP_ALL_FILTER ) );
#ifdef MAC #ifdef MAC
aDlg.AddFilter( aFilter, String::CreateFromAscii( IMAP_ALL_TYPE ), "XXXX0" ); aDlg.AddFilter( aFilter, DEFINE_CONST_UNICODE( IMAP_ALL_TYPE ), "XXXX0" );
aDlg.AddFilter( String::CreateFromAscii( IMAP_CERN_FILTER ), String::CreateFromAscii( IMAP_CERN_TYPE ), "XXXX0" ); aDlg.AddFilter( DEFINE_CONST_UNICODE( IMAP_CERN_FILTER ), DEFINE_CONST_UNICODE( IMAP_CERN_TYPE ), "XXXX0" );
aDlg.AddFilter( String::CreateFromAscii( IMAP_NCSA_FILTER ), String::CreateFromAscii( IMAP_NCSA_TYPE ), "XXXX0" ); aDlg.AddFilter( DEFINE_CONST_UNICODE( IMAP_NCSA_FILTER ), DEFINE_CONST_UNICODE( IMAP_NCSA_TYPE ), "XXXX0" );
aDlg.AddFilter( String::CreateFromAscii( IMAP_BINARY_FILTER ), String::CreateFromAscii( IMAP_BINARY_TYPE ), "XXXX0" ); aDlg.AddFilter( DEFINE_CONST_UNICODE( IMAP_BINARY_FILTER ), DEFINE_CONST_UNICODE( IMAP_BINARY_TYPE ), "XXXX0" );
#else #else
aDlg.AddFilter( aFilter, String::CreateFromAscii( IMAP_ALL_TYPE ) ); aDlg.AddFilter( aFilter, DEFINE_CONST_UNICODE( IMAP_ALL_TYPE ) );
aDlg.AddFilter( String::CreateFromAscii( IMAP_CERN_FILTER ), String::CreateFromAscii( IMAP_CERN_TYPE ) ); aDlg.AddFilter( DEFINE_CONST_UNICODE( IMAP_CERN_FILTER ), DEFINE_CONST_UNICODE( IMAP_CERN_TYPE ) );
aDlg.AddFilter( String::CreateFromAscii( IMAP_NCSA_FILTER ), String::CreateFromAscii( IMAP_NCSA_TYPE ) ); aDlg.AddFilter( DEFINE_CONST_UNICODE( IMAP_NCSA_FILTER ), DEFINE_CONST_UNICODE( IMAP_NCSA_TYPE ) );
aDlg.AddFilter( String::CreateFromAscii( IMAP_BINARY_FILTER ), String::CreateFromAscii( IMAP_BINARY_TYPE ) ); aDlg.AddFilter( DEFINE_CONST_UNICODE( IMAP_BINARY_FILTER ), DEFINE_CONST_UNICODE( IMAP_BINARY_TYPE ) );
#endif #endif
aDlg.SetCurFilter( aFilter ); aDlg.SetCurFilter( aFilter );
aDlg.SetPath( SFX_INIMANAGER()->Get( SFX_KEY_GRAPHICS_PATH ) ); aDlg.SetPath( SvtPathOptions().GetGraphicPath() );
aDlg.SetDefaultExt( String::CreateFromAscii( IMAP_BINARY_EXT ) ); aDlg.SetDefaultExt( DEFINE_CONST_UNICODE( IMAP_BINARY_EXT ) );
if ( aDlg.Execute() == RET_OK ) if ( aDlg.Execute() == RET_OK )
{ {
@@ -684,26 +684,26 @@ void SvxIMapDlg::DoOpen()
BOOL SvxIMapDlg::DoSave() BOOL SvxIMapDlg::DoSave()
{ {
SfxSimpleFileDialog aDlg( this, WB_3DLOOK | WB_SAVEAS ); SfxSimpleFileDialog aDlg( this, WB_3DLOOK | WB_SAVEAS );
const String aBinFilter( String::CreateFromAscii( IMAP_BINARY_FILTER ) ); const String aBinFilter( DEFINE_CONST_UNICODE( IMAP_BINARY_FILTER ) );
const String aCERNFilter( String::CreateFromAscii( IMAP_CERN_FILTER ) ); const String aCERNFilter( DEFINE_CONST_UNICODE( IMAP_CERN_FILTER ) );
const String aNCSAFilter( String::CreateFromAscii( IMAP_NCSA_FILTER ) ); const String aNCSAFilter( DEFINE_CONST_UNICODE( IMAP_NCSA_FILTER ) );
SdrModel* pModel = pIMapWnd->GetSdrModel(); SdrModel* pModel = pIMapWnd->GetSdrModel();
const BOOL bChanged = pModel->IsChanged(); const BOOL bChanged = pModel->IsChanged();
BOOL bRet; BOOL bRet;
#ifdef MAC #ifdef MAC
aDlg.AddFilter( aCERNFilter, String::CreateFromAscii( IMAP_CERN_TYPE ), "XXXX0" ); aDlg.AddFilter( aCERNFilter, DEFINE_CONST_UNICODE( IMAP_CERN_TYPE ), "XXXX0" );
aDlg.AddFilter( aNCSAFilter, String::CreateFromAscii( IMAP_NCSA_TYPE ), "XXXX0" ); aDlg.AddFilter( aNCSAFilter, DEFINE_CONST_UNICODE( IMAP_NCSA_TYPE ), "XXXX0" );
aDlg.AddFilter( aBinFilter, String::CreateFromAscii( IMAP_BINARY_TYPE ), "XXXX0" ); aDlg.AddFilter( aBinFilter, DEFINE_CONST_UNICODE( IMAP_BINARY_TYPE ), "XXXX0" );
#else #else
aDlg.AddFilter( aCERNFilter, String::CreateFromAscii( IMAP_CERN_TYPE ) ); aDlg.AddFilter( aCERNFilter, DEFINE_CONST_UNICODE( IMAP_CERN_TYPE ) );
aDlg.AddFilter( aNCSAFilter, String::CreateFromAscii( IMAP_NCSA_TYPE ) ); aDlg.AddFilter( aNCSAFilter, DEFINE_CONST_UNICODE( IMAP_NCSA_TYPE ) );
aDlg.AddFilter( aBinFilter, String::CreateFromAscii( IMAP_BINARY_TYPE ) ); aDlg.AddFilter( aBinFilter, DEFINE_CONST_UNICODE( IMAP_BINARY_TYPE ) );
#endif #endif
aDlg.SetCurFilter( aCERNFilter ); aDlg.SetCurFilter( aCERNFilter );
aDlg.SetPath( SFX_INIMANAGER()->Get( SFX_KEY_GRAPHICS_PATH ) ); aDlg.SetPath( SvtPathOptions().GetGraphicPath() );
aDlg.SetDefaultExt( String::CreateFromAscii( IMAP_BINARY_EXT ) ); aDlg.SetDefaultExt( DEFINE_CONST_UNICODE( IMAP_BINARY_EXT ) );
if( aDlg.Execute() == RET_OK ) if( aDlg.Execute() == RET_OK )
{ {
@@ -715,17 +715,17 @@ BOOL SvxIMapDlg::DoSave()
if ( aFilter == aBinFilter ) if ( aFilter == aBinFilter )
{ {
nFormat = IMAP_FORMAT_BIN; nFormat = IMAP_FORMAT_BIN;
aExt = String::CreateFromAscii( IMAP_BINARY_EXT ); aExt = DEFINE_CONST_UNICODE( IMAP_BINARY_EXT );
} }
else if ( aFilter == aCERNFilter ) else if ( aFilter == aCERNFilter )
{ {
nFormat = IMAP_FORMAT_CERN; nFormat = IMAP_FORMAT_CERN;
aExt = String::CreateFromAscii( IMAP_CERN_EXT ); aExt = DEFINE_CONST_UNICODE( IMAP_CERN_EXT );
} }
else if ( aFilter == aNCSAFilter ) else if ( aFilter == aNCSAFilter )
{ {
nFormat = IMAP_FORMAT_NCSA; nFormat = IMAP_FORMAT_NCSA;
aExt = String::CreateFromAscii( IMAP_NCSA_EXT ); aExt = DEFINE_CONST_UNICODE( IMAP_NCSA_EXT );
} }
INetURLObject aURL; INetURLObject aURL;
@@ -781,7 +781,7 @@ IMPL_LINK( SvxIMapDlg, InfoHdl, IMapWindow*, pWnd )
aEdtText.SetText( rInfo.aMarkDescription ); aEdtText.SetText( rInfo.aMarkDescription );
if ( !rInfo.aMarkTarget.Len() ) if ( !rInfo.aMarkTarget.Len() )
pOwnData->pCbbTarget->SetText( String::CreateFromAscii( SELF_TARGET ) ); pOwnData->pCbbTarget->SetText( DEFINE_CONST_UNICODE( SELF_TARGET ) );
else else
pOwnData->pCbbTarget->SetText( rInfo.aMarkTarget ); pOwnData->pCbbTarget->SetText( rInfo.aMarkTarget );
} }
@@ -827,7 +827,7 @@ IMPL_LINK( SvxIMapDlg, InfoHdl, IMapWindow*, pWnd )
aEdtText.SetText( rInfo.aMarkDescription ); aEdtText.SetText( rInfo.aMarkDescription );
if ( !rInfo.aMarkTarget.Len() ) if ( !rInfo.aMarkTarget.Len() )
pOwnData->pCbbTarget->SetText( String::CreateFromAscii( SELF_TARGET ) ); pOwnData->pCbbTarget->SetText( DEFINE_CONST_UNICODE( SELF_TARGET ) );
else else
pOwnData->pCbbTarget->SetText( rInfo.aMarkTarget ); pOwnData->pCbbTarget->SetText( rInfo.aMarkTarget );
} }
@@ -851,7 +851,7 @@ IMPL_LINK( SvxIMapDlg, MousePosHdl, IMapWindow*, pWnd )
GET_MODULE_FIELDUNIT( eFieldUnit ); GET_MODULE_FIELDUNIT( eFieldUnit );
aStr.Assign( GetUnitString( rMousePos.X(), eFieldUnit, cSep ) ); aStr.Assign( GetUnitString( rMousePos.X(), eFieldUnit, cSep ) );
aStr.Append( String::CreateFromAscii( " / " ) ); aStr.Append( DEFINE_CONST_UNICODE( " / " ) );
aStr.Append( GetUnitString( rMousePos.Y(), eFieldUnit, cSep ) ); aStr.Append( GetUnitString( rMousePos.Y(), eFieldUnit, cSep ) );
aStbStatus.SetItemText( 2, aStr ); aStbStatus.SetItemText( 2, aStr );
@@ -875,7 +875,7 @@ IMPL_LINK( SvxIMapDlg, GraphSizeHdl, IMapWindow*, pWnd )
GET_MODULE_FIELDUNIT( eFieldUnit ); GET_MODULE_FIELDUNIT( eFieldUnit );
aStr.Assign( GetUnitString( rSize.Width(), eFieldUnit, cSep ) ); aStr.Assign( GetUnitString( rSize.Width(), eFieldUnit, cSep ) );
aStr.Append( String::CreateFromAscii( " x " ) ); aStr.Append( DEFINE_CONST_UNICODE( " x " ) );
aStr.Append( GetUnitString( rSize.Height(), eFieldUnit, cSep ) ); aStr.Append( GetUnitString( rSize.Height(), eFieldUnit, cSep ) );
aStbStatus.SetItemText( 3, aStr ); aStbStatus.SetItemText( 3, aStr );
@@ -927,7 +927,7 @@ IMPL_LINK( SvxIMapDlg, URLLoseFocusHdl, void*, p )
aNewInfo.aMarkDescription = aEdtText.GetText(); aNewInfo.aMarkDescription = aEdtText.GetText();
if ( !aTargetText.Len() ) if ( !aTargetText.Len() )
aNewInfo.aMarkTarget = String::CreateFromAscii( SELF_TARGET ); aNewInfo.aMarkTarget = DEFINE_CONST_UNICODE( SELF_TARGET );
else else
aNewInfo.aMarkTarget = aTargetText; aNewInfo.aMarkTarget = aTargetText;