summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avmedia/source/framework/modeltools.cxx2
-rw-r--r--avmedia/source/viewer/mediawindow.cxx2
-rw-r--r--avmedia/source/viewer/mediawindow_impl.cxx2
-rw-r--r--basctl/source/basicide/baside2b.cxx2
-rw-r--r--basctl/source/basicide/moduldl2.cxx2
-rw-r--r--basic/source/basmgr/basicmanagerrepository.cxx2
-rw-r--r--basic/source/basmgr/basmgr.cxx18
-rw-r--r--basic/source/runtime/methods.cxx2
-rw-r--r--basic/source/runtime/methods1.cxx2
-rw-r--r--connectivity/source/drivers/calc/CConnection.cxx4
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx6
-rw-r--r--connectivity/source/drivers/file/FConnection.cxx2
-rw-r--r--connectivity/source/drivers/file/FDatabaseMetaData.cxx2
-rw-r--r--connectivity/source/drivers/flat/ETable.cxx2
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx2
-rw-r--r--cui/source/dialogs/cuihyperdlg.cxx16
-rw-r--r--cui/source/dialogs/hldocntp.cxx10
-rw-r--r--cui/source/dialogs/hldoctp.cxx6
-rw-r--r--cui/source/dialogs/hlinettp.cxx14
-rw-r--r--cui/source/dialogs/hlmailtp.cxx12
-rw-r--r--cui/source/dialogs/hltpbase.cxx8
-rw-r--r--cui/source/dialogs/insdlg.cxx6
-rw-r--r--cui/source/dialogs/linkdlg.cxx6
-rw-r--r--cui/source/inc/hltpbase.hxx2
-rw-r--r--cui/source/options/doclinkdialog.cxx4
-rw-r--r--cui/source/options/optlingu.cxx4
-rw-r--r--cui/source/options/optpath.cxx6
-rw-r--r--cui/source/options/treeopt.cxx2
-rw-r--r--cui/source/tabpages/backgrnd.cxx4
-rw-r--r--cui/source/tabpages/numpages.cxx4
-rw-r--r--cui/source/tabpages/tpbitmap.cxx4
-rw-r--r--cui/source/tabpages/tpcolor.cxx2
-rw-r--r--cui/source/tabpages/tpgradnt.cxx4
-rw-r--r--cui/source/tabpages/tphatch.cxx4
-rw-r--r--cui/source/tabpages/tpline.cxx4
-rw-r--r--cui/source/tabpages/tplnedef.cxx4
-rw-r--r--cui/source/tabpages/tplneend.cxx4
-rw-r--r--dbaccess/source/core/dataaccess/ModelImpl.cxx2
-rw-r--r--dbaccess/source/core/dataaccess/databasecontext.cxx2
-rw-r--r--dbaccess/source/core/dataaccess/databaseregistrations.cxx2
-rw-r--r--dbaccess/source/core/dataaccess/datasource.cxx2
-rw-r--r--dbaccess/source/ext/macromigration/macromigrationpages.cxx2
-rw-r--r--dbaccess/source/ui/app/AppController.cxx2
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx4
-rw-r--r--dbaccess/source/ui/dlg/ConnectionHelper.cxx2
-rw-r--r--dbaccess/source/ui/dlg/dbfindex.cxx6
-rw-r--r--dbaccess/source/ui/dlg/dbwizsetup.cxx2
-rw-r--r--dbaccess/source/ui/dlg/sqlmessage.cxx2
-rw-r--r--dbaccess/source/ui/misc/UITools.cxx2
-rw-r--r--desktop/source/app/dispatchwatcher.cxx2
-rw-r--r--editeng/source/items/flditem.cxx6
-rw-r--r--editeng/source/misc/svxacorr.cxx4
-rw-r--r--extensions/source/abpilot/abpfinalpage.cxx4
-rw-r--r--extensions/source/bibliography/general.cxx2
-rw-r--r--extensions/source/dbpilots/controlwizard.cxx2
-rw-r--r--extensions/source/plugin/base/context.cxx2
-rw-r--r--extensions/source/plugin/base/xplugin.cxx2
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx6
-rw-r--r--extensions/source/propctrlr/pcrcommon.cxx4
-rw-r--r--filter/source/msfilter/msdffimp.cxx2
-rw-r--r--filter/source/msfilter/msvbahelper.cxx4
-rw-r--r--filter/source/pdf/pdfexport.cxx4
-rw-r--r--forms/source/component/DatabaseForm.cxx8
-rw-r--r--forms/source/component/clickableimage.cxx2
-rw-r--r--forms/source/xforms/submission/submission_get.cxx2
-rw-r--r--fpicker/source/office/OfficeControlAccess.cxx4
-rw-r--r--fpicker/source/office/iodlg.cxx28
-rw-r--r--framework/source/classes/menumanager.cxx2
-rw-r--r--framework/source/fwe/helper/titlehelper.cxx2
-rw-r--r--framework/source/services/urltransformer.cxx10
-rw-r--r--framework/source/uielement/generictoolbarcontroller.cxx4
-rw-r--r--framework/source/uielement/recentfilesmenucontroller.cxx2
-rw-r--r--include/svl/inethist.hxx8
-rw-r--r--include/svtools/inettbc.hxx6
-rw-r--r--include/svtools/place.hxx2
-rw-r--r--include/tools/urlobj.hxx82
-rw-r--r--linguistic/source/convdiclist.cxx6
-rw-r--r--linguistic/source/misc2.cxx2
-rw-r--r--reportdesign/source/ui/inspection/DefaultInspection.cxx2
-rw-r--r--sc/source/filter/excel/xecontent.cxx6
-rw-r--r--sc/source/filter/html/htmlexp.cxx12
-rw-r--r--sc/source/filter/xml/xmltabi.cxx2
-rw-r--r--sc/source/ui/docshell/docsh.cxx4
-rw-r--r--sc/source/ui/docshell/docsh8.cxx4
-rw-r--r--sc/source/ui/docshell/tablink.cxx2
-rw-r--r--sc/source/ui/drawfunc/fuins2.cxx2
-rw-r--r--sc/source/ui/vba/vbaworkbooks.cxx2
-rw-r--r--sd/source/filter/eppt/epptso.cxx8
-rw-r--r--sd/source/filter/html/htmlex.cxx8
-rw-r--r--sd/source/filter/html/pubdlg.cxx2
-rw-r--r--sd/source/filter/ppt/pptin.cxx4
-rw-r--r--sd/source/ui/dlg/PhotoAlbumDialog.cxx6
-rw-r--r--sd/source/ui/dlg/dlgass.cxx2
-rw-r--r--sd/source/ui/dlg/navigatr.cxx2
-rw-r--r--sd/source/ui/dlg/sdtreelb.cxx2
-rw-r--r--sd/source/ui/dlg/tpaction.cxx2
-rw-r--r--sd/source/ui/func/fuinsert.cxx4
-rw-r--r--sd/source/ui/func/fusel.cxx2
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx2
-rw-r--r--sd/source/ui/view/sdview4.cxx2
-rw-r--r--sfx2/source/appl/appdde.cxx2
-rw-r--r--sfx2/source/appl/appopen.cxx12
-rw-r--r--sfx2/source/appl/fileobj.cxx2
-rw-r--r--sfx2/source/appl/imagemgr.cxx4
-rw-r--r--sfx2/source/appl/linkmgr2.cxx6
-rw-r--r--sfx2/source/appl/newhelp.cxx4
-rw-r--r--sfx2/source/appl/opengrf.cxx2
-rw-r--r--sfx2/source/appl/sfxhelp.cxx2
-rw-r--r--sfx2/source/appl/sfxpicklist.cxx6
-rw-r--r--sfx2/source/appl/shutdowniconaqua.mm2
-rw-r--r--sfx2/source/bastyp/helper.cxx2
-rw-r--r--sfx2/source/control/recentdocsviewitem.cxx4
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx14
-rw-r--r--sfx2/source/dialog/filedlghelper.cxx14
-rw-r--r--sfx2/source/dialog/mailmodel.cxx2
-rw-r--r--sfx2/source/dialog/taskpane.cxx2
-rw-r--r--sfx2/source/doc/docfile.cxx20
-rw-r--r--sfx2/source/doc/doctempl.cxx2
-rw-r--r--sfx2/source/doc/doctemplates.cxx4
-rw-r--r--sfx2/source/doc/guisaveas.cxx4
-rw-r--r--sfx2/source/doc/new.cxx2
-rw-r--r--sfx2/source/doc/objmisc.cxx6
-rw-r--r--sfx2/source/doc/objstor.cxx4
-rw-r--r--sfx2/source/doc/printhelper.cxx2
-rw-r--r--sfx2/source/inet/inettbc.cxx4
-rw-r--r--sfx2/source/view/viewfrm.cxx4
-rw-r--r--sfx2/source/view/viewsh.cxx2
-rw-r--r--sot/source/sdstor/storage.cxx4
-rw-r--r--svl/source/misc/filenotation.cxx8
-rw-r--r--svl/source/misc/inethist.cxx8
-rw-r--r--svl/source/misc/urihelper.cxx20
-rw-r--r--svtools/source/contnr/contentenumeration.cxx2
-rw-r--r--svtools/source/contnr/fileview.cxx2
-rw-r--r--svtools/source/control/filectrl.cxx2
-rw-r--r--svtools/source/control/fileurlbox.cxx2
-rw-r--r--svtools/source/control/inettbc.cxx40
-rw-r--r--svtools/source/control/urlcontrol.cxx2
-rw-r--r--svtools/source/dialogs/ServerDetailsControls.cxx4
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx6
-rw-r--r--svtools/source/misc/imagemgr.cxx4
-rw-r--r--svtools/source/misc/templatefoldercache.cxx8
-rw-r--r--svtools/source/uno/wizard/unowizard.cxx4
-rw-r--r--svx/source/dialog/docrecovery.cxx2
-rw-r--r--svx/source/dialog/imapdlg.cxx4
-rw-r--r--svx/source/dialog/imapwnd.cxx4
-rw-r--r--svx/source/dialog/langbox.cxx2
-rw-r--r--svx/source/fmcomp/fmgridif.cxx2
-rw-r--r--svx/source/form/dataaccessdescriptor.cxx2
-rw-r--r--svx/source/form/databaselocationinput.cxx2
-rw-r--r--svx/source/form/fmpage.cxx6
-rw-r--r--svx/source/gallery2/galbrws1.cxx2
-rw-r--r--svx/source/gallery2/galbrws2.cxx4
-rw-r--r--svx/source/gallery2/galctrl.cxx2
-rw-r--r--svx/source/gallery2/galexpl.cxx2
-rw-r--r--svx/source/gallery2/gallery1.cxx12
-rw-r--r--svx/source/gallery2/galmisc.cxx8
-rw-r--r--svx/source/gallery2/galtheme.cxx18
-rw-r--r--svx/source/sidebar/nbdtmg.cxx2
-rw-r--r--svx/source/svdraw/svdotxln.cxx6
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.cxx2
-rw-r--r--svx/source/unodraw/unoshap2.cxx4
-rw-r--r--svx/source/unogallery/unogaltheme.cxx2
-rw-r--r--svx/source/xml/xmlxtexp.cxx2
-rw-r--r--svx/source/xml/xmlxtimp.cxx2
-rw-r--r--svx/source/xoutdev/_xoutbmp.cxx4
-rw-r--r--svx/source/xoutdev/xtable.cxx4
-rw-r--r--sw/source/core/doc/DocumentLinksAdministrationManager.cxx4
-rw-r--r--sw/source/core/doc/acmplwrd.cxx2
-rw-r--r--sw/source/core/fields/docufld.cxx4
-rw-r--r--sw/source/core/graphic/ndgrf.cxx2
-rw-r--r--sw/source/core/swg/SwXMLTextBlocks.cxx2
-rw-r--r--sw/source/core/unocore/unofield.cxx4
-rw-r--r--sw/source/filter/basflt/iodetect.cxx2
-rw-r--r--sw/source/filter/html/htmlgrin.cxx2
-rw-r--r--sw/source/filter/ww8/wrtw8esh.cxx4
-rw-r--r--sw/source/filter/ww8/wrtw8nds.cxx10
-rw-r--r--sw/source/filter/ww8/ww8par.cxx4
-rw-r--r--sw/source/ui/envelp/mailmrge.cxx4
-rw-r--r--sw/source/ui/fldui/javaedit.cxx4
-rw-r--r--sw/source/ui/vba/vbadocument.cxx2
-rw-r--r--sw/source/ui/vba/vbadocuments.cxx2
-rw-r--r--sw/source/ui/vba/vbasystem.cxx2
-rw-r--r--sw/source/uibase/app/docsh2.cxx2
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx4
-rw-r--r--sw/source/uibase/shells/textsh.cxx2
-rw-r--r--sw/source/uibase/uno/unomailmerge.cxx2
-rw-r--r--sw/source/uibase/uno/unomod.cxx2
-rw-r--r--toolkit/source/awt/animatedimagespeer.cxx2
-rw-r--r--toolkit/source/awt/vclxwindow.cxx2
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx2
-rw-r--r--tools/qa/cppunit/test_urlobj.cxx32
-rw-r--r--tools/source/fsys/urlobj.cxx282
-rw-r--r--ucb/source/core/FileAccess.cxx36
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx2
-rw-r--r--unotools/source/config/pathoptions.cxx4
-rw-r--r--unotools/source/config/securityoptions.cxx4
-rw-r--r--unotools/source/ucbhelper/ucbhelper.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbadocumentsbase.cxx2
-rw-r--r--vcl/source/filter/graphicfilter.cxx10
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx6
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx4
-rw-r--r--vcl/unx/generic/printer/printerinfomanager.cxx4
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkPicker.cxx4
-rw-r--r--xmloff/source/forms/elementexport.cxx2
-rw-r--r--xmloff/source/forms/elementimport.cxx2
-rw-r--r--xmlsecurity/source/dialogs/macrosecurity.cxx2
206 files changed, 664 insertions, 664 deletions
diff --git a/avmedia/source/framework/modeltools.cxx b/avmedia/source/framework/modeltools.cxx
index 72e6a03371b7..c42e4c130082 100644
--- a/avmedia/source/framework/modeltools.cxx
+++ b/avmedia/source/framework/modeltools.cxx
@@ -90,7 +90,7 @@ bool KmzDae2Gltf(const OUString& rSourceURL, OUString& o_rOutput)
// If *.dae file is not in the local file system, then copy it to a temp folder for the conversion
OUString sInput = rSourceURL;
const INetURLObject aSourceURLObj(rSourceURL);
- if( aSourceURLObj.GetProtocol() != INetProtocol::FILE )
+ if( aSourceURLObj.GetProtocol() != INetProtocol::File )
{
try
{
diff --git a/avmedia/source/viewer/mediawindow.cxx b/avmedia/source/viewer/mediawindow.cxx
index 9713666a13a9..a40d8a384be2 100644
--- a/avmedia/source/viewer/mediawindow.cxx
+++ b/avmedia/source/viewer/mediawindow.cxx
@@ -339,7 +339,7 @@ bool MediaWindow::isMediaURL( const OUString& rURL, const OUString& rReferer, bo
const INetURLObject aURL( rURL );
bool bRet = false;
- if( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() != INetProtocol::NotValid )
{
if( bDeep || pPreferredSizePixel )
{
diff --git a/avmedia/source/viewer/mediawindow_impl.cxx b/avmedia/source/viewer/mediawindow_impl.cxx
index 9916b4451a85..7a6863b1b2bc 100644
--- a/avmedia/source/viewer/mediawindow_impl.cxx
+++ b/avmedia/source/viewer/mediawindow_impl.cxx
@@ -310,7 +310,7 @@ void MediaWindowImpl::setURL( const OUString& rURL,
{
INetURLObject aURL( rURL );
- if (aURL.GetProtocol() != INetProtocol::NOT_VALID)
+ if (aURL.GetProtocol() != INetProtocol::NotValid)
maFileURL = aURL.GetMainURL(INetURLObject::DECODE_UNAMBIGUOUS);
else
maFileURL = rURL;
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 007d39537d63..72888568ff68 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -292,7 +292,7 @@ OUString EditorWindow::GetWordAtCursor()
{
OUString aURL( URIHelper::FindFirstURLInText( aText, nStart, nEnd, aClass ) );
INetURLObject aURLObj( aURL );
- if ( aURLObj.GetProtocol() == INetProtocol::VND_SUN_STAR_HELP
+ if ( aURLObj.GetProtocol() == INetProtocol::VndSunStarHelp
&& nSelStart >= nStart && nSelStart <= nEnd && nSelEnd >= nStart && nSelEnd <= nEnd )
{
aWord = aURL;
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index 058fd97e3ab2..114cfd0bda2d 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -1269,7 +1269,7 @@ void LibPage::ExportAsBasic( const OUString& aLibName )
if( aPath.isEmpty() )
aPath = SvtPathOptions().GetWorkPath();
- // INetURLObject aURL(m_sSavePath, INetProtocol::FILE);
+ // INetURLObject aURL(m_sSavePath, INetProtocol::File);
xFolderPicker->setDisplayDirectory( aPath );
short nRet = xFolderPicker->execute();
if( nRet == RET_OK )
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx
index c12e904d1321..45b63f2fcaa3 100644
--- a/basic/source/basmgr/basicmanagerrepository.cxx
+++ b/basic/source/basmgr/basicmanagerrepository.cxx
@@ -288,7 +288,7 @@ namespace basic
// The first dir in the path as destination:
OUString aFileName( aAppBasic.getName() );
aAppBasic = INetURLObject( aAppBasicDir.getToken(1, ';') );
- DBG_ASSERT(aAppBasic.GetProtocol() != INetProtocol::NOT_VALID,
+ DBG_ASSERT(aAppBasic.GetProtocol() != INetProtocol::NotValid,
OString("Invalid URL: \"" +
OUStringToOString(aAppBasicDir, osl_getThreadTextEncoding()) +
"\"").getStr());
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index a4527d4a99bf..59fb0f66458d 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -587,7 +587,7 @@ BasicManager::BasicManager( SotStorage& rStorage, const OUString& rBaseURL, Star
pLibs->aBasicLibPath = *pLibPath;
}
OUString aStorName( rStorage.GetName() );
- maStorageName = INetURLObject(aStorName, INetProtocol::FILE).GetMainURL( INetURLObject::NO_DECODE );
+ maStorageName = INetURLObject(aStorName, INetProtocol::File).GetMainURL( INetURLObject::NO_DECODE );
// If there is no Manager Stream, no further actions are necessary
@@ -831,7 +831,7 @@ void BasicManager::LoadBasicManager( SotStorage& rStorage, const OUString& rBase
return;
}
- maStorageName = INetURLObject(aStorName, INetProtocol::FILE).GetMainURL( INetURLObject::NO_DECODE );
+ maStorageName = INetURLObject(aStorName, INetProtocol::File).GetMainURL( INetURLObject::NO_DECODE );
// #i13114 removed, DBG_ASSERT(aStorageName.Len() != 0, "Bad storage name");
OUString aRealStorageName = maStorageName; // for relative paths, can be modified through BaseURL
@@ -839,7 +839,7 @@ void BasicManager::LoadBasicManager( SotStorage& rStorage, const OUString& rBase
if ( !rBaseURL.isEmpty() )
{
INetURLObject aObj( rBaseURL );
- if ( aObj.GetProtocol() == INetProtocol::FILE )
+ if ( aObj.GetProtocol() == INetProtocol::File )
{
aRealStorageName = aObj.PathToFileName();
}
@@ -875,7 +875,7 @@ void BasicManager::LoadBasicManager( SotStorage& rStorage, const OUString& rBase
// Always try relative first if there are two stands on disk
if ( !pInfo->GetRelStorageName().isEmpty() && pInfo->GetRelStorageName() != szImbedded )
{
- INetURLObject aObj( aRealStorageName, INetProtocol::FILE );
+ INetURLObject aObj( aRealStorageName, INetProtocol::File );
aObj.removeSegment();
bool bWasAbsolute = false;
aObj = aObj.smartRel2Abs( pInfo->GetRelStorageName(), bWasAbsolute );
@@ -946,7 +946,7 @@ void BasicManager::LoadOldBasicManager( SotStorage& rStorage )
if ( !aLibs.isEmpty() )
{
OUString aCurStorageName( aStorName );
- INetURLObject aCurStorage( aCurStorageName, INetProtocol::FILE );
+ INetURLObject aCurStorage( aCurStorageName, INetProtocol::File );
sal_Int32 nLibs = comphelper::string::getTokenCount(aLibs, LIB_SEP);
for ( sal_Int32 nLib = 0; nLib < nLibs; nLib++ )
{
@@ -956,7 +956,7 @@ void BasicManager::LoadOldBasicManager( SotStorage& rStorage )
OUString aLibName( aLibInfo.getToken( 0, LIBINFO_SEP ) );
OUString aLibAbsStorageName( aLibInfo.getToken( 1, LIBINFO_SEP ) );
OUString aLibRelStorageName( aLibInfo.getToken( 2, LIBINFO_SEP ) );
- INetURLObject aLibAbsStorage( aLibAbsStorageName, INetProtocol::FILE );
+ INetURLObject aLibAbsStorage( aLibAbsStorageName, INetProtocol::File );
INetURLObject aLibRelStorage( aStorName );
aLibRelStorage.removeSegment();
@@ -1056,10 +1056,10 @@ bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurStora
OUString aStorName( pCurStorage->GetName() );
// #i13114 removed, DBG_ASSERT( aStorName.Len(), "No Storage Name!" );
- INetURLObject aCurStorageEntry(aStorName, INetProtocol::FILE);
+ INetURLObject aCurStorageEntry(aStorName, INetProtocol::File);
// #i13114 removed, DBG_ASSERT(aCurStorageEntry.GetMainURL( INetURLObject::NO_DECODE ).Len() != 0, "Bad storage name");
- INetURLObject aStorageEntry(aStorageName, INetProtocol::FILE);
+ INetURLObject aStorageEntry(aStorageName, INetProtocol::File);
// #i13114 removed, DBG_ASSERT(aCurStorageEntry.GetMainURL( INetURLObject::NO_DECODE ).Len() != 0, "Bad storage name");
if ( aCurStorageEntry == aStorageEntry )
@@ -1235,7 +1235,7 @@ StarBASIC* BasicManager::AddLib( SotStorage& rStorage, const OUString& rLibName,
OUString aStorName( rStorage.GetName() );
DBG_ASSERT( !aStorName.isEmpty(), "No Storage Name!" );
- OUString aStorageName = INetURLObject(aStorName, INetProtocol::FILE).GetMainURL( INetURLObject::NO_DECODE );
+ OUString aStorageName = INetURLObject(aStorName, INetProtocol::File).GetMainURL( INetURLObject::NO_DECODE );
DBG_ASSERT(!aStorageName.isEmpty(), "Bad storage name");
OUString aNewLibName( rLibName );
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 8dbdf8e4f883..623b092c6651 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -628,7 +628,7 @@ RTLFUNC(MkDir)
// In vba if the full path is not specified then
// folder is created relative to the curdir
INetURLObject aURLObj( getFullPath( aPath ) );
- if ( aURLObj.GetProtocol() != INetProtocol::FILE )
+ if ( aURLObj.GetProtocol() != INetProtocol::File )
{
SbxArrayRef pPar = new SbxArray();
SbxVariableRef pResult = new SbxVariable();
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index 59459d932354..86aed45c93c2 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -1644,7 +1644,7 @@ RTLFUNC(ConvertToUrl)
if ( rPar.Count() == 2 )
{
OUString aStr = rPar.Get(1)->GetOUString();
- INetURLObject aURLObj( aStr, INetProtocol::FILE );
+ INetURLObject aURLObj( aStr, INetProtocol::File );
OUString aFileURL = aURLObj.GetMainURL( INetURLObject::NO_DECODE );
if( aFileURL.isEmpty() )
{
diff --git a/connectivity/source/drivers/calc/CConnection.cxx b/connectivity/source/drivers/calc/CConnection.cxx
index 6ed3e12d27c4..eb94e10ef6d8 100644
--- a/connectivity/source/drivers/calc/CConnection.cxx
+++ b/connectivity/source/drivers/calc/CConnection.cxx
@@ -72,13 +72,13 @@ void OCalcConnection::construct(const OUString& url,const Sequence< PropertyValu
m_aFileName = aDSN;
INetURLObject aURL;
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
{
SvtPathOptions aPathOptions;
m_aFileName = aPathOptions.SubstituteVariable(m_aFileName);
}
aURL.SetSmartURL(m_aFileName);
- if ( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aURL.GetProtocol() == INetProtocol::NotValid )
{
// don't pass invalid URL to loadComponentFromURL
throw SQLException();
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index b47a00f90983..d0c8d0205392 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -628,7 +628,7 @@ OUString ODbaseTable::getEntry(OConnection* _pConnection,const OUString& _sName
while(xDir->next())
{
sName = xRow->getString(1);
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
OUString sUrl = _pConnection->getURL() + s_sSeparator + sName;
aURL.SetSmartURL( sUrl );
@@ -1038,7 +1038,7 @@ bool ODbaseTable::CreateImpl()
}
INetURLObject aURL;
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
OUString aName = getEntry(m_pConnection, m_Name);
if(aName.isEmpty())
{
@@ -2523,7 +2523,7 @@ OUString ODbaseTable::createTempFile()
getConnection()->throwGenericSQLException(STR_COULD_NOT_ALTER_TABLE, *this);
INetURLObject aURL;
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
aURL.SetURL(aTempFile.GetURL());
OUString sNewName(aURL.getName().copy(0, aURL.getName().getLength() - sExt.getLength()));
diff --git a/connectivity/source/drivers/file/FConnection.cxx b/connectivity/source/drivers/file/FConnection.cxx
index ae5d244e214f..1d5fdfb3054d 100644
--- a/connectivity/source/drivers/file/FConnection.cxx
+++ b/connectivity/source/drivers/file/FConnection.cxx
@@ -136,7 +136,7 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
OUString aFileName = aDSN;
INetURLObject aURL;
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
{
SvtPathOptions aPathOptions;
aFileName = aPathOptions.SubstituteVariable(aFileName);
diff --git a/connectivity/source/drivers/file/FDatabaseMetaData.cxx b/connectivity/source/drivers/file/FDatabaseMetaData.cxx
index eb9e750175db..cde05f7e5659 100644
--- a/connectivity/source/drivers/file/FDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/file/FDatabaseMetaData.cxx
@@ -220,7 +220,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
while(xResultSet->next())
{
aName = xRow->getString(1);
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
OUString sUrl = m_pConnection->getURL() + "/" + aName;
aURL.SetSmartURL( sUrl );
sThisContentExtension = aURL.getExtension();
diff --git a/connectivity/source/drivers/flat/ETable.cxx b/connectivity/source/drivers/flat/ETable.cxx
index 26d6b22c93e0..1c124d87ec1e 100644
--- a/connectivity/source/drivers/flat/ETable.cxx
+++ b/connectivity/source/drivers/flat/ETable.cxx
@@ -468,7 +468,7 @@ OUString OFlatTable::getEntry()
while(xDir->next())
{
sName = xRow->getString(1);
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
OUString sUrl = m_pConnection->getURL() + s_sSeparator + sName;
aURL.SetSmartURL( sUrl );
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index 9996a86811c4..a6a9ef3a507e 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -145,7 +145,7 @@ void SearchThread::ImplSearch( const INetURLObject& rStartURL,
while( xResultSet->next() && schedule() )
{
INetURLObject aFoundURL( xContentAccess->queryContentIdentifierString() );
- DBG_ASSERT( aFoundURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aFoundURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
bool bFolder = xRow->getBoolean( 1 ); // property "IsFolder"
if ( xRow->wasNull() )
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx
index 2daa9e51f186..8c48d513151e 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -305,17 +305,17 @@ sal_uInt16 SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem )
switch ( eProtocolTyp )
{
- case INetProtocol::HTTP :
- case INetProtocol::FTP :
+ case INetProtocol::Http :
+ case INetProtocol::Ftp :
nPageId = RID_SVXPAGE_HYPERLINK_INTERNET;
break;
- case INetProtocol::FILE :
- case INetProtocol::POP3 :
- case INetProtocol::IMAP :
+ case INetProtocol::File :
+ case INetProtocol::Pop3 :
+ case INetProtocol::Imap :
nPageId = RID_SVXPAGE_HYPERLINK_DOCUMENT;
break;
- case INetProtocol::MAILTO :
- case INetProtocol::NEWS :
+ case INetProtocol::Mailto :
+ case INetProtocol::News :
nPageId = RID_SVXPAGE_HYPERLINK_MAIL;
break;
default :
@@ -323,7 +323,7 @@ sal_uInt16 SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem )
nPageId = RID_SVXPAGE_HYPERLINK_DOCUMENT;
else
{
- eProtocolTyp = INetProtocol::NOT_VALID;
+ eProtocolTyp = INetProtocol::NotValid;
nPageId = GetCurPageId();
}
break;
diff --git a/cui/source/dialogs/hldocntp.cxx b/cui/source/dialogs/hldocntp.cxx
index f74809b8a640..4711a1f574ce 100644
--- a/cui/source/dialogs/hldocntp.cxx
+++ b/cui/source/dialogs/hldocntp.cxx
@@ -64,7 +64,7 @@ bool SvxHyperlinkNewDocTp::ImplGetURLObject( const OUString& rPath, const OUStri
if ( bIsValidURL )
{
aURLObject.SetURL( rPath );
- if ( aURLObject.GetProtocol() == INetProtocol::NOT_VALID ) // test if the source is already a valid url
+ if ( aURLObject.GetProtocol() == INetProtocol::NotValid ) // test if the source is already a valid url
{ // if not we have to create a url from a physical file name
bool wasAbs;
INetURLObject base(rBase);
@@ -73,7 +73,7 @@ bool SvxHyperlinkNewDocTp::ImplGetURLObject( const OUString& rPath, const OUStri
rPath, wasAbs, true, INetURLObject::ENCODE_ALL,
RTL_TEXTENCODING_UTF8, true);
}
- bIsValidURL = aURLObject.GetProtocol() != INetProtocol::NOT_VALID;
+ bIsValidURL = aURLObject.GetProtocol() != INetProtocol::NotValid;
if ( bIsValidURL )
{
OUString aBase( aURLObject.getName( INetURLObject::LAST_SEGMENT, false ) );
@@ -103,7 +103,7 @@ SvxHyperlinkNewDocTp::SvxHyperlinkNewDocTp ( vcl::Window *pParent, IconChoiceDia
get(m_pRbtEditNow, "editnow");
get(m_pRbtEditLater, "editlater");
get(m_pCbbPath, "path");
- m_pCbbPath->SetSmartProtocol(INetProtocol::FILE);
+ m_pCbbPath->SetSmartProtocol(INetProtocol::File);
get(m_pBtCreate, "create");
m_pBtCreate->SetModeImage(Image(CUI_RES(RID_SVXBMP_NEWDOC)));
get(m_pLbDocTypes, "types");
@@ -417,7 +417,7 @@ IMPL_LINK_NOARG(SvxHyperlinkNewDocTp, ClickNewHdl_Impl)
{
sal_Char const sSlash[] = "/";
- INetURLObject aURL( aStrURL, INetProtocol::FILE );
+ INetURLObject aURL( aStrURL, INetProtocol::File );
OUString aStrName;
if( bHandleFileName )
aStrName = bZeroPath? aTempStrURL : OUString(aURL.getName());
@@ -442,7 +442,7 @@ IMPL_LINK_NOARG(SvxHyperlinkNewDocTp, ClickNewHdl_Impl)
aNewURL.setExtension( static_cast<DocumentTypeData*>(m_pLbDocTypes->GetEntryData( nPos ))->aStrExt );
}
- if( aNewURL.GetProtocol() == INetProtocol::FILE )
+ if( aNewURL.GetProtocol() == INetProtocol::File )
{
utl::LocalFileHelper::ConvertURLToSystemPath( aNewURL.GetMainURL( INetURLObject::NO_DECODE ), aStrTmp );
}
diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx
index 12d73d1966ad..11fe8e63db34 100644
--- a/cui/source/dialogs/hldoctp.cxx
+++ b/cui/source/dialogs/hldoctp.cxx
@@ -39,7 +39,7 @@ SvxHyperlinkDocTp::SvxHyperlinkDocTp ( vcl::Window *pParent, IconChoiceDialog* p
mbMarkWndOpen ( false )
{
get(m_pCbbPath, "path");
- m_pCbbPath->SetSmartProtocol(INetProtocol::FILE);
+ m_pCbbPath->SetSmartProtocol(INetProtocol::File);
get(m_pBtFileopen, "fileopen");
m_pBtFileopen->SetModeImage(Image(CUI_RES(RID_SVXBMP_FILEOPEN)));
get(m_pEdTarget, "target");
@@ -113,7 +113,7 @@ OUString SvxHyperlinkDocTp::GetCurrentURL ()
if ( aStrPath != aEmptyStr )
{
INetURLObject aURL( aStrPath );
- if ( aURL.GetProtocol() != INetProtocol::NOT_VALID ) // maybe the path is already a valid
+ if ( aURL.GetProtocol() != INetProtocol::NotValid ) // maybe the path is already a valid
aStrURL = aStrPath; // hyperlink, then we can use this path directly
else
utl::LocalFileHelper::ConvertSystemPathToURL( aStrPath, aBaseURL, aStrURL );
@@ -341,7 +341,7 @@ void SvxHyperlinkDocTp::SetMarkStr ( const OUString& aStrMark )
SvxHyperlinkDocTp::EPathType SvxHyperlinkDocTp::GetPathType ( const OUString& rStrPath )
{
- INetURLObject aURL( rStrPath, INetProtocol::FILE );
+ INetURLObject aURL( rStrPath, INetProtocol::File );
if( aURL.HasError() )
return Type_Invalid;
diff --git a/cui/source/dialogs/hlinettp.cxx b/cui/source/dialogs/hlinettp.cxx
index 0471571facf9..3c7bfcc1c4a4 100644
--- a/cui/source/dialogs/hlinettp.cxx
+++ b/cui/source/dialogs/hlinettp.cxx
@@ -44,7 +44,7 @@ SvxHyperlinkInternetTp::SvxHyperlinkInternetTp ( vcl::Window *pParent,
get(m_pRbtLinktypInternet, "linktyp_internet");
get(m_pRbtLinktypFTP, "linktyp_ftp");
get(m_pCbbTarget, "target");
- m_pCbbTarget->SetSmartProtocol(INetProtocol::HTTP);
+ m_pCbbTarget->SetSmartProtocol(INetProtocol::Http);
get(m_pBtBrowse, "browse");
m_pBtBrowse->SetModeImage(Image(CUI_RES (RID_SVXBMP_BROWSE)));
get(m_pFtLogin, "login_label");
@@ -111,7 +111,7 @@ void SvxHyperlinkInternetTp::FillDlgFields(const OUString& rStrURL)
// set URL-field
// Show the scheme, #72740
- if ( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( aURL.GetProtocol() != INetProtocol::NotValid )
m_pCbbTarget->SetText( aURL.GetMainURL( INetURLObject::DECODE_UNAMBIGUOUS ) );
else
m_pCbbTarget->SetText(rStrURL); // #77696#
@@ -165,17 +165,17 @@ OUString SvxHyperlinkInternetTp::CreateAbsoluteURL() const
INetURLObject aURL(aStrURL);
- if( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() == INetProtocol::NotValid )
{
aURL.SetSmartProtocol( GetSmartProtocolFromButtons() );
aURL.SetSmartURL(aStrURL);
}
// username and password for ftp-url
- if( aURL.GetProtocol() == INetProtocol::FTP && !m_pEdLogin->GetText().isEmpty() )
+ if( aURL.GetProtocol() == INetProtocol::Ftp && !m_pEdLogin->GetText().isEmpty() )
aURL.SetUserAndPass ( m_pEdLogin->GetText(), m_pEdPassword->GetText() );
- if ( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( aURL.GetProtocol() != INetProtocol::NotValid )
return aURL.GetMainURL( INetURLObject::DECODE_TO_IURI );
else //#105788# always create a URL even if it is not valid
return aStrURL;
@@ -321,9 +321,9 @@ INetProtocol SvxHyperlinkInternetTp::GetSmartProtocolFromButtons() const
{
if( m_pRbtLinktypFTP->IsChecked() )
{
- return INetProtocol::FTP;
+ return INetProtocol::Ftp;
}
- return INetProtocol::HTTP;
+ return INetProtocol::Http;
}
/*************************************************************************
diff --git a/cui/source/dialogs/hlmailtp.cxx b/cui/source/dialogs/hlmailtp.cxx
index 60d8142b028f..bb04adb1e675 100644
--- a/cui/source/dialogs/hlmailtp.cxx
+++ b/cui/source/dialogs/hlmailtp.cxx
@@ -44,7 +44,7 @@ SvxHyperlinkMailTp::SvxHyperlinkMailTp ( vcl::Window *pParent, IconChoiceDialog*
get(m_pRbtMail, "linktyp_mail");
get(m_pRbtNews, "linktyp_news");
get(m_pCbbReceiver, "receiver");
- m_pCbbReceiver->SetSmartProtocol(INetProtocol::MAILTO);
+ m_pCbbReceiver->SetSmartProtocol(INetProtocol::Mailto);
get(m_pBtAdrBook, "adressbook");
m_pBtAdrBook->SetModeImage(Image(CUI_RES(RID_SVXBMP_ADRESSBOOK)));
get(m_pFtSubject, "subject_label");
@@ -139,14 +139,14 @@ OUString SvxHyperlinkMailTp::CreateAbsoluteURL() const
OUString aStrURL = m_pCbbReceiver->GetText();
INetURLObject aURL(aStrURL);
- if( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() == INetProtocol::NotValid )
{
aURL.SetSmartProtocol( GetSmartProtocolFromButtons() );
aURL.SetSmartURL(aStrURL);
}
// subject for EMail-url
- if( aURL.GetProtocol() == INetProtocol::MAILTO )
+ if( aURL.GetProtocol() == INetProtocol::Mailto )
{
if ( m_pEdSubject->GetText() != OUString(aEmptyStr) )
{
@@ -156,7 +156,7 @@ OUString SvxHyperlinkMailTp::CreateAbsoluteURL() const
}
}
- if ( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( aURL.GetProtocol() != INetProtocol::NotValid )
return aURL.GetMainURL( INetURLObject::DECODE_WITH_CHARSET );
else //#105788# always create a URL even if it is not valid
return aStrURL;
@@ -238,9 +238,9 @@ INetProtocol SvxHyperlinkMailTp::GetSmartProtocolFromButtons() const
{
if( m_pRbtNews->IsChecked() )
{
- return INetProtocol::NEWS;
+ return INetProtocol::News;
}
- return INetProtocol::MAILTO;
+ return INetProtocol::Mailto;
}
/*************************************************************************
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx
index fcaaed8f7f75..7aec01683018 100644
--- a/cui/source/dialogs/hltpbase.cxx
+++ b/cui/source/dialogs/hltpbase.cxx
@@ -43,7 +43,7 @@ SvxHyperURLBox::SvxHyperURLBox( vcl::Window* pParent, INetProtocol eSmart )
extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvxHyperURLBox(vcl::Window *pParent, VclBuilder::stringmap &)
{
- return new SvxHyperURLBox(pParent, INetProtocol::HTTP);
+ return new SvxHyperURLBox(pParent, INetProtocol::Http);
}
sal_Int8 SvxHyperURLBox::AcceptDrop( const AcceptDropEvent& /* rEvt */ )
@@ -383,7 +383,7 @@ OUString SvxHyperlinkTabPageBase::GetSchemeFromURL( const OUString& rStrURL )
// #77696#
// our new INetUrlObject now has the ability
// to detect if an Url is valid or not :-(
- if ( aProtocol == INetProtocol::NOT_VALID )
+ if ( aProtocol == INetProtocol::NotValid )
{
if ( rStrURL.startsWithIgnoreAsciiCase( INET_HTTP_SCHEME ) )
{
@@ -474,10 +474,10 @@ OUString SvxHyperlinkTabPageBase::CreateUiNameFromURL( const OUString& aStrURL )
switch(aURLObj.GetProtocol())
{
- case INetProtocol::FILE:
+ case INetProtocol::File:
utl::LocalFileHelper::ConvertURLToSystemPath( aURLObj.GetMainURL(INetURLObject::NO_DECODE), aStrUiURL );
break;
- case INetProtocol::FTP :
+ case INetProtocol::Ftp :
{
//remove password from name
INetURLObject aTmpURL(aURLObj);
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx
index b8cd08bc29aa..fc9d8218c97d 100644
--- a/cui/source/dialogs/insdlg.cxx
+++ b/cui/source/dialogs/insdlg.cxx
@@ -295,7 +295,7 @@ short SvInsertOleDlg::Execute()
{
aFileName = GetFilePath();
INetURLObject aURL;
- aURL.SetSmartProtocol( INetProtocol::FILE );
+ aURL.SetSmartProtocol( INetProtocol::File );
aURL.SetSmartURL( aFileName );
aFileName = aURL.GetMainURL( INetURLObject::NO_DECODE );
bool bLink = IsLinked();
@@ -433,7 +433,7 @@ short SvInsertPlugInDialog::Execute()
OUString aURL = GetPlugInFile();
// URL can be a valid and absolute URL or a system file name
- m_pURL->SetSmartProtocol( INetProtocol::FILE );
+ m_pURL->SetSmartProtocol( INetProtocol::File );
if ( aURL.isEmpty() || m_pURL->SetSmartURL( aURL ) )
{
// create a plugin object
@@ -618,7 +618,7 @@ short SfxInsertFloatingFrameDialog::Execute()
{
// URL can be a valid and absolute URL or a system file name
INetURLObject aObj;
- aObj.SetSmartProtocol( INetProtocol::FILE );
+ aObj.SetSmartProtocol( INetProtocol::File );
if ( aObj.SetSmartURL( m_pEDURL->GetText() ) )
aURL = aObj.GetMainURL( INetURLObject::NO_DECODE );
}
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx
index bde358525512..911a76c694b2 100644
--- a/cui/source/dialogs/linkdlg.cxx
+++ b/cui/source/dialogs/linkdlg.cxx
@@ -361,7 +361,7 @@ IMPL_LINK( SvBaseLinksDlg, ChangeSourceClickHdl, PushButton *, pPushButton )
SvBaseLink* pLink = static_cast<SvBaseLink*>(pEntry->GetUserData());
pLinkMgr->GetDisplayNames( pLink, &sType, &sFile, 0, 0 );
INetURLObject aUrl(sFile);
- if(aUrl.GetProtocol() == INetProtocol::FILE)
+ if(aUrl.GetProtocol() == INetProtocol::File)
{
OUString sOldPath(aUrl.PathToFileName());
sal_Int32 nLen = aUrl.GetName().getLength();
@@ -386,7 +386,7 @@ IMPL_LINK( SvBaseLinksDlg, ChangeSourceClickHdl, PushButton *, pPushButton )
continue;
pLinkMgr->GetDisplayNames( pLink, &sType, &sFile, &sLinkName, &sFilter );
INetURLObject aUrl_(sFile);
- INetURLObject aUrl2(aPath, INetProtocol::FILE);
+ INetURLObject aUrl2(aPath, INetProtocol::File);
aUrl2.insertName( aUrl_.getName() );
OUString sNewLinkName;
MakeLnkName( sNewLinkName, 0 ,
@@ -639,7 +639,7 @@ void SvBaseLinksDlg::InsertEntry( const SvBaseLink& rLink, sal_uLong nPos, bool
long nWidthPixel = m_pTbLinks->GetLogicTab( 2 ) - m_pTbLinks->GetLogicTab( 1 );
nWidthPixel -= SV_TAB_BORDER;
OUString aTxt = m_pTbLinks->GetEllipsisString( sFileNm, nWidthPixel, TEXT_DRAW_PATHELLIPSIS );
- INetURLObject aPath( sFileNm, INetProtocol::FILE );
+ INetURLObject aPath( sFileNm, INetProtocol::File );
OUString aFileName = aPath.getName();
aFileName = INetURLObject::decode(aFileName, '%', INetURLObject::DECODE_UNAMBIGUOUS);
diff --git a/cui/source/inc/hltpbase.hxx b/cui/source/inc/hltpbase.hxx
index b338534d0b81..f1df0e407056 100644
--- a/cui/source/inc/hltpbase.hxx
+++ b/cui/source/inc/hltpbase.hxx
@@ -59,7 +59,7 @@ protected:
virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
public:
- SvxHyperURLBox( vcl::Window* pParent, INetProtocol eSmart = INetProtocol::FILE );
+ SvxHyperURLBox( vcl::Window* pParent, INetProtocol eSmart = INetProtocol::File );
};
diff --git a/cui/source/options/doclinkdialog.cxx b/cui/source/options/doclinkdialog.cxx
index 6a4eba8777fb..ffeeb84e33a3 100644
--- a/cui/source/options/doclinkdialog.cxx
+++ b/cui/source/options/doclinkdialog.cxx
@@ -121,7 +121,7 @@ namespace svx
return 0L;
} // if (!bFileExists)
INetURLObject aURL( sURL );
- if ( aURL.GetProtocol() != INetProtocol::FILE )
+ if ( aURL.GetProtocol() != INetProtocol::File )
{
OUString sMsg = CUI_RES(STR_LINKEDDOC_NO_SYSTEM_FILE);
sMsg = sMsg.replaceFirst("$file$", m_pURL->GetText());
@@ -176,7 +176,7 @@ namespace svx
{ // default the name to the base of the chosen URL
INetURLObject aParser;
- aParser.SetSmartProtocol(INetProtocol::FILE);
+ aParser.SetSmartProtocol(INetProtocol::File);
aParser.SetSmartURL(aFileDlg.GetPath());
m_pName->SetText(aParser.getBase(INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET));
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index 33fe5cb3b34b..1b72de3e8c23 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -1676,9 +1676,9 @@ IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, pBtn )
{
OUString sURL = xStor->getLocation();
INetURLObject aObj(sURL);
- DBG_ASSERT( aObj.GetProtocol() == INetProtocol::FILE,
+ DBG_ASSERT( aObj.GetProtocol() == INetProtocol::File,
"non-file URLs cannot be deleted" );
- if ( aObj.GetProtocol() == INetProtocol::FILE )
+ if ( aObj.GetProtocol() == INetProtocol::File )
{
KillFile_Impl( aObj.GetMainURL( INetURLObject::NO_DECODE ) );
}
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index 512c61f1fc94..f7798adee1ea 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -150,7 +150,7 @@ OUString Convert_Impl( const OUString& rValue )
{
OUString aValue = rValue.getToken( i, cDelim );
INetURLObject aObj( aValue );
- if ( aObj.GetProtocol() == INetProtocol::FILE )
+ if ( aObj.GetProtocol() == INetProtocol::File )
aReturn += aObj.PathToFileName();
else if ( ::utl::LocalFileHelper::IsFileContent( aValue ) )
aReturn += aObj.GetURLPath( INetURLObject::DECODE_WITH_CHARSET );
@@ -482,7 +482,7 @@ void SvxPathTabPage::ChangeCurrentEntry( const OUString& _rFolder )
// old path is an URL?
INetURLObject aObj( sWritable );
- bool bURL = ( aObj.GetProtocol() != INetProtocol::NOT_VALID );
+ bool bURL = ( aObj.GetProtocol() != INetProtocol::NotValid );
OUString aPathStr( _rFolder );
INetURLObject aNewObj( aPathStr );
aNewObj.removeFinalSlash();
@@ -607,7 +607,7 @@ IMPL_LINK_NOARG(SvxPathTabPage, PathHdl_Impl)
Reference < XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
xFolderPicker = FolderPicker::create(xContext);;
- INetURLObject aURL( sWritable, INetProtocol::FILE );
+ INetURLObject aURL( sWritable, INetProtocol::File );
xFolderPicker->setDisplayDirectory( aURL.GetMainURL( INetURLObject::NO_DECODE ) );
Reference< XAsynchronousExecutableDialog > xAsyncDlg( xFolderPicker, UNO_QUERY );
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 81fb8af0d09b..b1a274e88e05 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -830,7 +830,7 @@ void OfaTreeOptionsDialog::ActivateLastSelection()
: pLastPageSaver->m_sLastPageURL_Tools;
}
- bool bMustExpand = ( INetURLObject( sLastURL ).GetProtocol() == INetProtocol::FILE );
+ bool bMustExpand = ( INetURLObject( sLastURL ).GetProtocol() == INetProtocol::File );
SvTreeListEntry* pTemp = pTreeLB->First();
while( !pEntry && pTemp )
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx
index 12e0f1740dbb..7465f02d8bae 100644
--- a/cui/source/tabpages/backgrnd.cxx
+++ b/cui/source/tabpages/backgrnd.cxx
@@ -1340,7 +1340,7 @@ IMPL_LINK( SvxBackgroundTabPage, FileClickHdl_Impl, CheckBox*, pBox )
m_pFtUnlinked->Hide();
INetURLObject aObj( aBgdGraphicPath );
OUString aFilePath;
- if ( aObj.GetProtocol() == INetProtocol::FILE )
+ if ( aObj.GetProtocol() == INetProtocol::File )
aFilePath = aObj.getFSysPath( INetURLObject::FSYS_DETECT );
else
aFilePath = aBgdGraphicPath;
@@ -1745,7 +1745,7 @@ void SvxBackgroundTabPage::FillControls_Impl( const SvxBrushItem& rBgdAttr,
{
#ifdef DBG_UTIL
INetURLObject aObj( aStrLink );
- DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NOT_VALID, "Invalid URL!" );
+ DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NotValid, "Invalid URL!" );
#endif
aBgdGraphicPath = aStrLink;
m_pBtnLink->Check( true );
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index 14b76460262b..921e7db53333 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -799,7 +799,7 @@ SvxBitmapPickTabPage::SvxBitmapPickTabPage(vcl::Window* pParent,
m_pExamplesVS->InsertItem( i + 1, i);
INetURLObject aObj(*it);
- if(aObj.GetProtocol() == INetProtocol::FILE)
+ if(aObj.GetProtocol() == INetProtocol::File)
*it = aObj.PathToFileName();
m_pExamplesVS->SetItemText( i + 1, *it );
@@ -1978,7 +1978,7 @@ IMPL_LINK_NOARG(SvxNumOptionsTabPage, PopupActivateHdl_Impl)
{
sGrfName = *it;
INetURLObject aObj(sGrfName);
- if(aObj.GetProtocol() == INetProtocol::FILE)
+ if(aObj.GetProtocol() == INetProtocol::File)
sGrfName = aObj.PathToFileName();
if(GalleryExplorer::GetGraphicObj( GALLERY_THEME_BULLETS, i, &aGraphic))
diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx
index 6170eb482e51..54eecc0230a1 100644
--- a/cui/source/tabpages/tpbitmap.cxx
+++ b/cui/source/tabpages/tpbitmap.cxx
@@ -190,7 +190,7 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& )
INetURLObject aURL( pBitmapList->GetPath() );
aURL.Append( pBitmapList->GetName() );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if( aURL.getBase().getLength() > 18 )
{
@@ -857,7 +857,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickSaveHdl_Impl)
aDlg.AddFilter( aStrFilterType, aStrFilterType );
INetURLObject aFile( SvtPathOptions().GetPalettePath() );
- DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if( !pBitmapList->GetName().isEmpty() )
{
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index 8ed80122c414..8bc12c7aaf80 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -210,7 +210,7 @@ IMPL_LINK_NOARG(SvxColorTabPage, ClickSaveHdl_Impl)
aDlg.AddFilter( aStrFilterType, aStrFilterType );
INetURLObject aFile( SvtPathOptions().GetPalettePath() );
- DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
XPropertyListRef pList = GetList();
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx
index aab58f2d49eb..9c554b7f1e1c 100644
--- a/cui/source/tabpages/tpgradnt.cxx
+++ b/cui/source/tabpages/tpgradnt.cxx
@@ -203,7 +203,7 @@ void SvxGradientTabPage::ActivatePage( const SfxItemSet& )
INetURLObject aURL( pGradientList->GetPath() );
aURL.Append( pGradientList->GetName() );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if ( aURL.getBase().getLength() > 18 )
{
@@ -712,7 +712,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ClickSaveHdl_Impl)
aDlg.AddFilter( aStrFilterType, aStrFilterType );
INetURLObject aFile( SvtPathOptions().GetPalettePath() );
- DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if( !pGradientList->GetName().isEmpty() )
{
diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx
index 7754a07b11fe..c3afeafafd6e 100644
--- a/cui/source/tabpages/tphatch.cxx
+++ b/cui/source/tabpages/tphatch.cxx
@@ -187,7 +187,7 @@ void SvxHatchTabPage::ActivatePage( const SfxItemSet& rSet )
INetURLObject aURL( pHatchingList->GetPath() );
aURL.Append( pHatchingList->GetName() );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if ( aURL.getBase().getLength() > 18 )
{
@@ -745,7 +745,7 @@ IMPL_LINK_NOARG(SvxHatchTabPage, ClickSaveHdl_Impl)
aDlg.AddFilter( aStrFilterType, aStrFilterType );
INetURLObject aFile( SvtPathOptions().GetPalettePath() );
- DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if( !pHatchingList->GetName().isEmpty() )
{
diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx
index 6fffcef3d64d..ce3668f7a89f 100644
--- a/cui/source/tabpages/tpline.cxx
+++ b/cui/source/tabpages/tpline.cxx
@@ -562,7 +562,7 @@ void SvxLineTabPage::ActivatePage( const SfxItemSet& rSet )
INetURLObject aDashURL( pDashList->GetPath() );
aDashURL.Append( pDashList->GetName() );
- DBG_ASSERT( aDashURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aDashURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
// LineEnd list
if( ( *pnLineEndListState & CT_MODIFIED ) || ( *pnLineEndListState & CT_CHANGED ) )
{
@@ -601,7 +601,7 @@ void SvxLineTabPage::ActivatePage( const SfxItemSet& rSet )
INetURLObject aLineURL( pLineEndList->GetPath() );
aLineURL.Append( pLineEndList->GetName() );
- DBG_ASSERT( aLineURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aLineURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
// Evaluate if another TabPage set another fill type
if( m_pLbLineStyle->GetSelectEntryPos() != 0 )
{
diff --git a/cui/source/tabpages/tplnedef.cxx b/cui/source/tabpages/tplnedef.cxx
index 4fe1be6d4859..66de7c9bffcf 100644
--- a/cui/source/tabpages/tplnedef.cxx
+++ b/cui/source/tabpages/tplnedef.cxx
@@ -184,7 +184,7 @@ void SvxLineDefTabPage::ActivatePage( const SfxItemSet& )
INetURLObject aURL( pDashList->GetPath() );
aURL.Append( pDashList->GetName() );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
*pPageType = 0; // 2
*pPosDashLb = LISTBOX_ENTRY_NOTFOUND;
@@ -801,7 +801,7 @@ IMPL_LINK_NOARG(SvxLineDefTabPage, ClickSaveHdl_Impl)
aDlg.AddFilter( aStrFilterType, aStrFilterType );
INetURLObject aFile( SvtPathOptions().GetPalettePath() );
- DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if( !pDashList->GetName().isEmpty() )
{
diff --git a/cui/source/tabpages/tplneend.cxx b/cui/source/tabpages/tplneend.cxx
index d00f37474ad0..0c2ed94c4482 100644
--- a/cui/source/tabpages/tplneend.cxx
+++ b/cui/source/tabpages/tplneend.cxx
@@ -163,7 +163,7 @@ void SvxLineEndDefTabPage::ActivatePage( const SfxItemSet& )
INetURLObject aURL( pLineEndList->GetPath() );
aURL.Append( pLineEndList->GetName() );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
*pPageType = 0; // 3
*pPosLineEndLb = LISTBOX_ENTRY_NOTFOUND;
}
@@ -623,7 +623,7 @@ IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickSaveHdl_Impl)
aDlg.AddFilter( aStrFilterType, aStrFilterType );
INetURLObject aFile( SvtPathOptions().GetPalettePath() );
- DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aFile.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if( !pLineEndList->GetName().isEmpty() )
{
diff --git a/dbaccess/source/core/dataaccess/ModelImpl.cxx b/dbaccess/source/core/dataaccess/ModelImpl.cxx
index 30967d8e1369..6d800cbe10f7 100644
--- a/dbaccess/source/core/dataaccess/ModelImpl.cxx
+++ b/dbaccess/source/core/dataaccess/ModelImpl.cxx
@@ -1245,7 +1245,7 @@ void ODatabaseModelImpl::impl_switchToLogicalURL( const OUString& i_rDocumentURL
)
{
INetURLObject aURL( i_rDocumentURL );
- if ( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( aURL.GetProtocol() != INetProtocol::NotValid )
{
m_sName = i_rDocumentURL;
// TODO: our data source must broadcast the change of the Name property
diff --git a/dbaccess/source/core/dataaccess/databasecontext.cxx b/dbaccess/source/core/dataaccess/databasecontext.cxx
index 98a305059a80..dc91e952a711 100644
--- a/dbaccess/source/core/dataaccess/databasecontext.cxx
+++ b/dbaccess/source/core/dataaccess/databasecontext.cxx
@@ -313,7 +313,7 @@ Reference< XInterface > ODatabaseContext::getRegisteredObject(const OUString& _
Reference< XInterface > ODatabaseContext::loadObjectFromURL(const OUString& _rName,const OUString& _sURL)
{
INetURLObject aURL( _sURL );
- if ( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aURL.GetProtocol() == INetProtocol::NotValid )
throw NoSuchElementException( _rName, *this );
try
diff --git a/dbaccess/source/core/dataaccess/databaseregistrations.cxx b/dbaccess/source/core/dataaccess/databaseregistrations.cxx
index 9d2d9b7f6c0d..b5f3682d9308 100644
--- a/dbaccess/source/core/dataaccess/databaseregistrations.cxx
+++ b/dbaccess/source/core/dataaccess/databaseregistrations.cxx
@@ -239,7 +239,7 @@ namespace dbaccess
throw IllegalArgumentException( OUString(), *this, 2 );
INetURLObject aURL( _rLocation );
- if ( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aURL.GetProtocol() == INetProtocol::NotValid )
throw IllegalArgumentException( OUString(), *this, 2 );
}
diff --git a/dbaccess/source/core/dataaccess/datasource.cxx b/dbaccess/source/core/dataaccess/datasource.cxx
index 021e9736bd98..c83049d5e991 100644
--- a/dbaccess/source/core/dataaccess/datasource.cxx
+++ b/dbaccess/source/core/dataaccess/datasource.cxx
@@ -1091,7 +1091,7 @@ Reference< XConnection > SAL_CALL ODatabaseSource::connectWithCompletion( const
// the name which should be referred in the login dialog
OUString sServerName( m_pImpl->m_sName );
INetURLObject aURLCheck( sServerName );
- if ( aURLCheck.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( aURLCheck.GetProtocol() != INetProtocol::NotValid )
sServerName = aURLCheck.getBase( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_UNAMBIGUOUS );
// the request
diff --git a/dbaccess/source/ext/macromigration/macromigrationpages.cxx b/dbaccess/source/ext/macromigration/macromigrationpages.cxx
index 658a14a32bce..c4ccd03e6353 100644
--- a/dbaccess/source/ext/macromigration/macromigrationpages.cxx
+++ b/dbaccess/source/ext/macromigration/macromigrationpages.cxx
@@ -119,7 +119,7 @@ namespace dbmm
// get the document's current URL
Reference< XModel > xDocument( getDialog().getDocument(), UNO_QUERY_THROW );
INetURLObject aURLParser( xDocument->getURL() );
- OSL_ENSURE( aURLParser.GetProtocol() != INetProtocol::NOT_VALID, "SaveDBDocPage::initializePage: illegal document URL!" );
+ OSL_ENSURE( aURLParser.GetProtocol() != INetProtocol::NotValid, "SaveDBDocPage::initializePage: illegal document URL!" );
OUStringBuffer aBaseName( aURLParser.getBase() );
aBaseName.appendAscii( ".backup" );
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx
index 53759bc083be..632da15e494e 100644
--- a/dbaccess/source/ui/app/AppController.cxx
+++ b/dbaccess/source/ui/app/AppController.cxx
@@ -404,7 +404,7 @@ void SAL_CALL OApplicationController::disposing()
OUString());
// add to recent document list
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
Application::AddToRecentDocumentList( aURL.GetURLNoPass( INetURLObject::NO_DECODE ),
(pFilter) ? pFilter->GetMimeType() : OUString(),
(pFilter) ? pFilter->GetServiceName() : OUString() );
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 11614688dfd1..429bd4335396 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -1089,7 +1089,7 @@ namespace
bool getDataSourceDisplayName_isURL( const OUString& _rDS, OUString& _rDisplayName, OUString& _rUniqueId )
{
INetURLObject aURL( _rDS );
- if ( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( aURL.GetProtocol() != INetProtocol::NotValid )
{
_rDisplayName = aURL.getBase(INetURLObject::LAST_SEGMENT,true,INetURLObject::DECODE_WITH_CHARSET);
_rUniqueId = aURL.GetMainURL( INetURLObject::NO_DECODE );
@@ -3653,7 +3653,7 @@ OUString SbaTableQueryBrowser::getPrivateTitle() const
OUString sName = m_pTreeView->getListBox().GetEntryText(m_pCurrentlyDisplayed);
sTitle = GetEntryText( pConnection );
INetURLObject aURL(sTitle);
- if ( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( aURL.GetProtocol() != INetProtocol::NotValid )
sTitle = aURL.getBase(INetURLObject::LAST_SEGMENT,true,INetURLObject::DECODE_WITH_CHARSET);
if ( !sName.isEmpty() )
{
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
index 3f914c73f706..5d8f1e255b35 100644
--- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
@@ -612,7 +612,7 @@ namespace dbaui
::ucbhelper::Content aParent(aParser.GetMainURL(INetURLObject::NO_DECODE), xEmptyEnv, comphelper::getProcessComponentContext());
OUString sContentType;
- if ( INetProtocol::FILE == eProtocol )
+ if ( INetProtocol::File == eProtocol )
{
sContentType = "application/vnd.sun.staroffice.fsys-folder";
// the file UCP currently does not support the ContentType property
diff --git a/dbaccess/source/ui/dlg/dbfindex.cxx b/dbaccess/source/ui/dlg/dbfindex.cxx
index 847f69f2946f..1493734256b1 100644
--- a/dbaccess/source/ui/dlg/dbfindex.cxx
+++ b/dbaccess/source/ui/dlg/dbfindex.cxx
@@ -268,7 +268,7 @@ void ODbaseIndexDialog::Init()
// if the string does not contain a path, cut the string
INetURLObject aURL;
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
{
SvtPathOptions aPathOptions;
m_aDSN = aPathOptions.SubstituteVariable(m_aDSN);
@@ -300,7 +300,7 @@ void ODbaseIndexDialog::Init()
const OUString *pBegin = aFolderContent.getConstArray();
const OUString *pEnd = pBegin + aFolderContent.getLength();
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
for(;pBegin != pEnd;++pBegin)
{
OUString aName;
@@ -408,7 +408,7 @@ void OTableInfo::WriteInfFile( const OUString& rDSN ) const
{
// open INF file
INetURLObject aURL;
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
OUString aDsn = rDSN;
{
SvtPathOptions aPathOptions;
diff --git a/dbaccess/source/ui/dlg/dbwizsetup.cxx b/dbaccess/source/ui/dlg/dbwizsetup.cxx
index 725f79c99653..30240f286c08 100644
--- a/dbaccess/source/ui/dlg/dbwizsetup.cxx
+++ b/dbaccess/source/ui/dlg/dbwizsetup.cxx
@@ -815,7 +815,7 @@ bool ODbTypeWizDialogSetup::SaveDatabaseDocument()
{
m_aDocURL = INetURLObject(aFileDlg.GetPath());
- if( m_aDocURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if( m_aDocURL.GetProtocol() != INetProtocol::NotValid )
{
OUString sFileName = m_aDocURL.GetMainURL( INetURLObject::NO_DECODE );
if ( ::utl::UCBContentHelper::IsDocument(sFileName) )
diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx
index 951e41f7e933..9d7cacc9512a 100644
--- a/dbaccess/source/ui/dlg/sqlmessage.cxx
+++ b/dbaccess/source/ui/dlg/sqlmessage.cxx
@@ -595,7 +595,7 @@ void OSQLMessageBox::impl_createStandardButtons( WinBits _nStyle )
OUString aTmp;
INetURLObject aHID( m_sHelpURL );
- if ( aHID.GetProtocol() == INetProtocol::HID )
+ if ( aHID.GetProtocol() == INetProtocol::Hid )
aTmp = aHID.GetURLPath();
else
aTmp = m_sHelpURL;
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx
index 9dca902eaeea..5c661d5d8191 100644
--- a/dbaccess/source/ui/misc/UITools.cxx
+++ b/dbaccess/source/ui/misc/UITools.cxx
@@ -1081,7 +1081,7 @@ OUString getStrippedDatabaseName(const Reference<XPropertySet>& _xDataSource,OUS
}
OUString sName = _rsDatabaseName;
INetURLObject aURL(sName);
- if ( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( aURL.GetProtocol() != INetProtocol::NotValid )
sName = aURL.getBase(INetURLObject::LAST_SEGMENT,true,INetURLObject::DECODE_UNAMBIGUOUS);
return sName;
}
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index d33459c93d8f..b971335a5337 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -395,7 +395,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
else
{
INetURLObject aObj( aName );
- if ( aObj.GetProtocol() == INetProtocol::PRIV_SOFFICE )
+ if ( aObj.GetProtocol() == INetProtocol::PrivSoffice )
aTarget = "_default";
// Set "AsTemplate" argument according to request type
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index 09e8021f5ade..8297a406c6c9 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -1008,7 +1008,7 @@ OUString SvxExtFileField::GetFormatted() const
INetURLObject aURLObj( aFile );
- if( INetProtocol::NOT_VALID == aURLObj.GetProtocol() )
+ if( INetProtocol::NotValid == aURLObj.GetProtocol() )
{
// invalid? try to interpret string as system file name
OUString aURLStr;
@@ -1020,12 +1020,12 @@ OUString SvxExtFileField::GetFormatted() const
// #92009# Be somewhat liberate when trying to
// get formatted content out of the FileField
- if( INetProtocol::NOT_VALID == aURLObj.GetProtocol() )
+ if( INetProtocol::NotValid == aURLObj.GetProtocol() )
{
// still not valid? Then output as is
aString = aFile;
}
- else if( INetProtocol::FILE == aURLObj.GetProtocol() )
+ else if( INetProtocol::File == aURLObj.GetProtocol() )
{
switch( eFormat )
{
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 241b26b335bd..1397bbfb54b1 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -662,7 +662,7 @@ bool SvxAutoCorrect::FnAddNonBrkSpace(
sal_Int32 nProtocolLen = nEndPos - nSttWdPos + 1;
if (nIndex + nProtocolLen <= rTxt.getLength())
{
- if (INetURLObject::CompareProtocolScheme(rTxt.copy(nIndex, nProtocolLen)) != INetProtocol::NOT_VALID)
+ if (INetURLObject::CompareProtocolScheme(rTxt.copy(nIndex, nProtocolLen)) != INetProtocol::NotValid)
return false;
}
@@ -854,7 +854,7 @@ bool SvxAutoCorrect::FnCptlSttSntnc( SvxAutoCorrDoc& rDoc,
sal_Int32 nProtocolLen = pDelim - pWordStt + 1;
if (nIndex + nProtocolLen <= rTxt.getLength())
{
- if (INetURLObject::CompareProtocolScheme(rTxt.copy(nIndex, nProtocolLen)) != INetProtocol::NOT_VALID)
+ if (INetURLObject::CompareProtocolScheme(rTxt.copy(nIndex, nProtocolLen)) != INetProtocol::NotValid)
return false; // already ok
}
diff --git a/extensions/source/abpilot/abpfinalpage.cxx b/extensions/source/abpilot/abpfinalpage.cxx
index 55da306eac9d..1cf24b87a2ac 100644
--- a/extensions/source/abpilot/abpfinalpage.cxx
+++ b/extensions/source/abpilot/abpfinalpage.cxx
@@ -87,7 +87,7 @@ namespace abp
AddressSettings& rSettings = getSettings();
INetURLObject aURL( rSettings.sDataSourceName );
- if( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() == INetProtocol::NotValid )
{
OUString sPath = SvtPathOptions().GetWorkPath();
sPath += "/";
@@ -102,7 +102,7 @@ namespace abp
aURL.SetURL(sPath);
}
- OSL_ENSURE( aURL.GetProtocol() != INetProtocol::NOT_VALID ,"No valid file name!");
+ OSL_ENSURE( aURL.GetProtocol() != INetProtocol::NotValid ,"No valid file name!");
rSettings.sDataSourceName = aURL.GetMainURL( INetURLObject::NO_DECODE );
m_pLocationController->setURL( rSettings.sDataSourceName );
OUString sName = aURL.getName( );
diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx
index 736bba151f28..3829d4fa279c 100644
--- a/extensions/source/bibliography/general.cxx
+++ b/extensions/source/bibliography/general.cxx
@@ -448,7 +448,7 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl(
if(xPropInfo->hasPropertyByName(uProp))
{
OUString sId( INET_HID_SCHEME );
- DBG_ASSERT( INetURLObject( OStringToOUString( sHelpId, RTL_TEXTENCODING_UTF8 ) ).GetProtocol() == INetProtocol::NOT_VALID, "Wrong HelpId!" );
+ DBG_ASSERT( INetURLObject( OStringToOUString( sHelpId, RTL_TEXTENCODING_UTF8 ) ).GetProtocol() == INetProtocol::NotValid, "Wrong HelpId!" );
sId += OStringToOUString( sHelpId, RTL_TEXTENCODING_UTF8 );
xPropSet->setPropertyValue( uProp, makeAny( sId ) );
}
diff --git a/extensions/source/dbpilots/controlwizard.cxx b/extensions/source/dbpilots/controlwizard.cxx
index 4aa7b278479f..c3f8c025d20c 100644
--- a/extensions/source/dbpilots/controlwizard.cxx
+++ b/extensions/source/dbpilots/controlwizard.cxx
@@ -202,7 +202,7 @@ namespace dbp
}
INetURLObject aURL( sDataSource );
- if( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() != INetProtocol::NotValid )
sDataSource = aURL.GetName(INetURLObject::DECODE_WITH_CHARSET);
m_pFormDatasource->SetText(sDataSource);
m_pFormTable->SetText(sCommand);
diff --git a/extensions/source/plugin/base/context.cxx b/extensions/source/plugin/base/context.cxx
index c4007ab8d30a..863e7a3dcf8a 100644
--- a/extensions/source/plugin/base/context.cxx
+++ b/extensions/source/plugin/base/context.cxx
@@ -131,7 +131,7 @@ void XPluginContext_Impl::getURL(const Reference< ::com::sun::star::plugin::XPlu
if( target.isEmpty() )
{
INetURLObject aURL;
- aURL.SetSmartProtocol( INetProtocol::FILE );
+ aURL.SetSmartProtocol( INetProtocol::File );
aURL.SetSmartURL( url );
OUString aUrl = aURL.GetMainURL(INetURLObject::DECODE_TO_IURI);
diff --git a/extensions/source/plugin/base/xplugin.cxx b/extensions/source/plugin/base/xplugin.cxx
index 41feb4e86f26..cd0ccd56bb98 100644
--- a/extensions/source/plugin/base/xplugin.cxx
+++ b/extensions/source/plugin/base/xplugin.cxx
@@ -1051,7 +1051,7 @@ void PluginInputStream::load()
Guard< Mutex > aGuard( m_pPlugin->getMutex() );
INetURLObject aUrl;
- aUrl.SetSmartProtocol( INetProtocol::FILE );
+ aUrl.SetSmartProtocol( INetProtocol::File );
aUrl.SetSmartURL(
OUString( getStream().url,
strlen( getStream().url ),
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index b0077113d932..9cb3ce6c79ac 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -2432,7 +2432,7 @@ namespace pcr
}
// additional info about what happened
INetURLObject aParser( sDataSourceName );
- if ( aParser.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( aParser.GetProtocol() != INetProtocol::NotValid )
sDataSourceName = aParser.getBase( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET );
OUString sInfo(PcrRes(RID_STR_UNABLETOCONNECT).toString().replaceAll("$name$", sDataSourceName));
SQLContext aContext;
@@ -2845,7 +2845,7 @@ namespace pcr
OUString sURL;
OSL_VERIFY( impl_getPropertyValue_throw( PROPERTY_TARGET_URL ) >>= sURL );
INetURLObject aParser( sURL );
- if ( INetProtocol::FILE == aParser.GetProtocol() )
+ if ( INetProtocol::File == aParser.GetProtocol() )
// set the initial directory only for file-URLs. Everything else
// is considered to be potentially expensive
aFileDlg.SetDisplayDirectory( sURL );
@@ -2900,7 +2900,7 @@ namespace pcr
OUString sDataSource;
OSL_VERIFY( impl_getPropertyValue_throw( PROPERTY_DATASOURCE ) >>= sDataSource );
INetURLObject aParser( sDataSource );
- if ( INetProtocol::FILE == aParser.GetProtocol() )
+ if ( INetProtocol::File == aParser.GetProtocol() )
// set the initial directory only for file-URLs. Everything else
// is considered to be potentially expensive
aFileDlg.SetDisplayDirectory( sDataSource );
diff --git a/extensions/source/propctrlr/pcrcommon.cxx b/extensions/source/propctrlr/pcrcommon.cxx
index 25bed3f418fd..df8146329160 100644
--- a/extensions/source/propctrlr/pcrcommon.cxx
+++ b/extensions/source/propctrlr/pcrcommon.cxx
@@ -39,7 +39,7 @@ namespace pcr
OString HelpIdUrl::getHelpId( const OUString& _rHelpURL )
{
INetURLObject aHID( _rHelpURL );
- if ( aHID.GetProtocol() == INetProtocol::HID )
+ if ( aHID.GetProtocol() == INetProtocol::Hid )
return OUStringToOString( aHID.GetURLPath(), RTL_TEXTENCODING_UTF8 );
else
return OUStringToOString( _rHelpURL, RTL_TEXTENCODING_UTF8 );
@@ -51,7 +51,7 @@ namespace pcr
OUStringBuffer aBuffer;
OUString aTmp( OStringToOUString(sHelpId, RTL_TEXTENCODING_UTF8) );
INetURLObject aHID( aTmp );
- if ( aHID.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aHID.GetProtocol() == INetProtocol::NotValid )
aBuffer.appendAscii( INET_HID_SCHEME );
aBuffer.append( aTmp.getStr() );
return aBuffer.makeStringAndClear();
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index ffd0cda3a250..c1be035f3257 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -3944,7 +3944,7 @@ SdrObject* SvxMSDffManager::ImportGraphic( SvStream& rSt, SfxItemSet& rSet, cons
if( ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aFileName, aValidURL ) )
aAbsURL = INetURLObject( aValidURL );
}
- if( aAbsURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if( aAbsURL.GetProtocol() != INetProtocol::NotValid )
{
GraphicFilter &rGrfFilter = GraphicFilter::GetGraphicFilter();
aLinkFilterName = rGrfFilter.GetImportFormatName(
diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx
index 3dbdde9959f6..29e5433695fc 100644
--- a/filter/source/msfilter/msvbahelper.cxx
+++ b/filter/source/msfilter/msvbahelper.cxx
@@ -80,7 +80,7 @@ SfxObjectShell* findShellForUrl( const OUString& sMacroURLOrPath )
SfxObjectShell* pShell = SfxObjectShell::GetFirst();
INetURLObject aObj;
aObj.SetURL( sMacroURLOrPath );
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
OUString aURL;
if ( bIsURL )
aURL = sMacroURLOrPath;
@@ -398,7 +398,7 @@ MacroResolvedInfo resolveVBAMacro( SfxObjectShell* pShell, const OUString& Macro
{
INetURLObject aObj;
aObj.SetURL( sCreatedFrom );
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
OUString aURL;
if ( bIsURL )
aURL = sCreatedFrom;
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index d4942b906d23..4b1b76fa1d2a 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -381,7 +381,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
std::set< PDFWriter::ErrorCode > aErrors;
- if( aURL.GetProtocol() != INetProtocol::FILE )
+ if( aURL.GetProtocol() != INetProtocol::File )
{
OUString aTmp;
@@ -389,7 +389,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
aURL = INetURLObject(aTmp);
}
- if( aURL.GetProtocol() == INetProtocol::FILE )
+ if( aURL.GetProtocol() == INetProtocol::File )
{
Reference< XRenderable > xRenderable( mxSrcDoc, UNO_QUERY );
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 3041e83dbe11..e9a88e72ae9f 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -489,9 +489,9 @@ OUString ODatabaseForm::GetDataEncoded(bool _bURLEncoded,const Reference<XContro
{
// For File URLs we transfer the file name and not a URL, because Netscape does it like that
INetURLObject aURL;
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
aURL.SetSmartURL(aValue);
- if( INetProtocol::FILE == aURL.GetProtocol() )
+ if( INetProtocol::File == aURL.GetProtocol() )
aValue = INetURLObject::decode(aURL.PathToFileName(), '%', INetURLObject::DECODE_UNAMBIGUOUS);
}
Encode( aName );
@@ -1035,9 +1035,9 @@ bool ODatabaseForm::InsertFilePart( INetMIMEMessage& rParent, const OUString& rN
{
// We can only process File URLs yet
INetURLObject aURL;
- aURL.SetSmartProtocol(INetProtocol::FILE);
+ aURL.SetSmartProtocol(INetProtocol::File);
aURL.SetSmartURL(rFileName);
- if( INetProtocol::FILE == aURL.GetProtocol() )
+ if( INetProtocol::File == aURL.GetProtocol() )
{
aFileName = INetURLObject::decode(aURL.PathToFileName(), '%', INetURLObject::DECODE_UNAMBIGUOUS);
pStream = ::utl::UcbStreamHelper::CreateStream(aFileName, StreamMode::READ);
diff --git a/forms/source/component/clickableimage.cxx b/forms/source/component/clickableimage.cxx
index 79a4d04b375d..796335772f4a 100644
--- a/forms/source/component/clickableimage.cxx
+++ b/forms/source/component/clickableimage.cxx
@@ -716,7 +716,7 @@ namespace frm
// the SfxMedium is not allowed to be created with an invalid URL, so we have to check this first
INetURLObject aUrl(rURL);
- if (INetProtocol::NOT_VALID == aUrl.GetProtocol())
+ if (INetProtocol::NotValid == aUrl.GetProtocol())
// we treat an invalid URL like we would treat no URL
return;
diff --git a/forms/source/xforms/submission/submission_get.cxx b/forms/source/xforms/submission/submission_get.cxx
index 79a295ae661c..7b80b1d99661 100644
--- a/forms/source/xforms/submission/submission_get.cxx
+++ b/forms/source/xforms/submission/submission_get.cxx
@@ -80,7 +80,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const css::uno::Reference<
Sequence< sal_Int8 > aByteBuffer(size);
while ((n = aInStream->readSomeBytes(aByteBuffer, size-1)) != 0)
aQueryString.append(reinterpret_cast<char const *>(aByteBuffer.getConstArray()), n);
- if (!aQueryString.isEmpty() && m_aURLObj.GetProtocol() != INetProtocol::FILE)
+ if (!aQueryString.isEmpty() && m_aURLObj.GetProtocol() != INetProtocol::File)
{
aUTF8QueryURL.append('?');
aUTF8QueryURL.append(aQueryString.makeStringAndClear());
diff --git a/fpicker/source/office/OfficeControlAccess.cxx b/fpicker/source/office/OfficeControlAccess.cxx
index d7b0aab20c8f..f2116e7ec79f 100644
--- a/fpicker/source/office/OfficeControlAccess.cxx
+++ b/fpicker/source/office/OfficeControlAccess.cxx
@@ -182,7 +182,7 @@ namespace svt
{
OUString sHelpID( sHelpURL );
INetURLObject aHID( sHelpURL );
- if ( aHID.GetProtocol() == INetProtocol::HID )
+ if ( aHID.GetProtocol() == INetProtocol::Hid )
sHelpID = aHID.GetURLPath();
// URLs should always be UTF8 encoded and escaped
@@ -205,7 +205,7 @@ namespace svt
OUString sHelpURL;
OUString aTmp( OStringToOUString( aHelpId, RTL_TEXTENCODING_UTF8 ) );
INetURLObject aHID( aTmp );
- if ( aHID.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aHID.GetProtocol() == INetProtocol::NotValid )
sHelpURL = INET_HID_SCHEME;
sHelpURL += aTmp;
return sHelpURL;
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index b13e5ec20273..ab74874c35f7 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -210,13 +210,13 @@ namespace
// So we have to check if the file name denotes a folder or a file.
// For performance reasons, we do this for file urls only
INetURLObject aURL( aNewFile );
- if ( INetProtocol::NOT_VALID == aURL.GetProtocol() )
+ if ( INetProtocol::NotValid == aURL.GetProtocol() )
{
OUString sURL;
if ( ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aNewFile, sURL ) )
aURL = INetURLObject( sURL );
}
- if ( INetProtocol::FILE == aURL.GetProtocol() )
+ if ( INetProtocol::File == aURL.GetProtocol() )
{
try
{
@@ -277,7 +277,7 @@ namespace
static OUString lcl_ensureFinalSlash( const OUString& _rDir )
{
- INetURLObject aWorkPathObj( _rDir, INetProtocol::FILE );
+ INetURLObject aWorkPathObj( _rDir, INetProtocol::File );
aWorkPathObj.setFinalSlash();
return aWorkPathObj.GetMainURL( INetURLObject::NO_DECODE );
}
@@ -916,7 +916,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
{
INetURLObject aFileObject( aFileName );
- if ( ( aFileObject.GetProtocol() == INetProtocol::NOT_VALID ) && !aFileName.isEmpty() )
+ if ( ( aFileObject.GetProtocol() == INetProtocol::NotValid ) && !aFileName.isEmpty() )
{
OUString sCompleted = SvtURLBox::ParseSmart( aFileName, pThis->_pFileView->GetViewURL(), SvtPathOptions().GetWorkPath() );
if ( !sCompleted.isEmpty() )
@@ -1073,7 +1073,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
{
// do an existence check herein, again
- if ( INetProtocol::FILE == aFileObj.GetProtocol( ) )
+ if ( INetProtocol::File == aFileObj.GetProtocol( ) )
{
bool bExists = pThis->m_aContent.is( aFileObj.GetMainURL( INetURLObject::NO_DECODE ) );
@@ -1082,7 +1082,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
OUString sError( SVT_RESSTR( RID_FILEOPEN_NOTEXISTENTFILE ) );
OUString sInvalidFile( aFileObj.GetMainURL( INetURLObject::DECODE_TO_IURI ) );
- if ( INetProtocol::FILE == aFileObj.GetProtocol() )
+ if ( INetProtocol::File == aFileObj.GetProtocol() )
{ // if it's a file URL, transform the URL into system notation
OUString sURL( sInvalidFile );
OUString sSystem;
@@ -1394,7 +1394,7 @@ void SvtFileDialog::UpdateControls( const OUString& rURL )
{
OUString sText;
- DBG_ASSERT( INetProtocol::NOT_VALID != aObj.GetProtocol(), "SvtFileDialog::UpdateControls: Invalid URL!" );
+ DBG_ASSERT( INetProtocol::NotValid != aObj.GetProtocol(), "SvtFileDialog::UpdateControls: Invalid URL!" );
if ( aObj.getSegmentCount() )
{
@@ -1402,7 +1402,7 @@ void SvtFileDialog::UpdateControls( const OUString& rURL )
if ( !sText.isEmpty() )
{
// no Fsys path for server file system ( only UCB has mountpoints! )
- if ( INetProtocol::FILE != aObj.GetProtocol() )
+ if ( INetProtocol::File != aObj.GetProtocol() )
sText = rURL.copy( INetURLObject::GetScheme( aObj.GetProtocol() ).getLength() );
}
@@ -1449,7 +1449,7 @@ IMPL_LINK( SvtFileDialog, SelectHdl_Impl, SvTabListBox*, pBox )
INetURLObject aObj( pUserData->maURL );
if ( FILEDLG_TYPE_PATHDLG == _pImp->_eDlgType )
{
- if ( aObj.GetProtocol() == INetProtocol::FILE )
+ if ( aObj.GetProtocol() == INetProtocol::File )
{
if ( !pUserData->mbIsFolder )
aObj.removeSegment();
@@ -1524,7 +1524,7 @@ IMPL_LINK( SvtFileDialog, OpenDoneHdl_Impl, SvtFileView*, pView )
{
// additional check: the parent folder should not be prohibited
INetURLObject aCurrentFolder( sCurrentFolder );
- DBG_ASSERT( INetProtocol::NOT_VALID != aCurrentFolder.GetProtocol(),
+ DBG_ASSERT( INetProtocol::NotValid != aCurrentFolder.GetProtocol(),
"SvtFileDialog::OpenDoneHdl_Impl: invalid current URL!" );
aCurrentFolder.removeSegment();
@@ -1719,7 +1719,7 @@ short SvtFileDialog::Execute()
if ( RET_OK == nResult )
{
INetURLObject aURL( _aPath );
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
{
// remember the selected directory only for file URLs not for virtual folders
sal_Int32 nLevel = aURL.getSegmentCount();
@@ -2004,7 +2004,7 @@ short SvtFileDialog::PrepareExecute()
}
INetURLObject aObj = aFolderURL;
- if ( aObj.GetProtocol() == INetProtocol::FILE )
+ if ( aObj.GetProtocol() == INetProtocol::File )
{
// set folder as current directory
aObj.setFinalSlash();
@@ -2076,7 +2076,7 @@ void SvtFileDialog::SetStandardDir( const OUString& rStdDir )
{
INetURLObject aObj( rStdDir );
- DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NOT_VALID, "Invalid protocol!" );
+ DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NotValid, "Invalid protocol!" );
aObj.setFinalSlash();
_pImp->SetStandardDir( aObj.GetMainURL( INetURLObject::NO_DECODE ) );
}
@@ -2269,7 +2269,7 @@ bool SvtFileDialog::IsolateFilterFromPath_Impl( OUString& rPath, OUString& rFilt
// use question mark as wildcard only for files
INetProtocol eProt = INetURLObject::CompareProtocolScheme( rPath );
- if ( INetProtocol::NOT_VALID != eProt && INetProtocol::FILE != eProt )
+ if ( INetProtocol::NotValid != eProt && INetProtocol::File != eProt )
nQuestionMarkPos = -1;
nWildCardPos = std::min( nWildCardPos, nQuestionMarkPos );
diff --git a/framework/source/classes/menumanager.cxx b/framework/source/classes/menumanager.cxx
index 06ff1e253eb5..d7f09dc64507 100644
--- a/framework/source/classes/menumanager.cxx
+++ b/framework/source/classes/menumanager.cxx
@@ -567,7 +567,7 @@ void MenuManager::UpdateSpecialFileMenu( Menu* pMenu )
OUString aMenuTitle;
INetURLObject aURL( aURLString );
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
{
// Do handle file URL differently => convert it to a system
// path and abbreviate it with a special function:
diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx
index ee5cbf946007..4e2cfdae1f6d 100644
--- a/framework/source/fwe/helper/titlehelper.cxx
+++ b/framework/source/fwe/helper/titlehelper.cxx
@@ -618,7 +618,7 @@ OUString TitleHelper::impl_convertURL2Title(const OUString& sURL)
INetURLObject aURL (sURL);
OUString sTitle;
- if (aURL.GetProtocol() == INetProtocol::FILE)
+ if (aURL.GetProtocol() == INetProtocol::File)
{
if (aURL.HasMark())
aURL = INetURLObject(aURL.GetURLNoMark());
diff --git a/framework/source/services/urltransformer.cxx b/framework/source/services/urltransformer.cxx
index c17743fe5fbc..52b1a7fde18a 100644
--- a/framework/source/services/urltransformer.cxx
+++ b/framework/source/services/urltransformer.cxx
@@ -140,14 +140,14 @@ sal_Bool SAL_CALL URLTransformer::parseStrict( css::util::URL& aURL ) throw( css
aProtocol = aURL.Complete.copy( 0, nURLIndex+1 );
// If INetURLObject knows this protocol let it parse
- if ( INetURLObject::CompareProtocolScheme( aProtocol ) != INetProtocol::NOT_VALID )
+ if ( INetURLObject::CompareProtocolScheme( aProtocol ) != INetProtocol::NotValid )
{
// Initialize parser with given URL.
INetURLObject aParser( aURL.Complete );
// Get all information about this URL.
INetProtocol eINetProt = aParser.GetProtocol();
- if ( eINetProt == INetProtocol::NOT_VALID )
+ if ( eINetProt == INetProtocol::NotValid )
{
return sal_False;
}
@@ -200,7 +200,7 @@ sal_Bool SAL_CALL URLTransformer::parseSmart( css::util::URL& aURL,
{
// Minmal support for unknown protocols. This is mandatory to support the "Protocol Handlers" implemented
// in framework!
- if ( INetURLObject::CompareProtocolScheme( sSmartProtocol ) == INetProtocol::NOT_VALID )
+ if ( INetURLObject::CompareProtocolScheme( sSmartProtocol ) == INetProtocol::NotValid )
{
// Try to extract the protocol
sal_Int32 nIndex = aURL.Complete.indexOf( ':' );
@@ -211,7 +211,7 @@ sal_Bool SAL_CALL URLTransformer::parseSmart( css::util::URL& aURL,
// If INetURLObject knows this protocol something is wrong as detected before =>
// give up and return false!
- if ( INetURLObject::CompareProtocolScheme( aProtocol ) != INetProtocol::NOT_VALID )
+ if ( INetURLObject::CompareProtocolScheme( aProtocol ) != INetProtocol::NotValid )
return sal_False;
else
aURL.Protocol = aProtocol;
@@ -234,7 +234,7 @@ sal_Bool SAL_CALL URLTransformer::assemble( css::util::URL& aURL ) throw( css::u
// Initialize parser.
INetURLObject aParser;
- if ( INetURLObject::CompareProtocolScheme( aURL.Protocol ) != INetProtocol::NOT_VALID )
+ if ( INetURLObject::CompareProtocolScheme( aURL.Protocol ) != INetProtocol::NotValid )
{
OUStringBuffer aCompletePath( aURL.Path );
diff --git a/framework/source/uielement/generictoolbarcontroller.cxx b/framework/source/uielement/generictoolbarcontroller.cxx
index 8cdfb51bf161..c2cdf4058fe4 100644
--- a/framework/source/uielement/generictoolbarcontroller.cxx
+++ b/framework/source/uielement/generictoolbarcontroller.cxx
@@ -55,7 +55,7 @@ static bool isEnumCommand( const OUString& rCommand )
{
INetURLObject aURL( rCommand );
- if (( aURL.GetProtocol() == INetProtocol::UNO ) &&
+ if (( aURL.GetProtocol() == INetProtocol::Uno ) &&
( aURL.GetURLPath().indexOf( '.' ) != -1))
return true;
@@ -79,7 +79,7 @@ static OUString getMasterCommand( const OUString& rCommand )
{
OUString aMasterCommand( rCommand );
INetURLObject aURL( rCommand );
- if ( aURL.GetProtocol() == INetProtocol::UNO )
+ if ( aURL.GetProtocol() == INetProtocol::Uno )
{
sal_Int32 nIndex = aURL.GetURLPath().indexOf( '.' );
if ( nIndex )
diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx
index f536e2610d8a..7f1bf6450aef 100644
--- a/framework/source/uielement/recentfilesmenucontroller.cxx
+++ b/framework/source/uielement/recentfilesmenucontroller.cxx
@@ -198,7 +198,7 @@ void RecentFilesMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >
INetURLObject aURL( m_aRecentFilesItems[i].aURL );
OUString aTipHelpText( aURL.getFSysPath( INetURLObject::FSYS_DETECT ) );
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
{
// Do handle file URL differently: don't show the protocol, just the file name
aMenuTitle = aURL.GetLastName(INetURLObject::DECODE_WITH_CHARSET, RTL_TEXTENCODING_UTF8);
diff --git a/include/svl/inethist.hxx b/include/svl/inethist.hxx
index 6b4f9755011b..0cd3801c5985 100644
--- a/include/svl/inethist.hxx
+++ b/include/svl/inethist.hxx
@@ -63,10 +63,10 @@ public:
*/
bool QueryProtocol (INetProtocol eProto) const
{
- return ((eProto == INetProtocol::FILE ) ||
- (eProto == INetProtocol::FTP ) ||
- (eProto == INetProtocol::HTTP ) ||
- (eProto == INetProtocol::HTTPS) );
+ return ((eProto == INetProtocol::File ) ||
+ (eProto == INetProtocol::Ftp ) ||
+ (eProto == INetProtocol::Http ) ||
+ (eProto == INetProtocol::Https) );
}
/** QueryUrl.
diff --git a/include/svtools/inettbc.hxx b/include/svtools/inettbc.hxx
index 92a07661c6cb..7d2d4f5ccbee 100644
--- a/include/svtools/inettbc.hxx
+++ b/include/svtools/inettbc.hxx
@@ -59,9 +59,9 @@ protected:
virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
public:
- SvtURLBox( vcl::Window* pParent, INetProtocol eSmart = INetProtocol::NOT_VALID, bool bSetDefaultHelpID = true );
- SvtURLBox( vcl::Window* pParent, WinBits _nStyle, INetProtocol eSmart = INetProtocol::NOT_VALID, bool bSetDefaultHelpID = true );
- SvtURLBox( vcl::Window* pParent, const ResId& _rResId, INetProtocol eSmart = INetProtocol::NOT_VALID, bool bSetDefaultHelpID = true );
+ SvtURLBox( vcl::Window* pParent, INetProtocol eSmart = INetProtocol::NotValid, bool bSetDefaultHelpID = true );
+ SvtURLBox( vcl::Window* pParent, WinBits _nStyle, INetProtocol eSmart = INetProtocol::NotValid, bool bSetDefaultHelpID = true );
+ SvtURLBox( vcl::Window* pParent, const ResId& _rResId, INetProtocol eSmart = INetProtocol::NotValid, bool bSetDefaultHelpID = true );
virtual ~SvtURLBox();
void SetBaseURL( const OUString& rURL );
diff --git a/include/svtools/place.hxx b/include/svtools/place.hxx
index 0933f998a1a5..db70cf96c163 100644
--- a/include/svtools/place.hxx
+++ b/include/svtools/place.hxx
@@ -33,7 +33,7 @@ public:
OUString& GetName( ) { return msName; }
OUString GetUrl( ) { return maUrl.GetMainURL( INetURLObject::NO_DECODE ); }
INetURLObject& GetUrlObject( ) { return maUrl; }
- bool IsLocal( ) { return maUrl.GetProtocol() == INetProtocol::FILE; }
+ bool IsLocal( ) { return maUrl.GetProtocol() == INetProtocol::File; }
bool IsEditable( ) { return mbEditable; }
};
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx
index 50c5b5109b40..fd7dc2d76a88 100644
--- a/include/tools/urlobj.hxx
+++ b/include/tools/urlobj.hxx
@@ -66,41 +66,41 @@ enum
// Schemes:
enum class INetProtocol
{
- NOT_VALID,
- FTP,
- HTTP,
- FILE,
- MAILTO,
- VND_SUN_STAR_WEBDAV,
- NEWS,
- PRIV_SOFFICE,
- VND_SUN_STAR_HELP,
- HTTPS,
- SLOT,
- MACRO,
- JAVASCRIPT,
- IMAP,
- POP3,
- DATA,
- CID,
- OUT,
- VND_SUN_STAR_HIER,
- VIM,
- UNO,
- COMPONENT,
- VND_SUN_STAR_PKG,
- LDAP,
- DB,
- VND_SUN_STAR_CMD,
- TELNET,
- VND_SUN_STAR_EXPAND,
- VND_SUN_STAR_TDOC,
- GENERIC,
- SMB,
- HID,
- SFTP,
- CMIS,
- LAST = CMIS
+ NotValid,
+ Ftp,
+ Http,
+ File,
+ Mailto,
+ VndSunStarWebdav,
+ News,
+ PrivSoffice,
+ VndSunStarHelp,
+ Https,
+ Slot,
+ Macro,
+ Javascript,
+ Imap,
+ Pop3,
+ Data,
+ Cid,
+ Out,
+ VndSunStarHier,
+ Vim,
+ Uno,
+ Component,
+ VndSunStarPkg,
+ Ldap,
+ Db,
+ VndSunStarCmd,
+ Telnet,
+ VndSunStarExpand,
+ VndSunStarTdoc,
+ Generic,
+ Smb,
+ Hid,
+ Sftp,
+ Cmis,
+ LAST = Cmis
};
class TOOLS_DLLPUBLIC SAL_WARN_UNUSED INetURLObject
@@ -182,9 +182,9 @@ public:
// General Structure:
inline INetURLObject():
- m_eScheme(INetProtocol::NOT_VALID), m_eSmartScheme(INetProtocol::HTTP) {}
+ m_eScheme(INetProtocol::NotValid), m_eSmartScheme(INetProtocol::Http) {}
- inline bool HasError() const { return m_eScheme == INetProtocol::NOT_VALID; }
+ inline bool HasError() const { return m_eScheme == INetProtocol::NotValid; }
inline OUString GetMainURL(DecodeMechanism eMechanism,
rtl_TextEncoding eCharset
@@ -1234,7 +1234,7 @@ private:
// Coding:
static inline sal_Char getEscapePrefix(INetProtocol eTheScheme)
- { return eTheScheme == INetProtocol::VIM ? '=' : '%'; }
+ { return eTheScheme == INetProtocol::Vim ? '=' : '%'; }
inline sal_Char getEscapePrefix() const
{ return getEscapePrefix(m_eScheme); }
@@ -1299,7 +1299,7 @@ inline OUString INetURLObject::decode(SubString const & rSubString,
inline INetURLObject::INetURLObject(OUString const & rTheAbsURIRef,
EncodeMechanism eMechanism,
rtl_TextEncoding eCharset):
- m_eScheme(INetProtocol::NOT_VALID), m_eSmartScheme(INetProtocol::HTTP)
+ m_eScheme(INetProtocol::NotValid), m_eSmartScheme(INetProtocol::Http)
{
setAbsURIRef(rTheAbsURIRef, false, eMechanism, eCharset, false,
FSysStyle(0));
@@ -1318,7 +1318,7 @@ inline INetURLObject::INetURLObject(OUString const & rTheAbsURIRef,
EncodeMechanism eMechanism,
rtl_TextEncoding eCharset,
FSysStyle eStyle):
- m_eScheme(INetProtocol::NOT_VALID), m_eSmartScheme(eTheSmartScheme)
+ m_eScheme(INetProtocol::NotValid), m_eSmartScheme(eTheSmartScheme)
{
setAbsURIRef(rTheAbsURIRef, false, eMechanism, eCharset, true, eStyle);
}
@@ -1456,7 +1456,7 @@ inline bool INetURLObject::SetMark(OUString const & rTheFragment,
inline INetURLObject::INetURLObject(OUString const & rFSysPath,
FSysStyle eStyle):
- m_eScheme(INetProtocol::NOT_VALID), m_eSmartScheme(INetProtocol::HTTP)
+ m_eScheme(INetProtocol::NotValid), m_eSmartScheme(INetProtocol::Http)
{
setFSysPath(rFSysPath, eStyle);
}
diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx
index 6ebd8c4e5dee..0144fa32518e 100644
--- a/linguistic/source/convdiclist.cxx
+++ b/linguistic/source/convdiclist.cxx
@@ -71,7 +71,7 @@ OUString GetConvDicMainURL( const OUString &rDicName, const OUString &rDirectory
OUString aFullDicName = OUString(rDicName) + CONV_DIC_DOT_EXT;
INetURLObject aURLObj;
- aURLObj.SetSmartProtocol( INetProtocol::FILE );
+ aURLObj.SetSmartProtocol( INetProtocol::File );
aURLObj.SetSmartURL( rDirectoryURL );
aURLObj.Append( aFullDicName, INetURLObject::ENCODE_ALL );
DBG_ASSERT(!aURLObj.HasError(), "invalid URL");
@@ -276,8 +276,8 @@ void SAL_CALL ConvDicNameContainer::removeByName( const OUString& rName )
OUString aName( xDel->getName() );
OUString aDicMainURL( GetConvDicMainURL( aName, GetDictionaryWriteablePath() ) );
INetURLObject aObj( aDicMainURL );
- DBG_ASSERT( aObj.GetProtocol() == INetProtocol::FILE, "+HangulHanjaOptionsDialog::OkHdl(): non-file URLs cannot be deleted" );
- if( aObj.GetProtocol() == INetProtocol::FILE )
+ DBG_ASSERT( aObj.GetProtocol() == INetProtocol::File, "+HangulHanjaOptionsDialog::OkHdl(): non-file URLs cannot be deleted" );
+ if( aObj.GetProtocol() == INetProtocol::File )
{
try
{
diff --git a/linguistic/source/misc2.cxx b/linguistic/source/misc2.cxx
index ed3c3d8bc56c..64fed55c6234 100644
--- a/linguistic/source/misc2.cxx
+++ b/linguistic/source/misc2.cxx
@@ -140,7 +140,7 @@ OUString GetWritableDictionaryURL( const OUString &rDicName )
// build URL to use for a new (persistent) dictionary
INetURLObject aURLObj;
- aURLObj.SetSmartProtocol( INetProtocol::FILE );
+ aURLObj.SetSmartProtocol( INetProtocol::File );
aURLObj.SetSmartURL( aDirName );
DBG_ASSERT(!aURLObj.HasError(), "lng : invalid URL");
aURLObj.Append( rDicName, INetURLObject::ENCODE_ALL );
diff --git a/reportdesign/source/ui/inspection/DefaultInspection.cxx b/reportdesign/source/ui/inspection/DefaultInspection.cxx
index 718e89defb0f..c8f45dcf82b9 100644
--- a/reportdesign/source/ui/inspection/DefaultInspection.cxx
+++ b/reportdesign/source/ui/inspection/DefaultInspection.cxx
@@ -37,7 +37,7 @@ namespace rptui
{
OUStringBuffer aBuffer;
OUString aTmp( OStringToOUString(sHelpId, RTL_TEXTENCODING_UTF8) );
- DBG_ASSERT( INetURLObject( aTmp ).GetProtocol() == INetProtocol::NOT_VALID, "Wrong HelpId!" );
+ DBG_ASSERT( INetURLObject( aTmp ).GetProtocol() == INetProtocol::NotValid, "Wrong HelpId!" );
aBuffer.appendAscii( INET_HID_SCHEME );
aBuffer.append( aTmp.getStr() );
return aBuffer.makeStringAndClear();
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index 0553ff1bd1fd..2913107c539d 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -349,7 +349,7 @@ XclExpHyperlink::XclExpHyperlink( const XclExpRoot& rRoot, const SvxURLField& rU
}
// file link or URL
- if( eProtocol == INetProtocol::FILE || eProtocol == INetProtocol::SMB )
+ if( eProtocol == INetProtocol::File || eProtocol == INetProtocol::Smb )
{
sal_uInt16 nLevel;
bool bRel;
@@ -357,7 +357,7 @@ XclExpHyperlink::XclExpHyperlink( const XclExpRoot& rRoot, const SvxURLField& rU
* encoded for OOXML? */
OUString aFileName( BuildFileName( nLevel, bRel, rUrl, rRoot, false ) );
- if( eProtocol == INetProtocol::SMB )
+ if( eProtocol == INetProtocol::Smb )
{
// #n382718# (and #n261623#) Convert smb notation to '\\'
aFileName = aUrlObj.GetMainURL( INetURLObject::NO_DECODE );
@@ -392,7 +392,7 @@ XclExpHyperlink::XclExpHyperlink( const XclExpRoot& rRoot, const SvxURLField& rU
// ms2007 does, ms2010 is more tolerant )
msTarget = "file:///" + msTarget;
}
- else if( eProtocol != INetProtocol::NOT_VALID )
+ else if( eProtocol != INetProtocol::NotValid )
{
XclExpString aUrl( aUrlObj.GetURLNoMark(), EXC_STR_FORCEUNICODE, 255 );
aXclStrm << XclTools::maGuidUrlMoniker
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index 3b4a06357571..a54dbaaeba3c 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -1236,11 +1236,11 @@ bool ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm,
INetURLObject aFileUrl, aTargetUrl;
aFileUrl.SetSmartURL( rFileNm );
aTargetUrl.SetSmartURL( rTargetNm );
- if( INetProtocol::FILE == aFileUrl.GetProtocol() &&
- ( (bFileToFile && INetProtocol::FILE == aTargetUrl.GetProtocol()) ||
- (!bFileToFile && INetProtocol::FILE != aTargetUrl.GetProtocol() &&
- INetProtocol::FTP <= aTargetUrl.GetProtocol() &&
- INetProtocol::NEWS >= aTargetUrl.GetProtocol()) ) )
+ if( INetProtocol::File == aFileUrl.GetProtocol() &&
+ ( (bFileToFile && INetProtocol::File == aTargetUrl.GetProtocol()) ||
+ (!bFileToFile && INetProtocol::File != aTargetUrl.GetProtocol() &&
+ INetProtocol::Ftp <= aTargetUrl.GetProtocol() &&
+ INetProtocol::News >= aTargetUrl.GetProtocol()) ) )
{
if( pFileNameMap )
{
@@ -1304,7 +1304,7 @@ void ScHTMLExport::MakeCIdURL( OUString& rURL )
return;
INetURLObject aURLObj( rURL );
- if( INetProtocol::FILE != aURLObj.GetProtocol() )
+ if( INetProtocol::File != aURLObj.GetProtocol() )
return;
OUString aLastName( aURLObj.GetLastName().toAsciiLowerCase() );
diff --git a/sc/source/filter/xml/xmltabi.cxx b/sc/source/filter/xml/xmltabi.cxx
index af399d50adb4..3e8e4cd33b45 100644
--- a/sc/source/filter/xml/xmltabi.cxx
+++ b/sc/source/filter/xml/xmltabi.cxx
@@ -81,7 +81,7 @@ static bool lcl_isExternalRefCache(const OUString& rName, OUString& rUrl, OUStri
// #i114504# Other schemes besides "file:" are also allowed.
// CompareProtocolScheme is quick, only looks at the start of the string.
INetProtocol eProt = INetURLObject::CompareProtocolScheme( rName.copy(1) );
- if ( eProt == INetProtocol::NOT_VALID )
+ if ( eProt == INetProtocol::NotValid )
return false;
OUString aPrefix = INetURLObject::GetScheme( eProt );
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 8edbf822a7fa..959837b6dc76 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -2327,7 +2327,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed )
eError = eERR_OK;
}
- INetURLObject aTmpFile( rMed.GetPhysicalName(), INetProtocol::FILE );
+ INetURLObject aTmpFile( rMed.GetPhysicalName(), INetProtocol::File );
if ( bHasMemo )
aTmpFile.setExtension(OUString("dbt"));
if ( eError != eERR_OK )
@@ -2344,7 +2344,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed )
{
const SfxStringItem* pNameItem =
static_cast<const SfxStringItem*>( rMed.GetItemSet()->GetItem( SID_FILE_NAME ) );
- INetURLObject aDbtFile( pNameItem->GetValue(), INetProtocol::FILE );
+ INetURLObject aDbtFile( pNameItem->GetValue(), INetProtocol::File );
aDbtFile.setExtension(OUString("dbt"));
if ( IsDocument( aDbtFile ) && !KillFile( aDbtFile ) )
bRet = false;
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx
index 4125ffa74162..9a9aeff443f1 100644
--- a/sc/source/ui/docshell/docsh8.cxx
+++ b/sc/source/ui/docshell/docsh8.cxx
@@ -104,7 +104,7 @@ namespace
sal_uLong lcl_getDBaseConnection(uno::Reference<sdbc::XDriverManager2>& _rDrvMgr, uno::Reference<sdbc::XConnection>& _rConnection, OUString& _rTabName, const OUString& rFullFileName, rtl_TextEncoding eCharSet)
{
INetURLObject aURL;
- aURL.SetSmartProtocol( INetProtocol::FILE );
+ aURL.SetSmartProtocol( INetProtocol::File );
aURL.SetSmartURL( rFullFileName );
_rTabName = aURL.getBase( INetURLObject::LAST_SEGMENT, true,
INetURLObject::DECODE_UNAMBIGUOUS );
@@ -794,7 +794,7 @@ sal_uLong ScDocShell::DBaseExport( const OUString& rFullFileName, rtl_TextEncodi
return ERRCODE_IO_GENERAL;
#else
// remove the file so the dBase driver doesn't find an invalid file
- INetURLObject aDeleteObj( rFullFileName, INetProtocol::FILE );
+ INetURLObject aDeleteObj( rFullFileName, INetProtocol::File );
KillFile( aDeleteObj );
sal_uLong nErr = eERR_OK;
diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx
index 6ee467cfda5f..c669e6b69829 100644
--- a/sc/source/ui/docshell/tablink.cxx
+++ b/sc/source/ui/docshell/tablink.cxx
@@ -463,7 +463,7 @@ bool ScDocumentLoader::GetFilterName( const OUString& rFileName,
INetURLObject aUrl( rFileName );
INetProtocol eProt = aUrl.GetProtocol();
- if ( eProt == INetProtocol::NOT_VALID ) // invalid URL?
+ if ( eProt == INetProtocol::NotValid ) // invalid URL?
return false; // abort without creating a medium
// Filter-Detection
diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx
index 24a1e1a0a8b1..45fc0deae46f 100644
--- a/sc/source/ui/drawfunc/fuins2.cxx
+++ b/sc/source/ui/drawfunc/fuins2.cxx
@@ -273,7 +273,7 @@ FuInsertOLE::FuInsertOLE(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView*
{
// get URL
INetURLObject aURL;
- aURL.SetSmartProtocol( INetProtocol::FILE );
+ aURL.SetSmartProtocol( INetProtocol::File );
if ( aURL.SetURL( aPluginFileDialog.GetPath() ) )
{
// create a plugin object
diff --git a/sc/source/ui/vba/vbaworkbooks.cxx b/sc/source/ui/vba/vbaworkbooks.cxx
index ab9b79db483a..424fdcc06ca2 100644
--- a/sc/source/ui/vba/vbaworkbooks.cxx
+++ b/sc/source/ui/vba/vbaworkbooks.cxx
@@ -209,7 +209,7 @@ ScVbaWorkbooks::Open( const OUString& rFileName, const uno::Any& /*UpdateLinks*/
OUString aURL;
INetURLObject aObj;
aObj.SetURL( rFileName );
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
if ( bIsURL )
aURL = rFileName;
else
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index 86bf529d16f3..546cbe505fe1 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -1131,9 +1131,9 @@ void PPTWriter::ImplWriteTextStyleAtom( SvStream& rOut, int nTextInstance, sal_u
OUString aFile( pFieldEntry->aFieldUrl );
OUString aTarget( pFieldEntry->aFieldUrl );
INetURLObject aUrl( pFieldEntry->aFieldUrl );
- if ( INetProtocol::FILE == aUrl.GetProtocol() )
+ if ( INetProtocol::File == aUrl.GetProtocol() )
aFile = aUrl.PathToFileName();
- else if ( INetProtocol::SMB == aUrl.GetProtocol() )
+ else if ( INetProtocol::Smb == aUrl.GetProtocol() )
{
// Convert smb notation to '\\' and skip the 'smb:' part
aFile = aUrl.GetMainURL(INetURLObject::NO_DECODE).copy(4);
@@ -1968,7 +1968,7 @@ void PPTWriter::ImplWriteClickAction( SvStream& rSt, ::com::sun::star::presentat
if ( ImplGetPropertyValue( OUString( "Bookmark" ) ) )
{
INetURLObject aUrl( *static_cast<OUString const *>(mAny.getValue()) );
- if ( INetProtocol::FILE == aUrl.GetProtocol() )
+ if ( INetProtocol::File == aUrl.GetProtocol() )
{
aFile = aUrl.PathToFileName();
nAction = 2;
@@ -2016,7 +2016,7 @@ void PPTWriter::ImplWriteClickAction( SvStream& rSt, ::com::sun::star::presentat
OUString aBookmarkFile( aBookmark );
INetURLObject aUrl( aBookmark );
- if ( INetProtocol::FILE == aUrl.GetProtocol() )
+ if ( INetProtocol::File == aUrl.GetProtocol() )
aBookmarkFile = aUrl.PathToFileName();
nHyperLinkID = ImplInsertBookmarkURL( aBookmark, (sal_uInt32)(2 | ( 1U << 31 )), aBookmarkFile, aBookmark, "", "" );
}
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx
index e943858fdea4..bd2757718b39 100644
--- a/sd/source/filter/html/htmlex.cxx
+++ b/sd/source/filter/html/htmlex.cxx
@@ -607,7 +607,7 @@ void HtmlExport::InitExportParameters( const Sequence< PropertyValue >& rParams
// we come up with a destination...
INetURLObject aINetURLObj( maPath );
- DBG_ASSERT( aINetURLObj.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aINetURLObj.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
maExportPath = aINetURLObj.GetPartBeforeLastName(); // with trailing '/'
maIndex = aINetURLObj.GetLastName();
@@ -3031,7 +3031,7 @@ OUString HtmlExport::InsertSound( const OUString& rSoundFile )
INetURLObject aURL( rSoundFile );
OUString aSoundFileName = aURL.getName();
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
OUString aStr("<embed src=\"" + aSoundFileName +
"\" hidden=\"true\" autostart=\"true\">");
@@ -3203,13 +3203,13 @@ sal_uLong EasyFile::createFileName( const OUString& rURL, OUString& rFileName )
{
INetURLObject aURL( rURL );
- if( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() == INetProtocol::NotValid )
{
OUString aURLStr;
::utl::LocalFileHelper::ConvertPhysicalNameToURL( rURL, aURLStr );
aURL = INetURLObject( aURLStr );
}
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
rFileName = aURL.GetMainURL( INetURLObject::NO_DECODE );
}
diff --git a/sd/source/filter/html/pubdlg.cxx b/sd/source/filter/html/pubdlg.cxx
index f2ab340e26ae..7edbf1200514 100644
--- a/sd/source/filter/html/pubdlg.cxx
+++ b/sd/source/filter/html/pubdlg.cxx
@@ -782,7 +782,7 @@ void SdPublishingDlg::GetParameterSequence( Sequence< PropertyValue >& rParams )
// try to guess protocol for user's homepage
INetURLObject aHomeURL( pPage4_WWW->GetText(),
- INetProtocol::HTTP, // default proto is HTTP
+ INetProtocol::Http, // default proto is HTTP
INetURLObject::ENCODE_ALL );
aValue.Name = "HomepageURL";
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index 0d6622ad28a2..4d8b2f610649 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -397,7 +397,7 @@ bool ImplSdPPTImport::Import()
break;
// Convert '\\' notation to 'smb://'
- INetURLObject aUrl( pHyperlink->aTarget, INetProtocol::FILE );
+ INetURLObject aUrl( pHyperlink->aTarget, INetProtocol::File );
pHyperlink->aTarget = aUrl.GetMainURL( INetURLObject::NO_DECODE );
if ( !aPropItem.Read( pHyperlink->aSubAdress, VT_EMPTY ) )
@@ -2065,7 +2065,7 @@ void ImplSdPPTImport::FillSdAnimationInfo( SdAnimationInfo* pInfo, PptInteractiv
OUString aBaseURL = pDocShell->GetMedium()->GetBaseURL();
OUString aBookmarkURL( pInfo->GetBookmark() );
INetURLObject aURL( pPtr->aTarget );
- if( INetProtocol::NOT_VALID == aURL.GetProtocol() )
+ if( INetProtocol::NotValid == aURL.GetProtocol() )
utl::LocalFileHelper::ConvertSystemPathToURL( pPtr->aTarget, aBaseURL, aBookmarkURL );
if( aBookmarkURL.isEmpty() )
aBookmarkURL = URIHelper::SmartRel2Abs( INetURLObject(aBaseURL), pPtr->aTarget, URIHelper::GetMaybeFileHdl(), true );
diff --git a/sd/source/ui/dlg/PhotoAlbumDialog.cxx b/sd/source/ui/dlg/PhotoAlbumDialog.cxx
index 6b9783c4cd47..a3da722b97e5 100644
--- a/sd/source/ui/dlg/PhotoAlbumDialog.cxx
+++ b/sd/source/ui/dlg/PhotoAlbumDialog.cxx
@@ -579,15 +579,15 @@ IMPL_LINK_NOARG(SdPhotoAlbumDialog, SelectHdl)
sal_uInt16 nFilter = GRFILTER_FORMAT_DONTKNOW;
- if ( aURLObj.HasError() || INetProtocol::NOT_VALID == aURLObj.GetProtocol() )
+ if ( aURLObj.HasError() || INetProtocol::NotValid == aURLObj.GetProtocol() )
{
- aURLObj.SetSmartProtocol( INetProtocol::FILE );
+ aURLObj.SetSmartProtocol( INetProtocol::File );
aURLObj.SetSmartURL( sImgUrl );
}
sal_uInt32 nFilterImportFlags = GRFILTER_I_FLAGS_SET_LOGSIZE_FOR_JPEG;
// remote?
- if ( INetProtocol::FILE != aURLObj.GetProtocol() )
+ if ( INetProtocol::File != aURLObj.GetProtocol() )
{
SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( sImgUrl, StreamMode::READ );
diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx
index cc95909988ca..8ed91666fbd3 100644
--- a/sd/source/ui/dlg/dlgass.cxx
+++ b/sd/source/ui/dlg/dlgass.cxx
@@ -1616,7 +1616,7 @@ bool AssistentDlgImpl::IsOwnFormat( const OUString& rPath )
INetURLObject aURL( rPath );
OUString aExt( aURL.GetFileExtension() );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
return !aExt.equalsIgnoreAsciiCase( "ppt" );
}
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index 24df6b6225f2..f7b479162026 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -584,7 +584,7 @@ bool SdNavigatorWin::InsertFile(const OUString& rFileName)
{
INetURLObject aURL( rFileName );
- if( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() == INetProtocol::NotValid )
{
OUString aURLStr;
::utl::LocalFileHelper::ConvertPhysicalNameToURL( rFileName, aURLStr );
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index c21ea4eb8e8e..51c860914b73 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -1176,7 +1176,7 @@ void SdPageObjsTLB::DoDrag()
if( mpDropNavWin )
{
::sd::DrawDocShell* pDocShell = mpDoc->GetDocSh();
- OUString aURL = INetURLObject( pDocShell->GetMedium()->GetPhysicalName(), INetProtocol::FILE ).GetMainURL( INetURLObject::NO_DECODE );
+ OUString aURL = INetURLObject( pDocShell->GetMedium()->GetPhysicalName(), INetProtocol::File ).GetMainURL( INetURLObject::NO_DECODE );
NavigatorDragType eDragType = mpDropNavWin->GetNavigatorDragType();
aURL += "#" + GetSelectEntry();
diff --git a/sd/source/ui/dlg/tpaction.cxx b/sd/source/ui/dlg/tpaction.cxx
index a2d3cd1dc455..521a9c64bcb7 100644
--- a/sd/source/ui/dlg/tpaction.cxx
+++ b/sd/source/ui/dlg/tpaction.cxx
@@ -811,7 +811,7 @@ OUString SdTPAction::GetEditText( bool bFullDocDestination )
if( mpDoc && mpDoc->GetDocSh() && mpDoc->GetDocSh()->GetMedium() )
aBaseURL = mpDoc->GetDocSh()->GetMedium()->GetBaseURL();
- if( !aStr.isEmpty() && aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if( !aStr.isEmpty() && aURL.GetProtocol() == INetProtocol::NotValid )
aURL = INetURLObject( ::URIHelper::SmartRel2Abs( INetURLObject(aBaseURL), aStr, URIHelper::GetMaybeFileHdl(), true, false ) );
// get adjusted file name
diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx
index ccdcb5c7d8fe..bd21323f0984 100644
--- a/sd/source/ui/func/fuinsert.cxx
+++ b/sd/source/ui/func/fuinsert.cxx
@@ -485,8 +485,8 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq )
{
// get URL
OUString aStrURL(aPluginFileDialog.GetPath());
- INetURLObject aURL( aStrURL, INetProtocol::FILE );
- if( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ INetURLObject aURL( aStrURL, INetProtocol::File );
+ if( aURL.GetProtocol() != INetProtocol::NotValid )
{
// create a plugin object
xObj = mpViewShell->GetObjectShell()->GetEmbeddedObjectContainer().CreateEmbeddedObject( SvGlobalName( SO3_PLUGIN_CLASSID ).GetByteSequence(), aName );
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index 6f90fd6e4c9d..65ffe59a262b 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -1380,7 +1380,7 @@ bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos)
URIHelper::GetMaybeFileHdl(), true, false,
INetURLObject::WAS_ENCODED, INetURLObject::DECODE_UNAMBIGUOUS ) );
- if( INetProtocol::FILE == aURL.GetProtocol() )
+ if( INetProtocol::File == aURL.GetProtocol() )
{
SfxStringItem aUrl( SID_FILE_NAME, aURL.GetMainURL( INetURLObject::NO_DECODE ) );
SfxBoolItem aBrowsing( SID_BROWSE, true );
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index c1f251952822..f64376e69571 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -1594,7 +1594,7 @@ void SlideshowImpl::click( const Reference< XShape >& xShape, const ::com::sun::
false, INetURLObject::WAS_ENCODED,
INetURLObject::DECODE_UNAMBIGUOUS ) );
- if( INetProtocol::FILE == aURL.GetProtocol() )
+ if( INetProtocol::File == aURL.GetProtocol() )
{
SfxStringItem aUrl( SID_FILE_NAME, aURL.GetMainURL( INetURLObject::NO_DECODE ) );
SfxBoolItem aBrowsing( SID_BROWSE, true );
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index 510bbec86d55..992c111d672c 100644
--- a/sd/source/ui/view/sdview4.cxx
+++ b/sd/source/ui/view/sdview4.cxx
@@ -415,7 +415,7 @@ IMPL_LINK_NOARG(View, DropInsertFileHdl)
INetURLObject aURL( aCurrentDropFile );
bool bOK = false;
- if( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() == INetProtocol::NotValid )
{
OUString aURLStr;
::utl::LocalFileHelper::ConvertPhysicalNameToURL( aCurrentDropFile, aURLStr );
diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx
index cb0227ead0be..241fedf17166 100644
--- a/sfx2/source/appl/appdde.cxx
+++ b/sfx2/source/appl/appdde.cxx
@@ -84,7 +84,7 @@ namespace
sal_Bool bRet = sal_False;
INetURLObject aObj( rContent );
- DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NOT_VALID, "Invalid URL!" );
+ DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NotValid, "Invalid URL!" );
try
{
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx
index 8f09e0247eac..582a4b8e935d 100644
--- a/sfx2/source/appl/appopen.cxx
+++ b/sfx2/source/appl/appopen.cxx
@@ -531,7 +531,7 @@ void SfxApplication::NewDocExec_Impl( SfxRequest& rReq )
SfxStringItem aTarget( SID_TARGETNAME, "_default" );
if ( !aTemplateFileName.isEmpty() )
{
- DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NOT_VALID, "Illegal URL!" );
+ DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NotValid, "Illegal URL!" );
SfxStringItem aName( SID_FILE_NAME, aObj.GetMainURL( INetURLObject::NO_DECODE ) );
SfxStringItem aTemplName( SID_TEMPLATE_NAME, aTemplateName );
@@ -826,7 +826,7 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
SvtExtendedSecurityOptions aExtendedSecurityOptions;
SvtExtendedSecurityOptions::OpenHyperlinkMode eMode = aExtendedSecurityOptions.GetOpenHyperlinkMode();
- if ( eMode == SvtExtendedSecurityOptions::OPEN_NEVER && aINetProtocol != INetProtocol::VND_SUN_STAR_HELP )
+ if ( eMode == SvtExtendedSecurityOptions::OPEN_NEVER && aINetProtocol != INetProtocol::VndSunStarHelp )
{
SolarMutexGuard aGuard;
vcl::Window *pWindow = SfxGetpApp()->GetTopWindow();
@@ -845,15 +845,15 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
if (!pFilter || !lcl_isFilterNativelySupported(*pFilter))
{
// hyperlink does not link to own type => special handling (http, ftp) browser and (other external protocols) OS
- if ( aINetProtocol == INetProtocol::MAILTO )
+ if ( aINetProtocol == INetProtocol::Mailto )
{
// don't dispatch mailto hyperlink to desktop dispatcher
rReq.RemoveItem( SID_TARGETNAME );
rReq.AppendItem( SfxStringItem( SID_TARGETNAME, OUString("_self") ) );
}
- else if ( aINetProtocol == INetProtocol::FTP ||
- aINetProtocol == INetProtocol::HTTP ||
- aINetProtocol == INetProtocol::HTTPS )
+ else if ( aINetProtocol == INetProtocol::Ftp ||
+ aINetProtocol == INetProtocol::Http ||
+ aINetProtocol == INetProtocol::Https )
{
sfx2::openUriExternally(aURL.Complete, true);
return;
diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx
index 7c5434fe99f1..d80f24ca2348 100644
--- a/sfx2/source/appl/fileobj.cxx
+++ b/sfx2/source/appl/fileobj.cxx
@@ -555,7 +555,7 @@ bool SvFileObject::IsDataComplete() const
{
INetURLObject aUrl( sFileNm );
if( aUrl.HasError() ||
- INetProtocol::NOT_VALID == aUrl.GetProtocol() )
+ INetProtocol::NotValid == aUrl.GetProtocol() )
bRet = true;
}
}
diff --git a/sfx2/source/appl/imagemgr.cxx b/sfx2/source/appl/imagemgr.cxx
index 06fdb6fdd190..08a945328d45 100644
--- a/sfx2/source/appl/imagemgr.cxx
+++ b/sfx2/source/appl/imagemgr.cxx
@@ -76,7 +76,7 @@ Image SAL_CALL GetImage(
xModel = xController->getModel();
OUString aCommandURL( aURL );
- if ( nProtocol == INetProtocol::SLOT )
+ if ( nProtocol == INetProtocol::Slot )
{
sal_uInt16 nId = ( sal_uInt16 ) aURL.copy(5).toInt32();
const SfxSlot* pSlot = 0;
@@ -192,7 +192,7 @@ Image SAL_CALL GetImage(
if ( !!aImage )
return aImage;
- else if ( nProtocol != INetProtocol::UNO && nProtocol != INetProtocol::SLOT )
+ else if ( nProtocol != INetProtocol::Uno && nProtocol != INetProtocol::Slot )
return SvFileInformationManager::GetImageNoDefault( aObj, bBig );
}
}
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx
index 50461699fd4e..a64704b0503b 100644
--- a/sfx2/source/appl/linkmgr2.cxx
+++ b/sfx2/source/appl/linkmgr2.cxx
@@ -563,7 +563,7 @@ OUString lcl_DDE_RelToAbs( const OUString& rTopic, const OUString& rBaseURL )
{
OUString sRet;
INetURLObject aURL( rTopic );
- if( INetProtocol::NOT_VALID == aURL.GetProtocol() )
+ if( INetProtocol::NotValid == aURL.GetProtocol() )
utl::LocalFileHelper::ConvertSystemPathToURL( rTopic, rBaseURL, sRet );
if( sRet.isEmpty() )
sRet = URIHelper::SmartRel2Abs( INetURLObject(rBaseURL), rTopic, URIHelper::GetMaybeFileHdl(), true );
@@ -657,8 +657,8 @@ bool SvxInternalLink::Connect( sfx2::SvBaseLink* pLink )
INetURLObject aURL( sTopic );
INetProtocol eOld = aURL.GetProtocol();
aURL.SetURL( sTopic = lcl_DDE_RelToAbs( sTopic, sReferer ) );
- if( INetProtocol::NOT_VALID != eOld ||
- INetProtocol::HTTP != aURL.GetProtocol() )
+ if( INetProtocol::NotValid != eOld ||
+ INetProtocol::Http != aURL.GetProtocol() )
{
SfxStringItem aName( SID_FILE_NAME, sTopic );
SfxBoolItem aMinimized(SID_MINIMIZED, true);
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 312e7d365324..d16ed6a01af4 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -2900,7 +2900,7 @@ void SfxHelpWindow_Impl::openDone(const OUString& sURL ,
bool bSuccess)
{
INetURLObject aObj( sURL );
- if ( aObj.GetProtocol() == INetProtocol::VND_SUN_STAR_HELP )
+ if ( aObj.GetProtocol() == INetProtocol::VndSunStarHelp )
SetFactory( aObj.GetHost() );
if ( IsWait() )
LeaveWait();
@@ -3042,7 +3042,7 @@ void SfxHelpWindow_Impl::SetFactory( const OUString& rFactory )
void SfxHelpWindow_Impl::SetHelpURL( const OUString& rURL )
{
INetURLObject aObj( rURL );
- if ( aObj.GetProtocol() == INetProtocol::VND_SUN_STAR_HELP )
+ if ( aObj.GetProtocol() == INetProtocol::VndSunStarHelp )
SetFactory( aObj.GetHost() );
}
diff --git a/sfx2/source/appl/opengrf.cxx b/sfx2/source/appl/opengrf.cxx
index 24b66809894e..2a533bb29ed8 100644
--- a/sfx2/source/appl/opengrf.cxx
+++ b/sfx2/source/appl/opengrf.cxx
@@ -126,7 +126,7 @@ short SvxOpenGraphicDialog::Execute()
sal_uInt16 nFound = USHRT_MAX;
// non-local?
- if ( INetProtocol::FILE != aObj.GetProtocol() )
+ if ( INetProtocol::File != aObj.GetProtocol() )
{
SfxMedium aMed( aObj.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::READ );
aMed.Download();
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index fce5ddb1e0c3..4e0e195f2a32 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -549,7 +549,7 @@ bool SfxHelp::Start_Impl(const OUString& rURL, const vcl::Window* pWindow, const
switch ( nProtocol )
{
- case INetProtocol::VND_SUN_STAR_HELP:
+ case INetProtocol::VndSunStarHelp:
// already a vnd.sun.star.help URL -> nothing to do
aHelpURL = rURL;
break;
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
index 3b4261b73536..1e6550b1abb2 100644
--- a/sfx2/source/appl/sfxpicklist.cxx
+++ b/sfx2/source/appl/sfxpicklist.cxx
@@ -96,7 +96,7 @@ void SfxPickList::CreatePicklistMenuTitle( Menu* pMenu, sal_uInt16 nItemId, cons
OUString aTipHelpText;
OUString aAccessibleName = aPickEntry.toString();
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
{
// Do handle file URL differently => convert it to a system
// path and abbreviate it with a special function:
@@ -172,7 +172,7 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
// Help not in History
INetURLObject aURL( pDocSh->IsDocShared() ? pDocSh->GetSharedFileURL() : OUString( pMed->GetOrigURL() ) );
- if ( aURL.GetProtocol() == INetProtocol::VND_SUN_STAR_HELP )
+ if ( aURL.GetProtocol() == INetProtocol::VndSunStarHelp )
return;
if ( !pMed->IsUpdatePickList() )
@@ -226,7 +226,7 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
OUString(),
aThumbnail);
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
Application::AddToRecentDocumentList( aURL.GetURLNoPass( INetURLObject::NO_DECODE ),
(pFilter) ? pFilter->GetMimeType() : OUString(),
(pFilter) ? pFilter->GetServiceName() : OUString() );
diff --git a/sfx2/source/appl/shutdowniconaqua.mm b/sfx2/source/appl/shutdowniconaqua.mm
index ef20b8cb027d..eeda5694858d 100644
--- a/sfx2/source/appl/shutdowniconaqua.mm
+++ b/sfx2/source/appl/shutdowniconaqua.mm
@@ -221,7 +221,7 @@ class RecentFilesStringLength : public ::cppu::WeakImplHelper1< ::com::sun::star
rtl::OUString aMenuTitle;
INetURLObject aURL( (*m_pRecentFilesItems)[i].aURL );
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
{
// Do handle file URL differently => convert it to a system
// path and abbreviate it with a special function:
diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx
index 21a411852672..a45f2654777b 100644
--- a/sfx2/source/bastyp/helper.cxx
+++ b/sfx2/source/bastyp/helper.cxx
@@ -248,7 +248,7 @@ sal_Int64 SfxContentHelper::GetSize( const OUString& rContent )
{
sal_Int64 nSize = 0;
INetURLObject aObj( rContent );
- DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NOT_VALID, "Invalid URL!" );
+ DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NotValid, "Invalid URL!" );
try
{
::ucbhelper::Content aCnt( aObj.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() );
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx
index bf64b6a2c04c..d5da3ca8abb4 100644
--- a/sfx2/source/control/recentdocsviewitem.cxx
+++ b/sfx2/source/control/recentdocsviewitem.cxx
@@ -41,7 +41,7 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR
OUString aTitle(rTitle);
INetURLObject aURLObj(rURL);
- if( aURLObj.GetProtocol() == INetProtocol::FILE )
+ if( aURLObj.GetProtocol() == INetProtocol::File )
m_sHelpText = aURLObj.getFSysPath(INetURLObject::FSYS_DETECT);
if( m_sHelpText.isEmpty() )
m_sHelpText = aURLObj.GetURLNoPass();
@@ -50,7 +50,7 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR
aTitle = aURLObj.GetName(INetURLObject::DECODE_WITH_CHARSET);
BitmapEx aThumbnail(rThumbnail);
- if (aThumbnail.IsEmpty() && aURLObj.GetProtocol() == INetProtocol::FILE)
+ if (aThumbnail.IsEmpty() && aURLObj.GetProtocol() == INetProtocol::File)
aThumbnail = ThumbnailView::readThumbnail(rURL);
if (aThumbnail.IsEmpty())
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index ab7833624d17..1237d4c16045 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -988,12 +988,12 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet )
// determine name
INetURLObject aURL(aFile);
OUString aName = aURL.GetName( INetURLObject::DECODE_WITH_CHARSET );
- if ( aName.isEmpty() || aURL.GetProtocol() == INetProtocol::PRIV_SOFFICE )
+ if ( aName.isEmpty() || aURL.GetProtocol() == INetProtocol::PrivSoffice )
aName = SfxResId( STR_NONAME ).toString();
m_pNameED->SetText( aName );
// determine context symbol
- aURL.SetSmartProtocol( INetProtocol::FILE );
+ aURL.SetSmartProtocol( INetProtocol::File );
aURL.SetSmartURL( aFactory);
const OUString& rMainURL = aURL.GetMainURL( INetURLObject::NO_DECODE );
Image aImage = SvFileInformationManager::GetImage( aURL, true );
@@ -1009,7 +1009,7 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet )
// determine size and type
OUString aSizeText( m_aUnknownSize );
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
aSizeText = CreateSizeText( SfxContentHelper::GetSize( aURL.GetMainURL( INetURLObject::NO_DECODE ) ) );
m_pShowSizeFT->SetText( aSizeText );
@@ -1020,7 +1020,7 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet )
// determine location
aURL.SetSmartURL( aFile);
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
{
INetURLObject aPath( aURL );
aPath.setFinalSlash();
@@ -1030,7 +1030,7 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet )
OUString aText( aPath.PathToFileName() ); //! (pb) MaxLen?
m_pFileValFt->SetText( aText );
}
- else if ( aURL.GetProtocol() != INetProtocol::PRIV_SOFFICE )
+ else if ( aURL.GetProtocol() != INetProtocol::PrivSoffice )
m_pFileValFt->SetText( aURL.GetPartBeforeLastName() );
// handle access data
@@ -1136,9 +1136,9 @@ SfxDocumentInfoDialog::SfxDocumentInfoDialog( vcl::Window* pParent,
OUString aFile( rInfoItem.GetValue() );
INetURLObject aURL;
- aURL.SetSmartProtocol( INetProtocol::FILE );
+ aURL.SetSmartProtocol( INetProtocol::File );
aURL.SetSmartURL( aFile);
- if ( INetProtocol::PRIV_SOFFICE != aURL.GetProtocol() )
+ if ( INetProtocol::PrivSoffice != aURL.GetProtocol() )
{
OUString aLastName( aURL.GetLastName() );
if ( !aLastName.isEmpty() )
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index a6f641a5bd3b..33f532b9b293 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -607,7 +607,7 @@ void FileDialogHelper_Impl::updateVersions()
{
INetURLObject aObj( aPathSeq[0] );
- if ( ( aObj.GetProtocol() == INetProtocol::FILE ) &&
+ if ( ( aObj.GetProtocol() == INetProtocol::File ) &&
( utl::UCBContentHelper::IsDocument( aObj.GetMainURL( INetURLObject::NO_DECODE ) ) ) )
{
try
@@ -757,9 +757,9 @@ ErrCode FileDialogHelper_Impl::getGraphic( const OUString& rURL,
INetURLObject aURLObj( rURL );
- if ( aURLObj.HasError() || INetProtocol::NOT_VALID == aURLObj.GetProtocol() )
+ if ( aURLObj.HasError() || INetProtocol::NotValid == aURLObj.GetProtocol() )
{
- aURLObj.SetSmartProtocol( INetProtocol::FILE );
+ aURLObj.SetSmartProtocol( INetProtocol::File );
aURLObj.SetSmartURL( rURL );
}
@@ -767,7 +767,7 @@ ErrCode FileDialogHelper_Impl::getGraphic( const OUString& rURL,
sal_uInt32 nFilterImportFlags = GRFILTER_I_FLAGS_SET_LOGSIZE_FOR_JPEG;
// non-local?
- if ( INetProtocol::FILE != aURLObj.GetProtocol() )
+ if ( INetProtocol::File != aURLObj.GetProtocol() )
{
SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( rURL, StreamMode::READ );
@@ -1144,7 +1144,7 @@ void FileDialogHelper_Impl::setControlHelpIds( const sal_Int16* _pControlId, con
{
while ( *_pControlId )
{
- DBG_ASSERT( INetURLObject( OStringToOUString( *_pHelpId, RTL_TEXTENCODING_UTF8 ) ).GetProtocol() == INetProtocol::NOT_VALID, "Wrong HelpId!" );
+ DBG_ASSERT( INetURLObject( OStringToOUString( *_pHelpId, RTL_TEXTENCODING_UTF8 ) ).GetProtocol() == INetProtocol::NotValid, "Wrong HelpId!" );
OUString sId( sHelpIdPrefix );
sId += OUString( *_pHelpId, strlen( *_pHelpId ), RTL_TEXTENCODING_UTF8 );
xControlAccess->setValue( *_pControlId, ControlActions::SET_HELP_URL, makeAny( sId ) );
@@ -1567,7 +1567,7 @@ void FileDialogHelper_Impl::verifyPath()
return;
}
INetURLObject url(maPath);
- if (url.GetProtocol() != INetProtocol::FILE
+ if (url.GetProtocol() != INetProtocol::File
|| url.getName(0, true, INetURLObject::DECODE_WITH_CHARSET) != "tmp")
{
return;
@@ -1923,7 +1923,7 @@ void FileDialogHelper_Impl::saveConfig()
INetURLObject aObj( getPath() );
- if ( aObj.GetProtocol() == INetProtocol::FILE )
+ if ( aObj.GetProtocol() == INetProtocol::File )
SetToken( aUserData, 2, ' ', aObj.GetMainURL( INetURLObject::NO_DECODE ) );
OUString aFilter = getFilter();
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx
index e6f2c2d7a5ce..ff9e9e56b862 100644
--- a/sfx2/source/dialog/mailmodel.cxx
+++ b/sfx2/source/dialog/mailmodel.cxx
@@ -310,7 +310,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat(
OUString aLocation = xStorable->getLocation();
INetURLObject aFileObj( aLocation );
- bool bPrivateProtocol = ( aFileObj.GetProtocol() == INetProtocol::PRIV_SOFFICE );
+ bool bPrivateProtocol = ( aFileObj.GetProtocol() == INetProtocol::PrivSoffice );
bHasLocation = !aLocation.isEmpty() && !bPrivateProtocol;
OSL_ASSERT( !bPrivateProtocol );
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx
index e982e561e0bd..c5273b485fab 100644
--- a/sfx2/source/dialog/taskpane.cxx
+++ b/sfx2/source/dialog/taskpane.cxx
@@ -401,7 +401,7 @@ namespace sfx2
static OString lcl_getHelpId( const OUString& _rHelpURL )
{
INetURLObject aHID( _rHelpURL );
- if ( aHID.GetProtocol() == INetProtocol::HID )
+ if ( aHID.GetProtocol() == INetProtocol::Hid )
return OUStringToOString( aHID.GetURLPath(), RTL_TEXTENCODING_UTF8 );
else
return OUStringToOString( _rHelpURL, RTL_TEXTENCODING_UTF8 );
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index f76633b3ea33..407a64947ce5 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -932,9 +932,9 @@ namespace
INetURLObject aUrl( rLogicName );
INetProtocol eProt = aUrl.GetProtocol();
#if HAVE_FEATURE_MACOSX_SANDBOX
- return eProt == INetProtocol::SFTP;
+ return eProt == INetProtocol::Sftp;
#else
- return eProt == INetProtocol::FILE || eProt == INetProtocol::SFTP;
+ return eProt == INetProtocol::File || eProt == INetProtocol::Sftp;
#endif
}
}
@@ -2420,7 +2420,7 @@ void SfxMedium::Init_Impl()
{
INetURLObject aUrl( pImp->m_aLogicName );
INetProtocol eProt = aUrl.GetProtocol();
- if ( eProt == INetProtocol::NOT_VALID )
+ if ( eProt == INetProtocol::NotValid )
{
SAL_WARN( "sfx.doc", "Unknown protocol!" );
}
@@ -2683,13 +2683,13 @@ void SfxMedium::SetIsRemote_Impl()
INetURLObject aObj( GetName() );
switch( aObj.GetProtocol() )
{
- case INetProtocol::FTP:
- case INetProtocol::HTTP:
- case INetProtocol::HTTPS:
- case INetProtocol::POP3:
- case INetProtocol::NEWS:
- case INetProtocol::IMAP:
- case INetProtocol::VIM:
+ case INetProtocol::Ftp:
+ case INetProtocol::Http:
+ case INetProtocol::Https:
+ case INetProtocol::Pop3:
+ case INetProtocol::News:
+ case INetProtocol::Imap:
+ case INetProtocol::Vim:
pImp->m_bRemote = true;
break;
default:
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx
index def4e05ac0ac..140e62cd044c 100644
--- a/sfx2/source/doc/doctempl.cxx
+++ b/sfx2/source/doc/doctempl.cxx
@@ -1186,7 +1186,7 @@ bool SfxDocumentTemplates::GetLogicNames
INetURLObject aFullPath;
- aFullPath.SetSmartProtocol( INetProtocol::FILE );
+ aFullPath.SetSmartProtocol( INetProtocol::File );
aFullPath.SetURL( rPath );
OUString aPath( aFullPath.GetMainURL( INetURLObject::NO_DECODE ) );
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 15f175efefd3..346dd0d90607 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -570,7 +570,7 @@ void SfxDocTplService_Impl::getDirList()
for (sal_Int32 i = 0; i < nCount; ++i)
{
- aURL.SetSmartProtocol( INetProtocol::FILE );
+ aURL.SetSmartProtocol( INetProtocol::File );
aURL.SetURL( aDirs.getToken( i, C_DELIM ) );
maTemplateDirs[i] = aURL.GetMainURL( INetURLObject::NO_DECODE );
@@ -2907,7 +2907,7 @@ void SfxURLRelocator_Impl::initOfficeInstDirs()
void SfxURLRelocator_Impl::implExpandURL( OUString& io_url )
{
const INetURLObject aParser( io_url );
- if ( aParser.GetProtocol() != INetProtocol::VND_SUN_STAR_EXPAND )
+ if ( aParser.GetProtocol() != INetProtocol::VndSunStarExpand )
return;
io_url = aParser.GetURLPath( INetURLObject::DECODE_WITH_CHARSET );
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index b1e580cba74c..c75786910d38 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -1280,7 +1280,7 @@ OUString ModelData_Impl::GetRecommendedName( const OUString& aSuggestedName, con
uno::UNO_QUERY );
if ( xTypeDetection.is() )
{
- INetURLObject aObj( "c:/" + aRecommendedName, INetProtocol::FILE,
+ INetURLObject aObj( "c:/" + aRecommendedName, INetProtocol::File,
INetURLObject::ENCODE_ALL, RTL_TEXTENCODING_UTF8, INetURLObject::FSYS_DOS );
uno::Sequence< beans::PropertyValue > aTypeNameProps;
@@ -1618,7 +1618,7 @@ bool SfxStoringHelper::GUIStoreModel( uno::Reference< frame::XModel > xModel,
OUString aFileName;
aFileNameIter->second >>= aFileName;
aURL.SetURL( aFileName );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "Illegal URL!" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "Illegal URL!" );
::comphelper::SequenceAsHashMap::const_iterator aIter =
aModelData.GetMediaDescr().find( sFilterNameString );
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx
index b30e6f1c1e07..8a718b99338f 100644
--- a/sfx2/source/doc/new.cxx
+++ b/sfx2/source/doc/new.cxx
@@ -191,7 +191,7 @@ IMPL_LINK_NOARG(SfxNewFileDialog_Impl, Update)
OUString aFileName = aTemplates.GetPath( m_pRegionLb->GetSelectEntryPos(), nEntry-1);
INetURLObject aTestObj( aFileName );
- if( aTestObj.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aTestObj.GetProtocol() == INetProtocol::NotValid )
{
// temp. fix until Templates are managed by UCB compatible service
// does NOT work with locally cached components !
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
index 3f7b183e3ae5..8ec5d45a9d63 100644
--- a/sfx2/source/doc/objmisc.cxx
+++ b/sfx2/source/doc/objmisc.cxx
@@ -860,7 +860,7 @@ OUString SfxObjectShell::GetTitle
if ( pMed && ( nMaxLength == SFX_TITLE_CAPTION || nMaxLength == SFX_TITLE_PICKLIST ) )
{
// If a specific title was given at open:
- // important for URLs: use INetProtocol::FILE for which the set title is not
+ // important for URLs: use INetProtocol::File for which the set title is not
// considered. (See below, analysis of aTitleMap_Impl)
SFX_ITEMSET_ARG( pMed->GetItemSet(), pNameItem, SfxStringItem, SID_DOCINFO_TITLE, false );
if ( pNameItem )
@@ -891,7 +891,7 @@ OUString SfxObjectShell::GetTitle
if ( nMaxLength > SFX_TITLE_CAPTION && nMaxLength <= SFX_TITLE_HISTORY )
{
sal_uInt16 nRemote;
- if( !pMed || aURL.GetProtocol() == INetProtocol::FILE )
+ if( !pMed || aURL.GetProtocol() == INetProtocol::File )
nRemote = 0;
else
nRemote = 1;
@@ -899,7 +899,7 @@ OUString SfxObjectShell::GetTitle
}
// Local file?
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
{
OUString aName( aURL.HasMark() ? INetURLObject( aURL.GetURLNoMark() ).PathToFileName() : aURL.PathToFileName() );
if ( nMaxLength == SFX_TITLE_FULLNAME )
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index cafa4b26ed3c..91c385548117 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2108,7 +2108,7 @@ void SfxObjectShell::AddToRecentlyUsedList()
{
INetURLObject aUrl( pMedium->GetOrigURL() );
- if ( aUrl.GetProtocol() == INetProtocol::FILE )
+ if ( aUrl.GetProtocol() == INetProtocol::File )
{
const SfxFilter* pOrgFilter = pMedium->GetOrigFilter();
Application::AddToRecentDocumentList( aUrl.GetURLNoPass( INetURLObject::NO_DECODE ),
@@ -2644,7 +2644,7 @@ bool SfxObjectShell::CommonSaveAs_Impl
}
}
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "Illegal URL!" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "Illegal URL!" );
DBG_ASSERT( aParams->Count() != 0, "Incorrect Parameter");
SFX_ITEMSET_ARG( aParams, pSaveToItem, SfxBoolItem, SID_SAVETO, false );
diff --git a/sfx2/source/doc/printhelper.cxx b/sfx2/source/doc/printhelper.cxx
index c988ac704806..1d056eb69900 100644
--- a/sfx2/source/doc/printhelper.cxx
+++ b/sfx2/source/doc/printhelper.cxx
@@ -638,7 +638,7 @@ void SAL_CALL SfxPrintHelper::print(const uno::Sequence< beans::PropertyValue >&
OUString sPath ;
OUString sURL (sTemp);
INetURLObject aCheck(sURL );
- if (aCheck.GetProtocol()==INetProtocol::NOT_VALID)
+ if (aCheck.GetProtocol()==INetProtocol::NotValid)
{
// OK - it's not a valid URL. But may it's a simple
// system path directly. It will be supported for historical
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index 7e433b5959e1..29a5168987f0 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -85,7 +85,7 @@ void SfxURLToolBoxControl_Impl::OpenURL( const OUString& rName, bool /*bNew*/ )
OUString aOptions;
INetURLObject aObj( rName );
- if ( aObj.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aObj.GetProtocol() == INetProtocol::NotValid )
{
OUString aBaseURL = GetURLBox()->GetBaseURL();
aName = SvtURLBox::ParseSmart( rName, aBaseURL, SvtPathOptions().GetWorkPath() );
@@ -247,7 +247,7 @@ void SfxURLToolBoxControl_Impl::StateChanged
OUString aRep( pURL->GetValue() );
INetURLObject aURL( aRep );
INetProtocol eProt = aURL.GetProtocol();
- if ( eProt == INetProtocol::FILE )
+ if ( eProt == INetProtocol::File )
{
pURLBox->SetText( aURL.PathToFileName() );
}
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 0b359c9ec673..4f1a03a27d4b 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -443,7 +443,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq )
// the logic below is following, if the document seems not to need to be reloaded and the physical name is different
// to the logical one, then on file system it can be checked that the copy is still newer than the original and no document reload is required
- if ( ( !bNeedsReload && ( (aMedObj.GetProtocol() == INetProtocol::FILE &&
+ if ( ( !bNeedsReload && ( (aMedObj.GetProtocol() == INetProtocol::File &&
aMedObj.getFSysPath(INetURLObject::FSYS_DETECT) != aPhysObj.getFSysPath(INetURLObject::FSYS_DETECT) &&
!::utl::UCBContentHelper::IsYounger( aMedObj.GetMainURL( INetURLObject::NO_DECODE ), aPhysObj.GetMainURL( INetURLObject::NO_DECODE ) ))
|| pMed->IsRemote() ) )
@@ -596,7 +596,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq )
aURL = pMedium->GetName();
bool bHandsOff =
- ( pMedium->GetURLObject().GetProtocol() == INetProtocol::FILE && !xOldObj->IsDocShared() );
+ ( pMedium->GetURLObject().GetProtocol() == INetProtocol::File && !xOldObj->IsDocShared() );
// Emty existing SfxMDIFrames for this Document
// in native format or R/O, open it now for editing?
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 0c7620e7fcdf..e27660c64014 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -670,7 +670,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq )
OUString aLocation = xStorable->getLocation();
INetURLObject aFileObj( aLocation );
- bool bPrivateProtocol = ( aFileObj.GetProtocol() == INetProtocol::PRIV_SOFFICE );
+ bool bPrivateProtocol = ( aFileObj.GetProtocol() == INetProtocol::PrivSoffice );
bool bHasLocation = !aLocation.isEmpty() && !bPrivateProtocol;
css::uno::Reference< css::container::XContainerQuery > xContainerQuery(
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index bfb57d52fc16..46fa4e53deae 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -359,7 +359,7 @@ void SotStorage::CreateStorage( bool bForceUCBStorage, StreamMode nMode, Storage
::utl::UCBContentHelper::Kill( m_aName );
INetURLObject aObj( m_aName );
- if ( aObj.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aObj.GetProtocol() == INetProtocol::NotValid )
{
OUString aURL;
::utl::LocalFileHelper::ConvertPhysicalNameToURL( m_aName, aURL );
@@ -565,7 +565,7 @@ bool SotStorage::IsStorageFile( const OUString & rFileName )
{
OUString aName( rFileName );
INetURLObject aObj( aName );
- if ( aObj.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aObj.GetProtocol() == INetProtocol::NotValid )
{
OUString aURL;
::utl::LocalFileHelper::ConvertPhysicalNameToURL( aName, aURL );
diff --git a/svl/source/misc/filenotation.cxx b/svl/source/misc/filenotation.cxx
index c10dd60d65b2..536818d4e261 100644
--- a/svl/source/misc/filenotation.cxx
+++ b/svl/source/misc/filenotation.cxx
@@ -35,7 +35,7 @@ namespace svt
if ( _eInputNotation == N_URL )
{
INetURLObject aParser( _rUrlOrPath );
- if ( aParser.GetProtocol() == INetProtocol::FILE )
+ if ( aParser.GetProtocol() == INetProtocol::File )
implInitWithURLNotation( _rUrlOrPath );
else
m_sSystem = m_sFileURL = _rUrlOrPath;
@@ -56,7 +56,7 @@ namespace svt
if ( !_rSystemPath.isEmpty() )
{
INetURLObject aSmartParser;
- aSmartParser.SetSmartProtocol( INetProtocol::FILE );
+ aSmartParser.SetSmartProtocol( INetProtocol::File );
if ( aSmartParser.SetSmartURL( _rSystemPath ) )
{
m_sFileURL = aSmartParser.GetMainURL( INetURLObject::NO_DECODE );
@@ -84,12 +84,12 @@ namespace svt
INetURLObject aParser( _rUrlOrPath );
switch ( aParser.GetProtocol() )
{
- case INetProtocol::FILE:
+ case INetProtocol::File:
// file URL
bSuccess = implInitWithURLNotation( _rUrlOrPath );
break;
- case INetProtocol::NOT_VALID:
+ case INetProtocol::NotValid:
// assume system notation
bSuccess = implInitWithSystemNotation( _rUrlOrPath );
break;
diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx
index 5c3f1a9ada6f..98a3009b215f 100644
--- a/svl/source/misc/inethist.cxx
+++ b/svl/source/misc/inethist.cxx
@@ -335,7 +335,7 @@ void INetURLHistory::NormalizeUrl_Impl (INetURLObject &rUrl)
{
switch (rUrl.GetProtocol())
{
- case INetProtocol::FILE:
+ case INetProtocol::File:
if (!INetURLObject::IsCaseSensitive())
{
OUString aPath (rUrl.GetURLPath(INetURLObject::NO_DECODE).toAsciiLowerCase());
@@ -343,19 +343,19 @@ void INetURLHistory::NormalizeUrl_Impl (INetURLObject &rUrl)
}
break;
- case INetProtocol::FTP:
+ case INetProtocol::Ftp:
if (!rUrl.HasPort())
rUrl.SetPort (INETHIST_DEF_FTP_PORT);
break;
- case INetProtocol::HTTP:
+ case INetProtocol::Http:
if (!rUrl.HasPort())
rUrl.SetPort (INETHIST_DEF_HTTP_PORT);
if (!rUrl.HasURLPath())
rUrl.SetURLPath("/");
break;
- case INetProtocol::HTTPS:
+ case INetProtocol::Https:
if (!rUrl.HasPort())
rUrl.SetPort (INETHIST_DEF_HTTPS_PORT);
if (!rUrl.HasURLPath())
diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx
index 5e53645b7916..362b6273c3e4 100644
--- a/svl/source/misc/urihelper.cxx
+++ b/svl/source/misc/urihelper.cxx
@@ -76,7 +76,7 @@ OUString URIHelper::SmartRel2Abs(INetURLObject const & rTheBaseURIRef,
eStyle);
if (bCheckFileExists
&& !bWasAbsolute
- && (aAbsURIRef.GetProtocol() == INetProtocol::FILE))
+ && (aAbsURIRef.GetProtocol() == INetProtocol::File))
{
INetURLObject aNonFileURIRef;
aNonFileURIRef.SetSmartURL(rTheRelURIRef,
@@ -84,7 +84,7 @@ OUString URIHelper::SmartRel2Abs(INetURLObject const & rTheBaseURIRef,
eCharset,
eStyle);
if (!aNonFileURIRef.HasError()
- && aNonFileURIRef.GetProtocol() != INetProtocol::FILE)
+ && aNonFileURIRef.GetProtocol() != INetProtocol::File)
{
bool bMaybeFile = false;
if (rMaybeFileHdl.IsSet())
@@ -507,7 +507,7 @@ OUString URIHelper::FindFirstURLInText(OUString const & rText,
{
sal_Int32 i = nPos;
INetProtocol eScheme = INetURLObject::CompareProtocolScheme(rText.copy(i, rEnd - i));
- if (eScheme == INetProtocol::FILE) // 2nd
+ if (eScheme == INetProtocol::File) // 2nd
{
while (rText[i++] != ':') ;
sal_Int32 nPrefixEnd = i;
@@ -525,7 +525,7 @@ OUString URIHelper::FindFirstURLInText(OUString const & rText,
&& isBoundary1(rCharClass, rText, nUriEnd, rEnd))
{
INetURLObject aUri(rText.copy(nPos, nUriEnd - nPos),
- INetProtocol::FILE, eMechanism, eCharset,
+ INetProtocol::File, eMechanism, eCharset,
eStyle);
if (!aUri.HasError())
{
@@ -536,7 +536,7 @@ OUString URIHelper::FindFirstURLInText(OUString const & rText,
}
}
}
- else if (eScheme != INetProtocol::NOT_VALID) // 1st
+ else if (eScheme != INetProtocol::NotValid) // 1st
{
while (rText[i++] != ':') ;
sal_Int32 nPrefixEnd = i;
@@ -554,7 +554,7 @@ OUString URIHelper::FindFirstURLInText(OUString const & rText,
|| rText[nUriEnd] == '\\'))
{
INetURLObject aUri(rText.copy(nPos, nUriEnd - nPos),
- INetProtocol::HTTP, eMechanism,
+ INetProtocol::Http, eMechanism,
eCharset);
if (!aUri.HasError())
{
@@ -603,7 +603,7 @@ OUString URIHelper::FindFirstURLInText(OUString const & rText,
|| rText[nUriEnd] == '\\')
{
INetURLObject aUri(rText.copy(nPos, nUriEnd - nPos),
- INetProtocol::HTTP, eMechanism,
+ INetProtocol::Http, eMechanism,
eCharset);
if (!aUri.HasError())
{
@@ -627,7 +627,7 @@ OUString URIHelper::FindFirstURLInText(OUString const & rText,
if (isBoundary1(rCharClass, rText, nUriEnd, rEnd))
{
INetURLObject aUri(rText.copy(nPos, nUriEnd - nPos),
- INetProtocol::FILE,
+ INetProtocol::File,
INetURLObject::ENCODE_ALL,
RTL_TEXTENCODING_UTF8,
INetURLObject::FSYS_DOS);
@@ -656,7 +656,7 @@ OUString URIHelper::FindFirstURLInText(OUString const & rText,
if (isBoundary1(rCharClass, rText, nUriEnd, rEnd))
{
INetURLObject aUri(rText.copy(nPos, nUriEnd - nPos),
- INetProtocol::FILE,
+ INetProtocol::File,
INetURLObject::ENCODE_ALL,
RTL_TEXTENCODING_UTF8,
INetURLObject::FSYS_DOS);
@@ -693,7 +693,7 @@ OUString URIHelper::FindFirstURLInText(OUString const & rText,
&& isBoundary1(rCharClass, rText, i, rEnd))
{
INetURLObject aUri(rText.copy(nPos, i - nPos),
- INetProtocol::MAILTO,
+ INetProtocol::Mailto,
INetURLObject::ENCODE_ALL);
if (!aUri.HasError())
{
diff --git a/svtools/source/contnr/contentenumeration.cxx b/svtools/source/contnr/contentenumeration.cxx
index 7d4b546b0cfd..bb07a8b5fcf6 100644
--- a/svtools/source/contnr/contentenumeration.cxx
+++ b/svtools/source/contnr/contentenumeration.cxx
@@ -244,7 +244,7 @@ namespace svt
pData->maSize = xRow->getLong( ROW_SIZE );
if ( bHasTargetURL &&
- INetURLObject( aContentURL ).GetProtocol() == INetProtocol::VND_SUN_STAR_HIER )
+ INetURLObject( aContentURL ).GetProtocol() == INetProtocol::VndSunStarHier )
{
::ucbhelper::Content aCnt( aTargetURL, xEnvironment, comphelper::getProcessComponentContext() );
try
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index f3cc0d580a48..8ef7f1867411 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -1607,7 +1607,7 @@ FileViewResult SvtFileView_Impl::GetFolderContent_Impl(
{
::osl::ClearableMutexGuard aGuard( maMutex );
INetURLObject aFolderObj( rFolder );
- DBG_ASSERT( aFolderObj.GetProtocol() != INetProtocol::NOT_VALID, "Invalid URL!" );
+ DBG_ASSERT( aFolderObj.GetProtocol() != INetProtocol::NotValid, "Invalid URL!" );
// prepare name translation
SetActualFolder( aFolderObj );
diff --git a/svtools/source/control/filectrl.cxx b/svtools/source/control/filectrl.cxx
index fba5ac31fdeb..5f938cb002b2 100644
--- a/svtools/source/control/filectrl.cxx
+++ b/svtools/source/control/filectrl.cxx
@@ -236,7 +236,7 @@ void FileControl::ImplBrowseFile( )
{
OUString aNewText = aPathSeq[0];
INetURLObject aObj( aNewText );
- if ( aObj.GetProtocol() == INetProtocol::FILE )
+ if ( aObj.GetProtocol() == INetProtocol::File )
aNewText = aObj.PathToFileName();
SetText( aNewText );
maEdit.GetModifyHdl().Call( &maEdit );
diff --git a/svtools/source/control/fileurlbox.cxx b/svtools/source/control/fileurlbox.cxx
index 3974b10bc6ed..68e046af6397 100644
--- a/svtools/source/control/fileurlbox.cxx
+++ b/svtools/source/control/fileurlbox.cxx
@@ -31,7 +31,7 @@ namespace svt
FileURLBox::FileURLBox( vcl::Window* _pParent, WinBits _nStyle )
- :SvtURLBox( _pParent, _nStyle, INetProtocol::FILE )
+ :SvtURLBox( _pParent, _nStyle, INetProtocol::File )
{
DisableHistory();
}
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index ef15f02e3b45..a6ffa9c5d33d 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -351,7 +351,7 @@ void SvtMatchContext_Impl::ReadFolder( const OUString& rURL,
sal_Int32 nMatchLen = aMatchName.getLength();
INetURLObject aFolderObj( rURL );
- DBG_ASSERT( aFolderObj.GetProtocol() != INetProtocol::NOT_VALID, "Invalid URL!" );
+ DBG_ASSERT( aFolderObj.GetProtocol() != INetProtocol::NotValid, "Invalid URL!" );
try
{
@@ -494,7 +494,7 @@ OUString SvtURLBox::ParseSmart( const OUString& _aText, const OUString& _aBaseUR
aTemp += aTextURL;
INetURLObject aTmp( aTemp );
- if ( !aTmp.HasError() && aTmp.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( !aTmp.HasError() && aTmp.GetProtocol() != INetProtocol::NotValid )
aMatch = aTmp.GetMainURL( INetURLObject::NO_DECODE );
}
else
@@ -537,7 +537,7 @@ OUString SvtURLBox::ParseSmart( const OUString& _aText, const OUString& _aBaseUR
// INetURLObject appends a final slash for the directories "." and "..", this is a bug!
// Remove it as a workaround
aTmp.removeFinalSlash();
- if ( !aTmp.HasError() && aTmp.GetProtocol() != INetProtocol::NOT_VALID )
+ if ( !aTmp.HasError() && aTmp.GetProtocol() != INetProtocol::NotValid )
aMatch = aTmp.GetMainURL( INetURLObject::NO_DECODE );
}
}
@@ -587,12 +587,12 @@ void SvtMatchContext_Impl::doExecute()
// if the user input is a valid URL, go on with it
// otherwise it could be parsed smart with a predefined smart protocol
// ( or if this is not set with the protocol of a predefined base URL )
- if( eProt == INetProtocol::NOT_VALID || eProt == eSmartProt || (eSmartProt == INetProtocol::NOT_VALID && eProt == eBaseProt) )
+ if( eProt == INetProtocol::NotValid || eProt == eSmartProt || (eSmartProt == INetProtocol::NotValid && eProt == eBaseProt) )
{
// not stopped yet ?
if( schedule() )
{
- if ( eProt == INetProtocol::NOT_VALID )
+ if ( eProt == INetProtocol::NotValid )
aMatch = SvtURLBox::ParseSmart( aText, aBaseURL, aWorkDir );
else
aMatch = aText;
@@ -607,7 +607,7 @@ void SvtMatchContext_Impl::doExecute()
// SvtMatchContext_Impl::Stop does not guarantee a speedy
// return:
if ( !aMainURL.isEmpty()
- && aURLObject.GetProtocol() == INetProtocol::FILE )
+ && aURLObject.GetProtocol() == INetProtocol::File )
{
// if text input is a directory, it must be part of the match list! Until then it is scanned
bool folder = false;
@@ -691,7 +691,7 @@ void SvtMatchContext_Impl::doExecute()
aURLObject.removeSegment();
// scan directory and insert all matches
- ReadFolder( aURLObject.GetMainURL( INetURLObject::NO_DECODE ), aMatch, eProt == INetProtocol::NOT_VALID );
+ ReadFolder( aURLObject.GetMainURL( INetURLObject::NO_DECODE ), aMatch, eProt == INetProtocol::NotValid );
}
}
}
@@ -706,7 +706,7 @@ void SvtMatchContext_Impl::doExecute()
INetURLObject aCurObj;
OUString aEmpty, aCurString, aCurMainURL;
INetURLObject aObj;
- aObj.SetSmartProtocol( eSmartProt == INetProtocol::NOT_VALID ? INetProtocol::HTTP : eSmartProt );
+ aObj.SetSmartProtocol( eSmartProt == INetProtocol::NotValid ? INetProtocol::Http : eSmartProt );
for( ;; )
{
for(std::vector<OUString>::iterator i = aPickList.begin(); schedule() && i != aPickList.end(); ++i)
@@ -715,19 +715,19 @@ void SvtMatchContext_Impl::doExecute()
aCurObj.SetSmartURL( aCurObj.GetURLNoPass());
aCurMainURL = aCurObj.GetMainURL( INetURLObject::NO_DECODE );
- if( eProt != INetProtocol::NOT_VALID && aCurObj.GetProtocol() != eProt )
+ if( eProt != INetProtocol::NotValid && aCurObj.GetProtocol() != eProt )
continue;
- if( eSmartProt != INetProtocol::NOT_VALID && aCurObj.GetProtocol() != eSmartProt )
+ if( eSmartProt != INetProtocol::NotValid && aCurObj.GetProtocol() != eSmartProt )
continue;
switch( aCurObj.GetProtocol() )
{
- case INetProtocol::HTTP:
- case INetProtocol::HTTPS:
- case INetProtocol::FTP:
+ case INetProtocol::Http:
+ case INetProtocol::Https:
+ case INetProtocol::Ftp:
{
- if( eProt == INetProtocol::NOT_VALID && !bFull )
+ if( eProt == INetProtocol::NotValid && !bFull )
{
aObj.SetSmartURL( aText );
if( aObj.GetURLPath().getLength() > 1 )
@@ -735,7 +735,7 @@ void SvtMatchContext_Impl::doExecute()
}
aCurString = aCurMainURL;
- if( eProt == INetProtocol::NOT_VALID )
+ if( eProt == INetProtocol::NotValid )
{
// try if text matches the scheme
OUString aScheme( INetURLObject::GetScheme( aCurObj.GetProtocol() ) );
@@ -771,7 +771,7 @@ void SvtMatchContext_Impl::doExecute()
}
OUString aURL( aMatch );
- if( eProt == INetProtocol::NOT_VALID )
+ if( eProt == INetProtocol::NotValid )
aMatch = aMatch.copy( INetURLObject::GetScheme( aCurObj.GetProtocol() ).getLength() );
if( aText.getLength() < aMatch.getLength() )
@@ -868,7 +868,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvtURLBox(vcl::Window
{
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP|
WB_DROPDOWN|WB_AUTOSIZE|WB_AUTOHSCROLL;
- SvtURLBox* pListBox = new SvtURLBox(pParent, nWinBits, INetProtocol::NOT_VALID, false);
+ SvtURLBox* pListBox = new SvtURLBox(pParent, nWinBits, INetProtocol::NotValid, false);
pListBox->EnableAutoSize(true);
return pListBox;
}
@@ -966,7 +966,7 @@ void SvtURLBox::UpdatePicklistForSmartProtocol_Impl()
seqPropertySet[nProperty].Value >>= sURL;
aCurObj.SetURL( sURL );
- if ( !sURL.isEmpty() && ( eSmartProtocol != INetProtocol::NOT_VALID ) )
+ if ( !sURL.isEmpty() && ( eSmartProtocol != INetProtocol::NotValid ) )
{
if( aCurObj.GetProtocol() != eSmartProtocol )
break;
@@ -1209,7 +1209,7 @@ OUString SvtURLBox::GetURL()
{
// no autocompletion for wildcards
INetURLObject aTempObj;
- if ( eSmartProtocol != INetProtocol::NOT_VALID )
+ if ( eSmartProtocol != INetProtocol::NotValid )
aTempObj.SetSmartProtocol( eSmartProtocol );
if ( aTempObj.SetSmartURL( aText ) )
return aTempObj.GetMainURL( INetURLObject::NO_DECODE );
@@ -1217,7 +1217,7 @@ OUString SvtURLBox::GetURL()
return aText;
}
- if ( aObj.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aObj.GetProtocol() == INetProtocol::NotValid )
{
OUString aName = ParseSmart( aText, aBaseURL, SvtPathOptions().GetWorkPath() );
aObj.SetURL(aName);
diff --git a/svtools/source/control/urlcontrol.cxx b/svtools/source/control/urlcontrol.cxx
index a21e835e2caa..8f74b9c0e960 100644
--- a/svtools/source/control/urlcontrol.cxx
+++ b/svtools/source/control/urlcontrol.cxx
@@ -27,7 +27,7 @@ namespace svt
{
//= OFileURLControl
OFileURLControl::OFileURLControl(vcl::Window* _pParent, WinBits nStyle)
- : SvtURLBox(_pParent, nStyle, INetProtocol::FILE)
+ : SvtURLBox(_pParent, nStyle, INetProtocol::File)
{
DisableHistory();
}
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx
index 263a533903f9..f7aebdf36b40 100644
--- a/svtools/source/dialogs/ServerDetailsControls.cxx
+++ b/svtools/source/dialogs/ServerDetailsControls.cxx
@@ -225,7 +225,7 @@ INetURLObject SmbDetailsContainer::getUrl( )
bool SmbDetailsContainer::setUrl( const INetURLObject& rUrl )
{
- bool bSuccess = rUrl.GetProtocol() == INetProtocol::SMB;
+ bool bSuccess = rUrl.GetProtocol() == INetProtocol::Smb;
if ( bSuccess )
{
@@ -324,7 +324,7 @@ INetURLObject CmisDetailsContainer::getUrl( )
bool CmisDetailsContainer::setUrl( const INetURLObject& rUrl )
{
- bool bSuccess = rUrl.GetProtocol() == INetProtocol::CMIS;
+ bool bSuccess = rUrl.GetProtocol() == INetProtocol::Cmis;
if ( bSuccess )
{
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx
index 9d0729160d9b..419b2b9efcc3 100644
--- a/svtools/source/dialogs/addresstemplate.cxx
+++ b/svtools/source/dialogs/addresstemplate.cxx
@@ -707,7 +707,7 @@ void AssignmentPersistentData::ImplCommit()
{
OUString sName = m_pImpl->pConfigData->getDatasourceName();
INetURLObject aURL( sName );
- if( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() != INetProtocol::NotValid )
{
OFileNotation aFileNotation( aURL.GetMainURL( INetURLObject::NO_DECODE ) );
sName = aFileNotation.get(OFileNotation::N_SYSTEM);
@@ -828,7 +828,7 @@ void AssignmentPersistentData::ImplCommit()
// get the data source the user has chosen and let it build a connection
INetURLObject aURL( sSelectedDS );
- if ( aURL.GetProtocol() != INetProtocol::NOT_VALID || m_xDatabaseContext->hasByName(sSelectedDS) )
+ if ( aURL.GetProtocol() != INetProtocol::NotValid || m_xDatabaseContext->hasByName(sSelectedDS) )
m_xDatabaseContext->getByName( sSelectedDS ) >>= xDS;
}
else
@@ -1198,7 +1198,7 @@ void AssignmentPersistentData::ImplCommit()
xProp->getPropertyValue("DataSourceName") >>= sName;
INetURLObject aURL( sName );
- if( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() != INetProtocol::NotValid )
{
OFileNotation aFileNotation( aURL.GetMainURL( INetURLObject::NO_DECODE ) );
sName = aFileNotation.get(OFileNotation::N_SYSTEM);
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx
index 1e1e327d97c2..0cf60364ca55 100644
--- a/svtools/source/misc/imagemgr.cxx
+++ b/svtools/source/misc/imagemgr.cxx
@@ -356,7 +356,7 @@ static sal_uInt16 GetImageId_Impl( const INetURLObject& rObject, bool bDetectFol
OUString aExt, sURL = rObject.GetMainURL( INetURLObject::NO_DECODE );
sal_uInt16 nImage = IMG_FILE;
- if ( rObject.GetProtocol() == INetProtocol::PRIV_SOFFICE )
+ if ( rObject.GetProtocol() == INetProtocol::PrivSoffice )
{
OUString aURLPath = sURL.copy( URL_PREFIX_PRIV_SOFFICE_LEN );
OUString aType = aURLPath.getToken( 0, '/' );
@@ -534,7 +534,7 @@ OUString SvFileInformationManager::GetDescription_Impl( const INetURLObject& rOb
{
if ( !bDetected )
{
- if ( rObject.GetProtocol() == INetProtocol::PRIV_SOFFICE )
+ if ( rObject.GetProtocol() == INetProtocol::PrivSoffice )
{
OUString aURLPath = sURL.copy( URL_PREFIX_PRIV_SOFFICE_LEN );
OUString aType = aURLPath.getToken( 0, '/' );
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index 0a9a867947e1..399a31562760 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -163,7 +163,7 @@ namespace svt
TemplateContent::TemplateContent( const INetURLObject& _rURL )
:m_aURL( _rURL )
{
- DBG_ASSERT( INetProtocol::NOT_VALID != m_aURL.GetProtocol(), "TemplateContent::TemplateContent: invalid URL!" );
+ DBG_ASSERT( INetProtocol::NotValid != m_aURL.GetProtocol(), "TemplateContent::TemplateContent: invalid URL!" );
m_sLocalName = m_aURL.getName();
implResetDate();
}
@@ -562,9 +562,9 @@ namespace svt
OUString TemplateFolderCacheImpl::implParseSmart( const OUString& _rPath )
{
INetURLObject aParser;
- aParser.SetSmartProtocol( INetProtocol::FILE );
+ aParser.SetSmartProtocol( INetProtocol::File );
aParser.SetURL( _rPath, INetURLObject::WAS_ENCODED );
- if ( INetProtocol::NOT_VALID == aParser.GetProtocol() )
+ if ( INetProtocol::NotValid == aParser.GetProtocol() )
{
OUString sURL;
LocalFileHelper::ConvertPhysicalNameToURL( _rPath, sURL );
@@ -752,7 +752,7 @@ namespace svt
// get the storage directory
OUString sStorageURL = implParseSmart( SvtPathOptions().GetStoragePath() );
INetURLObject aStorageURL( sStorageURL );
- if ( INetProtocol::NOT_VALID == aStorageURL.GetProtocol() )
+ if ( INetProtocol::NotValid == aStorageURL.GetProtocol() )
{
OSL_FAIL( "TemplateFolderCacheImpl::openCacheStream: invalid storage path!" );
return false;
diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx
index 4e078fa71772..c9d4a8f7d8e3 100644
--- a/svtools/source/uno/wizard/unowizard.cxx
+++ b/svtools/source/uno/wizard/unowizard.cxx
@@ -248,7 +248,7 @@ namespace {
static OString lcl_getHelpId( const OUString& _rHelpURL )
{
INetURLObject aHID( _rHelpURL );
- if ( aHID.GetProtocol() == INetProtocol::HID )
+ if ( aHID.GetProtocol() == INetProtocol::Hid )
return OUStringToOString( aHID.GetURLPath(), RTL_TEXTENCODING_UTF8 );
else
return OUStringToOString( _rHelpURL, RTL_TEXTENCODING_UTF8 );
@@ -261,7 +261,7 @@ namespace {
OUString aTmp(
OStringToOUString( sHelpId, RTL_TEXTENCODING_UTF8 ) );
INetURLObject aHID( aTmp );
- if ( aHID.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aHID.GetProtocol() == INetProtocol::NotValid )
aBuffer.appendAscii( INET_HID_SCHEME );
aBuffer.append( aTmp.getStr() );
return aBuffer.makeStringAndClear();
diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx
index ef6a48f6e21e..b0a0653429d0 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -1318,7 +1318,7 @@ void BrokenRecoveryDialog::impl_askForSavePath()
css::uno::Reference< css::ui::dialogs::XFolderPicker2 > xFolderPicker =
css::ui::dialogs::FolderPicker::create( m_pCore->getComponentContext() );
- INetURLObject aURL(m_sSavePath, INetProtocol::FILE);
+ INetURLObject aURL(m_sSavePath, INetProtocol::File);
xFolderPicker->setDisplayDirectory(aURL.GetMainURL(INetURLObject::NO_DECODE));
short nRet = xFolderPicker->execute();
if (nRet == css::ui::dialogs::ExecutableDialogResults::OK)
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx
index ad1ba121a26b..741379b07669 100644
--- a/svx/source/dialog/imapdlg.cxx
+++ b/svx/source/dialog/imapdlg.cxx
@@ -449,7 +449,7 @@ void SvxIMapDlg::DoOpen()
if( aDlg.Execute() == ERRCODE_NONE )
{
INetURLObject aURL( aDlg.GetPath() );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
boost::scoped_ptr<SvStream> pIStm(::utl::UcbStreamHelper::CreateStream( aURL.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::READ ));
if( pIStm )
@@ -516,7 +516,7 @@ bool SvxIMapDlg::DoSave()
INetURLObject aURL( aDlg.GetPath() );
- if( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() == INetProtocol::NotValid )
{
OSL_FAIL( "invalid URL" );
}
diff --git a/svx/source/dialog/imapwnd.cxx b/svx/source/dialog/imapwnd.cxx
index d0ee9386fa02..536750d1b763 100644
--- a/svx/source/dialog/imapwnd.cxx
+++ b/svx/source/dialog/imapwnd.cxx
@@ -685,8 +685,8 @@ void IMapWindow::DoPropertyDialog()
if ( !aURLText.isEmpty() )
{
- INetURLObject aObj( aURLText, INetProtocol::FILE );
- DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NOT_VALID, "Invalid URL" );
+ INetURLObject aObj( aURLText, INetProtocol::File );
+ DBG_ASSERT( aObj.GetProtocol() != INetProtocol::NotValid, "Invalid URL" );
pIMapObj->SetURL( aObj.GetMainURL( INetURLObject::NO_DECODE ) );
}
else
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx
index 1c7a0c0d95df..7606ee3a6dd8 100644
--- a/svx/source/dialog/langbox.cxx
+++ b/svx/source/dialog/langbox.cxx
@@ -44,7 +44,7 @@ static_assert((LISTBOX_APPEND == COMBOBOX_APPEND) && (LISTBOX_ENTRY_NOTFOUND ==
OUString GetDicInfoStr( const OUString& rName, const sal_uInt16 nLang, bool bNeg )
{
INetURLObject aURLObj;
- aURLObj.SetSmartProtocol( INetProtocol::FILE );
+ aURLObj.SetSmartProtocol( INetProtocol::File );
aURLObj.SetSmartURL( rName, INetURLObject::ENCODE_ALL );
OUString aTmp( aURLObj.GetBase() );
aTmp += " ";
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index 7047887d99b9..f7a258d5b42f 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -1897,7 +1897,7 @@ void FmXGridPeer::setProperty( const OUString& PropertyName, const Any& Value) t
OUString sHelpURL;
OSL_VERIFY( Value >>= sHelpURL );
INetURLObject aHID( sHelpURL );
- if ( aHID.GetProtocol() == INetProtocol::HID )
+ if ( aHID.GetProtocol() == INetProtocol::Hid )
sHelpURL = aHID.GetURLPath();
pGrid->SetHelpId( OUStringToOString( sHelpURL, RTL_TEXTENCODING_UTF8 ) );
}
diff --git a/svx/source/form/dataaccessdescriptor.cxx b/svx/source/form/dataaccessdescriptor.cxx
index 1f1d93312ea3..4cb371d81b86 100644
--- a/svx/source/form/dataaccessdescriptor.cxx
+++ b/svx/source/form/dataaccessdescriptor.cxx
@@ -392,7 +392,7 @@ namespace svx
if ( !_sDataSourceNameOrLocation.isEmpty() )
{
INetURLObject aURL(_sDataSourceNameOrLocation);
- (*this)[ (( aURL.GetProtocol() == INetProtocol::FILE ) ? daDatabaseLocation : daDataSource)] <<= _sDataSourceNameOrLocation;
+ (*this)[ (( aURL.GetProtocol() == INetProtocol::File ) ? daDatabaseLocation : daDataSource)] <<= _sDataSourceNameOrLocation;
}
else
(*this)[ daDataSource ] <<= OUString();
diff --git a/svx/source/form/databaselocationinput.cxx b/svx/source/form/databaselocationinput.cxx
index ae712941f736..8e32e9ce7cb4 100644
--- a/svx/source/form/databaselocationinput.cxx
+++ b/svx/source/form/databaselocationinput.cxx
@@ -243,7 +243,7 @@ namespace svx
if ( aFileDlg.Execute() == ERRCODE_NONE )
{
INetURLObject aURL( aFileDlg.GetPath() );
- if( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() != INetProtocol::NotValid )
{
::svt::OFileNotation aFileNotation( aURL.GetMainURL( INetURLObject::NO_DECODE ) );
m_rLocationInput.SetText( aFileNotation.get( ::svt::OFileNotation::N_SYSTEM ) );
diff --git a/svx/source/form/fmpage.cxx b/svx/source/form/fmpage.cxx
index 3117930c26d3..b0c080aaca2b 100644
--- a/svx/source/form/fmpage.cxx
+++ b/svx/source/form/fmpage.cxx
@@ -191,9 +191,9 @@ bool FmFormPage::RequestHelp( vcl::Window* pWindow, SdrView* pView,
// testen, ob es ein Protokoll-Typ ist, den ich anzeigen will
INetProtocol aProtocol = aUrl.GetProtocol();
static const INetProtocol s_aQuickHelpSupported[] =
- { INetProtocol::FTP, INetProtocol::HTTP, INetProtocol::FILE, INetProtocol::MAILTO, INetProtocol::NEWS,
- INetProtocol::HTTPS, INetProtocol::JAVASCRIPT, INetProtocol::IMAP, INetProtocol::POP3,
- INetProtocol::VIM, INetProtocol::LDAP
+ { INetProtocol::Ftp, INetProtocol::Http, INetProtocol::File, INetProtocol::Mailto, INetProtocol::News,
+ INetProtocol::Https, INetProtocol::Javascript, INetProtocol::Imap, INetProtocol::Pop3,
+ INetProtocol::Vim, INetProtocol::Ldap
};
for (sal_uInt16 i=0; i<sizeof(s_aQuickHelpSupported)/sizeof(s_aQuickHelpSupported[0]); ++i)
if (s_aQuickHelpSupported[i] == aProtocol)
diff --git a/svx/source/gallery2/galbrws1.cxx b/svx/source/gallery2/galbrws1.cxx
index 997da1a9a7dc..f6af4e4fb090 100644
--- a/svx/source/gallery2/galbrws1.cxx
+++ b/svx/source/gallery2/galbrws1.cxx
@@ -137,7 +137,7 @@ GalleryBrowser1::GalleryBrowser1(
maNewTheme.SetClickHdl( LINK( this, GalleryBrowser1, ClickNewThemeHdl ) );
// disable creation of new themes if a writable directory is not available
- if( mpGallery->GetUserURL().GetProtocol() == INetProtocol::NOT_VALID )
+ if( mpGallery->GetUserURL().GetProtocol() == INetProtocol::NotValid )
maNewTheme.Disable();
mpThemes->SetHelpId( HID_GALLERY_THEMELIST );
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index 16e6e948582c..e23ab737acf3 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -239,7 +239,7 @@ void GalleryThemePopup::ExecutePopup( vcl::Window *pWindow, const ::Point &aPos
INetURLObject aURL;
const_cast< GalleryTheme* >( mpTheme )->GetURL( mnObjectPos, aURL );
- const bool bValidURL = ( aURL.GetProtocol() != INetProtocol::NOT_VALID );
+ const bool bValidURL = ( aURL.GetProtocol() != INetProtocol::NotValid );
maPopupMenu.EnableItem( MN_ADD, bValidURL && SGA_OBJ_SOUND != eObjKind );
@@ -668,7 +668,7 @@ bool GalleryBrowser2::KeyInput( const KeyEvent& rKEvt, vcl::Window* pWindow )
const_cast< GalleryTheme* >( mpCurTheme )->GetURL( nItemId - 1, aURL );
- const bool bValidURL = ( aURL.GetProtocol() != INetProtocol::NOT_VALID );
+ const bool bValidURL = ( aURL.GetProtocol() != INetProtocol::NotValid );
bool bPreview = bValidURL;
bool bDelete = false;
bool bTitle = false;
diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx
index a8d6bd431430..605f933fc50a 100644
--- a/svx/source/gallery2/galctrl.cxx
+++ b/svx/source/gallery2/galctrl.cxx
@@ -236,7 +236,7 @@ void GalleryPreview::StartDrag( sal_Int8, const Point& )
void GalleryPreview::PreviewMedia( const INetURLObject& rURL )
{
- if( rURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if( rURL.GetProtocol() != INetProtocol::NotValid )
{
::avmedia::MediaFloater* pFloater = avmedia::getMediaFloater();
diff --git a/svx/source/gallery2/galexpl.cxx b/svx/source/gallery2/galexpl.cxx
index 5db382344529..7ff42eeca8c6 100644
--- a/svx/source/gallery2/galexpl.cxx
+++ b/svx/source/gallery2/galexpl.cxx
@@ -121,7 +121,7 @@ bool GalleryExplorer::InsertURL( const OUString& rThemeName, const OUString& rUR
if( pTheme )
{
INetURLObject aURL( rURL );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
bRet = pTheme->InsertURL( aURL );
pGal->ReleaseTheme( pTheme, aListener );
}
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx
index 3328b46677d5..55801bfebacd 100644
--- a/svx/source/gallery2/gallery1.cxx
+++ b/svx/source/gallery2/gallery1.cxx
@@ -67,7 +67,7 @@ GalleryThemeEntry::GalleryThemeEntry( bool bCreateUniqueURL,
bThemeNameFromResource ( _bThemeNameFromResource )
{
INetURLObject aURL( rBaseURL );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if (bCreateUniqueURL)
{
@@ -226,8 +226,8 @@ void Gallery::ImplLoad( const OUString& rMultiPath )
else
aRelURL = INetURLObject( rMultiPath );
- DBG_ASSERT( aUserURL.GetProtocol() != INetProtocol::NOT_VALID, "no writable Gallery user directory available" );
- DBG_ASSERT( aRelURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aUserURL.GetProtocol() != INetProtocol::NotValid, "no writable Gallery user directory available" );
+ DBG_ASSERT( aRelURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
}
void Gallery::ImplLoadSubDirs( const INetURLObject& rBaseURL, bool& rbDirIsReadOnly )
@@ -245,7 +245,7 @@ void Gallery::ImplLoadSubDirs( const INetURLObject& rBaseURL, bool& rbDirIsReadO
uno::Reference< sdbc::XResultSet > xResultSet( aCnt.createCursor( aProps, ::ucbhelper::INCLUDE_DOCUMENTS_ONLY ) );
#if defined(MACOSX) && HAVE_FEATURE_READONLY_INSTALLSET
- if( rBaseURL.GetProtocol() == INetProtocol::FILE )
+ if( rBaseURL.GetProtocol() == INetProtocol::File )
{
const char *appBundle = [[[NSBundle mainBundle] bundlePath] UTF8String];
OUString path = rBaseURL.GetURLPath();
@@ -509,7 +509,7 @@ bool Gallery::CreateTheme( const OUString& rThemeName )
{
bool bRet = false;
- if( !HasTheme( rThemeName ) && ( GetUserURL().GetProtocol() != INetProtocol::NOT_VALID ) )
+ if( !HasTheme( rThemeName ) && ( GetUserURL().GetProtocol() != INetProtocol::NotValid ) )
{
INetURLObject aURL( GetUserURL() );
aURL.Append( rThemeName );
@@ -616,7 +616,7 @@ GalleryTheme* Gallery::ImplGetCachedTheme(const GalleryThemeEntry* pThemeEntry)
{
INetURLObject aURL = pThemeEntry->GetThmURL();
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if( FileExists( aURL ) )
{
diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx
index 789bdaa8dcf6..41d86298d1f5 100644
--- a/svx/source/gallery2/galmisc.cxx
+++ b/svx/source/gallery2/galmisc.cxx
@@ -190,7 +190,7 @@ OUString GetReducedString( const INetURLObject& rURL, sal_Int32 nMaxLen )
aReduced = aReduced.getToken( comphelper::string::getTokenCount(aReduced, '/') - 1, '/' );
- if( INetProtocol::PRIV_SOFFICE != rURL.GetProtocol() )
+ if( INetProtocol::PrivSoffice != rURL.GetProtocol() )
{
sal_Unicode aDelimiter;
const OUString aPath( rURL.getFSysPath( INetURLObject::FSYS_DETECT, &aDelimiter ) );
@@ -226,7 +226,7 @@ OUString GetSvDrawStreamNameFromURL( const INetURLObject& rSvDrawObjURL )
{
OUString aRet;
- if( rSvDrawObjURL.GetProtocol() == INetProtocol::PRIV_SOFFICE &&
+ if( rSvDrawObjURL.GetProtocol() == INetProtocol::PrivSoffice &&
comphelper::string::getTokenCount(rSvDrawObjURL.GetMainURL( INetURLObject::NO_DECODE ), '/') == 3 )
{
aRet = rSvDrawObjURL.GetMainURL( INetURLObject::NO_DECODE ).getToken( 2, '/' );
@@ -239,7 +239,7 @@ bool FileExists( const INetURLObject& rURL )
{
bool bRet = false;
- if( rURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if( rURL.GetProtocol() != INetProtocol::NotValid )
{
try
{
@@ -585,7 +585,7 @@ void GalleryTransferable::StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceA
{
INetURLObject aURL;
- if( mpTheme->GetURL( mnObjectPos, aURL ) && ( aURL.GetProtocol() != INetProtocol::NOT_VALID ) )
+ if( mpTheme->GetURL( mnObjectPos, aURL ) && ( aURL.GetProtocol() != INetProtocol::NotValid ) )
{
mpTheme->SetDragging( true );
mpTheme->SetDragPos( mnObjectPos );
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index 1f6c7ec547b4..f037a0b9fc44 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -201,7 +201,7 @@ void GalleryTheme::ImplWrite()
aPathURL.removeSegment();
aPathURL.removeFinalSlash();
- DBG_ASSERT( aPathURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aPathURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
if( FileExists( aPathURL ) || CreateDir( aPathURL ) )
{
@@ -293,7 +293,7 @@ INetURLObject GalleryTheme::ImplCreateUniqueURL( SgaObjKind eObjKind, sal_uIntPt
if( SGA_OBJ_SVDRAW == eObjKind )
{
OUString aFileName( "gallery/svdraw/dd" );
- aNewURL = INetURLObject( aFileName += OUString::number( ++nNextNumber % 99999999 ), INetProtocol::PRIV_SOFFICE );
+ aNewURL = INetURLObject( aFileName += OUString::number( ++nNextNumber % 99999999 ), INetProtocol::PrivSoffice );
bExists = false;
@@ -614,8 +614,8 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg
INetURLObject aInURL( GetSdgURL() );
INetURLObject aTmpURL( aTmp.GetURL() );
- DBG_ASSERT( aInURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
- DBG_ASSERT( aTmpURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aInURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
+ DBG_ASSERT( aTmpURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
boost::scoped_ptr<SvStream> pIStm(::utl::UcbStreamHelper::CreateStream( aInURL.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::READ ));
boost::scoped_ptr<SvStream> pTmpStm(::utl::UcbStreamHelper::CreateStream( aTmpURL.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::WRITE | StreamMode::TRUNC ));
@@ -691,7 +691,7 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg
GalleryThemeEntry* GalleryTheme::CreateThemeEntry( const INetURLObject& rURL, bool bReadOnly )
{
- DBG_ASSERT( rURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( rURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
GalleryThemeEntry* pRet = NULL;
@@ -1211,7 +1211,7 @@ bool GalleryTheme::InsertTransferable( const uno::Reference< datatransfer::XTran
const OUString aFile( aFileList.GetFile( i ) );
INetURLObject aURL( aFile );
- if( aURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() == INetProtocol::NotValid )
{
OUString aLocalURL;
@@ -1219,7 +1219,7 @@ bool GalleryTheme::InsertTransferable( const uno::Reference< datatransfer::XTran
aURL = INetURLObject( aLocalURL );
}
- if( aURL.GetProtocol() != INetProtocol::NOT_VALID )
+ if( aURL.GetProtocol() != INetProtocol::NotValid )
bRet = InsertFileOrDirURL( aURL, nInsertPos );
}
}
@@ -1459,7 +1459,7 @@ SvStream& GalleryTheme::ReadData( SvStream& rIStm )
if( SGA_OBJ_SVDRAW == pObj->eObjKind )
{
OUString aDummyURL( "gallery/svdraw/" );
- pObj->aURL = INetURLObject( aDummyURL += aFileName, INetProtocol::PRIV_SOFFICE );
+ pObj->aURL = INetURLObject( aDummyURL += aFileName, INetProtocol::PrivSoffice );
}
else
{
@@ -1467,7 +1467,7 @@ SvStream& GalleryTheme::ReadData( SvStream& rIStm )
pObj->aURL = INetURLObject( aFileName );
- if( ( pObj->aURL.GetProtocol() == INetProtocol::NOT_VALID ) &&
+ if( ( pObj->aURL.GetProtocol() == INetProtocol::NotValid ) &&
::utl::LocalFileHelper::ConvertPhysicalNameToURL( aFileName, aLocalURL ) )
{
pObj->aURL = INetURLObject( aLocalURL );
diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx
index 64a83acc5947..7b807bdf8ff4 100644
--- a/svx/source/sidebar/nbdtmg.cxx
+++ b/svx/source/sidebar/nbdtmg.cxx
@@ -561,7 +561,7 @@ void GraphyicBulletsTypeMgr::Init()
{
OUString sGrfNm = aGrfNames[i];
INetURLObject aObj(sGrfNm);
- if(aObj.GetProtocol() == INetProtocol::FILE)
+ if(aObj.GetProtocol() == INetProtocol::File)
sGrfNm = aObj.PathToFileName();
GrfBulDataRelation* pEntry = new GrfBulDataRelation(eNBType::GRAPHICBULLETS);
diff --git a/svx/source/svdraw/svdotxln.cxx b/svx/source/svdraw/svdotxln.cxx
index a62c27d31891..27d97a259b85 100644
--- a/svx/source/svdraw/svdotxln.cxx
+++ b/svx/source/svdraw/svdotxln.cxx
@@ -171,7 +171,7 @@ bool SdrTextObj::ReloadLinkedText( bool bForceLoad)
try
{
INetURLObject aURL( pData->aFileName );
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
::ucbhelper::Content aCnt( aURL.GetMainURL( INetURLObject::NO_DECODE ), ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() );
::com::sun::star::uno::Any aAny( aCnt.getPropertyValue("DateModified") );
@@ -210,7 +210,7 @@ bool SdrTextObj::LoadText(const OUString& rFileName, const OUString& /*rFilterNa
INetURLObject aFileURL( rFileName );
bool bRet = false;
- if( aFileURL.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aFileURL.GetProtocol() == INetProtocol::NotValid )
{
OUString aFileURLStr;
@@ -220,7 +220,7 @@ bool SdrTextObj::LoadText(const OUString& rFileName, const OUString& /*rFilterNa
aFileURL.SetSmartURL( rFileName );
}
- DBG_ASSERT( aFileURL.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aFileURL.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
boost::scoped_ptr<SvStream> pIStm(::utl::UcbStreamHelper::CreateStream( aFileURL.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::READ ));
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index 4a5ab7cc561a..cc58203958b8 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -1059,7 +1059,7 @@ sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDes
else
{
INetURLObject aURLObject( aSettings.maURL.Complete );
- DBG_ASSERT( aURLObject.GetProtocol() != INetProtocol::NOT_VALID, "invalid URL" );
+ DBG_ASSERT( aURLObject.GetProtocol() != INetProtocol::NotValid, "invalid URL" );
nStatus = XOutBitmap::ExportGraphic( aGraphic, aURLObject, rFilter, nFilter, &aSettings.maFilterData );
}
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx
index b942a0d7057c..8b86a690a8f1 100644
--- a/svx/source/unodraw/unoshap2.cxx
+++ b/svx/source/unodraw/unoshap2.cxx
@@ -1495,7 +1495,7 @@ bool SvxGraphicObject::setPropertyValueImpl( const OUString& rName, const SfxIte
{
INetURLObject aURLObj( aURL );
- if( aURLObj.GetProtocol() == INetProtocol::NOT_VALID )
+ if( aURLObj.GetProtocol() == INetProtocol::NotValid )
{
OUString aValidURL;
@@ -1503,7 +1503,7 @@ bool SvxGraphicObject::setPropertyValueImpl( const OUString& rName, const SfxIte
aURLObj = INetURLObject( aValidURL );
}
- if( aURLObj.GetProtocol() != INetProtocol::NOT_VALID )
+ if( aURLObj.GetProtocol() != INetProtocol::NotValid )
{
GraphicFilter &rGrfFilter = GraphicFilter::GetGraphicFilter();
aFilterName = rGrfFilter.GetImportFormatName( rGrfFilter.GetImportFormatNumberForShortName( aURLObj.getExtension() ) );
diff --git a/svx/source/unogallery/unogaltheme.cxx b/svx/source/unogallery/unogaltheme.cxx
index 1d3b6fa76129..677056e1c9a1 100644
--- a/svx/source/unogallery/unogaltheme.cxx
+++ b/svx/source/unogallery/unogaltheme.cxx
@@ -228,7 +228,7 @@ void SAL_CALL GalleryTheme::update( )
nIndex = ::std::max( ::std::min( nIndex, getCount() ), sal_Int32( 0 ) );
- if( ( aURL.GetProtocol() != INetProtocol::NOT_VALID ) && mpTheme->InsertURL( aURL, nIndex ) )
+ if( ( aURL.GetProtocol() != INetProtocol::NotValid ) && mpTheme->InsertURL( aURL, nIndex ) )
{
const GalleryObject* pObj = mpTheme->ImplGetGalleryObject( aURL );
diff --git a/svx/source/xml/xmlxtexp.cxx b/svx/source/xml/xmlxtexp.cxx
index e308779f7331..7a582966b10e 100644
--- a/svx/source/xml/xmlxtexp.cxx
+++ b/svx/source/xml/xmlxtexp.cxx
@@ -218,7 +218,7 @@ bool SvxXMLXTableExportComponent::save(
sal_Int32 eCreate = embed::ElementModes::WRITE | embed::ElementModes::TRUNCATE;
INetURLObject aURLObj( rURL );
- bool bToStorage = aURLObj.GetProtocol() == INetProtocol::NOT_VALID; // a relative path
+ bool bToStorage = aURLObj.GetProtocol() == INetProtocol::NotValid; // a relative path
bool bSaveAsStorage = xTable->getElementType() == cppu::UnoType<OUString>::get();
diff --git a/svx/source/xml/xmlxtimp.cxx b/svx/source/xml/xmlxtimp.cxx
index e3239c3f9648..9d2e68b69349 100644
--- a/svx/source/xml/xmlxtimp.cxx
+++ b/svx/source/xml/xmlxtimp.cxx
@@ -375,7 +375,7 @@ bool SvxXMLXTableImport::load( const OUString &rPath, const OUString &rReferer,
SvXMLGraphicHelper* pGraphicHelper = 0;
INetURLObject aURLObj( rPath );
- bool bUseStorage = aURLObj.GetProtocol() == INetProtocol::NOT_VALID; // a relative path
+ bool bUseStorage = aURLObj.GetProtocol() == INetProtocol::NotValid; // a relative path
try
{
diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx
index 87dbb9f55dc3..1f39734d3dff 100644
--- a/svx/source/xoutdev/_xoutbmp.cxx
+++ b/svx/source/xoutdev/_xoutbmp.cxx
@@ -127,7 +127,7 @@ sal_uInt16 XOutBitmap::WriteGraphic( const Graphic& rGraphic, OUString& rFileNam
sal_uInt16 nErr = GRFILTER_FILTERERROR, nFilter = GRFILTER_FORMAT_NOTFOUND;
bool bTransparent = rGraphic.IsTransparent(), bAnimated = rGraphic.IsAnimated();
- DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NOT_VALID, "XOutBitmap::WriteGraphic(...): invalid URL" );
+ DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "XOutBitmap::WriteGraphic(...): invalid URL" );
// calculate correct file name
if( !( nFlags & XOUTBMP_DONT_EXPAND_FILENAME ) )
@@ -364,7 +364,7 @@ sal_uInt16 XOutBitmap::ExportGraphic( const Graphic& rGraphic, const INetURLObje
GraphicFilter& rFilter, const sal_uInt16 nFormat,
const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >* pFilterData )
{
- DBG_ASSERT( rURL.GetProtocol() != INetProtocol::NOT_VALID, "XOutBitmap::ExportGraphic(...): invalid URL" );
+ DBG_ASSERT( rURL.GetProtocol() != INetProtocol::NotValid, "XOutBitmap::ExportGraphic(...): invalid URL" );
SfxMedium aMedium( rURL.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::WRITE | StreamMode::SHARE_DENYNONE | StreamMode::TRUNC );
SvStream* pOStm = aMedium.GetOutStream();
diff --git a/svx/source/xoutdev/xtable.cxx b/svx/source/xoutdev/xtable.cxx
index bae363fb044b..5e35be97a2c7 100644
--- a/svx/source/xoutdev/xtable.cxx
+++ b/svx/source/xoutdev/xtable.cxx
@@ -227,7 +227,7 @@ bool XPropertyList::Load()
INetURLObject aURL( maPath );
- if( INetProtocol::NOT_VALID == aURL.GetProtocol() )
+ if( INetProtocol::NotValid == aURL.GetProtocol() )
{
DBG_ASSERT( maPath.isEmpty(), "invalid URL" );
return false;
@@ -258,7 +258,7 @@ bool XPropertyList::Save()
{
INetURLObject aURL( maPath );
- if( INetProtocol::NOT_VALID == aURL.GetProtocol() )
+ if( INetProtocol::NotValid == aURL.GetProtocol() )
{
DBG_ASSERT( maPath.isEmpty(), "invalid URL" );
return false;
diff --git a/sw/source/core/doc/DocumentLinksAdministrationManager.cxx b/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
index 45733f588737..b542395e5463 100644
--- a/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
+++ b/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
@@ -77,8 +77,8 @@ namespace
rLnkMgr.GetDisplayNames( xLink, 0, &sFName, 0, 0 );
INetURLObject aURL( sFName );
- if( INetProtocol::FILE == aURL.GetProtocol() ||
- INetProtocol::CID == aURL.GetProtocol() )
+ if( INetProtocol::File == aURL.GetProtocol() ||
+ INetProtocol::Cid == aURL.GetProtocol() )
return pLnk;
}
}
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index 1170ef387d63..c00f1c94fe06 100644
--- a/sw/source/core/doc/acmplwrd.cxx
+++ b/sw/source/core/doc/acmplwrd.cxx
@@ -242,7 +242,7 @@ bool SwAutoCompleteWord::InsertWord( const OUString& rWord, SwDoc& rDoc )
if( pMedium )
{
const INetURLObject& rURL = pMedium->GetURLObject();
- if ( rURL.GetProtocol() == INetProtocol::VND_SUN_STAR_HELP )
+ if ( rURL.GetProtocol() == INetProtocol::VndSunStarHelp )
return false;
}
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index efae9eed545e..9d18a0022de2 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -422,7 +422,7 @@ OUString SwFileNameFieldType::Expand(sal_uLong nFmt) const
{
case FF_PATH:
{
- if( INetProtocol::FILE == rURLObj.GetProtocol() )
+ if( INetProtocol::File == rURLObj.GetProtocol() )
{
INetURLObject aTemp(rURLObj);
aTemp.removeSegment();
@@ -452,7 +452,7 @@ OUString SwFileNameFieldType::Expand(sal_uLong nFmt) const
break;
default:
- if( INetProtocol::FILE == rURLObj.GetProtocol() )
+ if( INetProtocol::File == rURLObj.GetProtocol() )
aRet = rURLObj.GetFull();
else
aRet = URIHelper::removePassword(
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 2d38b75cc2a9..a77c1d118aaf 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -127,7 +127,7 @@ SwGrfNode::SwGrfNode( const SwNodeIndex & rWhere,
if( IsLinkedFile() )
{
INetURLObject aUrl( rGrfName );
- if( INetProtocol::FILE == aUrl.GetProtocol() &&
+ if( INetProtocol::File == aUrl.GetProtocol() &&
FStatHelper::IsDocument( aUrl.GetMainURL( INetURLObject::NO_DECODE ) ))
{
// file exists, so create connection without an update
diff --git a/sw/source/core/swg/SwXMLTextBlocks.cxx b/sw/source/core/swg/SwXMLTextBlocks.cxx
index 75186b277a18..f7a094a766f9 100644
--- a/sw/source/core/swg/SwXMLTextBlocks.cxx
+++ b/sw/source/core/swg/SwXMLTextBlocks.cxx
@@ -523,7 +523,7 @@ bool SwXMLTextBlocks::IsFileUCBStorage( const OUString & rFileName)
{
OUString aName( rFileName );
INetURLObject aObj( aName );
- if ( aObj.GetProtocol() == INetProtocol::NOT_VALID )
+ if ( aObj.GetProtocol() == INetProtocol::NotValid )
{
OUString aURL;
::utl::LocalFileHelper::ConvertPhysicalNameToURL( aName, aURL );
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index 3b37e31c82a7..e76e0b6068a0 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -886,7 +886,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
// a non-empty string.
INetURLObject aObj;
aObj.SetURL( aDataSource );
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
if (bIsURL && rPropertyName == UNO_NAME_DATA_BASE_URL)
pStr = &aDataSource; // DataBaseURL
else if (!bIsURL && rPropertyName == UNO_NAME_DATA_BASE_NAME)
@@ -925,7 +925,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
// only one of these properties returns a non-empty string.
INetURLObject aObj;
aObj.SetURL(m_pImpl->m_sParam5); // SetSmartURL
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
if (bIsURL && rPropertyName == UNO_NAME_DATA_BASE_URL)
aRet <<= m_pImpl->m_sParam5; // DataBaseURL
else if ( rPropertyName == UNO_NAME_DATA_BASE_NAME)
diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx
index af2f911f987b..c71a2bcb9f3f 100644
--- a/sw/source/filter/basflt/iodetect.cxx
+++ b/sw/source/filter/basflt/iodetect.cxx
@@ -158,7 +158,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName)
// package storage or OLEStorage based format
SotStorageRef xStg;
INetURLObject aObj;
- aObj.SetSmartProtocol( INetProtocol::FILE );
+ aObj.SetSmartProtocol( INetProtocol::File );
aObj.SetSmartURL( rFileName );
SfxMedium aMedium(aObj.GetMainURL(INetURLObject::NO_DECODE), STREAM_STD_READ);
diff --git a/sw/source/filter/html/htmlgrin.cxx b/sw/source/filter/html/htmlgrin.cxx
index fb5b960ab38c..acb05069bc36 100644
--- a/sw/source/filter/html/htmlgrin.cxx
+++ b/sw/source/filter/html/htmlgrin.cxx
@@ -466,7 +466,7 @@ IMAGE_SETEVENT:
Graphic aGraphic;
INetURLObject aGraphicURL( sGrfNm );
- if( aGraphicURL.GetProtocol() == INetProtocol::DATA )
+ if( aGraphicURL.GetProtocol() == INetProtocol::Data )
{
std::unique_ptr<SvMemoryStream> const pStream(aGraphicURL.getData());
if (pStream)
diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx
index 40977d4dbe6e..880c3e3b953c 100644
--- a/sw/source/filter/ww8/wrtw8esh.cxx
+++ b/sw/source/filter/ww8/wrtw8esh.cxx
@@ -219,7 +219,7 @@ void SwBasicEscherEx::WriteHyperlinkWithinFly( SvMemoryStream& rStrm, const SwFm
}
// file link or URL
- if (eProtocol == INetProtocol::FILE || (eProtocol == INetProtocol::NOT_VALID && rUrl[0] != '#'))
+ if (eProtocol == INetProtocol::File || (eProtocol == INetProtocol::NotValid && rUrl[0] != '#'))
{
sal_uInt16 nLevel;
bool bRel;
@@ -242,7 +242,7 @@ void SwBasicEscherEx::WriteHyperlinkWithinFly( SvMemoryStream& rStrm, const SwFm
tmpStrm.WriteUInt16( 0x0003 );
SwWW8Writer::WriteString16(tmpStrm, aFileName, false);
}
- else if( eProtocol != INetProtocol::NOT_VALID )
+ else if( eProtocol != INetProtocol::NotValid )
{
tmpStrm.Write( maGuidUrlMoniker,sizeof(maGuidUrlMoniker) );
SwWW8Writer::WriteLong(tmpStrm, 2*(rUrl.getLength()+1));
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx
index ed3f07edf3e0..f477ff4613e8 100644
--- a/sw/source/filter/ww8/wrtw8nds.cxx
+++ b/sw/source/filter/ww8/wrtw8nds.cxx
@@ -877,7 +877,7 @@ bool AttributeOutputBase::AnalyzeURL( const OUString& rUrl, const OUString& /*rT
}
else
{
- INetURLObject aURL( rUrl, INetProtocol::NOT_VALID );
+ INetURLObject aURL( rUrl, INetProtocol::NotValid );
sURL = aURL.GetURLNoMark( INetURLObject::DECODE_UNAMBIGUOUS );
sMark = aURL.GetMark( INetURLObject::DECODE_UNAMBIGUOUS );
}
@@ -993,7 +993,7 @@ bool WW8AttributeOutput::StartURL( const OUString &rUrl, const OUString &rTarget
SwWW8Writer::WriteLong( *m_rWW8Export.pDataStrm, nFlag );
INetProtocol eProto = aURL.GetProtocol();
- if ( eProto == INetProtocol::FILE || eProto == INetProtocol::SMB )
+ if ( eProto == INetProtocol::File || eProto == INetProtocol::Smb )
{
// version 1 (for a document)
@@ -1011,7 +1011,7 @@ bool WW8AttributeOutput::StartURL( const OUString &rUrl, const OUString &rTarget
// save the links to files as relative
sURL = URIHelper::simpleNormalizedMakeRelative( m_rWW8Export.GetWriter().GetBaseURL(), sURL );
- if ( eProto == INetProtocol::FILE && sURL.startsWith( "/" ) )
+ if ( eProto == INetProtocol::File && sURL.startsWith( "/" ) )
sURL = aURL.PathToFileName();
// special case for the absolute windows names
@@ -1028,7 +1028,7 @@ bool WW8AttributeOutput::StartURL( const OUString &rUrl, const OUString &rTarget
// n#261623 convert smb notation to '\\'
const char pSmb[] = "smb://";
- if ( eProto == INetProtocol::SMB && sURL.startsWith( pSmb ) )
+ if ( eProto == INetProtocol::Smb && sURL.startsWith( pSmb ) )
{
sURL = sURL.copy( sizeof(pSmb)-3 ).replaceAll( "/", "\\" );
}
@@ -1044,7 +1044,7 @@ bool WW8AttributeOutput::StartURL( const OUString &rUrl, const OUString &rTarget
SwWW8Writer::WriteShort( *m_rWW8Export.pDataStrm, 3 );
SwWW8Writer::WriteString16( *m_rWW8Export.pDataStrm, sURL, false );
}
- else if ( eProto != INetProtocol::NOT_VALID )
+ else if ( eProto != INetProtocol::NotValid )
{
// version 2 (simple url)
// an write some data to the data stream, but dont ask
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 615b2af56e2e..7f92c2f57936 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -4743,7 +4743,7 @@ static void lcl_createTemplateToProjectEntry( const uno::Reference< container::X
{
INetURLObject aObj;
aObj.SetURL( sTemplatePathOrURL );
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
OUString aURL;
if ( bIsURL )
aURL = sTemplatePathOrURL;
@@ -4828,7 +4828,7 @@ bool SwWW8ImplReader::ReadGlobalTemplateSettings( const OUString& sCreatedFrom,
{
INetURLObject aObj;
aObj.SetURL( sGlobalTemplates[ i ] );
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
OUString aURL;
if ( bIsURL )
aURL = sGlobalTemplates[ i ];
diff --git a/sw/source/ui/envelp/mailmrge.cxx b/sw/source/ui/envelp/mailmrge.cxx
index 592f643645ad..f2ed24dbff59 100644
--- a/sw/source/ui/envelp/mailmrge.cxx
+++ b/sw/source/ui/envelp/mailmrge.cxx
@@ -314,7 +314,7 @@ SwMailMergeDlg::SwMailMergeDlg(vcl::Window* pParent, SwWrtShell& rShell,
sPath = aPathOpt.GetWorkPath();
}
INetURLObject aURL(sPath);
- if(aURL.GetProtocol() == INetProtocol::FILE)
+ if(aURL.GetProtocol() == INetProtocol::File)
m_pPathED->SetText(aURL.PathToFileName());
else
m_pPathED->SetText(aURL.GetFull());
@@ -605,7 +605,7 @@ IMPL_LINK_NOARG(SwMailMergeDlg, InsertPathHdl)
if( xFP->execute() == RET_OK )
{
INetURLObject aURL(xFP->getDirectory());
- if(aURL.GetProtocol() == INetProtocol::FILE)
+ if(aURL.GetProtocol() == INetProtocol::File)
m_pPathED->SetText(aURL.PathToFileName());
else
m_pPathED->SetText(aURL.GetFull());
diff --git a/sw/source/ui/fldui/javaedit.cxx b/sw/source/ui/fldui/javaedit.cxx
index 2271593839c9..8bf330418207 100644
--- a/sw/source/ui/fldui/javaedit.cxx
+++ b/sw/source/ui/fldui/javaedit.cxx
@@ -161,7 +161,7 @@ void SwJavaEditDialog::CheckTravel()
if(!sURL.isEmpty())
{
INetURLObject aINetURL(sURL);
- if(INetProtocol::FILE == aINetURL.GetProtocol())
+ if(INetProtocol::File == aINetURL.GetProtocol())
sURL = aINetURL.PathToFileName();
}
m_pUrlED->SetText(sURL);
@@ -267,7 +267,7 @@ IMPL_LINK_NOARG(SwJavaEditDialog, DlgClosedHdl)
if ( !sFileName.isEmpty() )
{
INetURLObject aINetURL( sFileName );
- if ( INetProtocol::FILE == aINetURL.GetProtocol() )
+ if ( INetProtocol::File == aINetURL.GetProtocol() )
sFileName = aINetURL.PathToFileName();
}
m_pUrlED->SetText( sFileName );
diff --git a/sw/source/ui/vba/vbadocument.cxx b/sw/source/ui/vba/vbadocument.cxx
index 912cf162c9bb..c22bb07efa3a 100644
--- a/sw/source/ui/vba/vbadocument.cxx
+++ b/sw/source/ui/vba/vbadocument.cxx
@@ -270,7 +270,7 @@ SwVbaDocument::setAttachedTemplate( const css::uno::Any& _attachedtemplate ) thr
OUString aURL;
INetURLObject aObj;
aObj.SetURL( sTemplate );
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
if ( bIsURL )
aURL = sTemplate;
else
diff --git a/sw/source/ui/vba/vbadocuments.cxx b/sw/source/ui/vba/vbadocuments.cxx
index d2b4e6b6f6ee..67cd7374d4c2 100644
--- a/sw/source/ui/vba/vbadocuments.cxx
+++ b/sw/source/ui/vba/vbadocuments.cxx
@@ -132,7 +132,7 @@ SwVbaDocuments::Open( const OUString& Filename, const uno::Any& /*ConfirmConvers
OUString aURL;
INetURLObject aObj;
aObj.SetURL( Filename );
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
if ( bIsURL )
aURL = Filename;
else
diff --git a/sw/source/ui/vba/vbasystem.cxx b/sw/source/ui/vba/vbasystem.cxx
index 6e2fd2f6c203..7eea0d52e4f1 100644
--- a/sw/source/ui/vba/vbasystem.cxx
+++ b/sw/source/ui/vba/vbasystem.cxx
@@ -249,7 +249,7 @@ SwVbaSystem::PrivateProfileString( const OUString& rFilename, const OUString& rS
{
INetURLObject aObj;
aObj.SetURL( rFilename );
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
if ( bIsURL )
sFileUrl = rFilename;
else
diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx
index 4df243b2500c..f3056be8a357 100644
--- a/sw/source/uibase/app/docsh2.cxx
+++ b/sw/source/uibase/app/docsh2.cxx
@@ -1542,7 +1542,7 @@ int SwFindDocShell( SfxObjectShellRef& xDocSh,
// 2. Open the file ourselves
SfxMedium* pMed = new SfxMedium( aTmpObj.GetMainURL(
INetURLObject::NO_DECODE ), StreamMode::READ );
- if( INetProtocol::FILE == aTmpObj.GetProtocol() )
+ if( INetProtocol::File == aTmpObj.GetProtocol() )
pMed->Download(); // Touch the medium (download it)
const SfxFilter* pSfxFlt = 0;
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index f354333a4d05..1df19b765208 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -2500,7 +2500,7 @@ bool SwTransferable::_PasteAsHyperlink( TransferableDataHelper& rData,
// first, make the URL absolute
INetURLObject aURL;
- aURL.SetSmartProtocol( INetProtocol::FILE );
+ aURL.SetSmartProtocol( INetProtocol::File );
aURL.SetSmartURL( sFile );
sFile = aURL.GetMainURL( INetURLObject::NO_DECODE );
@@ -2594,7 +2594,7 @@ bool SwTransferable::_PasteFileName( TransferableDataHelper& rData,
// first, make the URL absolute
INetURLObject aURL;
- aURL.SetSmartProtocol( INetProtocol::FILE );
+ aURL.SetSmartProtocol( INetProtocol::File );
aURL.SetSmartURL( sFile );
sFile = aURL.GetMainURL( INetURLObject::NO_DECODE );
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx
index d4761633bc5f..afcd73fd55db 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -251,7 +251,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
INetURLObject(), aStrURL, URIHelper::GetMaybeFileHdl() );
INetURLObject url;
- url.SetSmartProtocol( INetProtocol::FILE );
+ url.SetSmartProtocol( INetProtocol::File );
if ( url.SetURL( aStrURL, INetURLObject::WAS_ENCODED ) )
{
diff --git a/sw/source/uibase/uno/unomailmerge.cxx b/sw/source/uibase/uno/unomailmerge.cxx
index 1af660cb393d..609414bd3262 100644
--- a/sw/source/uibase/uno/unomailmerge.cxx
+++ b/sw/source/uibase/uno/unomailmerge.cxx
@@ -703,7 +703,7 @@ uno::Any SAL_CALL SwXMailMerge::execute(
case MailMergeType::MAIL:
{
INetURLObject aURLObj;
- aURLObj.SetSmartProtocol( INetProtocol::FILE );
+ aURLObj.SetSmartProtocol( INetProtocol::File );
if (!aCurDocumentURL.isEmpty())
{
diff --git a/sw/source/uibase/uno/unomod.cxx b/sw/source/uibase/uno/unomod.cxx
index 6c9fcb187baf..30dcaf8e8849 100644
--- a/sw/source/uibase/uno/unomod.cxx
+++ b/sw/source/uibase/uno/unomod.cxx
@@ -729,7 +729,7 @@ void SwXViewSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo, c
throw IllegalArgumentException();
INetURLObject aHID( sHelpURL );
- if ( aHID.GetProtocol() == INetProtocol::HID )
+ if ( aHID.GetProtocol() == INetProtocol::Hid )
pView->GetEditWin().SetHelpId( OUStringToOString( aHID.GetURLPath(), RTL_TEXTENCODING_UTF8 ) );
else
throw IllegalArgumentException ();
diff --git a/toolkit/source/awt/animatedimagespeer.cxx b/toolkit/source/awt/animatedimagespeer.cxx
index 5b6964c4826c..13da483cde92 100644
--- a/toolkit/source/awt/animatedimagespeer.cxx
+++ b/toolkit/source/awt/animatedimagespeer.cxx
@@ -110,7 +110,7 @@ namespace toolkit
OUString lcl_getHighContrastURL( OUString const& i_imageURL )
{
INetURLObject aURL( i_imageURL );
- if ( aURL.GetProtocol() != INetProtocol::PRIV_SOFFICE )
+ if ( aURL.GetProtocol() != INetProtocol::PrivSoffice )
{
OSL_VERIFY( aURL.insertName( OUString( "hicontrast" ), false, 0 ) );
return aURL.GetMainURL( INetURLObject::NO_DECODE );
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index 9039356d19e8..3d7a22dbeb23 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -1519,7 +1519,7 @@ void VCLXWindow::setProperty( const OUString& PropertyName, const ::com::sun::st
if ( Value >>= aURL )
{
INetURLObject aHelpURL( aURL );
- if ( aHelpURL.GetProtocol() == INetProtocol::HID )
+ if ( aHelpURL.GetProtocol() == INetProtocol::Hid )
pWindow->SetHelpId( OUStringToOString( aHelpURL.GetURLPath(), RTL_TEXTENCODING_UTF8 ) );
else
pWindow->SetHelpId( OUStringToOString( aURL, RTL_TEXTENCODING_UTF8 ) );
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index fde89ee50b74..7e70d43324c6 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -1865,7 +1865,7 @@ OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::c
const INetURLObject protocolCheck( url );
const INetProtocol protocol = protocolCheck.GetProtocol();
- if ( protocol == INetProtocol::NOT_VALID )
+ if ( protocol == INetProtocol::NotValid )
{
OUString testAbsoluteURL;
if ( ::osl::FileBase::E_None == ::osl::FileBase::getAbsoluteFileURL( baseLocation, url, testAbsoluteURL ) )
diff --git a/tools/qa/cppunit/test_urlobj.cxx b/tools/qa/cppunit/test_urlobj.cxx
index daeb3217873f..b591156b52c7 100644
--- a/tools/qa/cppunit/test_urlobj.cxx
+++ b/tools/qa/cppunit/test_urlobj.cxx
@@ -60,13 +60,13 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://10.10.1.1/sampledir/sample.file" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii
( "file://10.10.1.1/sampledir/sample.file" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "10.10.1.1" );
@@ -87,12 +87,12 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://137.65.170.24/c$/Img0001.jpg" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii( "file://137.65.170.24/c$/Img0001.jpg" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "137.65.170.24" );
@@ -113,12 +113,12 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://hive-winxp-x86/pmladek/test2.odt" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii( "file://hive-winxp-x86/pmladek/test2.odt" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "hive-winxp-x86" );
@@ -132,12 +132,12 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://10.10.1.1/sampledir/sample.file" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii( "file://10.10.1.1/sampledir/sample.file" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "10.10.1.1" );
@@ -156,12 +156,12 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://137.65.170.24/c$/Img0001.jpg" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii( "file://137.65.170.24/c$/Img0001.jpg" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "137.65.170.24" );
@@ -181,12 +181,12 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://hive-winxp-x86/pmladek/test2.odt" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii( "file://hive-winxp-x86/pmladek/test2.odt" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "hive-winxp-x86" );
@@ -204,7 +204,7 @@ namespace tools_urlobj
CPPUNIT_ASSERT_EQUAL( std::string( "username" ), OUSTR_TO_STDSTR( aUrl.GetUser( ) ) );
CPPUNIT_ASSERT_EQUAL( std::string( "/path/to/content" ),
OUSTR_TO_STDSTR( aUrl.GetURLPath( INetURLObject::NO_DECODE ) ) );
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "Wrong protocol found", INetProtocol::CMIS, aUrl.GetProtocol( ) );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "Wrong protocol found", INetProtocol::Cmis, aUrl.GetProtocol( ) );
}
// Test without a username part
@@ -216,14 +216,14 @@ namespace tools_urlobj
CPPUNIT_ASSERT( !aUrl.HasUserData() );
CPPUNIT_ASSERT_EQUAL( std::string( "/path/to/content" ),
OUSTR_TO_STDSTR( aUrl.GetURLPath( INetURLObject::NO_DECODE ) ) );
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "Wrong protocol found", INetProtocol::CMIS, aUrl.GetProtocol( ) );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "Wrong protocol found", INetProtocol::Cmis, aUrl.GetProtocol( ) );
}
}
void urlobjTest_emptyPath() {
{
INetURLObject url(OUString("http://example.com"));
- CPPUNIT_ASSERT_EQUAL(INetProtocol::HTTP, url.GetProtocol());
+ CPPUNIT_ASSERT_EQUAL(INetProtocol::Http, url.GetProtocol());
CPPUNIT_ASSERT_EQUAL(OUString("example.com"), url.GetHost());
CPPUNIT_ASSERT_EQUAL(OUString("/"), url.GetURLPath());
}
@@ -234,7 +234,7 @@ namespace tools_urlobj
}
{
INetURLObject url(OUString("http://example.com#fragment"));
- CPPUNIT_ASSERT_EQUAL(INetProtocol::HTTP, url.GetProtocol());
+ CPPUNIT_ASSERT_EQUAL(INetProtocol::Http, url.GetProtocol());
CPPUNIT_ASSERT_EQUAL(OUString("example.com"), url.GetHost());
CPPUNIT_ASSERT_EQUAL(OUString("/"), url.GetURLPath());
CPPUNIT_ASSERT_EQUAL(OUString("fragment"), url.GetMark());
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 936fa1bc6865..1744d273872a 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -599,7 +599,7 @@ inline bool mustEncode(sal_uInt32 nUTF32, INetURLObject::Part ePart)
void INetURLObject::setInvalid()
{
m_aAbsURIRef.setLength(0);
- m_eScheme = INetProtocol::NOT_VALID;
+ m_eScheme = INetProtocol::NotValid;
m_aScheme.clear();
m_aUser.clear();
m_aAuth.clear();
@@ -629,7 +629,7 @@ std::unique_ptr<SvMemoryStream> memoryStream(
std::unique_ptr<SvMemoryStream> INetURLObject::getData()
{
- if( GetProtocol() != INetProtocol::DATA )
+ if( GetProtocol() != INetProtocol::Data )
{
return nullptr;
}
@@ -806,7 +806,7 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
&& p1[1] == ':'
&& (pEnd - p1 == 2 || p1[2] == '/' || p1[2] == '\\'))
{
- m_eScheme = INetProtocol::FILE; // 8th, 9th
+ m_eScheme = INetProtocol::File; // 8th, 9th
eMechanism = ENCODE_ALL;
nFragmentDelimiter = 0x80000000;
}
@@ -815,11 +815,11 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
p1 += 2;
if ((scanDomain(p1, pEnd) > 0 || scanIPv6reference(p1, pEnd))
&& (p1 == pEnd || *p1 == '/'))
- m_eScheme = INetProtocol::FILE; // 5th
+ m_eScheme = INetProtocol::File; // 5th
}
else if (p1 != pEnd && *p1 == '/')
{
- m_eScheme = INetProtocol::FILE; // 6th
+ m_eScheme = INetProtocol::File; // 6th
eMechanism = ENCODE_ALL;
nFragmentDelimiter = 0x80000000;
}
@@ -839,7 +839,7 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
(scanDomain(p1, pe) > 0 && p1 == pe)
)
{
- m_eScheme = INetProtocol::FILE; // 7th
+ m_eScheme = INetProtocol::File; // 7th
eMechanism = ENCODE_ALL;
nFragmentDelimiter = 0x80000000;
}
@@ -853,7 +853,7 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
++pDomainEnd;
if (scanDomain(pDomainEnd, pEnd) > 0
&& pDomainEnd == pEnd)
- m_eScheme = INetProtocol::MAILTO; // 2nd
+ m_eScheme = INetProtocol::Mailto; // 2nd
}
else if (nLabels >= 3
&& (pDomainEnd == pEnd || *pDomainEnd == '/'))
@@ -863,34 +863,34 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
&& (p1[1] == 't' || p1[1] == 'T')
&& (p1[2] == 'p' || p1[2] == 'P')
&& p1[3] == '.' ?
- INetProtocol::FTP : INetProtocol::HTTP; // 3rd, 4th
+ INetProtocol::Ftp : INetProtocol::Http; // 3rd, 4th
}
}
OUString aSynScheme;
- if (m_eScheme == INetProtocol::NOT_VALID) {
+ if (m_eScheme == INetProtocol::NotValid) {
sal_Unicode const * p1 = pPos;
aSynScheme = parseScheme(&p1, pEnd, nFragmentDelimiter);
if (!aSynScheme.isEmpty())
{
- m_eScheme = INetProtocol::GENERIC;
+ m_eScheme = INetProtocol::Generic;
pPos = p1;
}
}
- if (bSmart && m_eScheme == INetProtocol::NOT_VALID && pPos != pEnd
+ if (bSmart && m_eScheme == INetProtocol::NotValid && pPos != pEnd
&& *pPos != nFragmentDelimiter)
{
m_eScheme = m_eSmartScheme;
}
- if (m_eScheme == INetProtocol::NOT_VALID)
+ if (m_eScheme == INetProtocol::NotValid)
{
setInvalid();
return false;
}
- if (m_eScheme != INetProtocol::GENERIC) {
+ if (m_eScheme != INetProtocol::Generic) {
aSynScheme = OUString::createFromAscii(getSchemeInfo().m_pScheme);
}
m_aScheme.set(aSynAbsURIRef, aSynScheme, aSynAbsURIRef.getLength());
@@ -914,7 +914,7 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
switch (m_eScheme)
{
- case INetProtocol::VND_SUN_STAR_HELP:
+ case INetProtocol::VndSunStarHelp:
{
if (pEnd - pPos < 2 || *pPos++ != '/' || *pPos++ != '/')
{
@@ -942,7 +942,7 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
break;
}
- case INetProtocol::VND_SUN_STAR_HIER:
+ case INetProtocol::VndSunStarHier:
{
if (pEnd - pPos >= 2 && pPos[0] == '/' && pPos[1] == '/')
{
@@ -983,8 +983,8 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
break;
}
- case INetProtocol::VND_SUN_STAR_PKG:
- case INetProtocol::CMIS:
+ case INetProtocol::VndSunStarPkg:
+ case INetProtocol::Cmis:
{
if (pEnd - pPos < 2 || *pPos++ != '/' || *pPos++ != '/')
{
@@ -1048,7 +1048,7 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
break;
}
- case INetProtocol::FILE:
+ case INetProtocol::File:
if (bSmart)
{
// The first of the following seven productions that
@@ -1230,14 +1230,14 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
}
default:
{
- // For INetProtocol::FILE, allow an empty authority ("//") to be
+ // For INetProtocol::File, allow an empty authority ("//") to be
// missing if the following path starts with an explicit "/"
// (Java is notorious in generating such file URLs, so be
// liberal here):
if (pEnd - pPos >= 2 && pPos[0] == '/' && pPos[1] == '/')
pPos += 2;
else if (!bSmart
- && !(m_eScheme == INetProtocol::FILE
+ && !(m_eScheme == INetProtocol::File
&& pPos != pEnd && *pPos == '/'))
{
setInvalid();
@@ -1290,9 +1290,9 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
if (pUserInfoBegin)
{
- Part ePart = m_eScheme == INetProtocol::IMAP ?
+ Part ePart = m_eScheme == INetProtocol::Imap ?
PART_IMAP_ACHAR :
- m_eScheme == INetProtocol::VIM ?
+ m_eScheme == INetProtocol::Vim ?
PART_VIM :
PART_USER_PASSWORD;
bool bSupportsPassword = getSchemeInfo().m_bPassword;
@@ -1392,7 +1392,7 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
bool bNetBiosName = false;
switch (m_eScheme)
{
- case INetProtocol::FILE:
+ case INetProtocol::File:
// If the host equals "LOCALHOST" (unencoded and ignoring
// case), turn it into an empty host:
if (INetMIME::equalIgnoreCase(pHostPortBegin, pPort,
@@ -1401,8 +1401,8 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
bNetBiosName = true;
break;
- case INetProtocol::LDAP:
- case INetProtocol::SMB:
+ case INetProtocol::Ldap:
+ case INetProtocol::Smb:
if (pHostPortBegin == pPort && pPort != pHostPortEnd)
{
setInvalid();
@@ -1496,20 +1496,20 @@ bool INetURLObject::setAbsURIRef(OUString const & rTheAbsURIRef,
// At this point references of type "\\server\paths" have
// been converted to file:://server/path".
#ifdef LINUX
- if (m_eScheme==INetProtocol::FILE && !m_aHost.isEmpty()) {
+ if (m_eScheme==INetProtocol::File && !m_aHost.isEmpty()) {
// Change "file:://server/path" URIs to "smb:://server/path" on
// Linux
// Leave "file::path" URIs unchanged.
- changeScheme(INetProtocol::SMB);
+ changeScheme(INetProtocol::Smb);
}
#endif
#ifdef WIN
- if (m_eScheme==INetProtocol::SMB) {
+ if (m_eScheme==INetProtocol::Smb) {
// Change "smb://server/path" URIs to "file://server/path"
// URIs on Windows, since Windows doesn't understand the
// SMB scheme.
- changeScheme(INetProtocol::FILE);
+ changeScheme(INetProtocol::File);
}
#endif
@@ -1620,7 +1620,7 @@ bool INetURLObject::convertRelToAbs(OUString const & rTheRelURIRef,
// When the base URL is a file URL, accept relative file system paths
// using "\" or ":" as delimiter (and ignoring URI conventions for "%"
// and "#"), as well as relative URIs using "/" as delimiter:
- if (m_eScheme == INetProtocol::FILE)
+ if (m_eScheme == INetProtocol::File)
switch (guessFSysStyleByCounting(p, pEnd, eStyle))
{
case FSYS_UNX:
@@ -1681,7 +1681,7 @@ bool INetURLObject::convertRelToAbs(OUString const & rTheRelURIRef,
OUStringBuffer aSynAbsURIRef;
// make sure that the scheme is copied for generic schemes: getSchemeInfo().m_pScheme
// is empty ("") in that case, so take the scheme from m_aAbsURIRef
- if (m_eScheme != INetProtocol::GENERIC)
+ if (m_eScheme != INetProtocol::Generic)
{
aSynAbsURIRef.appendAscii(getSchemeInfo().m_pScheme);
}
@@ -2029,7 +2029,7 @@ bool INetURLObject::convertAbsToRel(OUString const & rTheAbsURIRef,
// If the two URLs are DOS file URLs starting with different volumes
// (e.g., file:///a:/... and file:///b:/...), the subject is not made
// relative (it could be, but some people do not like that):
- if (m_eScheme == INetProtocol::FILE
+ if (m_eScheme == INetProtocol::File
&& nMatch <= 1
&& hasDosVolume(eStyle)
&& aSubject.hasDosVolume(eStyle)) //TODO! ok to use eStyle for these?
@@ -2163,95 +2163,95 @@ INetURLObject::PrefixInfo const * INetURLObject::getPrefix(sal_Unicode const *&
{
static PrefixInfo const aMap[]
= { // dummy entry at front needed, because pLast may point here:
- { 0, 0, INetProtocol::NOT_VALID, PrefixInfo::INTERNAL },
- { ".component:", "staroffice.component:", INetProtocol::COMPONENT,
+ { 0, 0, INetProtocol::NotValid, PrefixInfo::INTERNAL },
+ { ".component:", "staroffice.component:", INetProtocol::Component,
PrefixInfo::INTERNAL },
- { ".uno:", "staroffice.uno:", INetProtocol::UNO,
+ { ".uno:", "staroffice.uno:", INetProtocol::Uno,
PrefixInfo::INTERNAL },
- { "cid:", 0, INetProtocol::CID, PrefixInfo::OFFICIAL },
- { "data:", 0, INetProtocol::DATA, PrefixInfo::OFFICIAL },
- { "db:", "staroffice.db:", INetProtocol::DB, PrefixInfo::INTERNAL },
- { "file:", 0, INetProtocol::FILE, PrefixInfo::OFFICIAL },
- { "ftp:", 0, INetProtocol::FTP, PrefixInfo::OFFICIAL },
- { "hid:", "staroffice.hid:", INetProtocol::HID,
+ { "cid:", 0, INetProtocol::Cid, PrefixInfo::OFFICIAL },
+ { "data:", 0, INetProtocol::Data, PrefixInfo::OFFICIAL },
+ { "db:", "staroffice.db:", INetProtocol::Db, PrefixInfo::INTERNAL },
+ { "file:", 0, INetProtocol::File, PrefixInfo::OFFICIAL },
+ { "ftp:", 0, INetProtocol::Ftp, PrefixInfo::OFFICIAL },
+ { "hid:", "staroffice.hid:", INetProtocol::Hid,
PrefixInfo::INTERNAL },
- { "http:", 0, INetProtocol::HTTP, PrefixInfo::OFFICIAL },
- { "https:", 0, INetProtocol::HTTPS, PrefixInfo::OFFICIAL },
- { "imap:", 0, INetProtocol::IMAP, PrefixInfo::OFFICIAL },
- { "javascript:", 0, INetProtocol::JAVASCRIPT, PrefixInfo::OFFICIAL },
- { "ldap:", 0, INetProtocol::LDAP, PrefixInfo::OFFICIAL },
- { "macro:", "staroffice.macro:", INetProtocol::MACRO,
+ { "http:", 0, INetProtocol::Http, PrefixInfo::OFFICIAL },
+ { "https:", 0, INetProtocol::Https, PrefixInfo::OFFICIAL },
+ { "imap:", 0, INetProtocol::Imap, PrefixInfo::OFFICIAL },
+ { "javascript:", 0, INetProtocol::Javascript, PrefixInfo::OFFICIAL },
+ { "ldap:", 0, INetProtocol::Ldap, PrefixInfo::OFFICIAL },
+ { "macro:", "staroffice.macro:", INetProtocol::Macro,
PrefixInfo::INTERNAL },
- { "mailto:", 0, INetProtocol::MAILTO, PrefixInfo::OFFICIAL },
- { "news:", 0, INetProtocol::NEWS, PrefixInfo::OFFICIAL },
- { "out:", "staroffice.out:", INetProtocol::OUT,
+ { "mailto:", 0, INetProtocol::Mailto, PrefixInfo::OFFICIAL },
+ { "news:", 0, INetProtocol::News, PrefixInfo::OFFICIAL },
+ { "out:", "staroffice.out:", INetProtocol::Out,
PrefixInfo::INTERNAL },
- { "pop3:", "staroffice.pop3:", INetProtocol::POP3,
+ { "pop3:", "staroffice.pop3:", INetProtocol::Pop3,
PrefixInfo::INTERNAL },
- { "private:", "staroffice.private:", INetProtocol::PRIV_SOFFICE,
+ { "private:", "staroffice.private:", INetProtocol::PrivSoffice,
PrefixInfo::INTERNAL },
{ "private:factory/", "staroffice.factory:",
- INetProtocol::PRIV_SOFFICE, PrefixInfo::INTERNAL },
- { "private:helpid/", "staroffice.helpid:", INetProtocol::PRIV_SOFFICE,
+ INetProtocol::PrivSoffice, PrefixInfo::INTERNAL },
+ { "private:helpid/", "staroffice.helpid:", INetProtocol::PrivSoffice,
PrefixInfo::INTERNAL },
- { "private:java/", "staroffice.java:", INetProtocol::PRIV_SOFFICE,
+ { "private:java/", "staroffice.java:", INetProtocol::PrivSoffice,
PrefixInfo::INTERNAL },
{ "private:searchfolder:", "staroffice.searchfolder:",
- INetProtocol::PRIV_SOFFICE, PrefixInfo::INTERNAL },
+ INetProtocol::PrivSoffice, PrefixInfo::INTERNAL },
{ "private:trashcan:", "staroffice.trashcan:",
- INetProtocol::PRIV_SOFFICE, PrefixInfo::INTERNAL },
- { "sftp:", 0, INetProtocol::SFTP, PrefixInfo::OFFICIAL },
- { "slot:", "staroffice.slot:", INetProtocol::SLOT,
+ INetProtocol::PrivSoffice, PrefixInfo::INTERNAL },
+ { "sftp:", 0, INetProtocol::Sftp, PrefixInfo::OFFICIAL },
+ { "slot:", "staroffice.slot:", INetProtocol::Slot,
PrefixInfo::INTERNAL },
- { "smb:", 0, INetProtocol::SMB, PrefixInfo::OFFICIAL },
- { "staroffice.component:", ".component:", INetProtocol::COMPONENT,
+ { "smb:", 0, INetProtocol::Smb, PrefixInfo::OFFICIAL },
+ { "staroffice.component:", ".component:", INetProtocol::Component,
PrefixInfo::EXTERNAL },
- { "staroffice.db:", "db:", INetProtocol::DB, PrefixInfo::EXTERNAL },
+ { "staroffice.db:", "db:", INetProtocol::Db, PrefixInfo::EXTERNAL },
{ "staroffice.factory:", "private:factory/",
- INetProtocol::PRIV_SOFFICE, PrefixInfo::EXTERNAL },
- { "staroffice.helpid:", "private:helpid/", INetProtocol::PRIV_SOFFICE,
+ INetProtocol::PrivSoffice, PrefixInfo::EXTERNAL },
+ { "staroffice.helpid:", "private:helpid/", INetProtocol::PrivSoffice,
PrefixInfo::EXTERNAL },
- { "staroffice.hid:", "hid:", INetProtocol::HID,
+ { "staroffice.hid:", "hid:", INetProtocol::Hid,
PrefixInfo::EXTERNAL },
- { "staroffice.java:", "private:java/", INetProtocol::PRIV_SOFFICE,
+ { "staroffice.java:", "private:java/", INetProtocol::PrivSoffice,
PrefixInfo::EXTERNAL },
- { "staroffice.macro:", "macro:", INetProtocol::MACRO,
+ { "staroffice.macro:", "macro:", INetProtocol::Macro,
PrefixInfo::EXTERNAL },
- { "staroffice.out:", "out:", INetProtocol::OUT,
+ { "staroffice.out:", "out:", INetProtocol::Out,
PrefixInfo::EXTERNAL },
- { "staroffice.pop3:", "pop3:", INetProtocol::POP3,
+ { "staroffice.pop3:", "pop3:", INetProtocol::Pop3,
PrefixInfo::EXTERNAL },
- { "staroffice.private:", "private:", INetProtocol::PRIV_SOFFICE,
+ { "staroffice.private:", "private:", INetProtocol::PrivSoffice,
PrefixInfo::EXTERNAL },
{ "staroffice.searchfolder:", "private:searchfolder:",
- INetProtocol::PRIV_SOFFICE, PrefixInfo::EXTERNAL },
- { "staroffice.slot:", "slot:", INetProtocol::SLOT,
+ INetProtocol::PrivSoffice, PrefixInfo::EXTERNAL },
+ { "staroffice.slot:", "slot:", INetProtocol::Slot,
PrefixInfo::EXTERNAL },
{ "staroffice.trashcan:", "private:trashcan:",
- INetProtocol::PRIV_SOFFICE, PrefixInfo::EXTERNAL },
- { "staroffice.uno:", ".uno:", INetProtocol::UNO,
+ INetProtocol::PrivSoffice, PrefixInfo::EXTERNAL },
+ { "staroffice.uno:", ".uno:", INetProtocol::Uno,
PrefixInfo::EXTERNAL },
- { "staroffice.vim:", "vim:", INetProtocol::VIM,
+ { "staroffice.vim:", "vim:", INetProtocol::Vim,
PrefixInfo::EXTERNAL },
- { "staroffice:", "private:", INetProtocol::PRIV_SOFFICE,
+ { "staroffice:", "private:", INetProtocol::PrivSoffice,
PrefixInfo::EXTERNAL },
- { "telnet:", 0, INetProtocol::TELNET, PrefixInfo::OFFICIAL },
- { "vim:", "staroffice.vim:", INetProtocol::VIM,
+ { "telnet:", 0, INetProtocol::Telnet, PrefixInfo::OFFICIAL },
+ { "vim:", "staroffice.vim:", INetProtocol::Vim,
PrefixInfo::INTERNAL },
- { "vnd.libreoffice.cmis:", 0, INetProtocol::CMIS, PrefixInfo::INTERNAL },
- { "vnd.sun.star.cmd:", 0, INetProtocol::VND_SUN_STAR_CMD,
+ { "vnd.libreoffice.cmis:", 0, INetProtocol::Cmis, PrefixInfo::INTERNAL },
+ { "vnd.sun.star.cmd:", 0, INetProtocol::VndSunStarCmd,
PrefixInfo::OFFICIAL },
- { "vnd.sun.star.expand:", 0, INetProtocol::VND_SUN_STAR_EXPAND,
+ { "vnd.sun.star.expand:", 0, INetProtocol::VndSunStarExpand,
PrefixInfo::OFFICIAL },
- { "vnd.sun.star.help:", 0, INetProtocol::VND_SUN_STAR_HELP,
+ { "vnd.sun.star.help:", 0, INetProtocol::VndSunStarHelp,
PrefixInfo::OFFICIAL },
- { "vnd.sun.star.hier:", 0, INetProtocol::VND_SUN_STAR_HIER,
+ { "vnd.sun.star.hier:", 0, INetProtocol::VndSunStarHier,
PrefixInfo::OFFICIAL },
- { "vnd.sun.star.pkg:", 0, INetProtocol::VND_SUN_STAR_PKG,
+ { "vnd.sun.star.pkg:", 0, INetProtocol::VndSunStarPkg,
PrefixInfo::OFFICIAL },
- { "vnd.sun.star.tdoc:", 0, INetProtocol::VND_SUN_STAR_TDOC,
+ { "vnd.sun.star.tdoc:", 0, INetProtocol::VndSunStarTdoc,
PrefixInfo::OFFICIAL },
- { "vnd.sun.star.webdav:", 0, INetProtocol::VND_SUN_STAR_WEBDAV,
+ { "vnd.sun.star.webdav:", 0, INetProtocol::VndSunStarWebdav,
PrefixInfo::OFFICIAL } };
/* This list needs to be sorted, or you'll introduce serious bugs */
@@ -2329,16 +2329,16 @@ bool INetURLObject::setUser(OUString const & rTheUser,
{
if (
!getSchemeInfo().m_bUser ||
- (m_eScheme == INetProtocol::IMAP && rTheUser.isEmpty())
+ (m_eScheme == INetProtocol::Imap && rTheUser.isEmpty())
)
{
return false;
}
OUString aNewUser(encodeText(rTheUser, bOctets,
- m_eScheme == INetProtocol::IMAP ?
+ m_eScheme == INetProtocol::Imap ?
PART_IMAP_ACHAR :
- m_eScheme == INetProtocol::VIM ?
+ m_eScheme == INetProtocol::Vim ?
PART_VIM :
PART_USER_PASSWORD,
getEscapePrefix(), eMechanism, eCharset,
@@ -2398,7 +2398,7 @@ bool INetURLObject::setPassword(OUString const & rThePassword,
if (!getSchemeInfo().m_bPassword)
return false;
OUString aNewAuth(encodeText(rThePassword, bOctets,
- m_eScheme == INetProtocol::VIM ?
+ m_eScheme == INetProtocol::Vim ?
PART_VIM : PART_USER_PASSWORD,
getEscapePrefix(), eMechanism, eCharset,
false));
@@ -2942,7 +2942,7 @@ bool INetURLObject::setHost(OUString const & rTheHost, bool bOctets,
bool bNetBiosName = false;
switch (m_eScheme)
{
- case INetProtocol::FILE:
+ case INetProtocol::File:
{
OUString sTemp(aSynHost.toString());
if (sTemp.equalsIgnoreAsciiCase("localhost"))
@@ -2952,7 +2952,7 @@ bool INetURLObject::setHost(OUString const & rTheHost, bool bOctets,
bNetBiosName = true;
}
break;
- case INetProtocol::LDAP:
+ case INetProtocol::Ldap:
if (aSynHost.isEmpty() && m_aPort.isPresent())
return false;
break;
@@ -2995,11 +2995,11 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
switch (eScheme)
{
- case INetProtocol::NOT_VALID:
+ case INetProtocol::NotValid:
return false;
- case INetProtocol::FTP:
- case INetProtocol::IMAP:
+ case INetProtocol::Ftp:
+ case INetProtocol::Imap:
if (pPos < pEnd && *pPos != '/' && *pPos != nFragmentDelimiter)
return false;
while (pPos < pEnd && *pPos != nFragmentDelimiter)
@@ -3015,11 +3015,11 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
aTheSynPath.append('/');
break;
- case INetProtocol::HTTP:
- case INetProtocol::VND_SUN_STAR_WEBDAV:
- case INetProtocol::HTTPS:
- case INetProtocol::SMB:
- case INetProtocol::CMIS:
+ case INetProtocol::Http:
+ case INetProtocol::VndSunStarWebdav:
+ case INetProtocol::Https:
+ case INetProtocol::Smb:
+ case INetProtocol::Cmis:
if (pPos < pEnd && *pPos != '/' && *pPos != nFragmentDelimiter)
return false;
while (pPos < pEnd && *pPos != nQueryDelimiter
@@ -3036,7 +3036,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
aTheSynPath.append('/');
break;
- case INetProtocol::FILE:
+ case INetProtocol::File:
{
if (bSkippedInitialSlash)
aTheSynPath.append('/');
@@ -3080,7 +3080,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
break;
}
- case INetProtocol::MAILTO:
+ case INetProtocol::Mailto:
while (pPos < pEnd && *pPos != nQueryDelimiter
&& *pPos != nFragmentDelimiter)
{
@@ -3093,7 +3093,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
}
break;
- case INetProtocol::NEWS:
+ case INetProtocol::News:
if (pPos == pEnd || *pPos == nQueryDelimiter
|| *pPos == nFragmentDelimiter)
return false;
@@ -3161,7 +3161,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
done:
break;
- case INetProtocol::POP3:
+ case INetProtocol::Pop3:
while (pPos < pEnd && *pPos != nFragmentDelimiter)
{
EscapeType eEscapeType;
@@ -3174,13 +3174,13 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
}
break;
- case INetProtocol::PRIV_SOFFICE:
- case INetProtocol::SLOT:
- case INetProtocol::HID:
- case INetProtocol::MACRO:
- case INetProtocol::UNO:
- case INetProtocol::COMPONENT:
- case INetProtocol::LDAP:
+ case INetProtocol::PrivSoffice:
+ case INetProtocol::Slot:
+ case INetProtocol::Hid:
+ case INetProtocol::Macro:
+ case INetProtocol::Uno:
+ case INetProtocol::Component:
+ case INetProtocol::Ldap:
while (pPos < pEnd && *pPos != nQueryDelimiter
&& *pPos != nFragmentDelimiter)
{
@@ -3194,7 +3194,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
}
break;
- case INetProtocol::VND_SUN_STAR_HELP:
+ case INetProtocol::VndSunStarHelp:
if (pPos == pEnd
|| *pPos == nQueryDelimiter
|| *pPos == nFragmentDelimiter)
@@ -3216,10 +3216,10 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
}
break;
- case INetProtocol::JAVASCRIPT:
- case INetProtocol::DATA:
- case INetProtocol::CID:
- case INetProtocol::DB:
+ case INetProtocol::Javascript:
+ case INetProtocol::Data:
+ case INetProtocol::Cid:
+ case INetProtocol::Db:
while (pPos < pEnd && *pPos != nFragmentDelimiter)
{
EscapeType eEscapeType;
@@ -3231,7 +3231,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
}
break;
- case INetProtocol::OUT:
+ case INetProtocol::Out:
if (pEnd - pPos < 2 || *pPos++ != '/' || *pPos++ != '~')
return false;
aTheSynPath.append("/~");
@@ -3246,8 +3246,8 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
}
break;
- case INetProtocol::VND_SUN_STAR_HIER:
- case INetProtocol::VND_SUN_STAR_PKG:
+ case INetProtocol::VndSunStarHier:
+ case INetProtocol::VndSunStarPkg:
if (pPos < pEnd && *pPos != '/'
&& *pPos != nQueryDelimiter && *pPos != nFragmentDelimiter)
return false;
@@ -3268,7 +3268,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
aTheSynPath.append('/');
break;
- case INetProtocol::VIM:
+ case INetProtocol::Vim:
{
sal_Unicode const * pPathEnd = pPos;
while (pPathEnd < pEnd && *pPathEnd != nFragmentDelimiter)
@@ -3372,8 +3372,8 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
break;
}
- case INetProtocol::VND_SUN_STAR_CMD:
- case INetProtocol::VND_SUN_STAR_EXPAND:
+ case INetProtocol::VndSunStarCmd:
+ case INetProtocol::VndSunStarExpand:
{
if (pPos == pEnd || *pPos == nFragmentDelimiter)
return false;
@@ -3391,7 +3391,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
break;
}
- case INetProtocol::TELNET:
+ case INetProtocol::Telnet:
if (pPos < pEnd)
{
if (*pPos != '/' || pEnd - pPos > 1)
@@ -3401,7 +3401,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
aTheSynPath.append('/');
break;
- case INetProtocol::VND_SUN_STAR_TDOC:
+ case INetProtocol::VndSunStarTdoc:
if (pPos == pEnd || *pPos != '/')
return false;
while (pPos < pEnd && *pPos != nFragmentDelimiter)
@@ -3418,8 +3418,8 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
}
break;
- case INetProtocol::GENERIC:
- case INetProtocol::SFTP:
+ case INetProtocol::Generic:
+ case INetProtocol::Sftp:
while (pPos < pEnd && *pPos != nFragmentDelimiter)
{
EscapeType eEscapeType;
@@ -3460,7 +3460,7 @@ bool INetURLObject::setPath(OUString const & rThePath, bool bOctets,
}
bool INetURLObject::checkHierarchical() const {
- if (m_eScheme == INetProtocol::VND_SUN_STAR_EXPAND) {
+ if (m_eScheme == INetProtocol::VndSunStarExpand) {
OSL_FAIL(
"INetURLObject::checkHierarchical vnd.sun.star.expand");
return true;
@@ -3793,7 +3793,7 @@ INetURLObject::getAbbreviated(
OUStringBuffer aBuffer;
// make sure that the scheme is copied for generic schemes: getSchemeInfo().m_pScheme
// is empty ("") in that case, so take the scheme from m_aAbsURIRef
- if (m_eScheme != INetProtocol::GENERIC)
+ if (m_eScheme != INetProtocol::Generic)
{
aBuffer.appendAscii(getSchemeInfo().m_pScheme);
}
@@ -3973,7 +3973,7 @@ bool INetURLObject::operator ==(INetURLObject const & rObject) const
{
if (m_eScheme != rObject.m_eScheme)
return false;
- if (m_eScheme == INetProtocol::NOT_VALID)
+ if (m_eScheme == INetProtocol::NotValid)
return m_aAbsURIRef.toString() == rObject.m_aAbsURIRef.toString();
if ((m_aScheme.compare(
rObject.m_aScheme, m_aAbsURIRef, rObject.m_aAbsURIRef)
@@ -3991,7 +3991,7 @@ bool INetURLObject::operator ==(INetURLObject const & rObject) const
OUString aPath2(rObject.GetURLPath(NO_DECODE));
switch (m_eScheme)
{
- case INetProtocol::FILE:
+ case INetProtocol::File:
{
// If the URL paths of two file URLs only differ in that one has a
// final '/' and the other has not, take the two paths as
@@ -4079,7 +4079,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
{
setInvalid();
m_eScheme = eTheScheme;
- if (HasError() || m_eScheme == INetProtocol::GENERIC)
+ if (HasError() || m_eScheme == INetProtocol::Generic)
return false;
m_aAbsURIRef.setLength(0);
m_aAbsURIRef.appendAscii(getSchemeInfo().m_pScheme);
@@ -4090,7 +4090,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
bool bUserInfo = false;
if (getSchemeInfo().m_bUser)
{
- if (m_eScheme == INetProtocol::IMAP && rTheUser.isEmpty())
+ if (m_eScheme == INetProtocol::Imap && rTheUser.isEmpty())
{
setInvalid();
return false;
@@ -4099,9 +4099,9 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
{
m_aUser.set(m_aAbsURIRef,
encodeText(rTheUser, false,
- m_eScheme == INetProtocol::IMAP ?
+ m_eScheme == INetProtocol::Imap ?
PART_IMAP_ACHAR :
- m_eScheme == INetProtocol::VIM ?
+ m_eScheme == INetProtocol::Vim ?
PART_VIM :
PART_USER_PASSWORD,
getEscapePrefix(), eMechanism,
@@ -4122,7 +4122,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
m_aAbsURIRef.append(':');
m_aAuth.set(m_aAbsURIRef,
encodeText(rThePassword, false,
- m_eScheme == INetProtocol::VIM ?
+ m_eScheme == INetProtocol::Vim ?
PART_VIM : PART_USER_PASSWORD,
getEscapePrefix(), eMechanism,
eCharset, false),
@@ -4143,7 +4143,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
bool bNetBiosName = false;
switch (m_eScheme)
{
- case INetProtocol::FILE:
+ case INetProtocol::File:
{
OUString sTemp(aSynHost.toString());
if (sTemp.equalsIgnoreAsciiCase( "localhost" ))
@@ -4154,7 +4154,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
}
break;
- case INetProtocol::LDAP:
+ case INetProtocol::Ldap:
if (aSynHost.isEmpty() && nThePort != 0)
{
setInvalid();
@@ -4270,7 +4270,7 @@ INetProtocol INetURLObject::CompareProtocolScheme(OUString const &
{
sal_Unicode const * p = rTheAbsURIRef.getStr();
PrefixInfo const * pPrefix = getPrefix(p, p + rTheAbsURIRef.getLength());
- return pPrefix ? pPrefix->m_eScheme : INetProtocol::NOT_VALID;
+ return pPrefix ? pPrefix->m_eScheme : INetProtocol::NotValid;
}
OUString INetURLObject::GetHostPort(DecodeMechanism eMechanism,
@@ -4818,7 +4818,7 @@ bool INetURLObject::setFSysPath(OUString const & rFSysPath,
OUString INetURLObject::getFSysPath(FSysStyle eStyle,
sal_Unicode * pDelimiter) const
{
- if (m_eScheme != INetProtocol::FILE)
+ if (m_eScheme != INetProtocol::File)
return OUString();
if ((eStyle & FSYS_VOS ? 1 : 0)
@@ -4913,7 +4913,7 @@ OUString INetURLObject::getFSysPath(FSysStyle eStyle,
OUString INetURLObject::GetMsgId(DecodeMechanism eMechanism,
rtl_TextEncoding eCharset) const
{
- if (m_eScheme != INetProtocol::POP3)
+ if (m_eScheme != INetProtocol::Pop3)
return OUString();
sal_Unicode const * p = m_aAbsURIRef.getStr() + m_aPath.getBegin();
sal_Unicode const * pEnd = p + m_aPath.getLength();
@@ -5289,7 +5289,7 @@ bool INetURLObject::CutLastName()
OUString INetURLObject::PathToFileName() const
{
- if (m_eScheme != INetProtocol::FILE)
+ if (m_eScheme != INetProtocol::File)
return OUString();
OUString aSystemPath;
if (osl::FileBase::getSystemPathFromFileURL(
diff --git a/ucb/source/core/FileAccess.cxx b/ucb/source/core/FileAccess.cxx
index fb8fcf58312c..543f00a71621 100644
--- a/ucb/source/core/FileAccess.cxx
+++ b/ucb/source/core/FileAccess.cxx
@@ -225,8 +225,8 @@ void OFileAccess::transferImpl( const OUString& rSource,
throw(CommandAbortedException, Exception, RuntimeException)
{
// SfxContentHelper::Transfer_Impl
- INetURLObject aSourceObj( rSource, INetProtocol::FILE );
- INetURLObject aDestObj( rDest, INetProtocol::FILE );
+ INetURLObject aSourceObj( rSource, INetProtocol::File );
+ INetURLObject aDestObj( rDest, INetProtocol::File );
OUString aName = aDestObj.getName(
INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET );
OUString aDestURL;
@@ -245,7 +245,7 @@ void OFileAccess::transferImpl( const OUString& rSource,
// #i29648#
- if ( aDestObj.GetProtocol() == INetProtocol::VND_SUN_STAR_EXPAND )
+ if ( aDestObj.GetProtocol() == INetProtocol::VndSunStarExpand )
{
// Hack: Expand destination URL using Macro Expander and try again
// with the hopefully hierarchical expanded URL...
@@ -308,7 +308,7 @@ void OFileAccess::kill( const OUString& FileURL )
throw(CommandAbortedException, Exception, RuntimeException, std::exception)
{
// SfxContentHelper::Kill
- INetURLObject aDeleteObj( FileURL, INetProtocol::FILE );
+ INetURLObject aDeleteObj( FileURL, INetProtocol::File );
ucbhelper::Content aCnt( aDeleteObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
try
{
@@ -326,7 +326,7 @@ sal_Bool OFileAccess::isFolder( const OUString& FileURL )
bool bRet = false;
try
{
- INetURLObject aURLObj( FileURL, INetProtocol::FILE );
+ INetURLObject aURLObj( FileURL, INetProtocol::File );
ucbhelper::Content aCnt( aURLObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
bRet = aCnt.isFolder();
}
@@ -337,7 +337,7 @@ sal_Bool OFileAccess::isFolder( const OUString& FileURL )
sal_Bool OFileAccess::isReadOnly( const OUString& FileURL )
throw(CommandAbortedException, Exception, RuntimeException, std::exception)
{
- INetURLObject aURLObj( FileURL, INetProtocol::FILE );
+ INetURLObject aURLObj( FileURL, INetProtocol::File );
ucbhelper::Content aCnt( aURLObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
Any aRetAny = aCnt.getPropertyValue("IsReadOnly");
bool bRet = false;
@@ -348,7 +348,7 @@ sal_Bool OFileAccess::isReadOnly( const OUString& FileURL )
void OFileAccess::setReadOnly( const OUString& FileURL, sal_Bool bReadOnly )
throw(CommandAbortedException, Exception, RuntimeException, std::exception)
{
- INetURLObject aURLObj( FileURL, INetProtocol::FILE );
+ INetURLObject aURLObj( FileURL, INetProtocol::File );
ucbhelper::Content aCnt( aURLObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
Any aAny;
aAny <<= bReadOnly;
@@ -363,7 +363,7 @@ void OFileAccess::createFolder( const OUString& NewFolderURL )
return;
// SfxContentHelper::MakeFolder
- INetURLObject aURL( NewFolderURL, INetProtocol::FILE );
+ INetURLObject aURL( NewFolderURL, INetProtocol::File );
OUString aTitle = aURL.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET );
if ( !aTitle.isEmpty() )
{
@@ -429,7 +429,7 @@ sal_Int32 OFileAccess::getSize( const OUString& FileURL )
// SfxContentHelper::GetSize
sal_Int32 nSize = 0;
sal_Int64 nTemp = 0;
- INetURLObject aObj( FileURL, INetProtocol::FILE );
+ INetURLObject aObj( FileURL, INetProtocol::File );
ucbhelper::Content aCnt( aObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
aCnt.getPropertyValue( "Size" ) >>= nTemp;
nSize = (sal_Int32)nTemp;
@@ -439,7 +439,7 @@ sal_Int32 OFileAccess::getSize( const OUString& FileURL )
OUString OFileAccess::getContentType( const OUString& FileURL )
throw(CommandAbortedException, Exception, RuntimeException, std::exception)
{
- INetURLObject aObj( FileURL, INetProtocol::FILE );
+ INetURLObject aObj( FileURL, INetProtocol::File );
ucbhelper::Content aCnt( aObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
Reference< XContent > xContent = aCnt.get();
@@ -450,7 +450,7 @@ OUString OFileAccess::getContentType( const OUString& FileURL )
::com::sun::star::util::DateTime OFileAccess::getDateTimeModified( const OUString& FileURL )
throw(CommandAbortedException, Exception, RuntimeException, std::exception)
{
- INetURLObject aFileObj( FileURL, INetProtocol::FILE );
+ INetURLObject aFileObj( FileURL, INetProtocol::File );
::com::sun::star::util::DateTime aDateTime;
Reference< XCommandEnvironment > aCmdEnv;
@@ -467,7 +467,7 @@ Sequence< OUString > OFileAccess::getFolderContents( const OUString& FolderURL,
// SfxContentHelper::GetFolderContents
StringList_Impl* pFiles = NULL;
- INetURLObject aFolderObj( FolderURL, INetProtocol::FILE );
+ INetURLObject aFolderObj( FolderURL, INetProtocol::File );
ucbhelper::Content aCnt( aFolderObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
Reference< XResultSet > xResultSet;
@@ -492,7 +492,7 @@ Sequence< OUString > OFileAccess::getFolderContents( const OUString& FolderURL,
while ( xResultSet->next() )
{
OUString aId = xContentAccess->queryContentIdentifierString();
- INetURLObject aURL( aId, INetProtocol::FILE );
+ INetURLObject aURL( aId, INetProtocol::File );
OUString* pFile = new OUString( aURL.GetMainURL( INetURLObject::NO_DECODE ) );
pFiles->push_back( pFile );
}
@@ -540,7 +540,7 @@ Reference< XInputStream > OFileAccess::openFileRead( const OUString& FileURL )
throw(CommandAbortedException, Exception, RuntimeException, std::exception)
{
Reference< XInputStream > xRet;
- INetURLObject aObj( FileURL, INetProtocol::FILE );
+ INetURLObject aObj( FileURL, INetProtocol::File );
ucbhelper::Content aCnt( aObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
Reference< XActiveDataSink > xSink = (XActiveDataSink*)(new OActiveDataSink());
@@ -584,7 +584,7 @@ Reference< XStream > OFileAccess::openFileReadWrite( const OUString& FileURL )
Any aCmdArg;
aCmdArg <<= aArg;
- INetURLObject aFileObj( FileURL, INetProtocol::FILE );
+ INetURLObject aFileObj( FileURL, INetProtocol::File );
ucbhelper::Content aCnt( aFileObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
// Be silent...
@@ -703,7 +703,7 @@ void SAL_CALL OFileAccess::writeFile( const OUString& FileURL,
const Reference< XInputStream >& data )
throw ( Exception, RuntimeException, std::exception )
{
- INetURLObject aURL( FileURL, INetProtocol::FILE );
+ INetURLObject aURL( FileURL, INetProtocol::File );
try
{
ucbhelper::Content aCnt(
@@ -753,7 +753,7 @@ void SAL_CALL OFileAccess::writeFile( const OUString& FileURL,
sal_Bool OFileAccess::isHidden( const OUString& FileURL )
throw(CommandAbortedException, Exception, RuntimeException, std::exception)
{
- INetURLObject aURLObj( FileURL, INetProtocol::FILE );
+ INetURLObject aURLObj( FileURL, INetProtocol::File );
ucbhelper::Content aCnt( aURLObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
Any aRetAny = aCnt.getPropertyValue("IsHidden");
bool bRet = false;
@@ -764,7 +764,7 @@ sal_Bool OFileAccess::isHidden( const OUString& FileURL )
void OFileAccess::setHidden( const OUString& FileURL, sal_Bool bHidden )
throw(CommandAbortedException, Exception, RuntimeException, std::exception)
{
- INetURLObject aURLObj( FileURL, INetProtocol::FILE );
+ INetURLObject aURLObj( FileURL, INetProtocol::File );
ucbhelper::Content aCnt( aURLObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
Any aAny;
aAny <<= bHidden;
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index 5ab655ddb35c..b54c246b047e 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -1183,7 +1183,7 @@ namespace cmis
{
// If the source isn't on the same CMIS repository, then simply copy
INetURLObject aSourceUrl( rTransferInfo.SourceURL );
- if ( aSourceUrl.GetProtocol() != INetProtocol::CMIS )
+ if ( aSourceUrl.GetProtocol() != INetProtocol::Cmis )
{
OUString sSrcBindingUrl = URL( rTransferInfo.SourceURL ).getBindingUrl( );
if ( sSrcBindingUrl != m_aURL.getBindingUrl( ) )
diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx
index cadf02f3904f..e107e446c39a 100644
--- a/unotools/source/config/pathoptions.cxx
+++ b/unotools/source/config/pathoptions.cxx
@@ -299,7 +299,7 @@ OUString SvtPathOptions_Impl::ExpandMacros( const OUString& rPath ) const
OUString sExpanded( rPath );
const INetURLObject aParser( rPath );
- if ( aParser.GetProtocol() == INetProtocol::VND_SUN_STAR_EXPAND )
+ if ( aParser.GetProtocol() == INetProtocol::VndSunStarExpand )
sExpanded = m_xMacroExpander->expandMacros( aParser.GetURLPath( INetURLObject::DECODE_WITH_CHARSET ) );
return sExpanded;
@@ -795,7 +795,7 @@ bool SvtPathOptions::SearchFile( OUString& rIniFile, Paths ePath )
if ( LocalFileHelper::ConvertPhysicalNameToURL( aPathToken, aURL ) )
aObj.SetURL( aURL );
}
- if ( aObj.GetProtocol() == INetProtocol::VND_SUN_STAR_EXPAND )
+ if ( aObj.GetProtocol() == INetProtocol::VndSunStarExpand )
{
Reference< XMacroExpander > xMacroExpander = theMacroExpander::get( ::comphelper::getProcessComponentContext() );
const OUString sExpandedPath = xMacroExpander->expandMacros( aObj.GetURLPath( INetURLObject::DECODE_WITH_CHARSET ) );
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx
index 33c90f6122e4..71dcb5a233ae 100644
--- a/unotools/source/config/securityoptions.cxx
+++ b/unotools/source/config/securityoptions.cxx
@@ -999,14 +999,14 @@ bool SvtSecurityOptions::isSecureMacroUri(
OUString const & uri, OUString const & referer) const
{
switch (INetURLObject(uri).GetProtocol()) {
- case INetProtocol::MACRO:
+ case INetProtocol::Macro:
if (uri.startsWithIgnoreAsciiCase("macro:///")) {
// Denotes an App-BASIC macro (see SfxMacroLoader::loadMacro), which
// is considered safe:
return true;
}
// fall through
- case INetProtocol::SLOT:
+ case INetProtocol::Slot:
return referer.equalsIgnoreAsciiCase("private:user")
|| isTrustedLocationUri(referer);
default:
diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx
index 39bd6fefb142..1cb9ad65b58c 100644
--- a/unotools/source/ucbhelper/ucbhelper.cxx
+++ b/unotools/source/ucbhelper/ucbhelper.cxx
@@ -408,7 +408,7 @@ bool utl::UCBContentHelper::IsSubPath(
INetURLObject tmp;
do {
if (candidate == folder
- || (candidate.GetProtocol() == INetProtocol::FILE
+ || (candidate.GetProtocol() == INetProtocol::File
&& candidateLower == folderLower
&& (getCasePreservingUrl(candidate)
== getCasePreservingUrl(folder))))
diff --git a/vbahelper/source/vbahelper/vbadocumentsbase.cxx b/vbahelper/source/vbahelper/vbadocumentsbase.cxx
index c4d515868d64..4f325301c7dc 100644
--- a/vbahelper/source/vbahelper/vbadocumentsbase.cxx
+++ b/vbahelper/source/vbahelper/vbadocumentsbase.cxx
@@ -278,7 +278,7 @@ uno::Any VbaDocumentsBase::openDocument( const OUString& rFileName, const uno::A
OUString aURL;
INetURLObject aObj;
aObj.SetURL( rFileName );
- bool bIsURL = aObj.GetProtocol() != INetProtocol::NOT_VALID;
+ bool bIsURL = aObj.GetProtocol() != INetProtocol::NotValid;
if ( bIsURL )
aURL = rFileName;
else
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index 69f566e5eb7b..147070e52810 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -1282,7 +1282,7 @@ sal_uInt16 GraphicFilter::CanImportGraphic( const INetURLObject& rPath,
sal_uInt16 nFormat, sal_uInt16* pDeterminedFormat )
{
sal_uInt16 nRetValue = GRFILTER_FORMATERROR;
- DBG_ASSERT( rPath.GetProtocol() != INetProtocol::NOT_VALID, "GraphicFilter::CanImportGraphic() : ProtType == INetProtocol::NOT_VALID" );
+ DBG_ASSERT( rPath.GetProtocol() != INetProtocol::NotValid, "GraphicFilter::CanImportGraphic() : ProtType == INetProtocol::NotValid" );
OUString aMainUrl( rPath.GetMainURL( INetURLObject::NO_DECODE ) );
std::unique_ptr<SvStream> xStream(::utl::UcbStreamHelper::CreateStream( aMainUrl, StreamMode::READ | StreamMode::SHARE_DENYNONE ));
@@ -1312,7 +1312,7 @@ sal_uInt16 GraphicFilter::ImportGraphic( Graphic& rGraphic, const INetURLObject&
sal_uInt16 nFormat, sal_uInt16 * pDeterminedFormat, sal_uInt32 nImportFlags )
{
sal_uInt16 nRetValue = GRFILTER_FORMATERROR;
- DBG_ASSERT( rPath.GetProtocol() != INetProtocol::NOT_VALID, "GraphicFilter::ImportGraphic() : ProtType == INetProtocol::NOT_VALID" );
+ DBG_ASSERT( rPath.GetProtocol() != INetProtocol::NotValid, "GraphicFilter::ImportGraphic() : ProtType == INetProtocol::NotValid" );
OUString aMainUrl( rPath.GetMainURL( INetURLObject::NO_DECODE ) );
std::unique_ptr<SvStream> xStream(::utl::UcbStreamHelper::CreateStream( aMainUrl, StreamMode::READ | StreamMode::SHARE_DENYNONE ));
@@ -1804,7 +1804,7 @@ sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const INetURLO
#else
SAL_INFO( "vcl.filter", "GraphicFilter::ExportGraphic() (thb)" );
sal_uInt16 nRetValue = GRFILTER_FORMATERROR;
- DBG_ASSERT( rPath.GetProtocol() != INetProtocol::NOT_VALID, "GraphicFilter::ExportGraphic() : ProtType == INetProtocol::NOT_VALID" );
+ DBG_ASSERT( rPath.GetProtocol() != INetProtocol::NotValid, "GraphicFilter::ExportGraphic() : ProtType == INetProtocol::NotValid" );
bool bAlreadyExists = DirEntryExists( rPath );
OUString aMainUrl( rPath.GetMainURL( INetURLObject::NO_DECODE ) );
@@ -2254,12 +2254,12 @@ int GraphicFilter::LoadGraphic( const OUString &rPath, const OUString &rFilterNa
INetURLObject aURL( rPath );
if ( aURL.HasError() )
{
- aURL.SetSmartProtocol( INetProtocol::FILE );
+ aURL.SetSmartProtocol( INetProtocol::File );
aURL.SetSmartURL( rPath );
}
SvStream* pStream = NULL;
- if ( INetProtocol::FILE != aURL.GetProtocol() )
+ if ( INetProtocol::File != aURL.GetProtocol() )
{
pStream = ::utl::UcbStreamHelper::CreateStream( rPath, StreamMode::READ );
}
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index b6e1a65f63a0..2a4166f4b951 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -4504,7 +4504,7 @@ we check in the following sequence:
// check if the protocol is a known one, or if there is no protocol at all (on target only)
// if there is no protocol, make the target relative to the current document directory
// getting the needed URL information from the current document path
- if( eTargetProtocol == INetProtocol::NOT_VALID )
+ if( eTargetProtocol == INetProtocol::NotValid )
{
if( rLink.m_aURL.getLength() > 4 && rLink.m_aURL.startsWith("\\\\\\\\"))
{
@@ -4571,7 +4571,7 @@ we check in the following sequence:
bool bSetRelative = false;
bool bFileSpec = false;
//check if relative file link is requested and if the protocol is 'file://'
- if( m_aContext.RelFsys && eBaseProtocol == eTargetProtocol && eTargetProtocol == INetProtocol::FILE )
+ if( m_aContext.RelFsys && eBaseProtocol == eTargetProtocol && eTargetProtocol == INetProtocol::File )
bSetRelative = true;
OUString aFragment = aTargetURL.GetMark( INetURLObject::NO_DECODE /*DECODE_WITH_CHARSET*/ ); //fragment as is,
@@ -4593,7 +4593,7 @@ we check in the following sequence:
// the one that normally have fragments (but I may be wrong...)
// and will force the use of URI when the protocol is not file:
if( (!aFragment.isEmpty() && !bTargetHasPDFExtension) ||
- eTargetProtocol != INetProtocol::FILE )
+ eTargetProtocol != INetProtocol::File )
{
aLine.append( "/URI/URI" );
}
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 87ef52e2347b..3c573ae00b43 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -458,7 +458,7 @@ void PPDParser::initPPDFiles(PPDCache &rPPDCache)
psp::getPrinterPathList( aPathList, PRINTER_PPDDIR );
for( std::list< OUString >::const_iterator ppd_it = aPathList.begin(); ppd_it != aPathList.end(); ++ppd_it )
{
- INetURLObject aPPDDir( *ppd_it, INetProtocol::FILE, INetURLObject::ENCODE_ALL );
+ INetURLObject aPPDDir( *ppd_it, INetProtocol::File, INetURLObject::ENCODE_ALL );
scanPPDDir( aPPDDir.GetMainURL( INetURLObject::NO_DECODE ) );
}
if( rPPDCache.pAllPPDFiles->find( OUString( "SGENPRT" ) ) == rPPDCache.pAllPPDFiles->end() )
@@ -481,7 +481,7 @@ void PPDParser::initPPDFiles(PPDCache &rPPDCache)
OUString PPDParser::getPPDFile( const OUString& rFile )
{
- INetURLObject aPPD( rFile, INetProtocol::FILE, INetURLObject::ENCODE_ALL );
+ INetURLObject aPPD( rFile, INetProtocol::File, INetURLObject::ENCODE_ALL );
// someone might enter a full qualified name here
PPDDecompressStream aStream( aPPD.PathToFileName() );
if( ! aStream.IsOpen() )
diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx b/vcl/unx/generic/printer/printerinfomanager.cxx
index 7c69eaf6d66a..8464f6f03333 100644
--- a/vcl/unx/generic/printer/printerinfomanager.cxx
+++ b/vcl/unx/generic/printer/printerinfomanager.cxx
@@ -210,7 +210,7 @@ void PrinterInfoManager::initialize()
std::list< OUString >::const_iterator print_dir_it;
for( print_dir_it = aDirList.begin(); print_dir_it != aDirList.end(); ++print_dir_it )
{
- INetURLObject aFile( *print_dir_it, INetProtocol::FILE, INetURLObject::ENCODE_ALL );
+ INetURLObject aFile( *print_dir_it, INetProtocol::File, INetURLObject::ENCODE_ALL );
aFile.Append( OUString( PRINT_FILENAME ) );
Config aConfig( aFile.PathToFileName() );
if( aConfig.HasGroup( GLOBAL_DEFAULTS_GROUP ) )
@@ -277,7 +277,7 @@ void PrinterInfoManager::initialize()
// now collect all available printers
for( print_dir_it = aDirList.begin(); print_dir_it != aDirList.end(); ++print_dir_it )
{
- INetURLObject aDir( *print_dir_it, INetProtocol::FILE, INetURLObject::ENCODE_ALL );
+ INetURLObject aDir( *print_dir_it, INetProtocol::File, INetURLObject::ENCODE_ALL );
INetURLObject aFile( aDir );
aFile.Append( OUString( PRINT_FILENAME ) );
diff --git a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
index 0443eda76340..4aaa69fabcd8 100644
--- a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
@@ -51,7 +51,7 @@ OUString SalGtkPicker::uritounicode(const gchar* pIn)
RTL_TEXTENCODING_UTF8 );
INetURLObject aURL(sURL);
- if (INetProtocol::FILE == aURL.GetProtocol())
+ if (INetProtocol::File == aURL.GetProtocol())
{
// all the URLs are handled by office in UTF-8
// so the Gnome FP related URLs should be converted accordingly
@@ -81,7 +81,7 @@ OString SalGtkPicker::unicodetouri(const OUString &rURL)
// so the Gnome FP related URLs should be converted accordingly
OString sURL = OUStringToOString(rURL, RTL_TEXTENCODING_UTF8);
INetURLObject aURL(rURL);
- if (INetProtocol::FILE == aURL.GetProtocol())
+ if (INetProtocol::File == aURL.GetProtocol())
{
OUString aNewURL = uri::ExternalUriReferenceTranslator::create( m_xContext )->translateToInternal(rURL);
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx
index 9fd3a6142cd8..610a30fd6621 100644
--- a/xmloff/source/forms/elementexport.cxx
+++ b/xmloff/source/forms/elementexport.cxx
@@ -2116,7 +2116,7 @@ namespace xmloff
if ( !m_bCreateConnectionResourceElement )
{
INetURLObject aURL(sPropValue);
- m_bCreateConnectionResourceElement = ( aURL.GetProtocol() == INetProtocol::FILE );
+ m_bCreateConnectionResourceElement = ( aURL.GetProtocol() == INetProtocol::File );
if ( !m_bCreateConnectionResourceElement )
exportStringPropertyAttribute(
OAttributeMetaData::getFormAttributeNamespace(faDatasource),
diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx
index 99c0af3700c5..3c03e0bc3ad0 100644
--- a/xmloff/source/forms/elementimport.cxx
+++ b/xmloff/source/forms/elementimport.cxx
@@ -2061,7 +2061,7 @@ namespace xmloff
OUString sValue = _xAttrList->getValueByIndex( i );
INetURLObject aURL(sValue);
- if ( aURL.GetProtocol() == INetProtocol::FILE )
+ if ( aURL.GetProtocol() == INetProtocol::File )
_xElement->setPropertyValue(PROPERTY_DATASOURCENAME,makeAny(sValue));
else
_xElement->setPropertyValue(PROPERTY_URL,makeAny(sValue)); // the url is the "sdbc:" string
diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx
index 17cedc4eaca6..e5246617540a 100644
--- a/xmlsecurity/source/dialogs/macrosecurity.cxx
+++ b/xmlsecurity/source/dialogs/macrosecurity.cxx
@@ -240,7 +240,7 @@ IMPL_LINK_NOARG(MacroSecurityTrustedSourcesTP, AddLocPBHdl)
aNewObj.removeFinalSlash();
// then the new path also an URL else system path
- OUString aSystemFileURL = ( aNewObj.GetProtocol() != INetProtocol::NOT_VALID ) ?
+ OUString aSystemFileURL = ( aNewObj.GetProtocol() != INetProtocol::NotValid ) ?
aPathStr : aNewObj.getFSysPath( INetURLObject::FSYS_DETECT );
OUString aNewPathStr(aSystemFileURL);