summaryrefslogtreecommitdiff
path: root/desktop/source/deployment
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/deployment')
-rw-r--r--desktop/source/deployment/dp_persmap.cxx2
-rw-r--r--desktop/source/deployment/dp_xml.cxx1
-rw-r--r--desktop/source/deployment/gui/dp_gui_dependencydialog.cxx4
-rw-r--r--desktop/source/deployment/gui/dp_gui_dependencydialog.hxx2
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.cxx13
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.hxx24
-rw-r--r--desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx13
-rw-r--r--desktop/source/deployment/gui/dp_gui_extensioncmdqueue.hxx4
-rw-r--r--desktop/source/deployment/gui/dp_gui_extlistbox.cxx18
-rw-r--r--desktop/source/deployment/gui/dp_gui_extlistbox.hxx12
-rw-r--r--desktop/source/deployment/gui/dp_gui_service.cxx19
-rw-r--r--desktop/source/deployment/gui/dp_gui_theextmgr.cxx5
-rw-r--r--desktop/source/deployment/gui/dp_gui_theextmgr.hxx8
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedata.hxx6
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.cxx96
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.hxx38
-rw-r--r--desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx9
-rw-r--r--desktop/source/deployment/gui/dp_gui_updateinstalldialog.hxx20
-rw-r--r--desktop/source/deployment/gui/license_dialog.cxx9
-rw-r--r--desktop/source/deployment/gui/license_dialog.hxx1
-rw-r--r--desktop/source/deployment/inc/dp_dependencies.hxx2
-rw-r--r--desktop/source/deployment/inc/dp_descriptioninfoset.hxx50
-rw-r--r--desktop/source/deployment/inc/dp_identifier.hxx12
-rw-r--r--desktop/source/deployment/inc/dp_interact.h10
-rw-r--r--desktop/source/deployment/inc/dp_misc.h30
-rw-r--r--desktop/source/deployment/inc/dp_persmap.h16
-rw-r--r--desktop/source/deployment/inc/dp_platform.hxx6
-rw-r--r--desktop/source/deployment/inc/dp_resource.h4
-rw-r--r--desktop/source/deployment/inc/dp_ucb.h20
-rw-r--r--desktop/source/deployment/inc/dp_update.hxx30
-rw-r--r--desktop/source/deployment/inc/dp_version.hxx2
-rw-r--r--desktop/source/deployment/inc/lockfile.hxx20
-rw-r--r--desktop/source/deployment/manager/dp_activepackages.cxx60
-rw-r--r--desktop/source/deployment/manager/dp_activepackages.hxx26
-rw-r--r--desktop/source/deployment/manager/dp_commandenvironments.cxx1
-rw-r--r--desktop/source/deployment/manager/dp_commandenvironments.hxx4
-rw-r--r--desktop/source/deployment/manager/dp_extensionmanager.cxx9
-rw-r--r--desktop/source/deployment/manager/dp_extensionmanager.hxx70
-rw-r--r--desktop/source/deployment/manager/dp_informationprovider.cxx72
-rw-r--r--desktop/source/deployment/manager/dp_manager.cxx27
-rw-r--r--desktop/source/deployment/manager/dp_manager.h44
-rw-r--r--desktop/source/deployment/manager/dp_managerfac.cxx3
-rw-r--r--desktop/source/deployment/manager/dp_properties.cxx5
-rw-r--r--desktop/source/deployment/manager/dp_properties.hxx12
-rw-r--r--desktop/source/deployment/misc/dp_dependencies.cxx16
-rw-r--r--desktop/source/deployment/misc/dp_descriptioninfoset.cxx119
-rw-r--r--desktop/source/deployment/misc/dp_identifier.cxx14
-rw-r--r--desktop/source/deployment/misc/dp_interact.cxx1
-rw-r--r--desktop/source/deployment/misc/dp_misc.cxx22
-rw-r--r--desktop/source/deployment/misc/dp_platform.cxx3
-rw-r--r--desktop/source/deployment/misc/dp_resource.cxx1
-rw-r--r--desktop/source/deployment/misc/dp_ucb.cxx7
-rw-r--r--desktop/source/deployment/misc/dp_update.cxx36
-rw-r--r--desktop/source/deployment/misc/dp_version.cxx8
-rw-r--r--desktop/source/deployment/misc/lockfile.cxx26
-rw-r--r--desktop/source/deployment/registry/component/dp_compbackenddb.cxx7
-rw-r--r--desktop/source/deployment/registry/component/dp_compbackenddb.hxx18
-rw-r--r--desktop/source/deployment/registry/component/dp_component.cxx69
-rw-r--r--desktop/source/deployment/registry/configuration/dp_configuration.cxx31
-rw-r--r--desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx7
-rw-r--r--desktop/source/deployment/registry/configuration/dp_configurationbackenddb.hxx20
-rw-r--r--desktop/source/deployment/registry/dp_backend.cxx1
-rw-r--r--desktop/source/deployment/registry/dp_backenddb.cxx33
-rw-r--r--desktop/source/deployment/registry/dp_registry.cxx15
-rw-r--r--desktop/source/deployment/registry/executable/dp_executable.cxx3
-rw-r--r--desktop/source/deployment/registry/executable/dp_executablebackenddb.cxx3
-rw-r--r--desktop/source/deployment/registry/executable/dp_executablebackenddb.hxx10
-rw-r--r--desktop/source/deployment/registry/help/dp_help.cxx93
-rw-r--r--desktop/source/deployment/registry/help/dp_helpbackenddb.cxx7
-rw-r--r--desktop/source/deployment/registry/help/dp_helpbackenddb.hxx18
-rw-r--r--desktop/source/deployment/registry/inc/dp_backend.h96
-rw-r--r--desktop/source/deployment/registry/inc/dp_backenddb.hxx74
-rw-r--r--desktop/source/deployment/registry/package/dp_extbackenddb.cxx7
-rw-r--r--desktop/source/deployment/registry/package/dp_extbackenddb.hxx18
-rw-r--r--desktop/source/deployment/registry/package/dp_package.cxx17
-rw-r--r--desktop/source/deployment/registry/script/dp_lib_container.cxx1
-rw-r--r--desktop/source/deployment/registry/script/dp_lib_container.h4
-rw-r--r--desktop/source/deployment/registry/script/dp_script.cxx1
-rw-r--r--desktop/source/deployment/registry/script/dp_scriptbackenddb.cxx3
-rw-r--r--desktop/source/deployment/registry/script/dp_scriptbackenddb.hxx10
-rw-r--r--desktop/source/deployment/registry/sfwk/dp_parceldesc.cxx1
-rw-r--r--desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx14
-rw-r--r--desktop/source/deployment/registry/sfwk/dp_sfwk.cxx1
83 files changed, 817 insertions, 857 deletions
diff --git a/desktop/source/deployment/dp_persmap.cxx b/desktop/source/deployment/dp_persmap.cxx
index aab763165982..637d0b996f86 100644
--- a/desktop/source/deployment/dp_persmap.cxx
+++ b/desktop/source/deployment/dp_persmap.cxx
@@ -329,7 +329,7 @@ bool PersistentMap::importFromBDB()
return false;
// get the name of its BDB counterpart
- rtl::OUString aDBName = m_MapFileName;
+ OUString aDBName = m_MapFileName;
if( !aDBName.endsWith( ".pmap" ))
return false;
aDBName = aDBName.replaceAt( aDBName.getLength()-5, 5, ".db");
diff --git a/desktop/source/deployment/dp_xml.cxx b/desktop/source/deployment/dp_xml.cxx
index f566d9458473..9fd60fc67d0b 100644
--- a/desktop/source/deployment/dp_xml.cxx
+++ b/desktop/source/deployment/dp_xml.cxx
@@ -27,7 +27,6 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
namespace dp_misc
{
diff --git a/desktop/source/deployment/gui/dp_gui_dependencydialog.cxx b/desktop/source/deployment/gui/dp_gui_dependencydialog.cxx
index 571bd2806bfb..33a71c6b2275 100644
--- a/desktop/source/deployment/gui/dp_gui_dependencydialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dependencydialog.cxx
@@ -37,7 +37,7 @@ class Window;
using dp_gui::DependencyDialog;
DependencyDialog::DependencyDialog(
- Window * parent, std::vector< rtl::OUString > const & dependencies):
+ Window * parent, std::vector< OUString > const & dependencies):
ModalDialog(parent, DpGuiResId(RID_DLG_DEPENDENCIES) ),
m_text(this, DpGuiResId(RID_DLG_DEPENDENCIES_TEXT)),
m_list(this, DpGuiResId(RID_DLG_DEPENDENCIES_LIST)),
@@ -49,7 +49,7 @@ DependencyDialog::DependencyDialog(
FreeResource();
SetMinOutputSizePixel(GetOutputSizePixel());
m_list.SetReadOnly();
- for (std::vector< rtl::OUString >::const_iterator i(dependencies.begin());
+ for (std::vector< OUString >::const_iterator i(dependencies.begin());
i != dependencies.end(); ++i)
{
m_list.InsertEntry(*i);
diff --git a/desktop/source/deployment/gui/dp_gui_dependencydialog.hxx b/desktop/source/deployment/gui/dp_gui_dependencydialog.hxx
index fe38515272d3..c0d8172a8aa3 100644
--- a/desktop/source/deployment/gui/dp_gui_dependencydialog.hxx
+++ b/desktop/source/deployment/gui/dp_gui_dependencydialog.hxx
@@ -37,7 +37,7 @@ namespace dp_gui {
class DependencyDialog: public ModalDialog {
public:
DependencyDialog(
- Window * parent, std::vector< rtl::OUString > const & dependencies);
+ Window * parent, std::vector< OUString > const & dependencies);
~DependencyDialog();
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 63154e7931f1..2a439da9900d 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -76,7 +76,6 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::system;
-using ::rtl::OUString;
namespace dp_gui {
@@ -494,7 +493,7 @@ IMPL_LINK_NOARG(ExtBoxWithBtns_Impl, HandleOptionsBtn)
if ( pFact )
{
OUString sExtensionId = GetEntryData( nActive )->m_xPackage->getIdentifier().Value;
- VclAbstractDialog* pDlg = pFact->CreateOptionsDialog( this, sExtensionId, rtl::OUString() );
+ VclAbstractDialog* pDlg = pFact->CreateOptionsDialog( this, sExtensionId, OUString() );
pDlg->Execute();
@@ -749,7 +748,7 @@ ExtMgrDialog::~ExtMgrDialog()
}
//------------------------------------------------------------------------------
-void ExtMgrDialog::setGetExtensionsURL( const ::rtl::OUString &rURL )
+void ExtMgrDialog::setGetExtensionsURL( const OUString &rURL )
{
m_pGetExtensions->SetURL( rURL );
}
@@ -914,7 +913,7 @@ uno::Sequence< OUString > ExtMgrDialog::raiseAddPicker()
title2filter.insert( t_string2string::value_type( title, filter ) ) );
if ( ! insertion.second )
{ // already existing, append extensions:
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
buf.append( insertion.first->second );
buf.append( static_cast<sal_Unicode>(';') );
buf.append( filter );
@@ -935,7 +934,7 @@ uno::Sequence< OUString > ExtMgrDialog::raiseAddPicker()
xFilePicker->appendFilter( iPos->first, iPos->second );
}
catch (const lang::IllegalArgumentException & exc) {
- OSL_FAIL( ::rtl::OUStringToOString(
+ OSL_FAIL( OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
(void) exc;
}
@@ -1550,7 +1549,7 @@ void UpdateRequiredDialog::Resize()
Rectangle aControlRegion( Point( 0, 0 ), m_aProgressBar.GetSizePixel() );
Rectangle aNativeControlRegion, aNativeContentRegion;
if( GetNativeControlRegion( CTRL_PROGRESS, PART_ENTIRE_CONTROL, aControlRegion,
- CTRL_STATE_ENABLED, aValue, rtl::OUString(),
+ CTRL_STATE_ENABLED, aValue, OUString(),
aNativeControlRegion, aNativeContentRegion ) != sal_False )
{
nProgressHeight = aNativeControlRegion.GetHeight();
@@ -1636,7 +1635,7 @@ bool UpdateRequiredDialog::isEnabled( const uno::Reference< deployment::XPackage
catch ( const uno::RuntimeException & ) { throw; }
catch (const uno::Exception & exc) {
(void) exc;
- OSL_FAIL( ::rtl::OUStringToOString( exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
+ OSL_FAIL( OUStringToOString( exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
bRegistered = false;
}
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.hxx b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
index 490ac061153f..b5a5aa430483 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.hxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
@@ -63,13 +63,13 @@ public:
Dialog *pWindow );
virtual ~DialogHelper();
- void openWebBrowser( const ::rtl::OUString & sURL, const ::rtl::OUString & sTitle ) const;
+ void openWebBrowser( const OUString & sURL, const OUString & sTitle ) const;
Dialog* getWindow() const { return m_pVCLWindow; };
void PostUserEvent( const Link& rLink, void* pCaller );
void clearEventID() { m_nEventID = 0; }
virtual void showProgress( bool bStart ) = 0;
- virtual void updateProgress( const ::rtl::OUString &rText,
+ virtual void updateProgress( const OUString &rText,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XAbortChannel > &xAbortChannel) = 0;
virtual void updateProgress( const long nProgress ) = 0;
@@ -90,7 +90,7 @@ public:
void setBusy( const bool bBusy ) { m_bIsBusy = bBusy; }
bool isBusy() const { return m_bIsBusy; }
- bool installExtensionWarn( const ::rtl::OUString &rExtensionURL ) const;
+ bool installExtensionWarn( const OUString &rExtensionURL ) const;
bool installForAllUsers( bool &bInstallForAll ) const;
};
@@ -126,7 +126,7 @@ class ExtMgrDialog : public ModelessDialog,
::com::sun::star::uno::Reference< ::com::sun::star::task::XAbortChannel > m_xAbortChannel;
- bool removeExtensionWarn( const ::rtl::OUString &rExtensionTitle ) const;
+ bool removeExtensionWarn( const OUString &rExtensionTitle ) const;
DECL_DLLPRIVATE_LINK( HandleAddBtn, void * );
DECL_DLLPRIVATE_LINK( HandleUpdateBtn, void * );
@@ -145,13 +145,13 @@ public:
virtual sal_Bool Close();
virtual void showProgress( bool bStart );
- virtual void updateProgress( const ::rtl::OUString &rText,
+ virtual void updateProgress( const OUString &rText,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XAbortChannel > &xAbortChannel);
virtual void updateProgress( const long nProgress );
virtual void updatePackageInfo( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > &xPackage );
- void setGetExtensionsURL( const ::rtl::OUString &rURL );
+ void setGetExtensionsURL( const OUString &rURL );
virtual long addPackageToList( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > &,
bool bLicenseMissing = false );
bool enablePackage(const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > &xPackage,
@@ -165,7 +165,7 @@ public:
virtual void prepareChecking();
virtual void checkEntries();
- ::com::sun::star::uno::Sequence< ::rtl::OUString > raiseAddPicker();
+ ::com::sun::star::uno::Sequence< OUString > raiseAddPicker();
};
//==============================================================================
@@ -219,7 +219,7 @@ public:
virtual sal_Bool Close();
virtual void showProgress( bool bStart );
- virtual void updateProgress( const ::rtl::OUString &rText,
+ virtual void updateProgress( const OUString &rText,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XAbortChannel > &xAbortChannel);
virtual void updateProgress( const long nProgress );
@@ -233,10 +233,10 @@ public:
virtual void prepareChecking();
virtual void checkEntries();
- ::com::sun::star::uno::Sequence< ::rtl::OUString > raiseAddPicker();
+ ::com::sun::star::uno::Sequence< OUString > raiseAddPicker();
bool installForAllUsers( bool &bInstallForAll ) const;
- bool installExtensionWarn( const ::rtl::OUString &rExtensionURL ) const;
+ bool installExtensionWarn( const OUString &rExtensionURL ) const;
};
//==============================================================================
@@ -258,14 +258,14 @@ class UpdateRequiredDialogService : public ::cppu::WeakImplHelper1< ::com::sun::
{
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const m_xComponentContext;
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xParent;
- ::rtl::OUString m_sInitialTitle;
+ OUString m_sInitialTitle;
public:
UpdateRequiredDialogService( ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > const & args,
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext> const & xComponentContext );
// XExecutableDialog
- virtual void SAL_CALL setTitle( rtl::OUString const & title ) throw ( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL setTitle( OUString const & title ) throw ( ::com::sun::star::uno::RuntimeException );
virtual sal_Int16 SAL_CALL execute() throw ( ::com::sun::star::uno::RuntimeException );
};
diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
index 9b4ba5b39095..df0e4175813e 100644
--- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
@@ -100,7 +100,6 @@
using namespace ::com::sun::star;
-using ::rtl::OUString;
namespace {
@@ -405,7 +404,7 @@ void ProgressCmdEnv::handle( uno::Reference< task::XInteractionRequest > const &
}
else if (request >>= depExc)
{
- std::vector< rtl::OUString > deps;
+ std::vector< OUString > deps;
for (sal_Int32 i = 0; i < depExc.UnsatisfiedDependencies.getLength();
++i)
{
@@ -620,8 +619,8 @@ ExtensionCmdQueue::Thread::Thread( DialogHelper *pDialogHelper,
}
//------------------------------------------------------------------------------
-void ExtensionCmdQueue::Thread::addExtension( const ::rtl::OUString &rExtensionURL,
- const ::rtl::OUString &rRepository,
+void ExtensionCmdQueue::Thread::addExtension( const OUString &rExtensionURL,
+ const OUString &rRepository,
const bool bWarnUser )
{
if ( !rExtensionURL.isEmpty() )
@@ -921,7 +920,7 @@ void ExtensionCmdQueue::Thread::_removeExtension( ::rtl::Reference< ProgressCmdE
{}
// Check, if there are still updates to be notified via menu bar icon
- uno::Sequence< uno::Sequence< rtl::OUString > > aItemList;
+ uno::Sequence< uno::Sequence< OUString > > aItemList;
UpdateDialog::createNotifyJob( false, aItemList );
}
@@ -1077,8 +1076,8 @@ ExtensionCmdQueue::~ExtensionCmdQueue() {
stop();
}
-void ExtensionCmdQueue::addExtension( const ::rtl::OUString & extensionURL,
- const ::rtl::OUString & repository,
+void ExtensionCmdQueue::addExtension( const OUString & extensionURL,
+ const OUString & repository,
const bool bWarnUser )
{
m_thread->addExtension( extensionURL, repository, bWarnUser );
diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.hxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.hxx
index 955c66888136..69a109caa237 100644
--- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.hxx
+++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.hxx
@@ -69,8 +69,8 @@ public:
/**
*/
- void addExtension( const ::rtl::OUString &rExtensionURL,
- const ::rtl::OUString &rRepository,
+ void addExtension( const OUString &rExtensionURL,
+ const OUString &rRepository,
const bool bWarnUser );
void removeExtension( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > &rPackage );
void enableExtension( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > &rPackage,
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
index 7b61ac925f36..19d274956ca8 100644
--- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
@@ -141,7 +141,7 @@ void Entry_Impl::checkDependencies()
deployment::DependencyException depExc;
if ( e.Cause >>= depExc )
{
- rtl::OUString aMissingDep( DialogHelper::getResourceString( RID_STR_ERROR_MISSING_DEPENDENCIES ) );
+ OUString aMissingDep( DialogHelper::getResourceString( RID_STR_ERROR_MISSING_DEPENDENCIES ) );
for ( sal_Int32 i = 0; i < depExc.UnsatisfiedDependencies.getLength(); ++i )
{
aMissingDep += "\n";
@@ -316,7 +316,7 @@ void ExtensionBox_Impl::checkIndex( sal_Int32 nIndex ) const
}
//------------------------------------------------------------------------------
-rtl::OUString ExtensionBox_Impl::getItemName( sal_Int32 nIndex ) const
+OUString ExtensionBox_Impl::getItemName( sal_Int32 nIndex ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
checkIndex( nIndex );
@@ -324,7 +324,7 @@ rtl::OUString ExtensionBox_Impl::getItemName( sal_Int32 nIndex ) const
}
//------------------------------------------------------------------------------
-rtl::OUString ExtensionBox_Impl::getItemVersion( sal_Int32 nIndex ) const
+OUString ExtensionBox_Impl::getItemVersion( sal_Int32 nIndex ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
checkIndex( nIndex );
@@ -332,7 +332,7 @@ rtl::OUString ExtensionBox_Impl::getItemVersion( sal_Int32 nIndex ) const
}
//------------------------------------------------------------------------------
-rtl::OUString ExtensionBox_Impl::getItemDescription( sal_Int32 nIndex ) const
+OUString ExtensionBox_Impl::getItemDescription( sal_Int32 nIndex ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
checkIndex( nIndex );
@@ -340,7 +340,7 @@ rtl::OUString ExtensionBox_Impl::getItemDescription( sal_Int32 nIndex ) const
}
//------------------------------------------------------------------------------
-rtl::OUString ExtensionBox_Impl::getItemPublisher( sal_Int32 nIndex ) const
+OUString ExtensionBox_Impl::getItemPublisher( sal_Int32 nIndex ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
checkIndex( nIndex );
@@ -348,7 +348,7 @@ rtl::OUString ExtensionBox_Impl::getItemPublisher( sal_Int32 nIndex ) const
}
//------------------------------------------------------------------------------
-rtl::OUString ExtensionBox_Impl::getItemPublisherLink( sal_Int32 nIndex ) const
+OUString ExtensionBox_Impl::getItemPublisherLink( sal_Int32 nIndex ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
checkIndex( nIndex );
@@ -364,7 +364,7 @@ void ExtensionBox_Impl::select( sal_Int32 nIndex )
}
//------------------------------------------------------------------------------
-void ExtensionBox_Impl::select( const rtl::OUString & sName )
+void ExtensionBox_Impl::select( const OUString & sName )
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
typedef ::std::vector< TEntry_Impl >::const_iterator It;
@@ -403,7 +403,7 @@ void ExtensionBox_Impl::CalcActiveHeight( const long nPos )
aSize.Width() -= ICON_OFFSET;
aSize.Height() = 10000;
- rtl::OUString aText( m_vEntries[ nPos ]->m_sErrorText );
+ OUString aText( m_vEntries[ nPos ]->m_sErrorText );
if ( !aText.isEmpty() )
aText += "\n";
aText += m_vEntries[ nPos ]->m_sDescription;
@@ -621,7 +621,7 @@ void ExtensionBox_Impl::DrawRow( const Rectangle& rRect, const TEntry_Impl pEntr
aTextHeight = nIconHeight;
// draw description
- ::rtl::OUString sDescription;
+ OUString sDescription;
if ( pEntry->m_sErrorText.Len() )
{
if ( pEntry->m_bActive )
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.hxx b/desktop/source/deployment/gui/dp_gui_extlistbox.hxx
index b0fda41add21..12cae91a0f0b 100644
--- a/desktop/source/deployment/gui/dp_gui_extlistbox.hxx
+++ b/desktop/source/deployment/gui/dp_gui_extlistbox.hxx
@@ -228,27 +228,27 @@ public:
/** @return The item name of the entry with the given index
The index starts with 0.
Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */
- virtual ::rtl::OUString getItemName( sal_Int32 index ) const;
+ virtual OUString getItemName( sal_Int32 index ) const;
/** @return The version string of the entry with the given index
The index starts with 0.
Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */
- virtual ::rtl::OUString getItemVersion( sal_Int32 index ) const;
+ virtual OUString getItemVersion( sal_Int32 index ) const;
/** @return The description string of the entry with the given index
The index starts with 0.
Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */
- virtual ::rtl::OUString getItemDescription( sal_Int32 index ) const;
+ virtual OUString getItemDescription( sal_Int32 index ) const;
/** @return The publisher string of the entry with the given index
The index starts with 0.
Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */
- virtual ::rtl::OUString getItemPublisher( sal_Int32 index ) const;
+ virtual OUString getItemPublisher( sal_Int32 index ) const;
/** @return The link behind the publisher text of the entry with the given index
The index starts with 0.
Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */
- virtual ::rtl::OUString getItemPublisherLink( sal_Int32 index ) const;
+ virtual OUString getItemPublisherLink( sal_Int32 index ) const;
/** The entry at the given position will be selected
Index starts with 0.
@@ -262,7 +262,7 @@ public:
1. the name is not unique
2. one extension can be installed as user and shared extension.
*/
- virtual void select( const ::rtl::OUString & sName );
+ virtual void select( const OUString & sName );
};
}
diff --git a/desktop/source/deployment/gui/dp_gui_service.cxx b/desktop/source/deployment/gui/dp_gui_service.cxx
index 38abdb675e65..39cc7ae24e66 100644
--- a/desktop/source/deployment/gui/dp_gui_service.cxx
+++ b/desktop/source/deployment/gui/dp_gui_service.cxx
@@ -44,7 +44,6 @@ using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
namespace dp_gui {
@@ -102,17 +101,17 @@ namespace
: public rtl::Static< String, Extension > {};
}
-rtl::OUString ReplaceProductNameHookProc( const rtl::OUString& rStr )
+OUString ReplaceProductNameHookProc( const OUString& rStr )
{
if (rStr.indexOf( "%PRODUCT" ) == -1)
return rStr;
- rtl::OUString sProductName = ProductName::get();
- rtl::OUString sVersion = Version::get();
- rtl::OUString sAboutBoxVersion = AboutBoxVersion::get();
- rtl::OUString sAboutBoxVersionSuffix = AboutBoxVersionSuffix::get();
- rtl::OUString sExtension = Extension::get();
- rtl::OUString sOOOVendor = OOOVendor::get();
+ OUString sProductName = ProductName::get();
+ OUString sVersion = Version::get();
+ OUString sAboutBoxVersion = AboutBoxVersion::get();
+ OUString sAboutBoxVersionSuffix = AboutBoxVersionSuffix::get();
+ OUString sExtension = Extension::get();
+ OUString sOOOVendor = OOOVendor::get();
if ( sProductName.isEmpty() )
{
@@ -127,7 +126,7 @@ rtl::OUString ReplaceProductNameHookProc( const rtl::OUString& rStr )
}
}
- rtl::OUString sRet = rStr.replaceAll( "%PRODUCTNAME", sProductName );
+ OUString sRet = rStr.replaceAll( "%PRODUCTNAME", sProductName );
sRet = sRet.replaceAll( "%PRODUCTVERSION", sVersion );
sRet = sRet.replaceAll( "%ABOUTBOXPRODUCTVERSIONSUFFIX", sAboutBoxVersionSuffix );
sRet = sRet.replaceAll( "%ABOUTBOXPRODUCTVERSION", sAboutBoxVersion );
@@ -242,7 +241,7 @@ void ServiceImpl::startExecuteModal(
app->SetSettings( as );
app->SetDisplayName(
utl::ConfigManager::getProductName() +
- rtl::OUString(" ") +
+ OUString(" ") +
utl::ConfigManager::getProductVersion());
ExtensionCmdQueue::syncRepositories( m_xComponentContext );
}
diff --git a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
index b0d1350955eb..af1576460532 100644
--- a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
+++ b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
@@ -38,7 +38,6 @@
#define SHARED_PACKAGE_MANAGER OUString("shared")
using namespace ::com::sun::star;
-using ::rtl::OUString;
namespace dp_gui {
@@ -138,7 +137,7 @@ void TheExtensionManager::Show()
}
//------------------------------------------------------------------------------
-void TheExtensionManager::SetText( const ::rtl::OUString &rTitle )
+void TheExtensionManager::SetText( const OUString &rTitle )
{
const SolarMutexGuard guard;
@@ -341,7 +340,7 @@ PackageState TheExtensionManager::getPackageState( const uno::Reference< deploym
}
catch (const uno::Exception & exc) {
(void) exc;
- OSL_FAIL( ::rtl::OUStringToOString( exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
+ OSL_FAIL( OUStringToOString( exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
return NOT_AVAILABLE;
}
}
diff --git a/desktop/source/deployment/gui/dp_gui_theextmgr.hxx b/desktop/source/deployment/gui/dp_gui_theextmgr.hxx
index ec2734e80cee..df90ac4553d5 100644
--- a/desktop/source/deployment/gui/dp_gui_theextmgr.hxx
+++ b/desktop/source/deployment/gui/dp_gui_theextmgr.hxx
@@ -58,7 +58,7 @@ private:
UpdateRequiredDialog *m_pUpdReqDialog;
ExtensionCmdQueue *m_pExecuteCmdQueue;
- ::rtl::OUString m_sGetExtensionsURL;
+ OUString m_sGetExtensionsURL;
public:
static ::rtl::Reference<TheExtensionManager> s_ExtMgr;
@@ -74,7 +74,7 @@ public:
DialogHelper* getDialogHelper() { return m_pExtMgrDialog ? (DialogHelper*) m_pExtMgrDialog : (DialogHelper*) m_pUpdReqDialog; }
ExtensionCmdQueue* getCmdQueue() const { return m_pExecuteCmdQueue; }
- void SetText( const ::rtl::OUString &rTitle );
+ void SetText( const OUString &rTitle );
void Show();
void ToTop( sal_uInt16 nFlags );
bool Close();
@@ -82,7 +82,7 @@ public:
//-----------------
bool checkUpdates( bool showUpdateOnly, bool parentVisible );
- bool installPackage( const ::rtl::OUString &rPackageURL, bool bWarnUser = false );
+ bool installPackage( const OUString &rPackageURL, bool bWarnUser = false );
void createPackageList();
bool queryTermination();
@@ -99,7 +99,7 @@ public:
static ::rtl::Reference<TheExtensionManager> get(
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext> const & xContext,
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow> const & xParent = 0,
- ::rtl::OUString const & view = ::rtl::OUString() );
+ OUString const & view = OUString() );
// XEventListener
virtual void SAL_CALL disposing( ::com::sun::star::lang::EventObject const & evt )
diff --git a/desktop/source/deployment/gui/dp_gui_updatedata.hxx b/desktop/source/deployment/gui/dp_gui_updatedata.hxx
index d61194751f9f..fa688960573b 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedata.hxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedata.hxx
@@ -52,7 +52,7 @@ struct UpdateData
::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > aInstalledPackage;
//The version of the update
- ::rtl::OUString updateVersion;
+ OUString updateVersion;
//For online update
// ======================
@@ -62,9 +62,9 @@ struct UpdateData
::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > aUpdateInfo;
//The URL of the locally downloaded extension. It will only be set if there were no errors
//during the download
- ::rtl::OUString sLocalURL;
+ OUString sLocalURL;
//The URL of the website wher the download can be obtained.
- ::rtl::OUString sWebsiteURL;
+ OUString sWebsiteURL;
//For local update
//=====================
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
index cc9da4d783a4..84fccdf0bffe 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
@@ -138,7 +138,7 @@ static const sal_uInt16 CMD_IGNORE_ALL_UPDATES = 3;
enum Kind { ENABLED_UPDATE, DISABLED_UPDATE, SPECIFIC_ERROR };
-rtl::OUString confineToParagraph(rtl::OUString const & text) {
+OUString confineToParagraph(OUString const & text) {
// Confine arbitrary text to a single paragraph in a dp_gui::AutoScrollEdit.
// This assumes that U+000A and U+000D are the only paragraph separators in
// a dp_gui::AutoScrollEdit, and that replacing them with a single space
@@ -148,30 +148,30 @@ rtl::OUString confineToParagraph(rtl::OUString const & text) {
}
struct UpdateDialog::DisabledUpdate {
- rtl::OUString name;
- uno::Sequence< rtl::OUString > unsatisfiedDependencies;
+ OUString name;
+ uno::Sequence< OUString > unsatisfiedDependencies;
// We also want to show release notes and publisher for disabled updates
::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > aUpdateInfo;
sal_uInt16 m_nID;
};
struct UpdateDialog::SpecificError {
- rtl::OUString name;
- rtl::OUString message;
+ OUString name;
+ OUString message;
sal_uInt16 m_nID;
};
//------------------------------------------------------------------------------
struct UpdateDialog::IgnoredUpdate {
- rtl::OUString sExtensionID;
- rtl::OUString sVersion;
+ OUString sExtensionID;
+ OUString sVersion;
bool bRemoved;
- IgnoredUpdate( const rtl::OUString &rExtensionID, const rtl::OUString &rVersion );
+ IgnoredUpdate( const OUString &rExtensionID, const OUString &rVersion );
};
//------------------------------------------------------------------------------
-UpdateDialog::IgnoredUpdate::IgnoredUpdate( const rtl::OUString &rExtensionID, const rtl::OUString &rVersion ):
+UpdateDialog::IgnoredUpdate::IgnoredUpdate( const OUString &rExtensionID, const OUString &rVersion ):
sExtensionID( rExtensionID ),
sVersion( rVersion ),
bRemoved( false )
@@ -184,13 +184,13 @@ struct UpdateDialog::Index
bool m_bIgnored;
sal_uInt16 m_nID;
sal_uInt16 m_nIndex;
- rtl::OUString m_aName;
+ OUString m_aName;
- Index( Kind theKind, sal_uInt16 nID, sal_uInt16 nIndex, const rtl::OUString &rName );
+ Index( Kind theKind, sal_uInt16 nID, sal_uInt16 nIndex, const OUString &rName );
};
//------------------------------------------------------------------------------
-UpdateDialog::Index::Index( Kind theKind, sal_uInt16 nID, sal_uInt16 nIndex, const rtl::OUString &rName ):
+UpdateDialog::Index::Index( Kind theKind, sal_uInt16 nID, sal_uInt16 nIndex, const OUString &rName ):
m_eKind( theKind ),
m_bIgnored( false ),
m_nID( nID ),
@@ -222,11 +222,11 @@ private:
uno::Sequence< uno::Reference< xml::dom::XElement > >
getUpdateInformation(
uno::Reference< deployment::XPackage > const & package,
- uno::Sequence< rtl::OUString > const & urls,
- rtl::OUString const & identifier) const;
+ uno::Sequence< OUString > const & urls,
+ OUString const & identifier) const;
- ::rtl::OUString getUpdateDisplayString(
- dp_gui::UpdateData const & data, ::rtl::OUString const & version = ::rtl::OUString()) const;
+ OUString getUpdateDisplayString(
+ dp_gui::UpdateData const & data, OUString const & version = OUString()) const;
void prepareUpdateData(
::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > const & updateInfo,
@@ -318,12 +318,12 @@ void UpdateDialog::Thread::execute()
prepareUpdateData(info.info, disableUpdate, updateData);
//determine if the update is installed in the user or shared repository
- rtl::OUString sOnlineVersion;
+ OUString sOnlineVersion;
if (info.info.is())
sOnlineVersion = info.version;
- rtl::OUString sVersionUser;
- rtl::OUString sVersionShared;
- rtl::OUString sVersionBundled;
+ OUString sVersionUser;
+ OUString sVersionShared;
+ OUString sVersionBundled;
uno::Sequence< uno::Reference< deployment::XPackage> > extensions;
try {
extensions = extMgr->getExtensionsWithSameIdentifier(
@@ -406,11 +406,11 @@ void UpdateDialog::Thread::handleSpecificError(
}
}
-::rtl::OUString UpdateDialog::Thread::getUpdateDisplayString(
- dp_gui::UpdateData const & data, ::rtl::OUString const & version) const
+OUString UpdateDialog::Thread::getUpdateDisplayString(
+ dp_gui::UpdateData const & data, OUString const & version) const
{
OSL_ASSERT(data.aInstalledPackage.is());
- rtl::OUStringBuffer b(data.aInstalledPackage->getDisplayName());
+ OUStringBuffer b(data.aInstalledPackage->getDisplayName());
b.append(static_cast< sal_Unicode >(' '));
{
SolarMutexGuard g;
@@ -455,7 +455,7 @@ void UpdateDialog::Thread::prepareUpdateData(
out_du.unsatisfiedDependencies[i] = dp_misc::Dependencies::getErrorText(ds[i]);
}
- const ::boost::optional< ::rtl::OUString> updateWebsiteURL(infoset.getLocalizedUpdateWebsiteURL());
+ const ::boost::optional< OUString> updateWebsiteURL(infoset.getLocalizedUpdateWebsiteURL());
out_du.name = getUpdateDisplayString(out_data, infoset.getVersion());
@@ -724,7 +724,7 @@ void UpdateDialog::addAdditional( UpdateDialog::Index * index, SvLBoxButtonKind
}
//------------------------------------------------------------------------------
-void UpdateDialog::addEnabledUpdate( rtl::OUString const & name,
+void UpdateDialog::addEnabledUpdate( OUString const & name,
dp_gui::UpdateData & data )
{
sal_uInt16 nIndex = sal::static_int_cast< sal_uInt16 >( m_enabledUpdates.size() );
@@ -808,7 +808,7 @@ void UpdateDialog::enableOk() {
// *********************************************************************************
void UpdateDialog::createNotifyJob( bool bPrepareOnly,
- uno::Sequence< uno::Sequence< rtl::OUString > > &rItemList )
+ uno::Sequence< uno::Sequence< OUString > > &rItemList )
{
if ( !dp_misc::office_is_running() )
return;
@@ -843,7 +843,7 @@ void UpdateDialog::createNotifyJob( bool bPrepareOnly,
uno::Reference < frame::XDesktop2 > xDesktop = frame::Desktop::create( xContext );
uno::Reference< frame::XDispatchProvider > xDispatchProvider( xDesktop->getCurrentFrame(),
uno::UNO_QUERY_THROW );
- uno::Reference< frame::XDispatch > xDispatch = xDispatchProvider->queryDispatch(aURL, rtl::OUString(), 0);
+ uno::Reference< frame::XDispatch > xDispatch = xDispatchProvider->queryDispatch(aURL, OUString(), 0);
if( xDispatch.is() )
{
@@ -871,14 +871,14 @@ void UpdateDialog::notifyMenubar( bool bPrepareOnly, bool bRecheckOnly )
if ( !dp_misc::office_is_running() )
return;
- uno::Sequence< uno::Sequence< rtl::OUString > > aItemList;
+ uno::Sequence< uno::Sequence< OUString > > aItemList;
if ( ! bRecheckOnly )
{
sal_Int32 nCount = 0;
for ( sal_Int16 i = 0; i < m_updates.getItemCount(); ++i )
{
- uno::Sequence< rtl::OUString > aItem(2);
+ uno::Sequence< OUString > aItem(2);
UpdateDialog::Index const * p = static_cast< UpdateDialog::Index const * >(m_updates.GetEntryData(i));
@@ -988,11 +988,11 @@ bool UpdateDialog::showDescription(uno::Reference< deployment::XPackage > const
"");
}
-bool UpdateDialog::showDescription(std::pair< rtl::OUString, rtl::OUString > const & pairPublisher,
- rtl::OUString const & sReleaseNotes)
+bool UpdateDialog::showDescription(std::pair< OUString, OUString > const & pairPublisher,
+ OUString const & sReleaseNotes)
{
- rtl::OUString sPub = pairPublisher.first;
- rtl::OUString sURL = pairPublisher.second;
+ OUString sPub = pairPublisher.first;
+ OUString sURL = pairPublisher.second;
if ( sPub.isEmpty() && sURL.isEmpty() && sReleaseNotes.isEmpty() )
// nothing to show
@@ -1056,12 +1056,12 @@ void UpdateDialog::getIgnoredUpdates()
args[0] <<= aValue;
uno::Reference< container::XNameAccess > xNameAccess( xConfig->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationAccess", args), uno::UNO_QUERY_THROW );
- uno::Sequence< rtl::OUString > aElementNames = xNameAccess->getElementNames();
+ uno::Sequence< OUString > aElementNames = xNameAccess->getElementNames();
for ( sal_Int32 i = 0; i < aElementNames.getLength(); i++ )
{
- ::rtl::OUString aIdentifier = aElementNames[i];
- ::rtl::OUString aVersion;
+ OUString aIdentifier = aElementNames[i];
+ OUString aVersion;
uno::Any aPropValue( uno::Reference< beans::XPropertySet >( xNameAccess->getByName( aIdentifier ), uno::UNO_QUERY_THROW )->getPropertyValue( PROPERTY_VERSION ) );
aPropValue >>= aVersion;
@@ -1116,8 +1116,8 @@ bool UpdateDialog::isIgnoredUpdate( UpdateDialog::Index * index )
if (! m_ignoredUpdates.empty() )
{
- rtl::OUString aExtensionID;
- rtl::OUString aVersion;
+ OUString aExtensionID;
+ OUString aVersion;
if ( index->m_eKind == ENABLED_UPDATE )
{
@@ -1129,7 +1129,7 @@ bool UpdateDialog::isIgnoredUpdate( UpdateDialog::Index * index )
{
DisabledUpdate &rData = m_disabledUpdates[ index->m_nIndex ];
dp_misc::DescriptionInfoset aInfoset( m_context, rData.aUpdateInfo );
- ::boost::optional< ::rtl::OUString > aID( aInfoset.getIdentifier() );
+ ::boost::optional< OUString > aID( aInfoset.getIdentifier() );
if ( aID )
aExtensionID = *aID;
aVersion = aInfoset.getVersion();
@@ -1157,8 +1157,8 @@ bool UpdateDialog::isIgnoredUpdate( UpdateDialog::Index * index )
//------------------------------------------------------------------------------
void UpdateDialog::setIgnoredUpdate( UpdateDialog::Index *pIndex, bool bIgnore, bool bIgnoreAll )
{
- rtl::OUString aExtensionID;
- rtl::OUString aVersion;
+ OUString aExtensionID;
+ OUString aVersion;
m_bModified = true;
@@ -1173,7 +1173,7 @@ void UpdateDialog::setIgnoredUpdate( UpdateDialog::Index *pIndex, bool bIgnore,
{
DisabledUpdate &rData = m_disabledUpdates[ pIndex->m_nIndex ];
dp_misc::DescriptionInfoset aInfoset( m_context, rData.aUpdateInfo );
- ::boost::optional< ::rtl::OUString > aID( aInfoset.getIdentifier() );
+ ::boost::optional< OUString > aID( aInfoset.getIdentifier() );
if ( aID )
aExtensionID = *aID;
if ( !bIgnoreAll )
@@ -1205,7 +1205,7 @@ void UpdateDialog::setIgnoredUpdate( UpdateDialog::Index *pIndex, bool bIgnore,
IMPL_LINK_NOARG(UpdateDialog, selectionHandler)
{
- rtl::OUStringBuffer b;
+ OUStringBuffer b;
bool bInserted = false;
UpdateDialog::Index const * p = static_cast< UpdateDialog::Index const * >(
m_updates.GetEntryData(m_updates.GetSelectEntryPos()));
@@ -1244,8 +1244,8 @@ IMPL_LINK_NOARG(UpdateDialog, selectionHandler)
if (data.unsatisfiedDependencies.getLength() != 0)
{
// create error string for version mismatch
- ::rtl::OUString sVersion( "%VERSION" );
- ::rtl::OUString sProductName( "%PRODUCTNAME" );
+ OUString sVersion( "%VERSION" );
+ OUString sProductName( "%PRODUCTNAME" );
sal_Int32 nPos = m_noDependencyCurVer.indexOf( sVersion );
if ( nPos >= 0 )
{
@@ -1380,9 +1380,9 @@ IMPL_LINK_NOARG(UpdateDialog, closeHandler) {
IMPL_LINK( UpdateDialog, hyperlink_clicked, FixedHyperlink*, pHyperlink )
{
- ::rtl::OUString sURL;
+ OUString sURL;
if ( pHyperlink )
- sURL = ::rtl::OUString( pHyperlink->GetURL() );
+ sURL = OUString( pHyperlink->GetURL() );
if ( sURL.isEmpty() )
return 0;
@@ -1391,7 +1391,7 @@ IMPL_LINK( UpdateDialog, hyperlink_clicked, FixedHyperlink*, pHyperlink )
uno::Reference< com::sun::star::system::XSystemShellExecute > xSystemShellExecute(
com::sun::star::system::SystemShellExecute::create(m_context) );
//throws lang::IllegalArgumentException, system::SystemShellExecuteException
- xSystemShellExecute->execute( sURL, ::rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::URIS_ONLY);
+ xSystemShellExecute->execute( sURL, OUString(), com::sun::star::system::SystemShellExecuteFlags::URIS_ONLY);
}
catch ( const uno::Exception& )
{
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.hxx b/desktop/source/deployment/gui/dp_gui_updatedialog.hxx
index ca6ffa53fddb..e83df3cba7b1 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.hxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.hxx
@@ -94,7 +94,7 @@ public:
void notifyMenubar( bool bPrepareOnly, bool bRecheckOnly );
static void createNotifyJob( bool bPrepareOnly,
- com::sun::star::uno::Sequence< com::sun::star::uno::Sequence< rtl::OUString > > &rItemList );
+ com::sun::star::uno::Sequence< com::sun::star::uno::Sequence< OUString > > &rItemList );
private:
UpdateDialog(UpdateDialog &); // not defined
@@ -128,9 +128,9 @@ private:
void handlePopupMenu( const Point &rPos );
- rtl::OUString m_ignoreUpdate;
- rtl::OUString m_ignoreAllUpdates;
- rtl::OUString m_enableUpdate;
+ OUString m_ignoreUpdate;
+ OUString m_ignoreAllUpdates;
+ OUString m_enableUpdate;
UpdateDialog & m_dialog;
};
@@ -142,7 +142,7 @@ private:
bool isIgnoredUpdate( UpdateDialog::Index *pIndex );
void setIgnoredUpdate( UpdateDialog::Index *pIndex, bool bIgnore, bool bIgnoreAll );
- void addEnabledUpdate( rtl::OUString const & name, dp_gui::UpdateData & data );
+ void addEnabledUpdate( OUString const & name, dp_gui::UpdateData & data );
void addDisabledUpdate( UpdateDialog::DisabledUpdate & data );
void addSpecificError( UpdateDialog::SpecificError & data );
@@ -157,8 +157,8 @@ private:
void clearDescription();
bool showDescription(::com::sun::star::uno::Reference<
::com::sun::star::deployment::XPackage > const & aExtension);
- bool showDescription(std::pair< rtl::OUString, rtl::OUString > const & pairPublisher,
- rtl::OUString const & sReleaseNotes);
+ bool showDescription(std::pair< OUString, OUString > const & pairPublisher,
+ OUString const & sReleaseNotes);
bool showDescription( ::com::sun::star::uno::Reference<
::com::sun::star::xml::dom::XNode > const & aUpdateInfo);
bool showDescription( const String& rDescription, bool bWithPublisher );
@@ -187,18 +187,18 @@ private:
HelpButton m_help;
PushButton m_ok;
PushButton m_close;
- rtl::OUString m_error;
- rtl::OUString m_none;
- rtl::OUString m_noInstallable;
- rtl::OUString m_failure;
- rtl::OUString m_unknownError;
- rtl::OUString m_noDescription;
- rtl::OUString m_noInstall;
- rtl::OUString m_noDependency;
- rtl::OUString m_noDependencyCurVer;
- rtl::OUString m_browserbased;
- rtl::OUString m_version;
- rtl::OUString m_ignoredUpdate;
+ OUString m_error;
+ OUString m_none;
+ OUString m_noInstallable;
+ OUString m_failure;
+ OUString m_unknownError;
+ OUString m_noDescription;
+ OUString m_noInstall;
+ OUString m_noDependency;
+ OUString m_noDependencyCurVer;
+ OUString m_browserbased;
+ OUString m_version;
+ OUString m_ignoredUpdate;
std::vector< dp_gui::UpdateData > m_enabledUpdates;
std::vector< UpdateDialog::DisabledUpdate > m_disabledUpdates;
std::vector< UpdateDialog::SpecificError > m_specificErrors;
diff --git a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
index b464af532774..774f302972ab 100644
--- a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
@@ -77,7 +77,6 @@ class Window;
namespace cssu = ::com::sun::star::uno;
using dp_misc::StrTitle;
-using ::rtl::OUString;
namespace dp_gui {
@@ -96,7 +95,7 @@ private:
virtual void execute();
void downloadExtensions();
- void download(::rtl::OUString const & aUrls, UpdateData & aUpdatData);
+ void download(OUString const & aUrls, UpdateData & aUpdatData);
void installExtensions();
void removeTempDownloads();
@@ -111,7 +110,7 @@ private:
::rtl::Reference<UpdateCommandEnv> m_updateCmdEnv;
//A folder which is created in the temp directory in which then the updates are downloaded
- ::rtl::OUString m_sDownloadFolder;
+ OUString m_sDownloadFolder;
bool m_stop;
@@ -272,7 +271,7 @@ void UpdateInstallDialog::updateDone()
}
// make sure the solar mutex is locked before calling
//sets an error message in the text area
-void UpdateInstallDialog::setError(INSTALL_ERROR err, ::rtl::OUString const & sExtension,
+void UpdateInstallDialog::setError(INSTALL_ERROR err, OUString const & sExtension,
OUString const & exceptionMessage)
{
String sError;
@@ -409,7 +408,7 @@ void UpdateInstallDialog::Thread::downloadExtensions()
if (curData.sLocalURL.isEmpty())
{
//Construct a string of all messages contained in the exceptions plus the respective download URLs
- ::rtl::OUStringBuffer buf(256);
+ OUStringBuffer buf(256);
typedef ::std::vector< ::std::pair<OUString, cssu::Exception > >::const_iterator CIT;
for (CIT j = vecExceptions.begin(); j != vecExceptions.end(); ++j)
{
diff --git a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.hxx b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.hxx
index c0d24b22b791..4ff60064b5af 100644
--- a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.hxx
+++ b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.hxx
@@ -84,8 +84,8 @@ private:
ERROR_INSTALLATION,
ERROR_LICENSE_DECLINED
};
- void setError(INSTALL_ERROR err, ::rtl::OUString const & sExtension, ::rtl::OUString const & exceptionMessage);
- void setError(::rtl::OUString const & exceptionMessage);
+ void setError(INSTALL_ERROR err, OUString const & sExtension, OUString const & exceptionMessage);
+ void setError(OUString const & exceptionMessage);
::com::sun::star::uno::Reference< ::com::sun::star::deployment::XExtensionManager > getExtensionManager() const
{ return m_xExtensionManager; }
@@ -97,14 +97,14 @@ private:
bool m_bNoEntry;
bool m_bActivated;
- ::rtl::OUString m_sInstalling;
- ::rtl::OUString m_sFinished;
- ::rtl::OUString m_sNoErrors;
- ::rtl::OUString m_sErrorDownload;
- ::rtl::OUString m_sErrorInstallation;
- ::rtl::OUString m_sErrorLicenseDeclined;
- ::rtl::OUString m_sNoInstall;
- ::rtl::OUString m_sThisErrorOccurred;
+ OUString m_sInstalling;
+ OUString m_sFinished;
+ OUString m_sNoErrors;
+ OUString m_sErrorDownload;
+ OUString m_sErrorInstallation;
+ OUString m_sErrorLicenseDeclined;
+ OUString m_sNoInstall;
+ OUString m_sThisErrorOccurred;
FixedText m_ft_action;
ProgressBar m_statusbar;
diff --git a/desktop/source/deployment/gui/license_dialog.cxx b/desktop/source/deployment/gui/license_dialog.cxx
index ccd57d20e1d5..46c653bc2bb7 100644
--- a/desktop/source/deployment/gui/license_dialog.cxx
+++ b/desktop/source/deployment/gui/license_dialog.cxx
@@ -46,7 +46,6 @@ using namespace ::dp_misc;
namespace cssu = ::com::sun::star::uno;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
namespace dp_gui {
@@ -106,8 +105,8 @@ struct LicenseDialogImpl : public ModalDialog
LicenseDialogImpl(
Window * pParent,
css::uno::Reference< css::uno::XComponentContext > const & xContext,
- const ::rtl::OUString & sExtensionName,
- const ::rtl::OUString & sLicenseText);
+ const OUString & sExtensionName,
+ const OUString & sLicenseText);
virtual void Activate();
@@ -184,8 +183,8 @@ void LicenseView::Notify( SfxBroadcaster&, const SfxHint& rHint )
LicenseDialogImpl::LicenseDialogImpl(
Window * pParent,
cssu::Reference< cssu::XComponentContext > const & xContext,
- const ::rtl::OUString & sExtensionName,
- const ::rtl::OUString & sLicenseText):
+ const OUString & sExtensionName,
+ const OUString & sLicenseText):
ModalDialog(pParent, DpGuiResId(RID_DLG_LICENSE))
,m_xComponentContext(xContext)
,m_ftHead(this, DpGuiResId(FT_LICENSE_HEADER))
diff --git a/desktop/source/deployment/gui/license_dialog.hxx b/desktop/source/deployment/gui/license_dialog.hxx
index 7fb26c46b66e..8dc0f2c908bc 100644
--- a/desktop/source/deployment/gui/license_dialog.hxx
+++ b/desktop/source/deployment/gui/license_dialog.hxx
@@ -30,7 +30,6 @@
using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
namespace dp_gui {
diff --git a/desktop/source/deployment/inc/dp_dependencies.hxx b/desktop/source/deployment/inc/dp_dependencies.hxx
index de5f604c139d..63f77cb79303 100644
--- a/desktop/source/deployment/inc/dp_dependencies.hxx
+++ b/desktop/source/deployment/inc/dp_dependencies.hxx
@@ -64,7 +64,7 @@ namespace Dependencies {
the name of the dependency; will never be empty, as a localized
&ldquo;unknown&rdquo; is substituted for an empty/missing name
*/
- DESKTOP_DEPLOYMENTMISC_DLLPUBLIC rtl::OUString getErrorText(
+ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString getErrorText(
com::sun::star::uno::Reference< com::sun::star::xml::dom::XElement >
const & dependency);
}
diff --git a/desktop/source/deployment/inc/dp_descriptioninfoset.hxx b/desktop/source/deployment/inc/dp_descriptioninfoset.hxx
index 1e4817fff17d..8cb7321c44d3 100644
--- a/desktop/source/deployment/inc/dp_descriptioninfoset.hxx
+++ b/desktop/source/deployment/inc/dp_descriptioninfoset.hxx
@@ -46,7 +46,7 @@ namespace dp_misc {
struct DESKTOP_DEPLOYMENTMISC_DLLPUBLIC SimpleLicenseAttributes
{
- ::rtl::OUString acceptBy;
+ OUString acceptBy;
//Attribute suppress-on-update. Default is false.
bool suppressOnUpdate;
//Attribute suppress-if-required. Default is false.
@@ -86,7 +86,7 @@ public:
@return
the identifier, or an empty <code>optional</code> if none is specified
*/
- ::boost::optional< ::rtl::OUString > getIdentifier() const;
+ ::boost::optional< OUString > getIdentifier() const;
/**
Return the textual version representation.
@@ -94,7 +94,7 @@ public:
@return
textual version representation
*/
- ::rtl::OUString getVersion() const;
+ OUString getVersion() const;
/**
Returns a list of supported platforms.
@@ -111,27 +111,27 @@ public:
The value attribute can contain various platform tokens. They must be separated by
commas.Each token will be stripped from leading and trailing white space (trim()).
*/
- ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedPlaforms() const;
+ ::com::sun::star::uno::Sequence< OUString > getSupportedPlaforms() const;
/**
Returns the localized publisher name and the corresponding URL.
In case there is no publisher element then a pair of two empty strings is returned.
*/
- ::std::pair< ::rtl::OUString, ::rtl::OUString > getLocalizedPublisherNameAndURL() const;
+ ::std::pair< OUString, OUString > getLocalizedPublisherNameAndURL() const;
/**
Returns the URL for the release notes corresponding to the office's locale.
In case there is no release-notes element then an empty string is returned.
*/
- ::rtl::OUString getLocalizedReleaseNotesURL() const;
+ OUString getLocalizedReleaseNotesURL() const;
/** returns the relative path to the license file.
In case there is no simple-license element then an empty string is returned.
*/
- ::rtl::OUString getLocalizedLicenseURL() const;
+ OUString getLocalizedLicenseURL() const;
/** returns the attributes of the simple-license element
@@ -144,7 +144,7 @@ public:
In case there is no localized display-name then an empty string is returned.
*/
- ::rtl::OUString getLocalizedDisplayName() const;
+ OUString getLocalizedDisplayName() const;
/**
returns the download website URL from the update information.
@@ -165,13 +165,13 @@ public:
the download website URL, or an empty <code>optional</code> if none is
specified
*/
- ::boost::optional< ::rtl::OUString > getLocalizedUpdateWebsiteURL() const;
+ ::boost::optional< OUString > getLocalizedUpdateWebsiteURL() const;
/** returns the relative URL to the description.
The URL is relative to the root directory of the extensions.
*/
- ::rtl::OUString getLocalizedDescriptionURL() const;
+ OUString getLocalizedDescriptionURL() const;
/**
Return the dependencies.
@@ -187,7 +187,7 @@ public:
@return
update information URLs
*/
- ::com::sun::star::uno::Sequence< ::rtl::OUString >
+ ::com::sun::star::uno::Sequence< OUString >
getUpdateInformationUrls() const;
/**
@@ -200,22 +200,22 @@ public:
@return
download URLs
*/
- ::com::sun::star::uno::Sequence< ::rtl::OUString >
+ ::com::sun::star::uno::Sequence< OUString >
getUpdateDownloadUrls() const;
/**
Returns the URL for the icon image.
*/
- ::rtl::OUString getIconURL( sal_Bool bHighContrast ) const;
+ OUString getIconURL( sal_Bool bHighContrast ) const;
bool hasDescription() const;
private:
- SAL_DLLPRIVATE ::boost::optional< ::rtl::OUString > getOptionalValue(
- ::rtl::OUString const & expression) const;
+ SAL_DLLPRIVATE ::boost::optional< OUString > getOptionalValue(
+ OUString const & expression) const;
- SAL_DLLPRIVATE ::com::sun::star::uno::Sequence< ::rtl::OUString > getUrls(
- ::rtl::OUString const & expression) const;
+ SAL_DLLPRIVATE ::com::sun::star::uno::Sequence< OUString > getUrls(
+ OUString const & expression) const;
/** Retrieves a child element which as lang attribute which matches the office locale.
@@ -227,7 +227,7 @@ private:
Then a null reference is returned.
*/
SAL_DLLPRIVATE ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode >
- getLocalizedChild( ::rtl::OUString const & sParent) const;
+ getLocalizedChild( OUString const & sParent) const;
SAL_DLLPRIVATE ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode>
matchLanguageTag(
::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > const & xParent,
@@ -247,15 +247,15 @@ private:
@param out_bParentExists
indicates if the element node specified in sXPathParent exists.
*/
- SAL_DLLPRIVATE ::rtl::OUString getLocalizedHREFAttrFromChild(
- ::rtl::OUString const & sXPathParent, bool * out_bParentExists) const;
+ SAL_DLLPRIVATE OUString getLocalizedHREFAttrFromChild(
+ OUString const & sXPathParent, bool * out_bParentExists) const;
/** Gets the node value for a given expression. The expression is used in
m_xpath-selectSingleNode. The value of the returned node is return value
of this function.
*/
- SAL_DLLPRIVATE ::rtl::OUString
- getNodeValueFromExpression(::rtl::OUString const & expression) const;
+ SAL_DLLPRIVATE OUString
+ getNodeValueFromExpression(OUString const & expression) const;
/** Check the extensions blacklist if additional extension meta data (e.g. dependencies)
are defined for this extension and have to be taken into account.
@@ -266,8 +266,8 @@ private:
/** Helper method to compare the versions with the current version
*/
SAL_DLLPRIVATE bool
- checkBlacklistVersion(::rtl::OUString currentversion,
- ::com::sun::star::uno::Sequence< ::rtl::OUString > const & versions) const;
+ checkBlacklistVersion(OUString currentversion,
+ ::com::sun::star::uno::Sequence< OUString > const & versions) const;
::com::sun::star::uno::Reference<
::com::sun::star::uno::XComponentContext > m_context;
@@ -288,7 +288,7 @@ inline bool DescriptionInfoset::hasDescription() const
the description.xml.
*/
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-DescriptionInfoset getDescriptionInfoset(::rtl::OUString const & sExtensionFolderURL);
+DescriptionInfoset getDescriptionInfoset(OUString const & sExtensionFolderURL);
}
#endif
diff --git a/desktop/source/deployment/inc/dp_identifier.hxx b/desktop/source/deployment/inc/dp_identifier.hxx
index 14aa41286001..0d897aa6f824 100644
--- a/desktop/source/deployment/inc/dp_identifier.hxx
+++ b/desktop/source/deployment/inc/dp_identifier.hxx
@@ -47,9 +47,9 @@ namespace dp_misc {
the given optional identifier if present, otherwise a legacy identifier based
on the given file name
*/
-DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString generateIdentifier(
- ::boost::optional< ::rtl::OUString > const & optional,
- ::rtl::OUString const & fileName);
+DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString generateIdentifier(
+ ::boost::optional< OUString > const & optional,
+ OUString const & fileName);
/**
Gets the identifier of a package.
@@ -63,7 +63,7 @@ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString generateIdentifier(
@throws com::sun::star::uno::RuntimeException
*/
-DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString getIdentifier(
+DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString getIdentifier(
::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage >
const & package);
@@ -76,8 +76,8 @@ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString getIdentifier(
@return
a legacy identifier based on the given file name
*/
-DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString generateLegacyIdentifier(
- ::rtl::OUString const & fileName);
+DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString generateLegacyIdentifier(
+ OUString const & fileName);
}
diff --git a/desktop/source/deployment/inc/dp_interact.h b/desktop/source/deployment/inc/dp_interact.h
index 9d3a105fd786..67bf480176fb 100644
--- a/desktop/source/deployment/inc/dp_interact.h
+++ b/desktop/source/deployment/inc/dp_interact.h
@@ -31,7 +31,7 @@ namespace dp_misc
{
inline void progressUpdate(
- ::rtl::OUString const & status,
+ OUString const & status,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
{
if (xCmdEnv.is()) {
@@ -52,16 +52,16 @@ public:
inline ~ProgressLevel();
inline ProgressLevel(
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
- ::rtl::OUString const & status );
+ OUString const & status );
- inline void update( ::rtl::OUString const & status ) const;
+ inline void update( OUString const & status ) const;
inline void update( css::uno::Any const & status ) const;
};
//______________________________________________________________________________
inline ProgressLevel::ProgressLevel(
css::uno::Reference< css::ucb::XCommandEnvironment > const & xCmdEnv,
- ::rtl::OUString const & status )
+ OUString const & status )
{
if (xCmdEnv.is())
m_xProgressHandler = xCmdEnv->getProgressHandler();
@@ -77,7 +77,7 @@ inline ProgressLevel::~ProgressLevel()
}
//______________________________________________________________________________
-inline void ProgressLevel::update( ::rtl::OUString const & status ) const
+inline void ProgressLevel::update( OUString const & status ) const
{
if (m_xProgressHandler.is())
m_xProgressHandler->update( css::uno::makeAny(status) );
diff --git a/desktop/source/deployment/inc/dp_misc.h b/desktop/source/deployment/inc/dp_misc.h
index 70f5cbb471ad..4ec4c6e34989 100644
--- a/desktop/source/deployment/inc/dp_misc.h
+++ b/desktop/source/deployment/inc/dp_misc.h
@@ -59,14 +59,14 @@ inline void try_dispose( ::com::sun::star::uno::Reference< ::com::sun::star::uno
//==============================================================================
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-::rtl::OUString expandUnoRcTerm( ::rtl::OUString const & term );
+OUString expandUnoRcTerm( OUString const & term );
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-::rtl::OUString makeRcTerm( ::rtl::OUString const & url );
+OUString makeRcTerm( OUString const & url );
//==============================================================================
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-::rtl::OUString expandUnoRcUrl( ::rtl::OUString const & url );
+OUString expandUnoRcUrl( OUString const & url );
//==============================================================================
@@ -76,8 +76,8 @@ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
If the URL starts with vnd.sun.star.expand then the relative path will
be again encoded for use in an "expand" URL.
*/
-DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString makeURL(
- ::rtl::OUString const & baseURL, ::rtl::OUString const & relPath );
+DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString makeURL(
+ OUString const & baseURL, OUString const & relPath );
/** appends a relative path to a url.
@@ -85,17 +85,17 @@ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString makeURL(
This is the same as makeURL, but the relative Path must me a segment
of an system path.
*/
-DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString makeURLAppendSysPathSegment(
- ::rtl::OUString const & baseURL, ::rtl::OUString const & relPath );
+DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString makeURLAppendSysPathSegment(
+ OUString const & baseURL, OUString const & relPath );
//==============================================================================
-DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString generateRandomPipeId();
+DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString generateRandomPipeId();
class AbortChannel;
//==============================================================================
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> resolveUnoURL(
- ::rtl::OUString const & connectString,
+ OUString const & connectString,
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext> const & xLocalContext,
AbortChannel * abortChannel = 0 );
@@ -104,8 +104,8 @@ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool office_is_running();
//==============================================================================
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-oslProcess raiseProcess( ::rtl::OUString const & appURL,
- ::com::sun::star::uno::Sequence< ::rtl::OUString > const & args );
+oslProcess raiseProcess( OUString const & appURL,
+ ::com::sun::star::uno::Sequence< OUString > const & args );
//==============================================================================
@@ -116,13 +116,13 @@ oslProcess raiseProcess( ::rtl::OUString const & appURL,
WriteConsoleW.
*/
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-void writeConsole(::rtl::OUString const & sText);
+void writeConsole(OUString const & sText);
/** writes the argument to the console using the error stream.
Otherwise the same as writeConsole.
*/
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-void writeConsoleError(::rtl::OUString const & sText);
+void writeConsoleError(OUString const & sText);
/** reads from the console.
@@ -131,14 +131,14 @@ void writeConsoleError(::rtl::OUString const & sText);
size of 1024 and does NOT include leading and trailing white space(applied OUString::trim())
*/
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-::rtl::OUString readConsole();
+OUString readConsole();
/** print the text to the console in a debug build.
The argument is forwarded to writeConsole. The function does not add new line.
The code is only executed if OSL_DEBUG_LEVEL > 1
*/
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-void TRACE(::rtl::OUString const & sText);
+void TRACE(OUString const & sText);
/** registers or revokes shared or bundled extensions which have been
recently added or removed.
diff --git a/desktop/source/deployment/inc/dp_persmap.h b/desktop/source/deployment/inc/dp_persmap.h
index a0fb96e3619d..efc5c24145dd 100644
--- a/desktop/source/deployment/inc/dp_persmap.h
+++ b/desktop/source/deployment/inc/dp_persmap.h
@@ -28,7 +28,7 @@ namespace dp_misc
{
typedef ::boost::unordered_map<
- ::rtl::OString, ::rtl::OString, ::rtl::OStringHash > t_string2string_map;
+ OString, OString, OStringHash > t_string2string_map;
// Class to read obsolete registered extensions
// should be removed for LibreOffice 4.0
@@ -43,25 +43,25 @@ class PersistentMap
public:
~PersistentMap();
- PersistentMap( ::rtl::OUString const & url, bool readOnly );
+ PersistentMap( OUString const & url, bool readOnly );
/** in mem db */
PersistentMap();
- bool has( ::rtl::OString const & key ) const;
- bool get( ::rtl::OString * value, ::rtl::OString const & key ) const;
+ bool has( OString const & key ) const;
+ bool get( OString * value, OString const & key ) const;
t_string2string_map getEntries() const;
- void put( ::rtl::OString const & key, ::rtl::OString const & value );
- bool erase( ::rtl::OString const & key, bool flush_immediately = true );
+ void put( OString const & key, OString const & value );
+ bool erase( OString const & key, bool flush_immediately = true );
protected:
bool open();
bool readAll();
- void add( ::rtl::OString const & key, ::rtl::OString const & value );
+ void add( OString const & key, OString const & value );
void flush();
#ifndef DISABLE_BDB2PMAP
bool importFromBDB( void);
- ::rtl::OUString m_MapFileName;
+ OUString m_MapFileName;
#endif
};
diff --git a/desktop/source/deployment/inc/dp_platform.hxx b/desktop/source/deployment/inc/dp_platform.hxx
index 044762e761f8..18ca77efda50 100644
--- a/desktop/source/deployment/inc/dp_platform.hxx
+++ b/desktop/source/deployment/inc/dp_platform.hxx
@@ -30,16 +30,16 @@ namespace dp_misc
{
-DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString const & getPlatformString();
+DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString const & getPlatformString();
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
- bool platform_fits( ::rtl::OUString const & platform_string );
+ bool platform_fits( OUString const & platform_string );
/** determines if the current platform corresponds to one of the platform strings.
*/
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-bool hasValidPlatform( ::com::sun::star::uno::Sequence< ::rtl::OUString > const & platformStrings);
+bool hasValidPlatform( ::com::sun::star::uno::Sequence< OUString > const & platformStrings);
}
diff --git a/desktop/source/deployment/inc/dp_resource.h b/desktop/source/deployment/inc/dp_resource.h
index 78bf42624b8e..04dc52c82889 100644
--- a/desktop/source/deployment/inc/dp_resource.h
+++ b/desktop/source/deployment/inc/dp_resource.h
@@ -37,8 +37,8 @@ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC String getResourceString( sal_uInt16 id );
template <typename Unique, sal_uInt16 id>
struct StaticResourceString :
- public ::rtl::StaticWithInit< ::rtl::OUString, Unique > {
- const ::rtl::OUString operator () () { return getResourceString(id); }
+ public ::rtl::StaticWithInit< OUString, Unique > {
+ const OUString operator () () { return getResourceString(id); }
};
//==============================================================================
diff --git a/desktop/source/deployment/inc/dp_ucb.h b/desktop/source/deployment/inc/dp_ucb.h
index 7da43b7f64c8..824d32d367dd 100644
--- a/desktop/source/deployment/inc/dp_ucb.h
+++ b/desktop/source/deployment/inc/dp_ucb.h
@@ -37,16 +37,16 @@ namespace dp_misc {
struct DESKTOP_DEPLOYMENTMISC_DLLPUBLIC StrTitle
{
- static css::uno::Sequence< rtl::OUString > getTitleSequence()
+ static css::uno::Sequence< OUString > getTitleSequence()
{
- css::uno::Sequence< rtl::OUString > aSeq( 1 );
+ css::uno::Sequence< OUString > aSeq( 1 );
aSeq[ 0 ] = "Title";
return aSeq;
}
- static rtl::OUString getTitle( ::ucbhelper::Content &rContent )
+ static OUString getTitle( ::ucbhelper::Content &rContent )
{
- return rtl::OUString( rContent.getPropertyValue(
- rtl::OUString::createFromAscii( "Title" ) ).get<rtl::OUString>() );
+ return OUString( rContent.getPropertyValue(
+ OUString::createFromAscii( "Title" ) ).get<OUString>() );
}
// just return titles - the ucbhelper should have a simpler API for this [!]
static css::uno::Reference< css::sdbc::XResultSet >
@@ -61,7 +61,7 @@ struct DESKTOP_DEPLOYMENTMISC_DLLPUBLIC StrTitle
//==============================================================================
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool create_ucb_content(
::ucbhelper::Content * ucb_content,
- ::rtl::OUString const & url,
+ OUString const & url,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
bool throw_exc = true );
@@ -70,13 +70,13 @@ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool create_ucb_content(
*/
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool create_folder(
::ucbhelper::Content * ucb_content,
- ::rtl::OUString const & url,
+ OUString const & url,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
bool throw_exc = true );
//==============================================================================
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool erase_path(
- ::rtl::OUString const & url,
+ OUString const & url,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
bool throw_exc = true );
@@ -86,11 +86,11 @@ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
//==============================================================================
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-bool readLine( ::rtl::OUString * res, ::rtl::OUString const & startingWith,
+bool readLine( OUString * res, OUString const & startingWith,
::ucbhelper::Content & ucb_content, rtl_TextEncoding textenc );
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-bool readProperties( ::std::list< ::std::pair< ::rtl::OUString, ::rtl::OUString> > & out_result,
+bool readProperties( ::std::list< ::std::pair< OUString, OUString> > & out_result,
::ucbhelper::Content & ucb_content);
diff --git a/desktop/source/deployment/inc/dp_update.hxx b/desktop/source/deployment/inc/dp_update.hxx
index cbad0bab7fe4..4f50d5c34812 100644
--- a/desktop/source/deployment/inc/dp_update.hxx
+++ b/desktop/source/deployment/inc/dp_update.hxx
@@ -39,7 +39,7 @@ namespace dp_misc {
is used when an extension does not provide its own URL.
*/
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-::rtl::OUString getExtensionDefaultUpdateURL();
+OUString getExtensionDefaultUpdateURL();
enum UPDATE_SOURCE
{
@@ -59,10 +59,10 @@ enum UPDATE_SOURCE
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
UPDATE_SOURCE isUpdateUserExtension(
bool bReadOnlyShared,
- ::rtl::OUString const & userVersion,
- ::rtl::OUString const & sharedVersion,
- ::rtl::OUString const & bundledVersion,
- ::rtl::OUString const & onlineVersion);
+ OUString const & userVersion,
+ OUString const & sharedVersion,
+ OUString const & bundledVersion,
+ OUString const & onlineVersion);
/* determine if an update is available which is installed in the
shared repository.
@@ -74,9 +74,9 @@ UPDATE_SOURCE isUpdateUserExtension(
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
UPDATE_SOURCE isUpdateSharedExtension(
bool bReadOnlyShared,
- ::rtl::OUString const & sharedVersion,
- ::rtl::OUString const & bundledVersion,
- ::rtl::OUString const & onlineVersion);
+ OUString const & sharedVersion,
+ OUString const & bundledVersion,
+ OUString const & onlineVersion);
/* determines the extension with the highest identifier and returns it
@@ -95,11 +95,11 @@ struct UpdateInfo
::com::sun::star::uno::Reference<
::com::sun::star::deployment::XPackage> extension;
//version of the update
- ::rtl::OUString version;
+ OUString version;
::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > info;
};
-typedef std::map< ::rtl::OUString, UpdateInfo > UpdateInfoMap;
+typedef std::map< OUString, UpdateInfo > UpdateInfoMap;
/*
@param extensionList
@@ -128,11 +128,11 @@ UpdateInfoMap getOnlineUpdateInfos(
/* retunrs the highest version from the provided arguments.
*/
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
-::rtl::OUString getHighestVersion(
- ::rtl::OUString const & userVersion,
- ::rtl::OUString const & sharedVersion,
- ::rtl::OUString const & bundledVersion,
- ::rtl::OUString const & onlineVersion);
+OUString getHighestVersion(
+ OUString const & userVersion,
+ OUString const & sharedVersion,
+ OUString const & bundledVersion,
+ OUString const & onlineVersion);
}
diff --git a/desktop/source/deployment/inc/dp_version.hxx b/desktop/source/deployment/inc/dp_version.hxx
index be88cb084d03..0e110e7132b3 100644
--- a/desktop/source/deployment/inc/dp_version.hxx
+++ b/desktop/source/deployment/inc/dp_version.hxx
@@ -31,7 +31,7 @@ namespace dp_misc {
enum Order { LESS, EQUAL, GREATER };
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC Order compareVersions(
- ::rtl::OUString const & version1, ::rtl::OUString const & version2);
+ OUString const & version1, OUString const & version2);
}
#endif
diff --git a/desktop/source/deployment/inc/lockfile.hxx b/desktop/source/deployment/inc/lockfile.hxx
index 647ba2f8610d..1e041244a281 100644
--- a/desktop/source/deployment/inc/lockfile.hxx
+++ b/desktop/source/deployment/inc/lockfile.hxx
@@ -38,13 +38,13 @@
#include "dp_misc_api.hxx"
-#define LOCKFILE_SUFFIX rtl::OUString( "/.lock" )
-#define LOCKFILE_GROUP rtl::OString( "Lockdata" )
-#define LOCKFILE_USERKEY rtl::OString( "User" )
-#define LOCKFILE_HOSTKEY rtl::OString( "Host" )
-#define LOCKFILE_STAMPKEY rtl::OString( "Stamp" )
-#define LOCKFILE_TIMEKEY rtl::OString( "Time" )
-#define LOCKFILE_IPCKEY rtl::OString( "IPCServer" )
+#define LOCKFILE_SUFFIX OUString( "/.lock" )
+#define LOCKFILE_GROUP OString( "Lockdata" )
+#define LOCKFILE_USERKEY OString( "User" )
+#define LOCKFILE_HOSTKEY OString( "Host" )
+#define LOCKFILE_STAMPKEY OString( "Stamp" )
+#define LOCKFILE_TIMEKEY OString( "Time" )
+#define LOCKFILE_IPCKEY OString( "IPCServer" )
namespace desktop {
@@ -71,13 +71,13 @@ namespace desktop {
private:
bool m_bIPCserver;
// full qualified name (file://-url) of the lockfile
- rtl::OUString m_aLockname;
+ OUString m_aLockname;
// flag whether the d'tor should delete the lock
sal_Bool m_bRemove;
sal_Bool m_bIsLocked;
// ID
- rtl::OUString m_aId;
- rtl::OUString m_aDate;
+ OUString m_aId;
+ OUString m_aDate;
// access to data in file
void syncToFile(void) const;
sal_Bool isStale(void) const;
diff --git a/desktop/source/deployment/manager/dp_activepackages.cxx b/desktop/source/deployment/manager/dp_activepackages.cxx
index 1eaeb09d70f5..99e376945799 100644
--- a/desktop/source/deployment/manager/dp_activepackages.cxx
+++ b/desktop/source/deployment/manager/dp_activepackages.cxx
@@ -51,59 +51,59 @@ namespace {
static char const separator = static_cast< char >(
static_cast< unsigned char >(0xFF));
-::rtl::OString oldKey(::rtl::OUString const & fileName) {
- return ::rtl::OUStringToOString(fileName, RTL_TEXTENCODING_UTF8);
+OString oldKey(OUString const & fileName) {
+ return OUStringToOString(fileName, RTL_TEXTENCODING_UTF8);
}
-::rtl::OString newKey(::rtl::OUString const & id) {
- ::rtl::OStringBuffer b;
+OString newKey(OUString const & id) {
+ OStringBuffer b;
b.append(separator);
- b.append(::rtl::OUStringToOString(id, RTL_TEXTENCODING_UTF8));
+ b.append(OUStringToOString(id, RTL_TEXTENCODING_UTF8));
return b.makeStringAndClear();
}
::dp_manager::ActivePackages::Data decodeOldData(
- ::rtl::OUString const & fileName, ::rtl::OString const & value)
+ OUString const & fileName, OString const & value)
{
::dp_manager::ActivePackages::Data d;
sal_Int32 i = value.indexOf(';');
OSL_ASSERT(i >= 0);
- d.temporaryName = ::rtl::OUString(value.getStr(), i, RTL_TEXTENCODING_UTF8);
+ d.temporaryName = OUString(value.getStr(), i, RTL_TEXTENCODING_UTF8);
d.fileName = fileName;
- d.mediaType = ::rtl::OUString(
+ d.mediaType = OUString(
value.getStr() + i + 1, value.getLength() - i - 1,
RTL_TEXTENCODING_UTF8);
return d;
}
-::dp_manager::ActivePackages::Data decodeNewData(::rtl::OString const & value) {
+::dp_manager::ActivePackages::Data decodeNewData(OString const & value) {
::dp_manager::ActivePackages::Data d;
sal_Int32 i1 = value.indexOf(separator);
OSL_ASSERT(i1 >= 0);
- d.temporaryName = ::rtl::OUString(
+ d.temporaryName = OUString(
value.getStr(), i1, RTL_TEXTENCODING_UTF8);
sal_Int32 i2 = value.indexOf(separator, i1 + 1);
OSL_ASSERT(i2 >= 0);
- d.fileName = ::rtl::OUString(
+ d.fileName = OUString(
value.getStr() + i1 + 1, i2 - i1 - 1, RTL_TEXTENCODING_UTF8);
sal_Int32 i3 = value.indexOf(separator, i2 + 1);
if (i3 < 0)
{
//Before ActivePackages::Data::version was added
- d.mediaType = ::rtl::OUString(
+ d.mediaType = OUString(
value.getStr() + i2 + 1, value.getLength() - i2 - 1,
RTL_TEXTENCODING_UTF8);
}
else
{
sal_Int32 i4 = value.indexOf(separator, i3 + 1);
- d.mediaType = ::rtl::OUString(
+ d.mediaType = OUString(
value.getStr() + i2 + 1, i3 - i2 -1, RTL_TEXTENCODING_UTF8);
- d.version = ::rtl::OUString(
+ d.version = OUString(
value.getStr() + i3 + 1, i4 - i3 - 1,
RTL_TEXTENCODING_UTF8);
- d.failedPrerequisites = ::rtl::OUString(
+ d.failedPrerequisites = OUString(
value.getStr() + i4 + 1, value.getLength() - i4 - 1,
RTL_TEXTENCODING_UTF8);
}
@@ -117,7 +117,7 @@ namespace dp_manager {
ActivePackages::ActivePackages() {}
-ActivePackages::ActivePackages(::rtl::OUString const & url, bool readOnly)
+ActivePackages::ActivePackages(OUString const & url, bool readOnly)
#if HAVE_FEATURE_EXTENSIONS
: m_map(url, readOnly)
#endif
@@ -129,17 +129,17 @@ ActivePackages::ActivePackages(::rtl::OUString const & url, bool readOnly)
ActivePackages::~ActivePackages() {}
bool ActivePackages::has(
- ::rtl::OUString const & id, ::rtl::OUString const & fileName) const
+ OUString const & id, OUString const & fileName) const
{
return get(NULL, id, fileName);
}
bool ActivePackages::get(
- Data * data, ::rtl::OUString const & id, ::rtl::OUString const & fileName)
+ Data * data, OUString const & id, OUString const & fileName)
const
{
#if HAVE_FEATURE_EXTENSIONS
- ::rtl::OString v;
+ OString v;
if (m_map.get(&v, newKey(id))) {
if (data != NULL) {
*data = decodeNewData(v);
@@ -171,13 +171,13 @@ ActivePackages::Entries ActivePackages::getEntries() const {
if (!i->first.isEmpty() && i->first[0] == separator) {
es.push_back(
::std::make_pair(
- ::rtl::OUString(
+ OUString(
i->first.getStr() + 1, i->first.getLength() - 1,
RTL_TEXTENCODING_UTF8),
decodeNewData(i->second)));
} else {
- ::rtl::OUString fn(
- ::rtl::OStringToOUString(i->first, RTL_TEXTENCODING_UTF8));
+ OUString fn(
+ OStringToOUString(i->first, RTL_TEXTENCODING_UTF8));
es.push_back(
::std::make_pair(
::dp_misc::generateLegacyIdentifier(fn),
@@ -188,19 +188,19 @@ ActivePackages::Entries ActivePackages::getEntries() const {
return es;
}
-void ActivePackages::put(::rtl::OUString const & id, Data const & data) {
+void ActivePackages::put(OUString const & id, Data const & data) {
#if HAVE_FEATURE_EXTENSIONS
- ::rtl::OStringBuffer b;
+ OStringBuffer b;
b.append(
- ::rtl::OUStringToOString(data.temporaryName, RTL_TEXTENCODING_UTF8));
+ OUStringToOString(data.temporaryName, RTL_TEXTENCODING_UTF8));
b.append(separator);
- b.append(::rtl::OUStringToOString(data.fileName, RTL_TEXTENCODING_UTF8));
+ b.append(OUStringToOString(data.fileName, RTL_TEXTENCODING_UTF8));
b.append(separator);
- b.append(::rtl::OUStringToOString(data.mediaType, RTL_TEXTENCODING_UTF8));
+ b.append(OUStringToOString(data.mediaType, RTL_TEXTENCODING_UTF8));
b.append(separator);
- b.append(::rtl::OUStringToOString(data.version, RTL_TEXTENCODING_UTF8));
+ b.append(OUStringToOString(data.version, RTL_TEXTENCODING_UTF8));
b.append(separator);
- b.append(::rtl::OUStringToOString(data.failedPrerequisites, RTL_TEXTENCODING_UTF8));
+ b.append(OUStringToOString(data.failedPrerequisites, RTL_TEXTENCODING_UTF8));
m_map.put(newKey(id), b.makeStringAndClear());
#else
(void) id;
@@ -209,7 +209,7 @@ void ActivePackages::put(::rtl::OUString const & id, Data const & data) {
}
void ActivePackages::erase(
- ::rtl::OUString const & id, ::rtl::OUString const & fileName)
+ OUString const & id, OUString const & fileName)
{
#if HAVE_FEATURE_EXTENSIONS
m_map.erase(newKey(id), true) || m_map.erase(oldKey(fileName), true);
diff --git a/desktop/source/deployment/manager/dp_activepackages.hxx b/desktop/source/deployment/manager/dp_activepackages.hxx
index 940b6aa2a01e..10fe365b1cfa 100644
--- a/desktop/source/deployment/manager/dp_activepackages.hxx
+++ b/desktop/source/deployment/manager/dp_activepackages.hxx
@@ -38,50 +38,50 @@ namespace dp_manager {
class ActivePackages {
public:
struct Data {
- Data(): failedPrerequisites(::rtl::OUString::valueOf((sal_Int32)0))
+ Data(): failedPrerequisites(OUString::valueOf((sal_Int32)0))
{}
/* name of the temporary file (shared, user extension) or the name of
the folder of the bundled extension.
It does not contain the trailing '_' of the folder.
UTF-8 encoded
*/
- ::rtl::OUString temporaryName;
+ OUString temporaryName;
/* The file name (shared, user) or the folder name (bundled)
If the key is the file name, then file name is not encoded.
If the key is the idendifier then the file name is UTF-8 encoded.
*/
- ::rtl::OUString fileName;
- ::rtl::OUString mediaType;
- ::rtl::OUString version;
+ OUString fileName;
+ OUString mediaType;
+ OUString version;
/* If this string contains the value according to
com::sun::star::deployment::Prerequisites or "0". That is, if
the value is > 0 then
the call to XPackage::checkPrerequisites failed.
In this case the extension must not be registered.
*/
- ::rtl::OUString failedPrerequisites;
+ OUString failedPrerequisites;
};
- typedef ::std::vector< ::std::pair< ::rtl::OUString, Data > > Entries;
+ typedef ::std::vector< ::std::pair< OUString, Data > > Entries;
ActivePackages();
- ActivePackages(::rtl::OUString const & url, bool readOnly);
+ ActivePackages(OUString const & url, bool readOnly);
~ActivePackages();
- bool has(::rtl::OUString const & id, ::rtl::OUString const & fileName)
+ bool has(OUString const & id, OUString const & fileName)
const;
bool get(
- Data * data, ::rtl::OUString const & id,
- ::rtl::OUString const & fileName) const;
+ Data * data, OUString const & id,
+ OUString const & fileName) const;
Entries getEntries() const;
- void put(::rtl::OUString const & id, Data const & value);
+ void put(OUString const & id, Data const & value);
- void erase(::rtl::OUString const & id, ::rtl::OUString const & fileName);
+ void erase(OUString const & id, OUString const & fileName);
private:
ActivePackages(ActivePackages &); // not defined
diff --git a/desktop/source/deployment/manager/dp_commandenvironments.cxx b/desktop/source/deployment/manager/dp_commandenvironments.cxx
index 56fc23e8c748..a57c531d82c6 100644
--- a/desktop/source/deployment/manager/dp_commandenvironments.cxx
+++ b/desktop/source/deployment/manager/dp_commandenvironments.cxx
@@ -36,7 +36,6 @@ namespace ucb = com::sun::star::ucb;
namespace uno = com::sun::star::uno;
using ::com::sun::star::uno::Reference;
-using ::rtl::OUString;
namespace dp_manager {
diff --git a/desktop/source/deployment/manager/dp_commandenvironments.hxx b/desktop/source/deployment/manager/dp_commandenvironments.hxx
index 93d1626e26a3..0780dfab3382 100644
--- a/desktop/source/deployment/manager/dp_commandenvironments.hxx
+++ b/desktop/source/deployment/manager/dp_commandenvironments.hxx
@@ -86,14 +86,14 @@ public:
class LicenseCommandEnv : public BaseCommandEnv
{
private:
- ::rtl::OUString m_repository;
+ OUString m_repository;
bool m_bSuppressLicense;
public:
LicenseCommandEnv() : m_bSuppressLicense(false) {};
LicenseCommandEnv(
css::uno::Reference< css::task::XInteractionHandler> const & handler,
bool bSuppressLicense,
- ::rtl::OUString const & repository);
+ OUString const & repository);
// XInteractionHandler
virtual void SAL_CALL handle(
diff --git a/desktop/source/deployment/manager/dp_extensionmanager.cxx b/desktop/source/deployment/manager/dp_extensionmanager.cxx
index 9add42544d8a..ef539bcdeba8 100644
--- a/desktop/source/deployment/manager/dp_extensionmanager.cxx
+++ b/desktop/source/deployment/manager/dp_extensionmanager.cxx
@@ -68,7 +68,6 @@ namespace beans = com::sun::star::beans;
namespace util = com::sun::star::util;
using ::com::sun::star::uno::Reference;
-using ::rtl::OUString;
namespace {
@@ -110,7 +109,7 @@ void writeLastModified(OUString & url, Reference<ucb::XCommandEnvironment> const
::rtl::Bootstrap::expandMacros(url);
::ucbhelper::Content ucbStamp(url, xCmdEnv, xContext);
dp_misc::erase_path( url, xCmdEnv );
- ::rtl::OString stamp("1" );
+ OString stamp("1" );
Reference<css::io::XInputStream> xData(
::xmlscript::createInputStream(
::rtl::ByteSequence(
@@ -151,7 +150,7 @@ ExtensionRemoveGuard::~ExtensionRemoveGuard()
OSL_ASSERT(!(m_extension.is() && !m_xPackageManager.is()));
if (m_xPackageManager.is() && m_extension.is())
m_xPackageManager->removePackage(
- dp_misc::getIdentifier(m_extension), ::rtl::OUString(),
+ dp_misc::getIdentifier(m_extension), OUString(),
css::uno::Reference<css::task::XAbortChannel>(),
css::uno::Reference<css::ucb::XCommandEnvironment>());
} catch (...) {
@@ -212,7 +211,7 @@ Reference<task::XAbortChannel> ExtensionManager::createAbortChannel()
}
css::uno::Reference<css::deployment::XPackageManager>
-ExtensionManager::getPackageManager(::rtl::OUString const & repository)
+ExtensionManager::getPackageManager(OUString const & repository)
throw (css::lang::IllegalArgumentException)
{
Reference<deploy::XPackageManager> xPackageManager;
@@ -1445,7 +1444,7 @@ ExtensionManager::getExtensionsWithUnacceptedLicenses(
return xPackageManager->getExtensionsWithUnacceptedLicenses(xCmdEnv);
}
-sal_Bool ExtensionManager::isReadOnlyRepository(::rtl::OUString const & repository)
+sal_Bool ExtensionManager::isReadOnlyRepository(OUString const & repository)
throw (uno::RuntimeException)
{
return getPackageManager(repository)->isReadOnly();
diff --git a/desktop/source/deployment/manager/dp_extensionmanager.hxx b/desktop/source/deployment/manager/dp_extensionmanager.hxx
index b57a155f15e4..db11f129765f 100644
--- a/desktop/source/deployment/manager/dp_extensionmanager.hxx
+++ b/desktop/source/deployment/manager/dp_extensionmanager.hxx
@@ -36,9 +36,9 @@
namespace dp_manager {
typedef ::boost::unordered_map<
- ::rtl::OUString,
+ OUString,
::std::vector<css::uno::Reference<css::deployment::XPackage> >,
- ::rtl::OUStringHash > id2extensions;
+ OUStringHash > id2extensions;
class ExtensionManager : private ::dp_misc::MutexHolder,
public ::cppu::WeakComponentImplHelper1< css::deployment::XExtensionManager >
@@ -47,8 +47,8 @@ public:
ExtensionManager( css::uno::Reference< css::uno::XComponentContext >const& xContext);
virtual ~ExtensionManager();
- static css::uno::Sequence< ::rtl::OUString > getServiceNames();
- static ::rtl::OUString getImplName();
+ static css::uno::Sequence< OUString > getServiceNames();
+ static OUString getImplName();
void check();
void fireModified();
@@ -73,9 +73,9 @@ public:
createAbortChannel() throw (css::uno::RuntimeException);
virtual css::uno::Reference<css::deployment::XPackage> SAL_CALL addExtension(
- ::rtl::OUString const & url,
+ OUString const & url,
css::uno::Sequence<css::beans::NamedValue> const & properties,
- ::rtl::OUString const & repository,
+ OUString const & repository,
css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (css::deployment::DeploymentException,
@@ -85,9 +85,9 @@ public:
css::uno::RuntimeException);
virtual void SAL_CALL removeExtension(
- ::rtl::OUString const & identifier,
- ::rtl::OUString const & filename,
- ::rtl::OUString const & repository,
+ OUString const & identifier,
+ OUString const & filename,
+ OUString const & repository,
css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (css::deployment::DeploymentException,
@@ -128,7 +128,7 @@ public:
virtual css::uno::Sequence< css::uno::Reference<css::deployment::XPackage> >
SAL_CALL getDeployedExtensions(
- ::rtl::OUString const & repository,
+ OUString const & repository,
css::uno::Reference<css::task::XAbortChannel> const &,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (css::deployment::DeploymentException,
@@ -139,9 +139,9 @@ public:
virtual css::uno::Reference< css::deployment::XPackage>
SAL_CALL getDeployedExtension(
- ::rtl::OUString const & repository,
- ::rtl::OUString const & identifier,
- ::rtl::OUString const & filename,
+ OUString const & repository,
+ OUString const & identifier,
+ OUString const & filename,
css::uno::Reference< css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (
css::deployment::DeploymentException,
@@ -151,8 +151,8 @@ public:
virtual css::uno::Sequence<css::uno::Reference<css::deployment::XPackage> >
SAL_CALL getExtensionsWithSameIdentifier(
- ::rtl::OUString const & identifier,
- ::rtl::OUString const & filename,
+ OUString const & identifier,
+ OUString const & filename,
css::uno::Reference< css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (
css::deployment::DeploymentException,
@@ -171,7 +171,7 @@ public:
css::uno::RuntimeException);
virtual void SAL_CALL reinstallDeployedExtensions(
- sal_Bool force, ::rtl::OUString const & repository,
+ sal_Bool force, OUString const & repository,
css::uno::Reference< css::task::XAbortChannel> const & xAbortChannel,
css::uno::Reference< css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (
@@ -192,12 +192,12 @@ public:
virtual css::uno::Sequence<css::uno::Reference<css::deployment::XPackage> > SAL_CALL
getExtensionsWithUnacceptedLicenses(
- ::rtl::OUString const & repository,
+ OUString const & repository,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv)
throw (css::deployment::DeploymentException,
css::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isReadOnlyRepository(::rtl::OUString const & repository)
+ virtual sal_Bool SAL_CALL isReadOnlyRepository(OUString const & repository)
throw (css::uno::RuntimeException);
private:
@@ -207,10 +207,10 @@ private:
struct ExtensionInfos
{
- ::rtl::OUString identifier;
- ::rtl::OUString fileName;
- ::rtl::OUString displayName;
- ::rtl::OUString version;
+ OUString identifier;
+ OUString fileName;
+ OUString displayName;
+ OUString version;
};
css::uno::Reference< css::uno::XComponentContext> m_xContext;
@@ -222,7 +222,7 @@ private:
priority. That is, the first element is "user" follod by "shared" and
then "bundled"
*/
- ::std::list< ::rtl::OUString > m_repositoryNames;
+ ::std::list< OUString > m_repositoryNames;
css::uno::Reference<css::deployment::XPackageManager> getUserRepository();
css::uno::Reference<css::deployment::XPackageManager> getSharedRepository();
@@ -230,15 +230,15 @@ private:
css::uno::Reference<css::deployment::XPackageManager> getTmpRepository();
css::uno::Reference<css::deployment::XPackageManager> getBakRepository();
- bool isUserDisabled(::rtl::OUString const & identifier,
- ::rtl::OUString const & filename);
+ bool isUserDisabled(OUString const & identifier,
+ OUString const & filename);
bool isUserDisabled(
css::uno::Sequence<css::uno::Reference<css::deployment::XPackage> > const & seqExtSameId);
void activateExtension(
- ::rtl::OUString const & identifier,
- ::rtl::OUString const & fileName,
+ OUString const & identifier,
+ OUString const & fileName,
bool bUserDisabled, bool bStartup,
css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv);
@@ -250,33 +250,33 @@ private:
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv );
::std::list<css::uno::Reference<css::deployment::XPackage> >
- getExtensionsWithSameId(::rtl::OUString const & identifier,
- ::rtl::OUString const & fileName,
+ getExtensionsWithSameId(OUString const & identifier,
+ OUString const & fileName,
css::uno::Reference< css::ucb::XCommandEnvironment> const & xCmdEnv =
css::uno::Reference< css::ucb::XCommandEnvironment>());
css::uno::Reference<css::deployment::XPackage> backupExtension(
- ::rtl::OUString const & identifier, ::rtl::OUString const & fileName,
+ OUString const & identifier, OUString const & fileName,
css::uno::Reference<css::deployment::XPackageManager> const & xPackageManager,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv);
void checkInstall(
- ::rtl::OUString const & displayName,
+ OUString const & displayName,
css::uno::Reference<css::ucb::XCommandEnvironment> const & cmdEnv);
void checkUpdate(
- ::rtl::OUString const & newVersion,
- ::rtl::OUString const & newDisplayName,
+ OUString const & newVersion,
+ OUString const & newDisplayName,
css::uno::Reference<css::deployment::XPackage> const & oldExtension,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv);
void addExtensionsToMap(
id2extensions & mapExt,
css::uno::Sequence<css::uno::Reference<css::deployment::XPackage> > const & seqExt,
- ::rtl::OUString const & repository);
+ OUString const & repository);
css::uno::Reference<css::deployment::XPackageManager>
- getPackageManager(::rtl::OUString const & repository)
+ getPackageManager(OUString const & repository)
throw (css::lang::IllegalArgumentException);
bool doChecksForAddExtension(
diff --git a/desktop/source/deployment/manager/dp_informationprovider.cxx b/desktop/source/deployment/manager/dp_informationprovider.cxx
index 33fa0748f37c..d6846de4d5ea 100644
--- a/desktop/source/deployment/manager/dp_informationprovider.cxx
+++ b/desktop/source/deployment/manager/dp_informationprovider.cxx
@@ -64,23 +64,23 @@ class PackageInformationProvider :
PackageInformationProvider( uno::Reference< uno::XComponentContext >const& xContext);
virtual ~PackageInformationProvider();
- static uno::Sequence< rtl::OUString > getServiceNames();
- static rtl::OUString getImplName();
+ static uno::Sequence< OUString > getServiceNames();
+ static OUString getImplName();
// XPackageInformationProvider
- virtual rtl::OUString SAL_CALL getPackageLocation( const rtl::OUString& extensionId )
+ virtual OUString SAL_CALL getPackageLocation( const OUString& extensionId )
throw ( uno::RuntimeException );
- virtual uno::Sequence< uno::Sequence< rtl::OUString > > SAL_CALL isUpdateAvailable( const rtl::OUString& extensionId )
+ virtual uno::Sequence< uno::Sequence< OUString > > SAL_CALL isUpdateAvailable( const OUString& extensionId )
throw ( uno::RuntimeException );
- virtual uno::Sequence< uno::Sequence< rtl::OUString > > SAL_CALL getExtensionList()
+ virtual uno::Sequence< uno::Sequence< OUString > > SAL_CALL getExtensionList()
throw ( uno::RuntimeException );
//---------
private:
uno::Reference< uno::XComponentContext> mxContext;
- rtl::OUString getPackageLocation( const rtl::OUString& repository,
- const rtl::OUString& _sExtensionId );
+ OUString getPackageLocation( const OUString& repository,
+ const OUString& _sExtensionId );
uno::Reference< deployment::XUpdateInformationProvider > mxUpdateInformation;
};
@@ -100,11 +100,11 @@ PackageInformationProvider::~PackageInformationProvider()
}
//------------------------------------------------------------------------------
-rtl::OUString PackageInformationProvider::getPackageLocation(
- const rtl::OUString & repository,
- const rtl::OUString& _rExtensionId )
+OUString PackageInformationProvider::getPackageLocation(
+ const OUString & repository,
+ const OUString& _rExtensionId )
{
- rtl::OUString aLocationURL;
+ OUString aLocationURL;
uno::Reference<deployment::XExtensionManager> xManager =
deployment::ExtensionManager::get(mxContext);
@@ -120,7 +120,7 @@ rtl::OUString PackageInformationProvider::getPackageLocation(
{
try
{
- const beans::Optional< rtl::OUString > aID = packages[ pos ]->getIdentifier();
+ const beans::Optional< OUString > aID = packages[ pos ]->getIdentifier();
if ( aID.IsPresent && (aID.Value == _rExtensionId ) )
{
aLocationURL = packages[ pos ]->getURL();
@@ -136,19 +136,19 @@ rtl::OUString PackageInformationProvider::getPackageLocation(
//------------------------------------------------------------------------------
-rtl::OUString SAL_CALL
-PackageInformationProvider::getPackageLocation( const rtl::OUString& _sExtensionId )
+OUString SAL_CALL
+PackageInformationProvider::getPackageLocation( const OUString& _sExtensionId )
throw ( uno::RuntimeException )
{
- rtl::OUString aLocationURL = getPackageLocation( rtl::OUString("user"), _sExtensionId );
+ OUString aLocationURL = getPackageLocation( OUString("user"), _sExtensionId );
if ( aLocationURL.isEmpty() )
{
- aLocationURL = getPackageLocation( rtl::OUString("shared"), _sExtensionId );
+ aLocationURL = getPackageLocation( OUString("shared"), _sExtensionId );
}
if ( aLocationURL.isEmpty() )
{
- aLocationURL = getPackageLocation( rtl::OUString("bundled"), _sExtensionId );
+ aLocationURL = getPackageLocation( OUString("bundled"), _sExtensionId );
}
if ( !aLocationURL.isEmpty() )
{
@@ -160,11 +160,11 @@ PackageInformationProvider::getPackageLocation( const rtl::OUString& _sExtension
//------------------------------------------------------------------------------
-uno::Sequence< uno::Sequence< rtl::OUString > > SAL_CALL
-PackageInformationProvider::isUpdateAvailable( const rtl::OUString& _sExtensionId )
+uno::Sequence< uno::Sequence< OUString > > SAL_CALL
+PackageInformationProvider::isUpdateAvailable( const OUString& _sExtensionId )
throw ( uno::RuntimeException )
{
- uno::Sequence< uno::Sequence< rtl::OUString > > aList;
+ uno::Sequence< uno::Sequence< OUString > > aList;
uno::Reference<deployment::XExtensionManager> extMgr =
deployment::ExtensionManager::get(mxContext);
@@ -205,7 +205,7 @@ PackageInformationProvider::isUpdateAvailable( const rtl::OUString& _sExtensionI
{
dp_misc::UpdateInfo const & info = i->second;
- rtl::OUString sOnlineVersion;
+ OUString sOnlineVersion;
if (info.info.is())
{
// check, if there are unsatisfied dependencies and ignore this online update
@@ -216,9 +216,9 @@ PackageInformationProvider::isUpdateAvailable( const rtl::OUString& _sExtensionI
sOnlineVersion = info.version;
}
- rtl::OUString sVersionUser;
- rtl::OUString sVersionShared;
- rtl::OUString sVersionBundled;
+ OUString sVersionUser;
+ OUString sVersionShared;
+ OUString sVersionBundled;
uno::Sequence< uno::Reference< deployment::XPackage> > extensions;
try {
extensions = extMgr->getExtensionsWithSameIdentifier(
@@ -242,15 +242,15 @@ PackageInformationProvider::isUpdateAvailable( const rtl::OUString& _sExtensionI
dp_misc::UPDATE_SOURCE sourceShared = dp_misc::isUpdateSharedExtension(
bSharedReadOnly, sVersionShared, sVersionBundled, sOnlineVersion);
- rtl::OUString updateVersionUser;
- rtl::OUString updateVersionShared;
+ OUString updateVersionUser;
+ OUString updateVersionShared;
if (sourceUser != dp_misc::UPDATE_SOURCE_NONE)
updateVersionUser = dp_misc::getHighestVersion(
- rtl::OUString(), sVersionShared, sVersionBundled, sOnlineVersion);
+ OUString(), sVersionShared, sVersionBundled, sOnlineVersion);
if (sourceShared != dp_misc::UPDATE_SOURCE_NONE)
updateVersionShared = dp_misc::getHighestVersion(
- rtl::OUString(), rtl::OUString(), sVersionBundled, sOnlineVersion);
- rtl::OUString updateVersion;
+ OUString(), OUString(), sVersionBundled, sOnlineVersion);
+ OUString updateVersion;
if (dp_misc::compareVersions(updateVersionUser, updateVersionShared) == dp_misc::GREATER)
updateVersion = updateVersionUser;
else
@@ -258,32 +258,32 @@ PackageInformationProvider::isUpdateAvailable( const rtl::OUString& _sExtensionI
if (!updateVersion.isEmpty())
{
- rtl::OUString aNewEntry[2];
+ OUString aNewEntry[2];
aNewEntry[0] = i->first;
aNewEntry[1] = updateVersion;
aList.realloc( ++nCount );
- aList[ nCount-1 ] = ::uno::Sequence< rtl::OUString >( aNewEntry, 2 );
+ aList[ nCount-1 ] = ::uno::Sequence< OUString >( aNewEntry, 2 );
}
}
return aList;
}
//------------------------------------------------------------------------------
-uno::Sequence< uno::Sequence< rtl::OUString > > SAL_CALL PackageInformationProvider::getExtensionList()
+uno::Sequence< uno::Sequence< OUString > > SAL_CALL PackageInformationProvider::getExtensionList()
throw ( uno::RuntimeException )
{
const uno::Reference<deployment::XExtensionManager> mgr =
deployment::ExtensionManager::get(mxContext);
if (!mgr.is())
- return uno::Sequence< uno::Sequence< rtl::OUString > >();
+ return uno::Sequence< uno::Sequence< OUString > >();
const uno::Sequence< uno::Sequence< uno::Reference<deployment::XPackage > > >
allExt = mgr->getAllExtensions(
uno::Reference< task::XAbortChannel >(),
uno::Reference< css_ucb::XCommandEnvironment > () );
- uno::Sequence< uno::Sequence< rtl::OUString > > retList;
+ uno::Sequence< uno::Sequence< OUString > > retList;
sal_Int32 cAllIds = allExt.getLength();
retList.realloc(cAllIds);
@@ -303,10 +303,10 @@ uno::Sequence< uno::Sequence< rtl::OUString > > SAL_CALL PackageInformationProvi
uno::Reference< deployment::XPackage > const & xExtension( seqExtension[j] );
if (xExtension.is())
{
- rtl::OUString aNewEntry[2];
+ OUString aNewEntry[2];
aNewEntry[0] = dp_misc::getIdentifier(xExtension);
aNewEntry[1] = xExtension->getVersion();
- retList[i] = ::uno::Sequence< rtl::OUString >( aNewEntry, 2 );
+ retList[i] = ::uno::Sequence< OUString >( aNewEntry, 2 );
break;
}
}
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx
index 87c107c08855..5bf0c91279f1 100644
--- a/desktop/source/deployment/manager/dp_manager.cxx
+++ b/desktop/source/deployment/manager/dp_manager.cxx
@@ -64,7 +64,6 @@ using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-using ::rtl::OUString;
namespace dp_log {
extern comphelper::service_decl::ServiceDecl const serviceDecl;
@@ -257,9 +256,9 @@ void PackageManagerImpl::initActivationLayer(
ucbhelper::Content remFileContent(
url + "removed", Reference<XCommandEnvironment>(), m_xComponentContext);
::rtl::ByteSequence data = dp_misc::readFile(remFileContent);
- ::rtl::OString osData(reinterpret_cast<const sal_Char*>(data.getConstArray()),
+ OString osData(reinterpret_cast<const sal_Char*>(data.getConstArray()),
data.getLength());
- OUString sData = ::rtl::OStringToOUString(
+ OUString sData = OStringToOUString(
osData, RTL_TEXTENCODING_UTF8);
if (!sData.equals(aUserName))
continue;
@@ -295,7 +294,7 @@ void PackageManagerImpl::initRegistryBackends()
// as to whether a directory is truly read-only or not
static bool isMacroURLReadOnly( const OUString &rMacro )
{
- rtl::OUString aDirURL( rMacro );
+ OUString aDirURL( rMacro );
::rtl::Bootstrap::expandMacros( aDirURL );
::osl::FileBase::RC aErr = ::osl::Directory::create( aDirURL );
@@ -306,7 +305,7 @@ static bool isMacroURLReadOnly( const OUString &rMacro )
bool bError;
sal_uInt64 nWritten = 0;
- rtl::OUString aFileURL( aDirURL + "/stamp.sys" );
+ OUString aFileURL( aDirURL + "/stamp.sys" );
::osl::File aFile( aFileURL );
bError = aFile.open( osl_File_OpenFlag_Read |
@@ -572,7 +571,7 @@ OUString PackageManagerImpl::detectMediaType(
if (throw_exc)
throw;
(void) exc;
- OSL_FAIL( ::rtl::OUStringToOString(
+ OSL_FAIL( OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
}
}
@@ -606,7 +605,7 @@ OUString PackageManagerImpl::insertToActivationLayer(
mediaType.matchIgnoreAsciiCase("application/vnd.sun.star.legacy-package-bundle"))
{
// inflate content:
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
if (!sourceContent.isFolder())
{
buf.appendAscii( "vnd.sun.star.zip://" );
@@ -848,7 +847,7 @@ void PackageManagerImpl::deletePackageFromCache(
}
//______________________________________________________________________________
void PackageManagerImpl::removePackage(
- OUString const & id, ::rtl::OUString const & fileName,
+ OUString const & id, OUString const & fileName,
Reference<task::XAbortChannel> const & /*xAbortChannel*/,
Reference<XCommandEnvironment> const & xCmdEnv_ )
throw (deployment::DeploymentException, CommandFailedException,
@@ -894,7 +893,7 @@ void PackageManagerImpl::removePackage(
::osl::Security aSecurity;
aSecurity.getUserName( aUserName );
- ::rtl::OString stamp = ::rtl::OUStringToOString(aUserName, RTL_TEXTENCODING_UTF8);
+ OString stamp = OUStringToOString(aUserName, RTL_TEXTENCODING_UTF8);
Reference<css::io::XInputStream> xData(
::xmlscript::createInputStream(
::rtl::ByteSequence(
@@ -937,7 +936,7 @@ void PackageManagerImpl::removePackage(
//______________________________________________________________________________
OUString PackageManagerImpl::getDeployPath( ActivePackages::Data const & data )
{
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
buf.append( data.temporaryName );
//The bundled extensions are not contained in an additional folder
//with a unique name. data.temporaryName contains already the
@@ -979,7 +978,7 @@ Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage_(
if (INetContentTypes::parse( data.mediaType, type, subType, &params ))
{
INetContentTypeParameter const * param = params.find(
- rtl::OString("platform") );
+ OString("platform") );
if (param != 0 && !platform_fits( param->m_sValue ))
throw lang::IllegalArgumentException(
getResourceString(RID_STR_NO_SUCH_PACKAGE) + id,
@@ -1028,13 +1027,13 @@ PackageManagerImpl::getDeployedPackages_(
catch (const lang::IllegalArgumentException & exc) {
// ignore
(void) exc; // avoid warnings
- OSL_FAIL( ::rtl::OUStringToOString(
+ OSL_FAIL( OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
}
catch (const deployment::DeploymentException& exc) {
// ignore
(void) exc; // avoid warnings
- OSL_FAIL( ::rtl::OUStringToOString(
+ OSL_FAIL( OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
}
}
@@ -1043,7 +1042,7 @@ PackageManagerImpl::getDeployedPackages_(
//______________________________________________________________________________
Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage(
- OUString const & id, ::rtl::OUString const & fileName,
+ OUString const & id, OUString const & fileName,
Reference<XCommandEnvironment> const & xCmdEnv_ )
throw (deployment::DeploymentException, CommandFailedException,
lang::IllegalArgumentException, RuntimeException)
diff --git a/desktop/source/deployment/manager/dp_manager.h b/desktop/source/deployment/manager/dp_manager.h
index facc82b07dbc..91802135c83a 100644
--- a/desktop/source/deployment/manager/dp_manager.h
+++ b/desktop/source/deployment/manager/dp_manager.h
@@ -42,14 +42,14 @@ typedef ::cppu::WeakComponentImplHelper1<
class PackageManagerImpl : private ::dp_misc::MutexHolder, public t_pm_helper
{
css::uno::Reference<css::uno::XComponentContext> m_xComponentContext;
- ::rtl::OUString m_context;
- ::rtl::OUString m_registrationData;
- ::rtl::OUString m_registrationData_expanded;
- ::rtl::OUString m_registryCache;
+ OUString m_context;
+ OUString m_registrationData;
+ OUString m_registrationData_expanded;
+ OUString m_registryCache;
bool m_readOnly;
- ::rtl::OUString m_activePackages;
- ::rtl::OUString m_activePackages_expanded;
+ OUString m_activePackages;
+ OUString m_activePackages_expanded;
::std::auto_ptr< ActivePackages > m_activePackagesDB;
//This mutex is only used for synchronization in addPackage
::osl::Mutex m_addMutex;
@@ -62,19 +62,19 @@ class PackageManagerImpl : private ::dp_misc::MutexHolder, public t_pm_helper
void initRegistryBackends();
void initActivationLayer(
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv );
- ::rtl::OUString detectMediaType(
+ OUString detectMediaType(
::ucbhelper::Content const & ucbContent, bool throw_exc = true );
- ::rtl::OUString insertToActivationLayer(
+ OUString insertToActivationLayer(
css::uno::Sequence<css::beans::NamedValue> const & properties,
- ::rtl::OUString const & mediaType,
+ OUString const & mediaType,
::ucbhelper::Content const & sourceContent,
- ::rtl::OUString const & title, ActivePackages::Data * dbData );
+ OUString const & title, ActivePackages::Data * dbData );
void insertToActivationLayerDB(
- ::rtl::OUString const & id, ActivePackages::Data const & dbData );
+ OUString const & id, ActivePackages::Data const & dbData );
void deletePackageFromCache(
css::uno::Reference<css::deployment::XPackage> const & xPackage,
- ::rtl::OUString const & destFolder );
+ OUString const & destFolder );
bool isInstalled(
css::uno::Reference<css::deployment::XPackage> const & package);
@@ -124,7 +124,7 @@ protected:
virtual ~PackageManagerImpl();
inline PackageManagerImpl(
css::uno::Reference<css::uno::XComponentContext>
- const & xComponentContext, ::rtl::OUString const & context )
+ const & xComponentContext, OUString const & context )
: t_pm_helper( getMutex() ),
m_xComponentContext( xComponentContext ),
m_context( context ),
@@ -134,7 +134,7 @@ protected:
public:
static css::uno::Reference<css::deployment::XPackageManager> create(
css::uno::Reference<css::uno::XComponentContext>
- const & xComponentContext, ::rtl::OUString const & context );
+ const & xComponentContext, OUString const & context );
// XComponent
virtual void SAL_CALL dispose() throw (css::uno::RuntimeException);
@@ -154,7 +154,7 @@ public:
throw (css::uno::RuntimeException);
// XPackageManager
- virtual ::rtl::OUString SAL_CALL getContext()
+ virtual OUString SAL_CALL getContext()
throw (css::uno::RuntimeException);
virtual css::uno::Sequence<
css::uno::Reference<css::deployment::XPackageTypeInfo> > SAL_CALL
@@ -164,9 +164,9 @@ public:
createAbortChannel() throw (css::uno::RuntimeException);
virtual css::uno::Reference<css::deployment::XPackage> SAL_CALL addPackage(
- ::rtl::OUString const & url,
+ OUString const & url,
css::uno::Sequence<css::beans::NamedValue> const & properties,
- ::rtl::OUString const & mediaType,
+ OUString const & mediaType,
css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (css::deployment::DeploymentException,
@@ -186,7 +186,7 @@ public:
css::uno::RuntimeException);
virtual void SAL_CALL removePackage(
- ::rtl::OUString const & id, ::rtl::OUString const & fileName,
+ OUString const & id, OUString const & fileName,
css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (css::deployment::DeploymentException,
@@ -195,17 +195,17 @@ public:
css::lang::IllegalArgumentException,
css::uno::RuntimeException);
- ::rtl::OUString getDeployPath( ActivePackages::Data const & data );
+ OUString getDeployPath( ActivePackages::Data const & data );
css::uno::Reference<css::deployment::XPackage> SAL_CALL getDeployedPackage_(
- ::rtl::OUString const & id, ::rtl::OUString const & fileName,
+ OUString const & id, OUString const & fileName,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv );
css::uno::Reference<css::deployment::XPackage> getDeployedPackage_(
- ::rtl::OUString const & id, ActivePackages::Data const & data,
+ OUString const & id, ActivePackages::Data const & data,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
bool ignoreAlienPlatforms = false );
virtual css::uno::Reference<css::deployment::XPackage> SAL_CALL
getDeployedPackage(
- ::rtl::OUString const & id, ::rtl::OUString const & fileName,
+ OUString const & id, OUString const & fileName,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (css::deployment::DeploymentException,
css::ucb::CommandFailedException,
diff --git a/desktop/source/deployment/manager/dp_managerfac.cxx b/desktop/source/deployment/manager/dp_managerfac.cxx
index 33b4968e8e40..e2d1259fd3cc 100644
--- a/desktop/source/deployment/manager/dp_managerfac.cxx
+++ b/desktop/source/deployment/manager/dp_managerfac.cxx
@@ -29,7 +29,6 @@
using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
namespace dp_manager {
namespace factory {
@@ -49,7 +48,7 @@ class PackageManagerFactoryImpl : private MutexHolder, public t_pmfac_helper
Reference<deployment::XPackageManager> m_xBakMgr;
typedef ::boost::unordered_map<
OUString, WeakReference<deployment::XPackageManager>,
- ::rtl::OUStringHash > t_string2weakref;
+ OUStringHash > t_string2weakref;
t_string2weakref m_managers;
protected:
diff --git a/desktop/source/deployment/manager/dp_properties.cxx b/desktop/source/deployment/manager/dp_properties.cxx
index 0259df6441f7..f45f42f7011f 100644
--- a/desktop/source/deployment/manager/dp_properties.cxx
+++ b/desktop/source/deployment/manager/dp_properties.cxx
@@ -34,7 +34,6 @@ namespace uno = com::sun::star::uno;
using ::com::sun::star::uno::Reference;
-using ::rtl::OUString;
#define PROP_SUPPRESS_LICENSE "SUPPRESS_LICENSE"
#define PROP_EXTENSION_UPDATE "EXTENSION_UPDATE"
@@ -107,7 +106,7 @@ OUString ExtensionProperties::getPropertyValue(css::beans::NamedValue const & v)
void ExtensionProperties::write()
{
::ucbhelper::Content contentProps(m_propFileUrl, m_xCmdEnv, m_xContext);
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
if (m_prop_suppress_license)
{
@@ -116,7 +115,7 @@ void ExtensionProperties::write()
buf.append(*m_prop_suppress_license);
}
- ::rtl::OString stamp = ::rtl::OUStringToOString(
+ OString stamp = OUStringToOString(
buf.makeStringAndClear(), RTL_TEXTENCODING_UTF8);
Reference<css::io::XInputStream> xData(
::xmlscript::createInputStream(
diff --git a/desktop/source/deployment/manager/dp_properties.hxx b/desktop/source/deployment/manager/dp_properties.hxx
index 34d8ebe56194..983ddfc6075c 100644
--- a/desktop/source/deployment/manager/dp_properties.hxx
+++ b/desktop/source/deployment/manager/dp_properties.hxx
@@ -37,21 +37,21 @@ namespace dp_manager {
class ExtensionProperties
{
protected:
- ::rtl::OUString m_propFileUrl;
+ OUString m_propFileUrl;
const css::uno::Reference<css::ucb::XCommandEnvironment> m_xCmdEnv;
const css::uno::Reference<css::uno::XComponentContext> m_xContext;
- ::boost::optional< ::rtl::OUString> m_prop_suppress_license;
- ::boost::optional< ::rtl::OUString> m_prop_extension_update;
+ ::boost::optional< OUString> m_prop_suppress_license;
+ ::boost::optional< OUString> m_prop_extension_update;
- ::rtl::OUString getPropertyValue(css::beans::NamedValue const & v);
+ OUString getPropertyValue(css::beans::NamedValue const & v);
public:
virtual ~ExtensionProperties() {};
- ExtensionProperties(::rtl::OUString const & urlExtension,
+ ExtensionProperties(OUString const & urlExtension,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
css::uno::Reference<css::uno::XComponentContext> const & xContext);
- ExtensionProperties(::rtl::OUString const & urlExtension,
+ ExtensionProperties(OUString const & urlExtension,
css::uno::Sequence<css::beans::NamedValue> const & properties,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
css::uno::Reference<css::uno::XComponentContext> const & xContext);
diff --git a/desktop/source/deployment/misc/dp_dependencies.cxx b/desktop/source/deployment/misc/dp_dependencies.cxx
index 23df4a271b7c..4b50f844f7c2 100644
--- a/desktop/source/deployment/misc/dp_dependencies.cxx
+++ b/desktop/source/deployment/misc/dp_dependencies.cxx
@@ -54,12 +54,12 @@ static char const minimalVersionOpenOfficeOrg[] =
static char const maximalVersionOpenOfficeOrg[] =
"OpenOffice.org-maximal-version";
-rtl::OUString getLibreOfficeMajorMinorMicro() {
+OUString getLibreOfficeMajorMinorMicro() {
return utl::ConfigManager::getAboutBoxProductVersion();
}
-rtl::OUString getReferenceOpenOfficeOrgMajorMinor() {
- rtl::OUString v(
+OUString getReferenceOpenOfficeOrgMajorMinor() {
+ OUString v(
"${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("version")
":Version:ReferenceOOoMajorMinor}");
rtl::Bootstrap::expandMacros(v); //TODO: check for failure
@@ -67,19 +67,19 @@ rtl::OUString getReferenceOpenOfficeOrgMajorMinor() {
}
bool satisfiesMinimalVersion(
- rtl::OUString const & actual, rtl::OUString const & specified)
+ OUString const & actual, OUString const & specified)
{
return dp_misc::compareVersions(actual, specified) != dp_misc::LESS;
}
bool satisfiesMaximalVersion(
- rtl::OUString const & actual, rtl::OUString const & specified)
+ OUString const & actual, OUString const & specified)
{
return dp_misc::compareVersions(actual, specified) != dp_misc::GREATER;
}
-rtl::OUString produceErrorText(
- rtl::OUString const & reason, rtl::OUString const & version)
+OUString produceErrorText(
+ OUString const & reason, OUString const & version)
{
return reason.replaceFirst("%VERSION",
(version.isEmpty()
@@ -136,7 +136,7 @@ check(dp_misc::DescriptionInfoset const & infoset) {
return unsatisfied;
}
-rtl::OUString getErrorText(
+OUString getErrorText(
css::uno::Reference< css::xml::dom::XElement > const & dependency)
{
OSL_ASSERT(dependency.is());
diff --git a/desktop/source/deployment/misc/dp_descriptioninfoset.cxx b/desktop/source/deployment/misc/dp_descriptioninfoset.cxx
index 8daef83d3918..08e78fbc988a 100644
--- a/desktop/source/deployment/misc/dp_descriptioninfoset.cxx
+++ b/desktop/source/deployment/misc/dp_descriptioninfoset.cxx
@@ -56,7 +56,6 @@
namespace {
using css::uno::Reference;
-using ::rtl::OUString;
class EmptyNodeList: public ::cppu::WeakImplHelper1< css::xml::dom::XNodeList >
{
@@ -90,7 +89,7 @@ css::uno::Reference< css::xml::dom::XNode > EmptyNodeList::item(::sal_Int32)
static_cast< ::cppu::OWeakObject * >(this));
}
-::rtl::OUString getNodeValue(
+OUString getNodeValue(
css::uno::Reference< css::xml::dom::XNode > const & node)
{
OSL_ASSERT(node.is());
@@ -122,7 +121,7 @@ public:
*/
ExtensionDescription(
const css::uno::Reference<css::uno::XComponentContext>& xContext,
- const ::rtl::OUString& installDir,
+ const OUString& installDir,
const css::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv);
~ExtensionDescription();
@@ -132,7 +131,7 @@ public:
return m_xRoot;
}
- ::rtl::OUString getExtensionRootUrl() const
+ OUString getExtensionRootUrl() const
{
return m_sExtensionRootUrl;
}
@@ -140,7 +139,7 @@ public:
private:
css::uno::Reference<css::xml::dom::XNode> m_xRoot;
- ::rtl::OUString m_sExtensionRootUrl;
+ OUString m_sExtensionRootUrl;
};
class NoDescriptionException
@@ -357,11 +356,11 @@ DescriptionInfoset::DescriptionInfoset(
DescriptionInfoset::~DescriptionInfoset() {}
-::boost::optional< ::rtl::OUString > DescriptionInfoset::getIdentifier() const {
+::boost::optional< OUString > DescriptionInfoset::getIdentifier() const {
return getOptionalValue("desc:identifier/@value");
}
-::rtl::OUString DescriptionInfoset::getNodeValueFromExpression(::rtl::OUString const & expression) const
+OUString DescriptionInfoset::getNodeValueFromExpression(OUString const & expression) const
{
css::uno::Reference< css::xml::dom::XNode > n;
if (m_element.is()) {
@@ -371,7 +370,7 @@ DescriptionInfoset::~DescriptionInfoset() {}
// ignore
}
}
- return n.is() ? getNodeValue(n) : ::rtl::OUString();
+ return n.is() ? getNodeValue(n) : OUString();
}
void DescriptionInfoset::checkBlacklist() const
@@ -392,8 +391,8 @@ void DescriptionInfoset::checkBlacklist() const
css::uno::Sequence< css::uno::Any > args = css::uno::Sequence< css::uno::Any >(1);
css::beans::PropertyValue prop;
- prop.Name = ::rtl::OUString("nodepath");
- prop.Value <<= ::rtl::OUString("/org.openoffice.Office.ExtensionDependencies/Extensions");
+ prop.Name = OUString("nodepath");
+ prop.Value <<= OUString("/org.openoffice.Office.ExtensionDependencies/Extensions");
args[0] <<= prop;
css::uno::Reference< css::container::XNameAccess > blacklist(
@@ -407,19 +406,19 @@ void DescriptionInfoset::checkBlacklist() const
css::uno::Any anyValue = extProps->getPropertyValue("Versions");
- css::uno::Sequence< ::rtl::OUString > blversions;
+ css::uno::Sequence< OUString > blversions;
anyValue >>= blversions;
// check if the current version requires further dependency checks from the blacklist
if (checkBlacklistVersion(currentversion, blversions)) {
anyValue = extProps->getPropertyValue("Dependencies");
- ::rtl::OUString udeps;
+ OUString udeps;
anyValue >>= udeps;
if (udeps.getLength() == 0)
return; // nothing todo
- ::rtl::OString xmlDependencies = ::rtl::OUStringToOString(udeps, RTL_TEXTENCODING_UNICODE);
+ OString xmlDependencies = OUStringToOString(udeps, RTL_TEXTENCODING_UNICODE);
css::uno::Reference< css::xml::dom::XDocumentBuilder> docbuilder(
manager->createInstanceWithContext("com.sun.star.xml.dom.DocumentBuilder", m_context),
@@ -467,8 +466,8 @@ void DescriptionInfoset::checkBlacklist() const
}
bool DescriptionInfoset::checkBlacklistVersion(
- ::rtl::OUString currentversion,
- ::com::sun::star::uno::Sequence< ::rtl::OUString > const & versions) const
+ OUString currentversion,
+ ::com::sun::star::uno::Sequence< OUString > const & versions) const
{
sal_Int32 nLen = versions.getLength();
for (sal_Int32 i=0; i<nLen; i++) {
@@ -479,12 +478,12 @@ bool DescriptionInfoset::checkBlacklistVersion(
return false;
}
-::rtl::OUString DescriptionInfoset::getVersion() const
+OUString DescriptionInfoset::getVersion() const
{
return getNodeValueFromExpression( "desc:version/@value" );
}
-css::uno::Sequence< ::rtl::OUString > DescriptionInfoset::getSupportedPlaforms() const
+css::uno::Sequence< OUString > DescriptionInfoset::getSupportedPlaforms() const
{
//When there is no description.xml then we assume that we support all platforms
if (! m_element.is())
@@ -501,13 +500,13 @@ css::uno::Sequence< ::rtl::OUString > DescriptionInfoset::getSupportedPlaforms()
}
//There is a platform element.
- const ::rtl::OUString value = getNodeValueFromExpression("desc:platform/@value");
+ const OUString value = getNodeValueFromExpression("desc:platform/@value");
//parse the string, it can contained multiple strings separated by commas
- ::std::vector< ::rtl::OUString> vec;
+ ::std::vector< OUString> vec;
sal_Int32 nIndex = 0;
do
{
- ::rtl::OUString aToken = value.getToken( 0, ',', nIndex );
+ OUString aToken = value.getToken( 0, ',', nIndex );
aToken = aToken.trim();
if (!aToken.isEmpty())
vec.push_back(aToken);
@@ -533,21 +532,21 @@ DescriptionInfoset::getDependencies() const {
return new EmptyNodeList;
}
-css::uno::Sequence< ::rtl::OUString >
+css::uno::Sequence< OUString >
DescriptionInfoset::getUpdateInformationUrls() const {
return getUrls("desc:update-information/desc:src/@xlink:href");
}
-css::uno::Sequence< ::rtl::OUString >
+css::uno::Sequence< OUString >
DescriptionInfoset::getUpdateDownloadUrls() const
{
return getUrls("desc:update-download/desc:src/@xlink:href");
}
-::rtl::OUString DescriptionInfoset::getIconURL( sal_Bool bHighContrast ) const
+OUString DescriptionInfoset::getIconURL( sal_Bool bHighContrast ) const
{
- css::uno::Sequence< ::rtl::OUString > aStrList = getUrls( "desc:icon/desc:default/@xlink:href" );
- css::uno::Sequence< ::rtl::OUString > aStrListHC = getUrls( "desc:icon/desc:high-contrast/@xlink:href" );
+ css::uno::Sequence< OUString > aStrList = getUrls( "desc:icon/desc:default/@xlink:href" );
+ css::uno::Sequence< OUString > aStrListHC = getUrls( "desc:icon/desc:high-contrast/@xlink:href" );
if ( bHighContrast && aStrListHC.hasElements() && !aStrListHC[0].isEmpty() )
return aStrListHC[0];
@@ -555,24 +554,24 @@ DescriptionInfoset::getUpdateDownloadUrls() const
if ( aStrList.hasElements() && !aStrList[0].isEmpty() )
return aStrList[0];
- return ::rtl::OUString();
+ return OUString();
}
-::boost::optional< ::rtl::OUString > DescriptionInfoset::getLocalizedUpdateWebsiteURL()
+::boost::optional< OUString > DescriptionInfoset::getLocalizedUpdateWebsiteURL()
const
{
bool bParentExists = false;
- const ::rtl::OUString sURL (getLocalizedHREFAttrFromChild("/desc:description/desc:update-website", &bParentExists ));
+ const OUString sURL (getLocalizedHREFAttrFromChild("/desc:description/desc:update-website", &bParentExists ));
if (!sURL.isEmpty())
- return ::boost::optional< ::rtl::OUString >(sURL);
+ return ::boost::optional< OUString >(sURL);
else
- return bParentExists ? ::boost::optional< ::rtl::OUString >(::rtl::OUString()) :
- ::boost::optional< ::rtl::OUString >();
+ return bParentExists ? ::boost::optional< OUString >(OUString()) :
+ ::boost::optional< OUString >();
}
-::boost::optional< ::rtl::OUString > DescriptionInfoset::getOptionalValue(
- ::rtl::OUString const & expression) const
+::boost::optional< OUString > DescriptionInfoset::getOptionalValue(
+ OUString const & expression) const
{
css::uno::Reference< css::xml::dom::XNode > n;
if (m_element.is()) {
@@ -583,12 +582,12 @@ DescriptionInfoset::getUpdateDownloadUrls() const
}
}
return n.is()
- ? ::boost::optional< ::rtl::OUString >(getNodeValue(n))
- : ::boost::optional< ::rtl::OUString >();
+ ? ::boost::optional< OUString >(getNodeValue(n))
+ : ::boost::optional< OUString >();
}
-css::uno::Sequence< ::rtl::OUString > DescriptionInfoset::getUrls(
- ::rtl::OUString const & expression) const
+css::uno::Sequence< OUString > DescriptionInfoset::getUrls(
+ OUString const & expression) const
{
css::uno::Reference< css::xml::dom::XNodeList > ns;
if (m_element.is()) {
@@ -598,23 +597,23 @@ css::uno::Sequence< ::rtl::OUString > DescriptionInfoset::getUrls(
// ignore
}
}
- css::uno::Sequence< ::rtl::OUString > urls(ns.is() ? ns->getLength() : 0);
+ css::uno::Sequence< OUString > urls(ns.is() ? ns->getLength() : 0);
for (::sal_Int32 i = 0; i < urls.getLength(); ++i) {
urls[i] = getNodeValue(ns->item(i));
}
return urls;
}
-::std::pair< ::rtl::OUString, ::rtl::OUString > DescriptionInfoset::getLocalizedPublisherNameAndURL() const
+::std::pair< OUString, OUString > DescriptionInfoset::getLocalizedPublisherNameAndURL() const
{
css::uno::Reference< css::xml::dom::XNode > node =
getLocalizedChild("desc:publisher");
- ::rtl::OUString sPublisherName;
- ::rtl::OUString sURL;
+ OUString sPublisherName;
+ OUString sURL;
if (node.is())
{
- const ::rtl::OUString exp1("text()");
+ const OUString exp1("text()");
css::uno::Reference< css::xml::dom::XNode > xPathName;
try {
xPathName = m_xpath->selectSingleNode(node, exp1);
@@ -625,7 +624,7 @@ css::uno::Sequence< ::rtl::OUString > DescriptionInfoset::getUrls(
if (xPathName.is())
sPublisherName = xPathName->getNodeValue();
- const ::rtl::OUString exp2("@xlink:href");
+ const OUString exp2("@xlink:href");
css::uno::Reference< css::xml::dom::XNode > xURL;
try {
xURL = m_xpath->selectSingleNode(node, exp2);
@@ -639,18 +638,18 @@ css::uno::Sequence< ::rtl::OUString > DescriptionInfoset::getUrls(
return ::std::make_pair(sPublisherName, sURL);
}
-::rtl::OUString DescriptionInfoset::getLocalizedReleaseNotesURL() const
+OUString DescriptionInfoset::getLocalizedReleaseNotesURL() const
{
return getLocalizedHREFAttrFromChild("/desc:description/desc:release-notes", NULL);
}
-::rtl::OUString DescriptionInfoset::getLocalizedDisplayName() const
+OUString DescriptionInfoset::getLocalizedDisplayName() const
{
css::uno::Reference< css::xml::dom::XNode > node =
getLocalizedChild("desc:display-name");
if (node.is())
{
- const ::rtl::OUString exp("text()");
+ const OUString exp("text()");
css::uno::Reference< css::xml::dom::XNode > xtext;
try {
xtext = m_xpath->selectSingleNode(node, exp);
@@ -660,10 +659,10 @@ css::uno::Sequence< ::rtl::OUString > DescriptionInfoset::getUrls(
if (xtext.is())
return xtext->getNodeValue();
}
- return ::rtl::OUString();
+ return OUString();
}
-::rtl::OUString DescriptionInfoset::getLocalizedLicenseURL() const
+OUString DescriptionInfoset::getLocalizedLicenseURL() const
{
return getLocalizedHREFAttrFromChild("/desc:description/desc:registration/desc:simple-license", NULL);
@@ -686,13 +685,13 @@ DescriptionInfoset::getSimpleLicenseAttributes() const
attributes.acceptBy =
getNodeValueFromExpression("/desc:description/desc:registration/desc:simple-license/@accept-by");
- ::boost::optional< ::rtl::OUString > suppressOnUpdate = getOptionalValue("/desc:description/desc:registration/desc:simple-license/@suppress-on-update");
+ ::boost::optional< OUString > suppressOnUpdate = getOptionalValue("/desc:description/desc:registration/desc:simple-license/@suppress-on-update");
if (suppressOnUpdate)
attributes.suppressOnUpdate = (*suppressOnUpdate).trim().equalsIgnoreAsciiCase("true");
else
attributes.suppressOnUpdate = false;
- ::boost::optional< ::rtl::OUString > suppressIfRequired = getOptionalValue("/desc:description/desc:registration/desc:simple-license/@suppress-if-required");
+ ::boost::optional< OUString > suppressIfRequired = getOptionalValue("/desc:description/desc:registration/desc:simple-license/@suppress-if-required");
if (suppressIfRequired)
attributes.suppressIfRequired = (*suppressIfRequired).trim().equalsIgnoreAsciiCase("true");
else
@@ -704,13 +703,13 @@ DescriptionInfoset::getSimpleLicenseAttributes() const
return ::boost::optional<SimpleLicenseAttributes>();
}
-::rtl::OUString DescriptionInfoset::getLocalizedDescriptionURL() const
+OUString DescriptionInfoset::getLocalizedDescriptionURL() const
{
return getLocalizedHREFAttrFromChild("/desc:description/desc:extension-description", NULL);
}
css::uno::Reference< css::xml::dom::XNode >
-DescriptionInfoset::getLocalizedChild( const ::rtl::OUString & sParent) const
+DescriptionInfoset::getLocalizedChild( const OUString & sParent) const
{
if ( ! m_element.is() || sParent.isEmpty())
return css::uno::Reference< css::xml::dom::XNode > ();
@@ -756,7 +755,7 @@ DescriptionInfoset::matchLanguageTag(
css::uno::Reference<css::xml::dom::XNode> nodeMatch;
//first try exact match for lang
- const ::rtl::OUString exp1("*[@lang=\"" + rTag + "\"]");
+ const OUString exp1("*[@lang=\"" + rTag + "\"]");
try {
nodeMatch = m_xpath->selectSingleNode(xParent, exp1);
} catch (const css::xml::xpath::XPathException &) {
@@ -767,7 +766,7 @@ DescriptionInfoset::matchLanguageTag(
//example en matches in en-US-montana, en-US, en-montana
if (!nodeMatch.is())
{
- const ::rtl::OUString exp2(
+ const OUString exp2(
"*[starts-with(@lang,\"" + rTag + "-\")]");
try {
nodeMatch = m_xpath->selectSingleNode(xParent, exp2);
@@ -794,7 +793,7 @@ DescriptionInfoset::getChildWithDefaultLocale(css::uno::Reference< css::xml::dom
if (nodeDefault.is())
{
//The old way
- const ::rtl::OUString exp1("desc:license-text[@license-id = \""
+ const OUString exp1("desc:license-text[@license-id = \""
+ nodeDefault->getNodeValue()
+ "\"]");
try {
@@ -805,7 +804,7 @@ DescriptionInfoset::getChildWithDefaultLocale(css::uno::Reference< css::xml::dom
}
}
- const ::rtl::OUString exp2("*[1]");
+ const OUString exp2("*[1]");
try {
return m_xpath->selectSingleNode(xParent, exp2);
} catch (const css::xml::xpath::XPathException &) {
@@ -814,19 +813,19 @@ DescriptionInfoset::getChildWithDefaultLocale(css::uno::Reference< css::xml::dom
}
}
-::rtl::OUString DescriptionInfoset::getLocalizedHREFAttrFromChild(
- ::rtl::OUString const & sXPathParent, bool * out_bParentExists)
+OUString DescriptionInfoset::getLocalizedHREFAttrFromChild(
+ OUString const & sXPathParent, bool * out_bParentExists)
const
{
css::uno::Reference< css::xml::dom::XNode > node =
getLocalizedChild(sXPathParent);
- ::rtl::OUString sURL;
+ OUString sURL;
if (node.is())
{
if (out_bParentExists)
*out_bParentExists = true;
- const ::rtl::OUString exp("@xlink:href");
+ const OUString exp("@xlink:href");
css::uno::Reference< css::xml::dom::XNode > xURL;
try {
xURL = m_xpath->selectSingleNode(node, exp);
diff --git a/desktop/source/deployment/misc/dp_identifier.cxx b/desktop/source/deployment/misc/dp_identifier.cxx
index 165a0975a5b0..a8fb964e03fc 100644
--- a/desktop/source/deployment/misc/dp_identifier.cxx
+++ b/desktop/source/deployment/misc/dp_identifier.cxx
@@ -33,24 +33,24 @@
namespace dp_misc {
-::rtl::OUString generateIdentifier(
- ::boost::optional< ::rtl::OUString > const & optional,
- ::rtl::OUString const & fileName)
+OUString generateIdentifier(
+ ::boost::optional< OUString > const & optional,
+ OUString const & fileName)
{
return optional ? *optional : generateLegacyIdentifier(fileName);
}
-::rtl::OUString getIdentifier(
+OUString getIdentifier(
css::uno::Reference< css::deployment::XPackage > const & package)
{
OSL_ASSERT(package.is());
- css::beans::Optional< ::rtl::OUString > id(package->getIdentifier());
+ css::beans::Optional< OUString > id(package->getIdentifier());
return id.IsPresent
? id.Value : generateLegacyIdentifier(package->getName());
}
-::rtl::OUString generateLegacyIdentifier(::rtl::OUString const & fileName) {
- rtl::OUStringBuffer b;
+OUString generateLegacyIdentifier(OUString const & fileName) {
+ OUStringBuffer b;
b.appendAscii("org.openoffice.legacy.");
b.append(fileName);
return b.makeStringAndClear();
diff --git a/desktop/source/deployment/misc/dp_interact.cxx b/desktop/source/deployment/misc/dp_interact.cxx
index 8462363d0ae1..4d9f40df91b0 100644
--- a/desktop/source/deployment/misc/dp_interact.cxx
+++ b/desktop/source/deployment/misc/dp_interact.cxx
@@ -27,7 +27,6 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-using ::rtl::OUString;
namespace dp_misc {
namespace {
diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx
index 27ef710a112b..5a1bd22eb275 100644
--- a/desktop/source/deployment/misc/dp_misc.cxx
+++ b/desktop/source/deployment/misc/dp_misc.cxx
@@ -51,8 +51,6 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
-using ::rtl::OString;
#if defined WNT
#define SOFFICE1 "soffice.exe"
@@ -113,7 +111,7 @@ const OUString OfficePipeId::operator () ()
// create hex-value string from the MD5 value to keep
// the string size minimal
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
buf.appendAscii( "SingleOfficeIPC_" );
for ( sal_uInt32 i = 0; i < md5_key_len; ++i ) {
buf.append( static_cast<sal_Int32>(md5_buf[ i ]), 0x10 );
@@ -239,7 +237,7 @@ namespace {
inline OUString encodeForRcFile( OUString const & str )
{
// escape $\{} (=> rtl bootstrap files)
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
sal_Int32 pos = 0;
const sal_Int32 len = str.getLength();
for ( ; pos < len; ++pos ) {
@@ -261,7 +259,7 @@ inline OUString encodeForRcFile( OUString const & str )
//==============================================================================
OUString makeURL( OUString const & baseURL, OUString const & relPath_ )
{
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
if (baseURL.getLength() > 1 && baseURL[ baseURL.getLength() - 1 ] == '/')
buf.append( baseURL.copy( 0, baseURL.getLength() - 1 ) );
else
@@ -429,7 +427,7 @@ OUString generateRandomPipeId()
s_hPool, bytes, ARLEN(bytes) ) != rtl_Random_E_None) {
throw RuntimeException( "random pool error!?", 0 );
}
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
for ( sal_uInt32 i = 0; i < ARLEN(bytes); ++i ) {
buf.append( static_cast<sal_Int32>(bytes[ i ]), 0x10 );
}
@@ -462,14 +460,14 @@ Reference<XInterface> resolveUnoURL(
}
#ifdef WNT
-void writeConsoleWithStream(::rtl::OUString const & sText, HANDLE stream)
+void writeConsoleWithStream(OUString const & sText, HANDLE stream)
{
DWORD nWrittenChars = 0;
WriteFile(stream, sText.getStr(),
sText.getLength() * 2, &nWrittenChars, NULL);
}
#else
-void writeConsoleWithStream(::rtl::OUString const & sText, FILE * stream)
+void writeConsoleWithStream(OUString const & sText, FILE * stream)
{
OString s = OUStringToOString(sText, osl_getThreadTextEncoding());
fprintf(stream, "%s", s.getStr());
@@ -477,7 +475,7 @@ void writeConsoleWithStream(::rtl::OUString const & sText, FILE * stream)
}
#endif
-void writeConsole(::rtl::OUString const & sText)
+void writeConsole(OUString const & sText)
{
#ifdef WNT
writeConsoleWithStream(sText, GetStdHandle(STD_OUTPUT_HANDLE));
@@ -486,7 +484,7 @@ void writeConsole(::rtl::OUString const & sText)
#endif
}
-void writeConsoleError(::rtl::OUString const & sText)
+void writeConsoleError(OUString const & sText)
{
#ifdef WNT
writeConsoleWithStream(sText, GetStdHandle(STD_ERROR_HANDLE));
@@ -513,14 +511,14 @@ OUString readConsole()
// read one char less so that the last char in buf is always zero
if (fgets(buf, 1024, stdin) != NULL)
{
- OUString value = ::rtl::OStringToOUString(::rtl::OString(buf), osl_getThreadTextEncoding());
+ OUString value = OStringToOUString(OString(buf), osl_getThreadTextEncoding());
return value.trim();
}
#endif
return OUString();
}
-void TRACE(::rtl::OUString const & sText)
+void TRACE(OUString const & sText)
{
(void) sText;
#if OSL_DEBUG_LEVEL > 1
diff --git a/desktop/source/deployment/misc/dp_platform.cxx b/desktop/source/deployment/misc/dp_platform.cxx
index d75733dbbfcc..de8ea6630eaa 100644
--- a/desktop/source/deployment/misc/dp_platform.cxx
+++ b/desktop/source/deployment/misc/dp_platform.cxx
@@ -64,7 +64,6 @@
#define PLATFORM_AIX_POWERPC "aix_powerpc"
-using ::rtl::OUString;
namespace dp_misc
{
@@ -92,7 +91,7 @@ namespace
struct StrPlatform : public rtl::StaticWithInit<
OUString, StrPlatform> {
const OUString operator () () {
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
buf.append( StrOperatingSystem::get() );
buf.append( static_cast<sal_Unicode>('_') );
buf.append( StrCPU::get() );
diff --git a/desktop/source/deployment/misc/dp_resource.cxx b/desktop/source/deployment/misc/dp_resource.cxx
index 0100632c36a5..802e37f3d0c4 100644
--- a/desktop/source/deployment/misc/dp_resource.cxx
+++ b/desktop/source/deployment/misc/dp_resource.cxx
@@ -31,7 +31,6 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
namespace dp_misc {
namespace {
diff --git a/desktop/source/deployment/misc/dp_ucb.cxx b/desktop/source/deployment/misc/dp_ucb.cxx
index 96db856ce036..2fff496c5a1a 100644
--- a/desktop/source/deployment/misc/dp_ucb.cxx
+++ b/desktop/source/deployment/misc/dp_ucb.cxx
@@ -34,7 +34,6 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-using ::rtl::OUString;
namespace dp_misc
{
@@ -210,7 +209,7 @@ bool readLine( OUString * res, OUString const & startingWith,
{
if (file.match( startingWith, pos ))
{
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
sal_Int32 start = pos;
pos += startingWith.getLength();
for (;;)
@@ -254,7 +253,7 @@ bool readLine( OUString * res, OUString const & startingWith,
return false;
}
-bool readProperties( ::std::list< ::std::pair< ::rtl::OUString, ::rtl::OUString> > & out_result,
+bool readProperties( ::std::list< ::std::pair< OUString, OUString> > & out_result,
::ucbhelper::Content & ucb_content )
{
// read whole file:
@@ -266,7 +265,7 @@ bool readProperties( ::std::list< ::std::pair< ::rtl::OUString, ::rtl::OUString>
for (;;)
{
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
sal_Int32 start = pos;
bool bEOF = false;
diff --git a/desktop/source/deployment/misc/dp_update.cxx b/desktop/source/deployment/misc/dp_update.cxx
index f92b3c033adf..0a078fd3e499 100644
--- a/desktop/source/deployment/misc/dp_update.cxx
+++ b/desktop/source/deployment/misc/dp_update.cxx
@@ -26,18 +26,16 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
-using ::rtl::OString;
namespace dp_misc {
namespace {
int determineHighestVersion(
- ::rtl::OUString const & userVersion,
- ::rtl::OUString const & sharedVersion,
- ::rtl::OUString const & bundledVersion,
- ::rtl::OUString const & onlineVersion)
+ OUString const & userVersion,
+ OUString const & sharedVersion,
+ OUString const & bundledVersion,
+ OUString const & onlineVersion)
{
int index = 0;
OUString greatest = userVersion;
@@ -134,7 +132,7 @@ void getDefaultUpdateInfos(
UpdateInfoMap& inout_map,
std::vector<std::pair<Reference<deployment::XPackage>, uno::Any> > & out_errors)
{
- const rtl::OUString sDefaultURL(dp_misc::getExtensionDefaultUpdateURL());
+ const OUString sDefaultURL(dp_misc::getExtensionDefaultUpdateURL());
OSL_ASSERT(!sDefaultURL.isEmpty());
Any anyError;
@@ -216,7 +214,7 @@ bool onlyBundledExtensions(
OUString getExtensionDefaultUpdateURL()
{
- ::rtl::OUString sUrl(
+ OUString sUrl(
"${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("version")
":Version:ExtensionUpdateURL}");
::rtl::Bootstrap::expandMacros(sUrl);
@@ -228,10 +226,10 @@ OUString getExtensionDefaultUpdateURL()
*/
UPDATE_SOURCE isUpdateUserExtension(
bool bReadOnlyShared,
- ::rtl::OUString const & userVersion,
- ::rtl::OUString const & sharedVersion,
- ::rtl::OUString const & bundledVersion,
- ::rtl::OUString const & onlineVersion)
+ OUString const & userVersion,
+ OUString const & sharedVersion,
+ OUString const & bundledVersion,
+ OUString const & onlineVersion)
{
UPDATE_SOURCE retVal = UPDATE_SOURCE_NONE;
if (bReadOnlyShared)
@@ -278,9 +276,9 @@ UPDATE_SOURCE isUpdateUserExtension(
UPDATE_SOURCE isUpdateSharedExtension(
bool bReadOnlyShared,
- ::rtl::OUString const & sharedVersion,
- ::rtl::OUString const & bundledVersion,
- ::rtl::OUString const & onlineVersion)
+ OUString const & sharedVersion,
+ OUString const & bundledVersion,
+ OUString const & onlineVersion)
{
if (bReadOnlyShared)
return UPDATE_SOURCE_NONE;
@@ -389,10 +387,10 @@ UpdateInfoMap getOnlineUpdateInfos(
return infoMap;
}
OUString getHighestVersion(
- ::rtl::OUString const & userVersion,
- ::rtl::OUString const & sharedVersion,
- ::rtl::OUString const & bundledVersion,
- ::rtl::OUString const & onlineVersion)
+ OUString const & userVersion,
+ OUString const & sharedVersion,
+ OUString const & bundledVersion,
+ OUString const & onlineVersion)
{
int index = determineHighestVersion(userVersion, sharedVersion, bundledVersion, onlineVersion);
switch (index)
diff --git a/desktop/source/deployment/misc/dp_version.cxx b/desktop/source/deployment/misc/dp_version.cxx
index 04b835515e3d..b6595a4466d2 100644
--- a/desktop/source/deployment/misc/dp_version.cxx
+++ b/desktop/source/deployment/misc/dp_version.cxx
@@ -27,7 +27,7 @@
namespace {
-::rtl::OUString getElement(::rtl::OUString const & version, ::sal_Int32 * index)
+OUString getElement(OUString const & version, ::sal_Int32 * index)
{
while (*index < version.getLength() && version[*index] == '0') {
++*index;
@@ -40,11 +40,11 @@ namespace {
namespace dp_misc {
::dp_misc::Order compareVersions(
- ::rtl::OUString const & version1, ::rtl::OUString const & version2)
+ OUString const & version1, OUString const & version2)
{
for (::sal_Int32 i1 = 0, i2 = 0; i1 >= 0 || i2 >= 0;) {
- ::rtl::OUString e1(getElement(version1, &i1));
- ::rtl::OUString e2(getElement(version2, &i2));
+ OUString e1(getElement(version1, &i1));
+ OUString e2(getElement(version2, &i2));
if (e1.getLength() < e2.getLength()) {
return ::dp_misc::LESS;
} else if (e1.getLength() > e2.getLength()) {
diff --git a/desktop/source/deployment/misc/lockfile.cxx b/desktop/source/deployment/misc/lockfile.cxx
index 6bb7bb73c3cb..97202ecda67c 100644
--- a/desktop/source/deployment/misc/lockfile.cxx
+++ b/desktop/source/deployment/misc/lockfile.cxx
@@ -40,9 +40,9 @@ using namespace ::rtl;
using namespace ::utl;
-static rtl::OString impl_getHostname()
+static OString impl_getHostname()
{
- rtl::OString aHost;
+ OString aHost;
#ifdef WNT
/*
prevent windows from connecting to the net to get it's own
@@ -152,21 +152,21 @@ namespace desktop {
String aLockname = m_aLockname;
Config aConfig(aLockname);
aConfig.SetGroup(LOCKFILE_GROUP);
- rtl::OString aIPCserver = aConfig.ReadKey( LOCKFILE_IPCKEY );
- if (!aIPCserver.equalsIgnoreAsciiCase(rtl::OString("true")))
+ OString aIPCserver = aConfig.ReadKey( LOCKFILE_IPCKEY );
+ if (!aIPCserver.equalsIgnoreAsciiCase(OString("true")))
return false;
- rtl::OString aHost = aConfig.ReadKey( LOCKFILE_HOSTKEY );
- rtl::OString aUser = aConfig.ReadKey( LOCKFILE_USERKEY );
+ OString aHost = aConfig.ReadKey( LOCKFILE_HOSTKEY );
+ OString aUser = aConfig.ReadKey( LOCKFILE_USERKEY );
// lockfile from same host?
- rtl::OString myHost( impl_getHostname() );
+ OString myHost( impl_getHostname() );
if (aHost == myHost) {
// lockfile by same UID
OUString myUserName;
Security aSecurity;
aSecurity.getUserName( myUserName );
- rtl::OString myUser(rtl::OUStringToOString(myUserName, RTL_TEXTENCODING_ASCII_US));
+ OString myUser(OUStringToOString(myUserName, RTL_TEXTENCODING_ASCII_US));
if (aUser == myUser)
return sal_True;
}
@@ -180,13 +180,13 @@ namespace desktop {
aConfig.SetGroup(LOCKFILE_GROUP);
// get information
- rtl::OString aHost( impl_getHostname() );
+ OString aHost( impl_getHostname() );
OUString aUserName;
Security aSecurity;
aSecurity.getUserName( aUserName );
- rtl::OString aUser = OUStringToOString( aUserName, RTL_TEXTENCODING_ASCII_US );
- rtl::OString aTime = OUStringToOString( m_aDate, RTL_TEXTENCODING_ASCII_US );
- rtl::OString aStamp = OUStringToOString( m_aId, RTL_TEXTENCODING_ASCII_US );
+ OString aUser = OUStringToOString( aUserName, RTL_TEXTENCODING_ASCII_US );
+ OString aTime = OUStringToOString( m_aDate, RTL_TEXTENCODING_ASCII_US );
+ OString aStamp = OUStringToOString( m_aId, RTL_TEXTENCODING_ASCII_US );
// write information
aConfig.WriteKey( LOCKFILE_USERKEY, aUser );
@@ -195,7 +195,7 @@ namespace desktop {
aConfig.WriteKey( LOCKFILE_TIMEKEY, aTime );
aConfig.WriteKey(
LOCKFILE_IPCKEY,
- m_bIPCserver ? rtl::OString("true") : rtl::OString("false") );
+ m_bIPCserver ? OString("true") : OString("false") );
aConfig.Flush( );
}
diff --git a/desktop/source/deployment/registry/component/dp_compbackenddb.cxx b/desktop/source/deployment/registry/component/dp_compbackenddb.cxx
index fb871f629139..d6fdfc4a4251 100644
--- a/desktop/source/deployment/registry/component/dp_compbackenddb.cxx
+++ b/desktop/source/deployment/registry/component/dp_compbackenddb.cxx
@@ -30,7 +30,6 @@
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
#define EXTENSION_REG_NS "http://openoffice.org/extensionmanager/component-registry/2010"
#define NS_PREFIX "comp"
@@ -43,7 +42,7 @@ namespace component {
ComponentBackendDb::ComponentBackendDb(
Reference<XComponentContext> const & xContext,
- ::rtl::OUString const & url):BackendDb(xContext, url)
+ OUString const & url):BackendDb(xContext, url)
{
}
@@ -68,7 +67,7 @@ OUString ComponentBackendDb::getKeyElementName()
return OUString(KEY_ELEMENT_NAME);
}
-void ComponentBackendDb::addEntry(::rtl::OUString const & url, Data const & data)
+void ComponentBackendDb::addEntry(OUString const & url, Data const & data)
{
try{
if (!activateEntry(url))
@@ -104,7 +103,7 @@ void ComponentBackendDb::addEntry(::rtl::OUString const & url, Data const & data
}
}
-ComponentBackendDb::Data ComponentBackendDb::getEntry(::rtl::OUString const & url)
+ComponentBackendDb::Data ComponentBackendDb::getEntry(OUString const & url)
{
try
{
diff --git a/desktop/source/deployment/registry/component/dp_compbackenddb.hxx b/desktop/source/deployment/registry/component/dp_compbackenddb.hxx
index c7b9522da73b..39aeeacae3be 100644
--- a/desktop/source/deployment/registry/component/dp_compbackenddb.hxx
+++ b/desktop/source/deployment/registry/component/dp_compbackenddb.hxx
@@ -65,18 +65,18 @@ namespace component {
class ComponentBackendDb: public dp_registry::backend::BackendDb
{
protected:
- virtual ::rtl::OUString getDbNSName();
- virtual ::rtl::OUString getNSPrefix();
- virtual ::rtl::OUString getRootElementName();
- virtual ::rtl::OUString getKeyElementName();
+ virtual OUString getDbNSName();
+ virtual OUString getNSPrefix();
+ virtual OUString getRootElementName();
+ virtual OUString getKeyElementName();
public:
struct Data
{
Data(): javaTypeLibrary(false) {};
- ::std::list< ::rtl::OUString> implementationNames;
- ::std::vector< ::std::pair< ::rtl::OUString, ::rtl::OUString> >singletons;
+ ::std::list< OUString> implementationNames;
+ ::std::vector< ::std::pair< OUString, OUString> >singletons;
// map from singleton names to implementation names
bool javaTypeLibrary;
};
@@ -84,11 +84,11 @@ public:
public:
ComponentBackendDb( css::uno::Reference<css::uno::XComponentContext> const & xContext,
- ::rtl::OUString const & url);
+ OUString const & url);
- void addEntry(::rtl::OUString const & url, Data const & data);
+ void addEntry(OUString const & url, Data const & data);
- Data getEntry(::rtl::OUString const & url);
+ Data getEntry(OUString const & url);
};
diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx
index 15878e187574..e72aa32883a0 100644
--- a/desktop/source/deployment/registry/component/dp_component.cxx
+++ b/desktop/source/deployment/registry/component/dp_component.cxx
@@ -54,7 +54,6 @@ using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-using ::rtl::OUString;
namespace dp_registry {
namespace backend {
@@ -87,7 +86,7 @@ bool jarManifestHeaderPresent(
OUString const & url, OUString const & name,
Reference<XCommandEnvironment> const & xCmdEnv )
{
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
buf.appendAscii( "vnd.sun.star.zip://" );
buf.append(
::rtl::Uri::encode(
@@ -269,7 +268,7 @@ class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend
bool bSwitchedRdbFiles;
typedef ::boost::unordered_map< OUString, Reference<XInterface>,
- ::rtl::OUStringHash > t_string2object;
+ OUStringHash > t_string2object;
t_string2object m_backendObjects;
// PackageRegistryBackend
@@ -673,7 +672,7 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_(
{
// xxx todo: probe and evaluate component xml description
- INetContentTypeParameter const * param = params.find(rtl::OString("platform"));
+ INetContentTypeParameter const * param = params.find(OString("platform"));
bool bPlatformFits(param == 0);
String aPlatform;
if (!bPlatformFits) // platform is specified, we have to check
@@ -684,7 +683,7 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_(
// If the package is being removed, do not care whether
// platform fits. We won't be using it anyway.
if (bPlatformFits || bRemoved) {
- param = params.find(rtl::OString("type"));
+ param = params.find(OString("type"));
if (param != 0)
{
String const & value = param->m_sValue;
@@ -716,7 +715,7 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_(
}
else if (subType.equalsIgnoreAsciiCase("vnd.sun.star.uno-components"))
{
- INetContentTypeParameter const * param = params.find(rtl::OString("platform"));
+ INetContentTypeParameter const * param = params.find(OString("platform"));
if (param == 0 || platform_fits( param->m_sValue )) {
return new BackendImpl::ComponentsPackageImpl(
this, url, name, m_xComponentsTypeInfo, bRemoved,
@@ -725,7 +724,7 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_(
}
else if (subType.equalsIgnoreAsciiCase( "vnd.sun.star.uno-typelibrary"))
{
- INetContentTypeParameter const * param = params.find(rtl::OString("type"));
+ INetContentTypeParameter const * param = params.find(OString("type"));
if (param != 0) {
String const & value = param->m_sValue;
if (value.EqualsIgnoreCaseAscii("RDB"))
@@ -827,7 +826,7 @@ void BackendImpl::unorc_verify_init(
for (sal_Int32 i = RTL_CONSTASCII_LENGTH("UNO_SERVICES=");
i >= 0;)
{
- rtl::OUString token(line.getToken(0, ' ', i));
+ OUString token(line.getToken(0, ' ', i));
if (!token.isEmpty())
{
if (state == 1 && token.match("?$ORIGIN/"))
@@ -878,11 +877,11 @@ void BackendImpl::unorc_flush( Reference<XCommandEnvironment> const & xCmdEnv )
if (!m_unorc_inited || !m_unorc_modified)
return;
- ::rtl::OStringBuffer buf;
+ OStringBuffer buf;
buf.append("ORIGIN=");
OUString sOrigin = dp_misc::makeRcTerm(m_cachePath);
- ::rtl::OString osOrigin = ::rtl::OUStringToOString(sOrigin, RTL_TEXTENCODING_UTF8);
+ OString osOrigin = OUStringToOString(sOrigin, RTL_TEXTENCODING_UTF8);
buf.append(osOrigin);
buf.append(LF);
@@ -893,8 +892,8 @@ void BackendImpl::unorc_flush( Reference<XCommandEnvironment> const & xCmdEnv )
buf.append( "UNO_JAVA_CLASSPATH=" );
while (iPos != iEnd) {
// encoded ASCII file-urls:
- const ::rtl::OString item(
- ::rtl::OUStringToOString( *iPos, RTL_TEXTENCODING_ASCII_US ) );
+ const OString item(
+ OUStringToOString( *iPos, RTL_TEXTENCODING_ASCII_US ) );
buf.append( item );
++iPos;
if (iPos != iEnd)
@@ -910,8 +909,8 @@ void BackendImpl::unorc_flush( Reference<XCommandEnvironment> const & xCmdEnv )
while (iPos != iEnd) {
buf.append( '?' );
// encoded ASCII file-urls:
- const ::rtl::OString item(
- ::rtl::OUStringToOString( *iPos, RTL_TEXTENCODING_ASCII_US ) );
+ const OString item(
+ OUStringToOString( *iPos, RTL_TEXTENCODING_ASCII_US ) );
buf.append( item );
++iPos;
if (iPos != iEnd)
@@ -934,7 +933,7 @@ void BackendImpl::unorc_flush( Reference<XCommandEnvironment> const & xCmdEnv )
if (!sCommonRDB.isEmpty())
{
buf.append( "?$ORIGIN/" );
- buf.append( ::rtl::OUStringToOString(
+ buf.append( OUStringToOString(
sCommonRDB, RTL_TEXTENCODING_ASCII_US ) );
space = true;
}
@@ -948,12 +947,12 @@ void BackendImpl::unorc_flush( Reference<XCommandEnvironment> const & xCmdEnv )
space = true;
// write native rc:
- ::rtl::OStringBuffer buf2;
+ OStringBuffer buf2;
buf2.append("ORIGIN=");
buf2.append(osOrigin);
buf2.append(LF);
buf2.append( "UNO_SERVICES=?$ORIGIN/" );
- buf2.append( ::rtl::OUStringToOString(
+ buf2.append( OUStringToOString(
sNativeRDB, RTL_TEXTENCODING_ASCII_US ) );
buf2.append(LF);
@@ -975,7 +974,7 @@ void BackendImpl::unorc_flush( Reference<XCommandEnvironment> const & xCmdEnv )
buf.append(' ');
}
buf.append('?');
- buf.append(rtl::OUStringToOString(*i, RTL_TEXTENCODING_UTF8));
+ buf.append(OUStringToOString(*i, RTL_TEXTENCODING_UTF8));
space = true;
}
buf.append(LF);
@@ -1083,9 +1082,9 @@ Reference<XComponentContext> raise_uno_process(
{
OSL_ASSERT( xContext.is() );
- ::rtl::OUString url( util::theMacroExpander::get(xContext)->expandMacros( "$URE_BIN_DIR/uno" ) );
+ OUString url( util::theMacroExpander::get(xContext)->expandMacros( "$URE_BIN_DIR/uno" ) );
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
buf.appendAscii( "uno:pipe,name=" );
OUString pipeId( generateRandomPipeId() );
buf.append( pipeId );
@@ -1137,11 +1136,11 @@ void extractComponentData(
std::vector< css::uno::Reference< css::uno::XInterface > > * factories,
css::uno::Reference< css::loader::XImplementationLoader > const &
componentLoader,
- rtl::OUString const & componentUrl)
+ OUString const & componentUrl)
{
OSL_ASSERT(
context.is() && registry.is() && data != 0 && componentLoader.is());
- rtl::OUString registryName(registry->getKeyName());
+ OUString registryName(registry->getKeyName());
sal_Int32 prefix = registryName.getLength();
if (!registryName.endsWith("/")) {
prefix += RTL_CONSTASCII_LENGTH("/");
@@ -1151,7 +1150,7 @@ void extractComponentData(
css::uno::Reference< css::lang::XMultiComponentFactory > smgr(
context->getServiceManager(), css::uno::UNO_QUERY_THROW);
for (sal_Int32 i = 0; i < keys.getLength(); ++i) {
- rtl::OUString name(keys[i]->getKeyName().copy(prefix));
+ OUString name(keys[i]->getKeyName().copy(prefix));
data->implementationNames.push_back(name);
css::uno::Reference< css::registry::XRegistryKey > singletons(
keys[i]->openKey("UNO/SINGLETONS"));
@@ -1163,14 +1162,14 @@ void extractComponentData(
singletonKeys(singletons->openKeys());
for (sal_Int32 j = 0; j < singletonKeys.getLength(); ++j) {
data->singletons.push_back(
- std::pair< rtl::OUString, rtl::OUString >(
+ std::pair< OUString, OUString >(
singletonKeys[j]->getKeyName().copy(prefix2), name));
}
}
if (factories != 0) {
factories->push_back(
componentLoader->activate(
- name, rtl::OUString(), componentUrl, keys[i]));
+ name, OUString(), componentUrl, keys[i]));
}
}
}
@@ -1198,7 +1197,7 @@ void BackendImpl::ComponentPackageImpl::getComponentInfo(
// .../UNO/LOCATION and .../UNO/ACTIVATOR appear not to be written by
// writeRegistryInfo, however, but are known, fixed values here, so
// can be passed into extractComponentData
- rtl::OUString url(getURL());
+ OUString url(getURL());
const Reference<registry::XSimpleRegistry> xMemReg(
xContext->getServiceManager()->createInstanceWithContext(
"com.sun.star.registry.SimpleRegistry", xContext ),
@@ -1228,7 +1227,7 @@ void BackendImpl::ComponentPackageImpl::componentLiveInsertion(
} catch (const container::ElementExistException &) {
OSL_TRACE(
"implementation %s already registered",
- rtl::OUStringToOString(*i, RTL_TEXTENCODING_UTF8).getStr());
+ OUStringToOString(*i, RTL_TEXTENCODING_UTF8).getStr());
}
}
if (!data.singletons.empty()) {
@@ -1237,7 +1236,7 @@ void BackendImpl::ComponentPackageImpl::componentLiveInsertion(
for (t_stringpairvec::const_iterator i(data.singletons.begin());
i != data.singletons.end(); ++i)
{
- rtl::OUString name("/singletons/" + i->first);
+ OUString name("/singletons/" + i->first);
//TODO: Update should be atomic:
try {
cont->removeByName( name + "/arguments");
@@ -1252,7 +1251,7 @@ void BackendImpl::ComponentPackageImpl::componentLiveInsertion(
} catch (const container::ElementExistException &) {
OSL_TRACE(
"singleton %s already registered",
- rtl::OUStringToOString(
+ OUStringToOString(
i->first, RTL_TEXTENCODING_UTF8).getStr());
cont->replaceByName(name, css::uno::Any());
}
@@ -1282,7 +1281,7 @@ void BackendImpl::ComponentPackageImpl::componentLiveRemoval(
for (t_stringpairvec::const_iterator i(data.singletons.begin());
i != data.singletons.end(); ++i)
{
- rtl::OUString name("/singletons/" + i->first);
+ OUString name("/singletons/" + i->first);
//TODO: Removal should be atomic:
try {
cont->removeByName(name);
@@ -1388,7 +1387,7 @@ void BackendImpl::ComponentPackageImpl::processPackage_(
Reference<XCommandEnvironment> const & xCmdEnv )
{
BackendImpl * that = getMyBackend();
- rtl::OUString url(getURL());
+ OUString url(getURL());
if (doRegisterPackage) {
ComponentBackendDb::Data data;
css::uno::Reference< css::uno::XComponentContext > context;
@@ -1726,7 +1725,7 @@ void BackendImpl::ComponentsPackageImpl::processPackage_(
Reference<XCommandEnvironment> const & xCmdEnv )
{
BackendImpl * that = getMyBackend();
- rtl::OUString url(getURL());
+ OUString url(getURL());
if (doRegisterPackage) {
if (!startup) {
css::uno::Reference< css::uno::XComponentContext > context(
@@ -1742,9 +1741,9 @@ void BackendImpl::ComponentsPackageImpl::processPackage_(
// This relies on the root component context's service manager
// supporting the extended XSet semantics:
css::uno::Sequence< css::beans::NamedValue > args(2);
- args[0].Name = rtl::OUString("uri");
+ args[0].Name = OUString("uri");
args[0].Value <<= expandUnoRcUrl(url);
- args[1].Name = rtl::OUString("component-context");
+ args[1].Name = OUString("component-context");
args[1].Value <<= context;
css::uno::Reference< css::container::XSet > smgr(
that->getRootContext()->getServiceManager(),
@@ -1758,7 +1757,7 @@ void BackendImpl::ComponentsPackageImpl::processPackage_(
// This relies on the root component context's service manager
// supporting the extended XSet semantics:
css::uno::Sequence< css::beans::NamedValue > args(1);
- args[0].Name = rtl::OUString("uri");
+ args[0].Name = OUString("uri");
args[0].Value <<= expandUnoRcUrl(url);
css::uno::Reference< css::container::XSet > smgr(
that->getRootContext()->getServiceManager(),
diff --git a/desktop/source/deployment/registry/configuration/dp_configuration.cxx b/desktop/source/deployment/registry/configuration/dp_configuration.cxx
index b17f057d1f89..9254a7c9ef6f 100644
--- a/desktop/source/deployment/registry/configuration/dp_configuration.cxx
+++ b/desktop/source/deployment/registry/configuration/dp_configuration.cxx
@@ -53,7 +53,6 @@ using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-using ::rtl::OUString;
namespace dp_registry {
namespace backend {
@@ -222,7 +221,7 @@ BackendImpl::BackendImpl(
SAL_WNODEPRECATED_DECLARATIONS_PUSH
::std::auto_ptr<PersistentMap> pMap;
SAL_WNODEPRECATED_DECLARATIONS_POP
- rtl::OUString aCompatURL( makeURL( getCachePath(), "registered_packages.pmap" ) );
+ OUString aCompatURL( makeURL( getCachePath(), "registered_packages.pmap" ) );
// Don't create it if it doesn't exist already
if ( ::utl::UCBContentHelper::Exists( expandUnoRcUrl( aCompatURL ) ) )
@@ -235,7 +234,7 @@ BackendImpl::BackendImpl(
}
catch (const Exception &e)
{
- rtl::OUStringBuffer aStr( "Exception loading legacy package database: '" );
+ OUStringBuffer aStr( "Exception loading legacy package database: '" );
aStr.append( e.Message );
aStr.append( "' - ignoring file, please remove it.\n" );
dp_misc::writeConsole( aStr.getStr() );
@@ -427,7 +426,7 @@ void BackendImpl::configmgrini_flush(
if (!m_configmgrini_inited || !m_configmgrini_modified)
return;
- ::rtl::OStringBuffer buf;
+ OStringBuffer buf;
if (! m_xcs_files.empty())
{
t_stringlist::const_iterator iPos( m_xcs_files.begin() );
@@ -435,8 +434,8 @@ void BackendImpl::configmgrini_flush(
buf.append( "SCHEMA=" );
while (iPos != iEnd) {
// encoded ASCII file-urls:
- const ::rtl::OString item(
- ::rtl::OUStringToOString( *iPos, RTL_TEXTENCODING_ASCII_US ) );
+ const OString item(
+ OUStringToOString( *iPos, RTL_TEXTENCODING_ASCII_US ) );
buf.append( item );
++iPos;
if (iPos != iEnd)
@@ -451,8 +450,8 @@ void BackendImpl::configmgrini_flush(
buf.append( "DATA=" );
while (iPos != iEnd) {
// encoded ASCII file-urls:
- const ::rtl::OString item(
- ::rtl::OUStringToOString( *iPos, RTL_TEXTENCODING_ASCII_US ) );
+ const OString item(
+ OUStringToOString( *iPos, RTL_TEXTENCODING_ASCII_US ) );
buf.append( item );
++iPos;
if (iPos != iEnd)
@@ -549,7 +548,7 @@ BackendImpl::PackageImpl::isRegistered_(
Reference<XCommandEnvironment> const & )
{
BackendImpl * that = getMyBackend();
- const rtl::OUString url(getURL());
+ const OUString url(getURL());
bool bReg = false;
if (that->hasActiveEntry(getURL()))
@@ -560,7 +559,7 @@ BackendImpl::PackageImpl::isRegistered_(
{
// fallback for user extension registered in berkeley DB
bReg = that->m_registeredPackages->has(
- rtl::OUStringToOString( url, RTL_TEXTENCODING_UTF8 ));
+ OUStringToOString( url, RTL_TEXTENCODING_UTF8 ));
}
#endif
return beans::Optional< beans::Ambiguous<sal_Bool> >(
@@ -572,7 +571,7 @@ OUString encodeForXml( OUString const & text )
{
// encode conforming xml:
sal_Int32 len = text.getLength();
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
for ( sal_Int32 pos = 0; pos < len; ++pos )
{
sal_Unicode c = text[ pos ];
@@ -610,7 +609,7 @@ OUString replaceOrigin(
::rtl::ByteSequence filtered( bytes.getLength() * 2,
::rtl::BYTESEQ_NODEFAULT );
bool use_filtered = false;
- ::rtl::OString origin;
+ OString origin;
sal_Char const * pBytes = reinterpret_cast<sal_Char const *>(
bytes.getConstArray());
sal_Size nBytes = bytes.getLength();
@@ -653,7 +652,7 @@ OUString replaceOrigin(
{
if (origin.isEmpty()) {
// encode only once
- origin = ::rtl::OUStringToOString(
+ origin = OUStringToOString(
encodeForXml( url.copy( 0, url.lastIndexOf( '/' ) ) ),
// xxx todo: encode always for UTF-8? => lookup doc-header?
RTL_TEXTENCODING_UTF8 );
@@ -673,7 +672,7 @@ OUString replaceOrigin(
return url;
if (write_pos < filtered.getLength())
filtered.realloc( write_pos );
- rtl::OUString newUrl(url);
+ OUString newUrl(url);
if (!destFolder.isEmpty())
{
//get the file name of the xcu and add it to the url of the temporary folder
@@ -758,8 +757,8 @@ void BackendImpl::PackageImpl::processPackage_(
//structur containing the xcu, xcs files from all extensions. Now,
//we just add all other xcu/xcs files to the configmgr.ini instead of
//rebuilding the directory structure.
- rtl::OUString url2(
- rtl::OStringToOUString(i->first, RTL_TEXTENCODING_UTF8));
+ OUString url2(
+ OStringToOUString(i->first, RTL_TEXTENCODING_UTF8));
if (url2 != url) {
bool schema = i->second.equalsIgnoreAsciiCase(
"vnd.sun.star.configuration-schema");
diff --git a/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx b/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx
index 01a7bb8f36d2..47e364e2b754 100644
--- a/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx
+++ b/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx
@@ -30,7 +30,6 @@
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
#define EXTENSION_REG_NS "http://openoffice.org/extensionmanager/configuration-registry/2010"
#define NS_PREFIX "conf"
@@ -43,7 +42,7 @@ namespace configuration {
ConfigurationBackendDb::ConfigurationBackendDb(
Reference<XComponentContext> const & xContext,
- ::rtl::OUString const & url):BackendDb(xContext, url)
+ OUString const & url):BackendDb(xContext, url)
{
}
@@ -69,7 +68,7 @@ OUString ConfigurationBackendDb::getKeyElementName()
}
-void ConfigurationBackendDb::addEntry(::rtl::OUString const & url, Data const & data)
+void ConfigurationBackendDb::addEntry(OUString const & url, Data const & data)
{
try{
if (!activateEntry(url))
@@ -97,7 +96,7 @@ void ConfigurationBackendDb::addEntry(::rtl::OUString const & url, Data const &
::boost::optional<ConfigurationBackendDb::Data>
-ConfigurationBackendDb::getEntry(::rtl::OUString const & url)
+ConfigurationBackendDb::getEntry(OUString const & url)
{
try
{
diff --git a/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.hxx b/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.hxx
index 31435015811c..31a444bea994 100644
--- a/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.hxx
+++ b/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.hxx
@@ -42,13 +42,13 @@ namespace configuration {
class ConfigurationBackendDb: public dp_registry::backend::BackendDb
{
protected:
- virtual ::rtl::OUString getDbNSName();
+ virtual OUString getDbNSName();
- virtual ::rtl::OUString getNSPrefix();
+ virtual OUString getNSPrefix();
- virtual ::rtl::OUString getRootElementName();
+ virtual OUString getRootElementName();
- virtual ::rtl::OUString getKeyElementName();
+ virtual OUString getKeyElementName();
public:
struct Data
@@ -56,21 +56,21 @@ public:
/* the URL to the folder containing the xcu or xcs files which contained
%origin%
*/
- ::rtl::OUString dataUrl;
+ OUString dataUrl;
/* the URL of the xcu or xcs file which is written in to the configmgr.ini
*/
- ::rtl::OUString iniEntry;
+ OUString iniEntry;
};
public:
ConfigurationBackendDb( css::uno::Reference<css::uno::XComponentContext> const & xContext,
- ::rtl::OUString const & url);
+ OUString const & url);
- void addEntry(::rtl::OUString const & url, Data const & data);
+ void addEntry(OUString const & url, Data const & data);
- ::boost::optional<Data> getEntry(::rtl::OUString const & url);
- ::std::list< ::rtl::OUString> getAllDataUrls();
+ ::boost::optional<Data> getEntry(OUString const & url);
+ ::std::list< OUString> getAllDataUrls();
};
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx
index 07cadb6a4f42..8c6cdfaf867e 100644
--- a/desktop/source/deployment/registry/dp_backend.cxx
+++ b/desktop/source/deployment/registry/dp_backend.cxx
@@ -46,7 +46,6 @@ using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-using ::rtl::OUString;
namespace dp_registry {
namespace backend {
diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx
index 152a8f025279..927c47dc8070 100644
--- a/desktop/source/deployment/registry/dp_backenddb.cxx
+++ b/desktop/source/deployment/registry/dp_backenddb.cxx
@@ -36,7 +36,6 @@
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
namespace dp_registry {
@@ -44,7 +43,7 @@ namespace backend {
BackendDb::BackendDb(
Reference<css::uno::XComponentContext> const & xContext,
- ::rtl::OUString const & url):
+ OUString const & url):
m_xContext(xContext)
{
m_urlDb = dp_misc::expandUnoRcUrl(url);
@@ -119,7 +118,7 @@ Reference<css::xml::xpath::XXPathAPI> BackendDb::getXPathAPI()
return m_xpathApi;
}
-void BackendDb::removeElement(::rtl::OUString const & sXPathExpression)
+void BackendDb::removeElement(OUString const & sXPathExpression)
{
try
{
@@ -152,11 +151,11 @@ void BackendDb::removeElement(::rtl::OUString const & sXPathExpression)
}
}
-void BackendDb::removeEntry(::rtl::OUString const & url)
+void BackendDb::removeEntry(OUString const & url)
{
const OUString sKeyElement = getKeyElementName();
const OUString sPrefix = getNSPrefix();
- ::rtl::OUStringBuffer sExpression(500);
+ OUStringBuffer sExpression(500);
sExpression.append(sPrefix);
sExpression.appendAscii(":");
sExpression.append(sKeyElement);
@@ -167,7 +166,7 @@ void BackendDb::removeEntry(::rtl::OUString const & url)
removeElement(sExpression.makeStringAndClear());
}
-void BackendDb::revokeEntry(::rtl::OUString const & url)
+void BackendDb::revokeEntry(OUString const & url)
{
try
{
@@ -187,7 +186,7 @@ void BackendDb::revokeEntry(::rtl::OUString const & url)
}
}
-bool BackendDb::activateEntry(::rtl::OUString const & url)
+bool BackendDb::activateEntry(OUString const & url)
{
try
{
@@ -211,7 +210,7 @@ bool BackendDb::activateEntry(::rtl::OUString const & url)
}
}
-bool BackendDb::hasActiveEntry(::rtl::OUString const & url)
+bool BackendDb::hasActiveEntry(OUString const & url)
{
try
{
@@ -236,13 +235,13 @@ bool BackendDb::hasActiveEntry(::rtl::OUString const & url)
}
Reference<css::xml::dom::XNode> BackendDb::getKeyElement(
- ::rtl::OUString const & url)
+ OUString const & url)
{
try
{
const OUString sPrefix = getNSPrefix();
const OUString sKeyElement = getKeyElementName();
- ::rtl::OUStringBuffer sExpression(500);
+ OUStringBuffer sExpression(500);
sExpression.append(sPrefix);
sExpression.appendAscii(":");
sExpression.append(sKeyElement);
@@ -266,7 +265,7 @@ Reference<css::xml::dom::XNode> BackendDb::getKeyElement(
//Only writes the data if there is at least one entry
void BackendDb::writeVectorOfPair(
- ::std::vector< ::std::pair< ::rtl::OUString, ::rtl::OUString > > const & vecPairs,
+ ::std::vector< ::std::pair< OUString, OUString > > const & vecPairs,
OUString const & sVectorTagName,
OUString const & sPairTagName,
OUString const & sFirstTagName,
@@ -384,7 +383,7 @@ BackendDb::readVectorOfPair(
//Only writes the data if there is at least one entry
void BackendDb::writeSimpleList(
- ::std::list< ::rtl::OUString> const & list,
+ ::std::list< OUString> const & list,
OUString const & sListTagName,
OUString const & sMemberTagName,
Reference<css::xml::dom::XNode> const & xParent)
@@ -463,7 +462,7 @@ void BackendDb::writeSimpleElement(
element.
*/
Reference<css::xml::dom::XNode> BackendDb::writeKeyElement(
- ::rtl::OUString const & url)
+ OUString const & url)
{
try
{
@@ -579,7 +578,7 @@ OUString BackendDb::readSimpleElement(
Reference<css::xml::xpath::XXPathAPI> xpathApi = getXPathAPI();
const OUString sPrefix = getNSPrefix();
const OUString sKeyElement = getKeyElementName();
- ::rtl::OUStringBuffer buf(512);
+ OUStringBuffer buf(512);
buf.append(sPrefix);
buf.appendAscii(":");
buf.append(sKeyElement);
@@ -615,11 +614,11 @@ OUString BackendDb::readSimpleElement(
RegisteredDb::RegisteredDb(
Reference<XComponentContext> const & xContext,
- ::rtl::OUString const & url):BackendDb(xContext, url)
+ OUString const & url):BackendDb(xContext, url)
{
}
-void RegisteredDb::addEntry(::rtl::OUString const & url)
+void RegisteredDb::addEntry(OUString const & url)
{
try{
if (!activateEntry(url))
@@ -660,7 +659,7 @@ void RegisteredDb::addEntry(::rtl::OUString const & url)
}
}
-bool RegisteredDb::getEntry(::rtl::OUString const & url)
+bool RegisteredDb::getEntry(OUString const & url)
{
try
{
diff --git a/desktop/source/deployment/registry/dp_registry.cxx b/desktop/source/deployment/registry/dp_registry.cxx
index 742b59439a32..fdb3fba23a2a 100644
--- a/desktop/source/deployment/registry/dp_registry.cxx
+++ b/desktop/source/deployment/registry/dp_registry.cxx
@@ -48,7 +48,6 @@ using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-using ::rtl::OUString;
namespace dp_registry {
@@ -166,7 +165,7 @@ PackageRegistryImpl::~PackageRegistryImpl()
//______________________________________________________________________________
OUString normalizeMediaType( OUString const & mediaType )
{
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
sal_Int32 index = 0;
for (;;) {
buf.append( mediaType.getToken( 0, '/', index ).trim() );
@@ -180,7 +179,7 @@ OUString normalizeMediaType( OUString const & mediaType )
//______________________________________________________________________________
void PackageRegistryImpl::packageRemoved(
- ::rtl::OUString const & url, ::rtl::OUString const & mediaType)
+ OUString const & url, OUString const & mediaType)
throw (css::deployment::DeploymentException,
css::uno::RuntimeException)
{
@@ -197,7 +196,7 @@ void PackageRegistryImpl::insertBackend(
Reference<deployment::XPackageRegistry> const & xBackend )
{
m_allBackends.insert( xBackend );
- typedef ::boost::unordered_set<OUString, ::rtl::OUStringHash> t_stringset;
+ typedef ::boost::unordered_set<OUString, OUStringHash> t_stringset;
t_stringset ambiguousFilters;
const Sequence< Reference<deployment::XPackageTypeInfo> > packageTypes(
@@ -273,7 +272,7 @@ void PackageRegistryImpl::insertBackend(
#if OSL_DEBUG_LEVEL > 0
else
{
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
buf.appendAscii( "more than one PackageRegistryBackend for media-type=\"" );
buf.append( mediaType );
buf.appendAscii( "\" => " );
@@ -281,7 +280,7 @@ void PackageRegistryImpl::insertBackend(
xBackend, UNO_QUERY_THROW )->
getImplementationName() );
buf.appendAscii( "\"!" );
- OSL_FAIL( ::rtl::OUStringToOString(
+ OSL_FAIL( OUStringToOString(
buf.makeStringAndClear(),
RTL_TEXTENCODING_UTF8).getStr() );
}
@@ -394,7 +393,7 @@ Reference<deployment::XPackageRegistry> PackageRegistryImpl::create(
that->m_filter2mediaType.begin() );
iPos != that->m_filter2mediaType.end(); ++iPos )
{
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
buf.appendAscii( "extension \"" );
buf.append( iPos->first );
buf.appendAscii( "\" maps to media-type \"" );
@@ -413,7 +412,7 @@ Reference<deployment::XPackageRegistry> PackageRegistryImpl::create(
that->m_ambiguousBackends.begin() );
iPos != that->m_ambiguousBackends.end(); ++iPos )
{
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
buf.append(
Reference<lang::XServiceInfo>(
*iPos, UNO_QUERY_THROW )->getImplementationName() );
diff --git a/desktop/source/deployment/registry/executable/dp_executable.cxx b/desktop/source/deployment/registry/executable/dp_executable.cxx
index 131d6ae18c90..b84c95ae5f2a 100644
--- a/desktop/source/deployment/registry/executable/dp_executable.cxx
+++ b/desktop/source/deployment/registry/executable/dp_executable.cxx
@@ -34,7 +34,6 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
using namespace dp_misc;
-using ::rtl::OUString;
namespace dp_registry {
namespace backend {
@@ -75,7 +74,7 @@ class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend
friend class ExecutablePackageImpl;
typedef ::boost::unordered_map< OUString, Reference<XInterface>,
- ::rtl::OUStringHash > t_string2object;
+ OUStringHash > t_string2object;
// PackageRegistryBackend
virtual Reference<deployment::XPackage> bindPackage_(
diff --git a/desktop/source/deployment/registry/executable/dp_executablebackenddb.cxx b/desktop/source/deployment/registry/executable/dp_executablebackenddb.cxx
index 25988f011f90..fcafcfc390ab 100644
--- a/desktop/source/deployment/registry/executable/dp_executablebackenddb.cxx
+++ b/desktop/source/deployment/registry/executable/dp_executablebackenddb.cxx
@@ -25,7 +25,6 @@
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
#define EXTENSION_REG_NS "http://openoffice.org/extensionmanager/executable-registry/2010"
#define NS_PREFIX "exe"
@@ -38,7 +37,7 @@ namespace executable {
ExecutableBackendDb::ExecutableBackendDb(
Reference<XComponentContext> const & xContext,
- ::rtl::OUString const & url):RegisteredDb(xContext, url)
+ OUString const & url):RegisteredDb(xContext, url)
{
}
diff --git a/desktop/source/deployment/registry/executable/dp_executablebackenddb.hxx b/desktop/source/deployment/registry/executable/dp_executablebackenddb.hxx
index 496d2765fd74..10d094fbeec3 100644
--- a/desktop/source/deployment/registry/executable/dp_executablebackenddb.hxx
+++ b/desktop/source/deployment/registry/executable/dp_executablebackenddb.hxx
@@ -42,18 +42,18 @@ namespace executable {
class ExecutableBackendDb: public dp_registry::backend::RegisteredDb
{
protected:
- virtual ::rtl::OUString getDbNSName();
+ virtual OUString getDbNSName();
- virtual ::rtl::OUString getNSPrefix();
+ virtual OUString getNSPrefix();
- virtual ::rtl::OUString getRootElementName();
+ virtual OUString getRootElementName();
- virtual ::rtl::OUString getKeyElementName();
+ virtual OUString getKeyElementName();
public:
ExecutableBackendDb( css::uno::Reference<css::uno::XComponentContext> const & xContext,
- ::rtl::OUString const & url);
+ OUString const & url);
};
diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx
index 7510714316f8..00e3ebaced42 100644
--- a/desktop/source/deployment/registry/help/dp_help.cxx
+++ b/desktop/source/deployment/registry/help/dp_help.cxx
@@ -47,7 +47,6 @@ using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-using ::rtl::OUString;
namespace dp_registry {
namespace backend {
@@ -84,7 +83,7 @@ class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend
bool extensionContainsCompiledHelp();
//XPackage
- virtual css::beans::Optional< ::rtl::OUString > SAL_CALL getRegistrationDataURL()
+ virtual css::beans::Optional< OUString > SAL_CALL getRegistrationDataURL()
throw (deployment::ExtensionRemovedException, css::uno::RuntimeException);
};
friend class PackageImpl;
@@ -97,8 +96,8 @@ class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend
void implProcessHelp( PackageImpl * package, bool doRegisterPackage,
Reference<ucb::XCommandEnvironment> const & xCmdEnv);
- void implCollectXhpFiles( const rtl::OUString& aDir,
- std::vector< rtl::OUString >& o_rXhpFileVector );
+ void implCollectXhpFiles( const OUString& aDir,
+ std::vector< OUString >& o_rXhpFileVector );
void addDataToDb(OUString const & url, HelpBackendDb::Data const & data);
::boost::optional<HelpBackendDb::Data> readDataFromDb(OUString const & url);
@@ -132,7 +131,7 @@ BackendImpl::BackendImpl(
Reference<XComponentContext> const & xComponentContext )
: PackageRegistryBackend( args, xComponentContext ),
m_xHelpTypeInfo( new Package::TypeInfo("application/vnd.sun.star.help",
- rtl::OUString(),
+ OUString(),
getResourceString(RID_STR_HELP),
RID_IMG_HELP ) ),
m_typeInfos( 1 )
@@ -276,7 +275,7 @@ BackendImpl * BackendImpl::PackageImpl::getMyBackend() const
bool BackendImpl::PackageImpl::extensionContainsCompiledHelp()
{
bool bCompiled = true;
- rtl::OUString aExpandedHelpURL = dp_misc::expandUnoRcUrl(getURL());
+ OUString aExpandedHelpURL = dp_misc::expandUnoRcUrl(getURL());
::osl::Directory helpFolder(aExpandedHelpURL);
if ( helpFolder.open() == ::osl::File::E_None)
@@ -392,27 +391,27 @@ void BackendImpl::implProcessHelp(
data.dataUrl = sHelpFolder;
Reference< ucb::XSimpleFileAccess3 > xSFA = getFileAccess();
- rtl::OUString aHelpURL = xPackage->getURL();
- rtl::OUString aExpandedHelpURL = dp_misc::expandUnoRcUrl( aHelpURL );
+ OUString aHelpURL = xPackage->getURL();
+ OUString aExpandedHelpURL = dp_misc::expandUnoRcUrl( aHelpURL );
if( !xSFA->isFolder( aExpandedHelpURL ) )
{
- rtl::OUString aErrStr = getResourceString( RID_STR_HELPPROCESSING_GENERAL_ERROR );
- aErrStr += rtl::OUString("No help folder" );
+ OUString aErrStr = getResourceString( RID_STR_HELPPROCESSING_GENERAL_ERROR );
+ aErrStr += OUString("No help folder" );
OWeakObject* oWeakThis = static_cast<OWeakObject *>(this);
- throw deployment::DeploymentException( rtl::OUString(), oWeakThis,
+ throw deployment::DeploymentException( OUString(), oWeakThis,
makeAny( uno::Exception( aErrStr, oWeakThis ) ) );
}
// Scan languages
- Sequence< rtl::OUString > aLanguageFolderSeq = xSFA->getFolderContents( aExpandedHelpURL, true );
+ Sequence< OUString > aLanguageFolderSeq = xSFA->getFolderContents( aExpandedHelpURL, true );
sal_Int32 nLangCount = aLanguageFolderSeq.getLength();
- const rtl::OUString* pSeq = aLanguageFolderSeq.getConstArray();
+ const OUString* pSeq = aLanguageFolderSeq.getConstArray();
for( sal_Int32 iLang = 0 ; iLang < nLangCount ; ++iLang )
{
- rtl::OUString aLangURL = pSeq[iLang];
+ OUString aLangURL = pSeq[iLang];
if( xSFA->isFolder( aLangURL ) )
{
- std::vector< rtl::OUString > aXhpFileVector;
+ std::vector< OUString > aXhpFileVector;
// calculate jar file URL
sal_Int32 indexStartSegment = aLangURL.lastIndexOf('/');
@@ -432,50 +431,50 @@ void BackendImpl::implProcessHelp(
const OUString aHelpStr("help");
const OUString aSlash("/");
- rtl::OUString aJarFile(
+ OUString aJarFile(
makeURL(sHelpFolder, langFolderURLSegment + aSlash + aHelpStr + ".jar"));
aJarFile = ::dp_misc::expandUnoRcUrl(aJarFile);
- rtl::OUString aEncodedJarFilePath = rtl::Uri::encode(
+ OUString aEncodedJarFilePath = rtl::Uri::encode(
aJarFile, rtl_UriCharClassPchar,
rtl_UriEncodeIgnoreEscapes,
RTL_TEXTENCODING_UTF8 );
- rtl::OUString aDestBasePath = rtl::OUString("vnd.sun.star.zip://" );
+ OUString aDestBasePath = OUString("vnd.sun.star.zip://" );
aDestBasePath += aEncodedJarFilePath;
- aDestBasePath += rtl::OUString("/" );
+ aDestBasePath += OUString("/" );
sal_Int32 nLenLangFolderURL = aLangURL.getLength() + 1;
- Sequence< rtl::OUString > aSubLangSeq = xSFA->getFolderContents( aLangURL, true );
+ Sequence< OUString > aSubLangSeq = xSFA->getFolderContents( aLangURL, true );
sal_Int32 nSubLangCount = aSubLangSeq.getLength();
- const rtl::OUString* pSubLangSeq = aSubLangSeq.getConstArray();
+ const OUString* pSubLangSeq = aSubLangSeq.getConstArray();
for( sal_Int32 iSubLang = 0 ; iSubLang < nSubLangCount ; ++iSubLang )
{
- rtl::OUString aSubFolderURL = pSubLangSeq[iSubLang];
+ OUString aSubFolderURL = pSubLangSeq[iSubLang];
if( !xSFA->isFolder( aSubFolderURL ) )
continue;
implCollectXhpFiles( aSubFolderURL, aXhpFileVector );
// Copy to package (later: move?)
- rtl::OUString aDestPath = aDestBasePath;
- rtl::OUString aPureFolderName = aSubFolderURL.copy( nLenLangFolderURL );
+ OUString aDestPath = aDestBasePath;
+ OUString aPureFolderName = aSubFolderURL.copy( nLenLangFolderURL );
aDestPath += aPureFolderName;
xSFA->copy( aSubFolderURL, aDestPath );
}
// Call compiler
sal_Int32 nXhpFileCount = aXhpFileVector.size();
- rtl::OUString* pXhpFiles = new rtl::OUString[nXhpFileCount];
+ OUString* pXhpFiles = new OUString[nXhpFileCount];
for( sal_Int32 iXhp = 0 ; iXhp < nXhpFileCount ; ++iXhp )
{
- rtl::OUString aXhpFile = aXhpFileVector[iXhp];
- rtl::OUString aXhpRelFile = aXhpFile.copy( nLenLangFolderURL );
+ OUString aXhpFile = aXhpFileVector[iXhp];
+ OUString aXhpRelFile = aXhpFile.copy( nLenLangFolderURL );
pXhpFiles[iXhp] = aXhpRelFile;
}
- rtl::OUString aOfficeHelpPath( SvtPathOptions().GetHelpPath() );
- rtl::OUString aOfficeHelpPathFileURL;
+ OUString aOfficeHelpPath( SvtPathOptions().GetHelpPath() );
+ OUString aOfficeHelpPathFileURL;
::osl::File::getFileURLFromSystemPath( aOfficeHelpPath, aOfficeHelpPathFileURL );
HelpProcessingErrorInfo aErrorInfo;
@@ -486,14 +485,14 @@ void BackendImpl::implProcessHelp(
if( bSuccess )
{
- rtl::OUString aLang;
+ OUString aLang;
sal_Int32 nLastSlash = aLangURL.lastIndexOf( '/' );
if( nLastSlash != -1 )
aLang = aLangURL.copy( nLastSlash + 1 );
else
- aLang = rtl::OUString("en" );
+ aLang = OUString("en" );
- rtl::OUString aMod("help");
+ OUString aMod("help");
HelpIndexer aIndexer(aLang, aMod, langFolderDestExpanded, langFolderDestExpanded);
aIndexer.indexDocuments();
@@ -510,13 +509,13 @@ void BackendImpl::implProcessHelp(
default: ;
};
- rtl::OUString aErrStr;
+ OUString aErrStr;
if( nErrStrId != 0 )
{
aErrStr = getResourceString( nErrStrId );
// Remoce CR/LF
- rtl::OUString aErrMsg( aErrorInfo.m_aErrorMsg );
+ OUString aErrMsg( aErrorInfo.m_aErrorMsg );
sal_Unicode nCR = 13, nLF = 10;
sal_Int32 nSearchCR = aErrMsg.indexOf( nCR );
sal_Int32 nSearchLF = aErrMsg.indexOf( nLF );
@@ -535,21 +534,21 @@ void BackendImpl::implProcessHelp(
aErrStr += aErrMsg;
if( nErrStrId == RID_STR_HELPPROCESSING_XMLPARSING_ERROR && !aErrorInfo.m_aXMLParsingFile.isEmpty() )
{
- aErrStr += rtl::OUString(" in " );
+ aErrStr += OUString(" in " );
- rtl::OUString aDecodedFile = rtl::Uri::decode( aErrorInfo.m_aXMLParsingFile,
+ OUString aDecodedFile = rtl::Uri::decode( aErrorInfo.m_aXMLParsingFile,
rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8 );
aErrStr += aDecodedFile;
if( aErrorInfo.m_nXMLParsingLine != -1 )
{
- aErrStr += rtl::OUString(", line " );
- aErrStr += ::rtl::OUString::valueOf( aErrorInfo.m_nXMLParsingLine );
+ aErrStr += OUString(", line " );
+ aErrStr += OUString::valueOf( aErrorInfo.m_nXMLParsingLine );
}
}
}
OWeakObject* oWeakThis = static_cast<OWeakObject *>(this);
- throw deployment::DeploymentException( rtl::OUString(), oWeakThis,
+ throw deployment::DeploymentException( OUString(), oWeakThis,
makeAny( uno::Exception( aErrStr, oWeakThis ) ) );
}
}
@@ -569,18 +568,18 @@ void BackendImpl::implProcessHelp(
}
}
-void BackendImpl::implCollectXhpFiles( const rtl::OUString& aDir,
- std::vector< rtl::OUString >& o_rXhpFileVector )
+void BackendImpl::implCollectXhpFiles( const OUString& aDir,
+ std::vector< OUString >& o_rXhpFileVector )
{
Reference< ucb::XSimpleFileAccess3 > xSFA = getFileAccess();
// Scan xhp files recursively
- Sequence< rtl::OUString > aSeq = xSFA->getFolderContents( aDir, true );
+ Sequence< OUString > aSeq = xSFA->getFolderContents( aDir, true );
sal_Int32 nCount = aSeq.getLength();
- const rtl::OUString* pSeq = aSeq.getConstArray();
+ const OUString* pSeq = aSeq.getConstArray();
for( sal_Int32 i = 0 ; i < nCount ; ++i )
{
- rtl::OUString aURL = pSeq[i];
+ OUString aURL = pSeq[i];
if( xSFA->isFolder( aURL ) )
{
implCollectXhpFiles( aURL, o_rXhpFileVector );
@@ -590,8 +589,8 @@ void BackendImpl::implCollectXhpFiles( const rtl::OUString& aDir,
sal_Int32 nLastDot = aURL.lastIndexOf( '.' );
if( nLastDot != -1 )
{
- rtl::OUString aExt = aURL.copy( nLastDot + 1 );
- if( aExt.equalsIgnoreAsciiCase( rtl::OUString("xhp" ) ) )
+ OUString aExt = aURL.copy( nLastDot + 1 );
+ if( aExt.equalsIgnoreAsciiCase( OUString("xhp" ) ) )
o_rXhpFileVector.push_back( aURL );
}
}
@@ -610,7 +609,7 @@ Reference< ucb::XSimpleFileAccess3 > BackendImpl::getFileAccess( void )
if( !m_xSFA.is() )
{
throw RuntimeException(
- ::rtl::OUString(
+ OUString(
"dp_registry::backend::help::BackendImpl::getFileAccess(), "
"could not instatiate SimpleFileAccess." ),
Reference< XInterface >() );
diff --git a/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx b/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx
index af82956c4697..4d66fe4dd398 100644
--- a/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx
+++ b/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx
@@ -30,7 +30,6 @@
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
#define EXTENSION_REG_NS "http://openoffice.org/extensionmanager/help-registry/2010"
#define NS_PREFIX "help"
@@ -43,7 +42,7 @@ namespace help {
HelpBackendDb::HelpBackendDb(
Reference<XComponentContext> const & xContext,
- ::rtl::OUString const & url):BackendDb(xContext, url)
+ OUString const & url):BackendDb(xContext, url)
{
}
@@ -69,7 +68,7 @@ OUString HelpBackendDb::getKeyElementName()
}
-void HelpBackendDb::addEntry(::rtl::OUString const & url, Data const & data)
+void HelpBackendDb::addEntry(OUString const & url, Data const & data)
{
try{
if (!activateEntry(url))
@@ -95,7 +94,7 @@ void HelpBackendDb::addEntry(::rtl::OUString const & url, Data const & data)
::boost::optional<HelpBackendDb::Data>
-HelpBackendDb::getEntry(::rtl::OUString const & url)
+HelpBackendDb::getEntry(OUString const & url)
{
try
{
diff --git a/desktop/source/deployment/registry/help/dp_helpbackenddb.hxx b/desktop/source/deployment/registry/help/dp_helpbackenddb.hxx
index eeda03533db6..e6f6af82914e 100644
--- a/desktop/source/deployment/registry/help/dp_helpbackenddb.hxx
+++ b/desktop/source/deployment/registry/help/dp_helpbackenddb.hxx
@@ -41,34 +41,34 @@ namespace help {
class HelpBackendDb: public dp_registry::backend::BackendDb
{
protected:
- virtual ::rtl::OUString getDbNSName();
+ virtual OUString getDbNSName();
- virtual ::rtl::OUString getNSPrefix();
+ virtual OUString getNSPrefix();
- virtual ::rtl::OUString getRootElementName();
+ virtual OUString getRootElementName();
- virtual ::rtl::OUString getKeyElementName();
+ virtual OUString getKeyElementName();
public:
struct Data
{
/* the URL to the folder containing the compiled help files, etc.
*/
- ::rtl::OUString dataUrl;
+ OUString dataUrl;
};
public:
HelpBackendDb( css::uno::Reference<css::uno::XComponentContext> const & xContext,
- ::rtl::OUString const & url);
+ OUString const & url);
- void addEntry(::rtl::OUString const & url, Data const & data);
+ void addEntry(OUString const & url, Data const & data);
- ::boost::optional<Data> getEntry(::rtl::OUString const & url);
+ ::boost::optional<Data> getEntry(OUString const & url);
//must also return the data urls for entries with @activ="false". That is,
//those are currently revoked.
- ::std::list< ::rtl::OUString> getAllDataUrls();
+ ::std::list< OUString> getAllDataUrls();
};
diff --git a/desktop/source/deployment/registry/inc/dp_backend.h b/desktop/source/deployment/registry/inc/dp_backend.h
index 8522fd9907c2..621320852770 100644
--- a/desktop/source/deployment/registry/inc/dp_backend.h
+++ b/desktop/source/deployment/registry/inc/dp_backend.h
@@ -62,13 +62,13 @@ class Package : protected ::dp_misc::MutexHolder, public t_PackageBase
protected:
::rtl::Reference<PackageRegistryBackend> m_myBackend;
- const ::rtl::OUString m_url;
- ::rtl::OUString m_name;
- ::rtl::OUString m_displayName;
+ const OUString m_url;
+ OUString m_name;
+ OUString m_displayName;
const css::uno::Reference<css::deployment::XPackageTypeInfo> m_xPackageType;
const bool m_bRemoved;
//Only set if m_bRemoved = true;
- const ::rtl::OUString m_identifier;
+ const OUString m_identifier;
void check() const;
void fireModified();
@@ -94,43 +94,43 @@ protected:
virtual ~Package();
Package( ::rtl::Reference<PackageRegistryBackend> const & myBackend,
- ::rtl::OUString const & url,
- ::rtl::OUString const & name,
- ::rtl::OUString const & displayName,
+ OUString const & url,
+ OUString const & name,
+ OUString const & displayName,
css::uno::Reference<css::deployment::XPackageTypeInfo> const &
xPackageType,
bool bRemoved,
- ::rtl::OUString const & identifier);
+ OUString const & identifier);
public:
class TypeInfo :
public ::cppu::WeakImplHelper1<css::deployment::XPackageTypeInfo>
{
- const ::rtl::OUString m_mediaType;
- const ::rtl::OUString m_fileFilter;
- const ::rtl::OUString m_shortDescr;
+ const OUString m_mediaType;
+ const OUString m_fileFilter;
+ const OUString m_shortDescr;
const sal_uInt16 m_smallIcon;
public:
virtual ~TypeInfo();
- TypeInfo( ::rtl::OUString const & mediaType,
- ::rtl::OUString const & fileFilter,
- ::rtl::OUString const & shortDescr,
+ TypeInfo( OUString const & mediaType,
+ OUString const & fileFilter,
+ OUString const & shortDescr,
sal_uInt16 smallIcon)
: m_mediaType(mediaType), m_fileFilter(fileFilter),
m_shortDescr(shortDescr),
m_smallIcon(smallIcon)
{}
// XPackageTypeInfo
- virtual ::rtl::OUString SAL_CALL getMediaType()
+ virtual OUString SAL_CALL getMediaType()
throw (css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getDescription()
+ virtual OUString SAL_CALL getDescription()
throw (css::deployment::ExtensionRemovedException,
css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getShortDescription()
+ virtual OUString SAL_CALL getShortDescription()
throw (css::deployment::ExtensionRemovedException,
css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getFileFilter()
+ virtual OUString SAL_CALL getFileFilter()
throw (css::uno::RuntimeException);
virtual css::uno::Any SAL_CALL getIcon( sal_Bool highContrast,
sal_Bool smallIcon )
@@ -212,25 +212,25 @@ public:
css::ucb::CommandAbortedException,
css::lang::IllegalArgumentException,
css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getName()
+ virtual OUString SAL_CALL getName()
throw (css::uno::RuntimeException);
- virtual css::beans::Optional< ::rtl::OUString > SAL_CALL getIdentifier()
+ virtual css::beans::Optional< OUString > SAL_CALL getIdentifier()
throw (css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getVersion()
+ virtual OUString SAL_CALL getVersion()
throw (css::deployment::ExtensionRemovedException,
css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getURL()
+ virtual OUString SAL_CALL getURL()
throw (css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getDisplayName()
+ virtual OUString SAL_CALL getDisplayName()
throw (css::deployment::ExtensionRemovedException,
css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getDescription()
+ virtual OUString SAL_CALL getDescription()
throw (css::deployment::ExtensionRemovedException,
css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getLicenseText()
+ virtual OUString SAL_CALL getLicenseText()
throw (css::deployment::ExtensionRemovedException,
css::uno::RuntimeException);
- virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL
+ virtual css::uno::Sequence< OUString > SAL_CALL
getUpdateInformationURLs()
throw (css::deployment::ExtensionRemovedException,
css::uno::RuntimeException);
@@ -244,16 +244,16 @@ public:
virtual css::uno::Reference<css::deployment::XPackageTypeInfo> SAL_CALL
getPackageType() throw (css::uno::RuntimeException);
virtual void SAL_CALL exportTo(
- ::rtl::OUString const & destFolderURL,
- ::rtl::OUString const & newTitle,
+ OUString const & destFolderURL,
+ OUString const & newTitle,
sal_Int32 nameClashAction,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (css::deployment::ExtensionRemovedException,
css::ucb::CommandFailedException,
css::ucb::CommandAbortedException, css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getRepositoryName()
+ virtual OUString SAL_CALL getRepositoryName()
throw (css::uno::RuntimeException);
- virtual css::beans::Optional< ::rtl::OUString > SAL_CALL getRegistrationDataURL()
+ virtual css::beans::Optional< OUString > SAL_CALL getRegistrationDataURL()
throw (css::deployment::ExtensionRemovedException,
css::uno::RuntimeException);
virtual sal_Bool SAL_CALL isRemoved()
@@ -277,15 +277,15 @@ class PackageRegistryBackend
//of bindPackage calls which are costly. Therefore we keep hard references in
//the map now.
typedef ::boost::unordered_map<
- ::rtl::OUString, css::uno::Reference<css::deployment::XPackage>,
- ::rtl::OUStringHash > t_string2ref;
+ OUString, css::uno::Reference<css::deployment::XPackage>,
+ OUStringHash > t_string2ref;
t_string2ref m_bound;
protected:
- ::rtl::OUString m_cachePath;
+ OUString m_cachePath;
css::uno::Reference<css::uno::XComponentContext> m_xComponentContext;
- ::rtl::OUString m_context;
+ OUString m_context;
// currently only for library containers:
enum {
CONTEXT_UNKNOWN,
@@ -301,8 +301,8 @@ protected:
// @@@ to be implemented by specific backend:
virtual css::uno::Reference<css::deployment::XPackage> bindPackage_(
- ::rtl::OUString const & url, ::rtl::OUString const & mediaType,
- sal_Bool bRemoved, ::rtl::OUString const & identifier,
+ OUString const & url, OUString const & mediaType,
+ sal_Bool bRemoved, OUString const & identifier,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
= 0;
@@ -318,8 +318,8 @@ protected:
If url is empty then it is created in the backend folder, otherwise
at a location relative to that folder specified by url.
*/
- ::rtl::OUString createFolder(
- ::rtl::OUString const & relUrl,
+ OUString createFolder(
+ OUString const & relUrl,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv);
/* deletes folders and files.
@@ -327,15 +327,15 @@ protected:
not used are deleted.
*/
void deleteUnusedFolders(
- ::rtl::OUString const & relUrl,
- ::std::list< ::rtl::OUString> const & usedFolders);
+ OUString const & relUrl,
+ ::std::list< OUString> const & usedFolders);
/* deletes one folder with a "temporary" name and the corresponding
tmp file, which was used to derive the folder name.
*/
static void deleteTempFolder(
- ::rtl::OUString const & folderUrl);
+ OUString const & folderUrl);
- ::rtl::OUString getSharedRegistrationDataURL(
+ OUString getSharedRegistrationDataURL(
css::uno::Reference<css::deployment::XPackage> const & extension,
css::uno::Reference<css::deployment::XPackage> const & item);
@@ -344,7 +344,7 @@ protected:
This ensure that the backends clean up their registration data
when an extension was removed.
*/
-// virtual void deleteDbEntry( ::rtl::OUString const & url) = 0;
+// virtual void deleteDbEntry( OUString const & url) = 0;
@@ -357,10 +357,10 @@ public:
inline css::uno::Reference<css::uno::XComponentContext> const &
getComponentContext() const { return m_xComponentContext; }
- inline ::rtl::OUString const & getCachePath() const { return m_cachePath; }
+ inline OUString const & getCachePath() const { return m_cachePath; }
inline bool transientMode() const { return m_cachePath.isEmpty(); }
- inline ::rtl::OUString getContext() const {return m_context; }
+ inline OUString getContext() const {return m_context; }
// XEventListener
virtual void SAL_CALL disposing( css::lang::EventObject const & evt )
@@ -368,8 +368,8 @@ public:
// XPackageRegistry
virtual css::uno::Reference<css::deployment::XPackage> SAL_CALL bindPackage(
- ::rtl::OUString const & url, ::rtl::OUString const & mediaType,
- sal_Bool bRemoved, ::rtl::OUString const & identifier,
+ OUString const & url, OUString const & mediaType,
+ sal_Bool bRemoved, OUString const & identifier,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv )
throw (css::deployment::DeploymentException,
css::deployment::InvalidRemovedParameterException,
@@ -377,7 +377,7 @@ public:
css::lang::IllegalArgumentException, css::uno::RuntimeException);
// virtual void SAL_CALL packageRemoved(
-// ::rtl::OUString const & url, ::rtl::OUString const & mediaType)
+// OUString const & url, OUString const & mediaType)
// throw (css::deployment::DeploymentException,
// css::uno::RuntimeException);
diff --git a/desktop/source/deployment/registry/inc/dp_backenddb.hxx b/desktop/source/deployment/registry/inc/dp_backenddb.hxx
index 53e555c3bf71..09ae83f95fb1 100644
--- a/desktop/source/deployment/registry/inc/dp_backenddb.hxx
+++ b/desktop/source/deployment/registry/inc/dp_backenddb.hxx
@@ -52,7 +52,7 @@ private:
protected:
const css::uno::Reference<css::uno::XComponentContext> m_xContext;
- ::rtl::OUString m_urlDb;
+ OUString m_urlDb;
protected:
@@ -64,88 +64,88 @@ protected:
*/
css::uno::Reference<css::xml::xpath::XXPathAPI> getXPathAPI();
void save();
- void removeElement(::rtl::OUString const & sXPathExpression);
+ void removeElement(OUString const & sXPathExpression);
css::uno::Reference<css::xml::dom::XNode> getKeyElement(
- ::rtl::OUString const & url);
+ OUString const & url);
void writeSimpleList(
- ::std::list< ::rtl::OUString> const & list,
- ::rtl::OUString const & sListTagName,
- ::rtl::OUString const & sMemberTagName,
+ ::std::list< OUString> const & list,
+ OUString const & sListTagName,
+ OUString const & sMemberTagName,
css::uno::Reference<css::xml::dom::XNode> const & xParent);
void writeVectorOfPair(
- ::std::vector< ::std::pair< ::rtl::OUString, ::rtl::OUString > > const & vecPairs,
- ::rtl::OUString const & sVectorTagName,
- ::rtl::OUString const & sPairTagName,
- ::rtl::OUString const & sFirstTagName,
- ::rtl::OUString const & sSecondTagName,
+ ::std::vector< ::std::pair< OUString, OUString > > const & vecPairs,
+ OUString const & sVectorTagName,
+ OUString const & sPairTagName,
+ OUString const & sFirstTagName,
+ OUString const & sSecondTagName,
css::uno::Reference<css::xml::dom::XNode> const & xParent);
void writeSimpleElement(
- ::rtl::OUString const & sElementName, ::rtl::OUString const & value,
+ OUString const & sElementName, OUString const & value,
css::uno::Reference<css::xml::dom::XNode> const & xParent);
css::uno::Reference<css::xml::dom::XNode> writeKeyElement(
- ::rtl::OUString const & url);
+ OUString const & url);
- ::rtl::OUString readSimpleElement(
- ::rtl::OUString const & sElementName,
+ OUString readSimpleElement(
+ OUString const & sElementName,
css::uno::Reference<css::xml::dom::XNode> const & xParent);
- ::std::vector< ::std::pair< ::rtl::OUString, ::rtl::OUString > >
+ ::std::vector< ::std::pair< OUString, OUString > >
readVectorOfPair(
css::uno::Reference<css::xml::dom::XNode> const & parent,
- ::rtl::OUString const & sListTagName,
- ::rtl::OUString const & sPairTagName,
- ::rtl::OUString const & sFirstTagName,
- ::rtl::OUString const & sSecondTagName);
+ OUString const & sListTagName,
+ OUString const & sPairTagName,
+ OUString const & sFirstTagName,
+ OUString const & sSecondTagName);
- ::std::list< ::rtl::OUString> readList(
+ ::std::list< OUString> readList(
css::uno::Reference<css::xml::dom::XNode> const & parent,
- ::rtl::OUString const & sListTagName,
- ::rtl::OUString const & sMemberTagName);
+ OUString const & sListTagName,
+ OUString const & sMemberTagName);
/* returns the values of one particulary child element of all key elements.
*/
- ::std::list< ::rtl::OUString> getOneChildFromAllEntries(
- ::rtl::OUString const & sElementName);
+ ::std::list< OUString> getOneChildFromAllEntries(
+ OUString const & sElementName);
/* returns the namespace which is to be written as xmlns attribute
into the root element.
*/
- virtual ::rtl::OUString getDbNSName()=0;
+ virtual OUString getDbNSName()=0;
/* return the namespace prefix which is to be registered with the XPath API.
The prefix can then be used in XPath expressions.
*/
- virtual ::rtl::OUString getNSPrefix()=0;
+ virtual OUString getNSPrefix()=0;
/* returns the name of the root element without any namespace prefix.
*/
- virtual ::rtl::OUString getRootElementName()=0;
+ virtual OUString getRootElementName()=0;
/* returns the name of xml element for each entry
*/
- virtual ::rtl::OUString getKeyElementName()=0;
+ virtual OUString getKeyElementName()=0;
public:
BackendDb(css::uno::Reference<css::uno::XComponentContext> const & xContext,
- ::rtl::OUString const & url);
+ OUString const & url);
virtual ~BackendDb() {};
- void removeEntry(::rtl::OUString const & url);
+ void removeEntry(OUString const & url);
/* This is called to write the "revoked" attribute to the entry.
This is done when XPackage::revokePackage is called.
*/
- void revokeEntry(::rtl::OUString const & url);
+ void revokeEntry(OUString const & url);
/* returns false if the entry does not exist yet.
*/
- bool activateEntry(::rtl::OUString const & url);
+ bool activateEntry(OUString const & url);
- bool hasActiveEntry(::rtl::OUString const & url);
+ bool hasActiveEntry(OUString const & url);
};
@@ -154,12 +154,12 @@ class RegisteredDb: public BackendDb
public:
RegisteredDb( css::uno::Reference<css::uno::XComponentContext> const & xContext,
- ::rtl::OUString const & url);
+ OUString const & url);
virtual ~RegisteredDb() {};
- virtual void addEntry(::rtl::OUString const & url);
- virtual bool getEntry(::rtl::OUString const & url);
+ virtual void addEntry(OUString const & url);
+ virtual bool getEntry(OUString const & url);
};
diff --git a/desktop/source/deployment/registry/package/dp_extbackenddb.cxx b/desktop/source/deployment/registry/package/dp_extbackenddb.cxx
index 72e08aca0b03..af7353287229 100644
--- a/desktop/source/deployment/registry/package/dp_extbackenddb.cxx
+++ b/desktop/source/deployment/registry/package/dp_extbackenddb.cxx
@@ -29,7 +29,6 @@
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
#define EXTENSION_REG_NS "http://openoffice.org/extensionmanager/extension-registry/2010"
#define NS_PREFIX "ext"
@@ -42,7 +41,7 @@ namespace bundle {
ExtensionBackendDb::ExtensionBackendDb(
Reference<XComponentContext> const & xContext,
- ::rtl::OUString const & url):BackendDb(xContext, url)
+ OUString const & url):BackendDb(xContext, url)
{
}
@@ -67,7 +66,7 @@ OUString ExtensionBackendDb::getKeyElementName()
return OUString(KEY_ELEMENT_NAME);
}
-void ExtensionBackendDb::addEntry(::rtl::OUString const & url, Data const & data)
+void ExtensionBackendDb::addEntry(OUString const & url, Data const & data)
{
try{
//reactive revoked entry if possible.
@@ -88,7 +87,7 @@ void ExtensionBackendDb::addEntry(::rtl::OUString const & url, Data const & data
}
}
-ExtensionBackendDb::Data ExtensionBackendDb::getEntry(::rtl::OUString const & url)
+ExtensionBackendDb::Data ExtensionBackendDb::getEntry(OUString const & url)
{
try
{
diff --git a/desktop/source/deployment/registry/package/dp_extbackenddb.hxx b/desktop/source/deployment/registry/package/dp_extbackenddb.hxx
index 9cb5b3619da2..da8324219f52 100644
--- a/desktop/source/deployment/registry/package/dp_extbackenddb.hxx
+++ b/desktop/source/deployment/registry/package/dp_extbackenddb.hxx
@@ -43,10 +43,10 @@ namespace bundle {
class ExtensionBackendDb: public dp_registry::backend::BackendDb
{
protected:
- virtual ::rtl::OUString getDbNSName();
- virtual ::rtl::OUString getNSPrefix();
- virtual ::rtl::OUString getRootElementName();
- virtual ::rtl::OUString getKeyElementName();
+ virtual OUString getDbNSName();
+ virtual OUString getNSPrefix();
+ virtual OUString getRootElementName();
+ virtual OUString getKeyElementName();
public:
struct Data
@@ -54,18 +54,18 @@ public:
/* every element consists of a pair of the url to the item (jar,rdb, etc)
and the media type
*/
- ::std::vector< ::std::pair< ::rtl::OUString, ::rtl::OUString> > items;
+ ::std::vector< ::std::pair< OUString, OUString> > items;
typedef ::std::vector<
- ::std::pair< ::rtl::OUString, ::rtl::OUString> >::const_iterator ITC_ITEMS;
+ ::std::pair< OUString, OUString> >::const_iterator ITC_ITEMS;
};
public:
ExtensionBackendDb( css::uno::Reference<css::uno::XComponentContext> const & xContext,
- ::rtl::OUString const & url);
+ OUString const & url);
- void addEntry(::rtl::OUString const & url, Data const & data);
+ void addEntry(OUString const & url, Data const & data);
- Data getEntry(::rtl::OUString const & url);
+ Data getEntry(OUString const & url);
};
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx
index 201147b79965..1aac891b7462 100644
--- a/desktop/source/deployment/registry/package/dp_package.cxx
+++ b/desktop/source/deployment/registry/package/dp_package.cxx
@@ -71,7 +71,6 @@ using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
namespace dp_registry {
namespace backend {
@@ -609,7 +608,7 @@ bool BackendImpl::PackageImpl::checkPlatform(
else
{
ret = false;
- rtl::OUString msg(
+ OUString msg(
"unsupported platform");
Any e(
css::deployment::PlatformException(
@@ -636,7 +635,7 @@ bool BackendImpl::PackageImpl::checkDependencies(
if (unsatisfied.getLength() == 0) {
return true;
} else {
- rtl::OUString msg(
+ OUString msg(
"unsatisfied dependencies");
Any e(
css::deployment::DependencyException(
@@ -897,7 +896,7 @@ void BackendImpl::PackageImpl::processPackage_(
}
catch (const Exception &)
{
- OSL_FAIL( ::rtl::OUStringToOString(
+ OSL_FAIL( OUStringToOString(
::comphelper::anyToString(
::cppu::getCaughtException() ),
RTL_TEXTENCODING_UTF8 ).getStr() );
@@ -989,7 +988,7 @@ OUString BackendImpl::PackageImpl::getDescription()
}
catch ( const css::deployment::DeploymentException& )
{
- OSL_FAIL( ::rtl::OUStringToOString( ::comphelper::anyToString( ::cppu::getCaughtException() ), RTL_TEXTENCODING_UTF8 ).getStr() );
+ OSL_FAIL( OUStringToOString( ::comphelper::anyToString( ::cppu::getCaughtException() ), RTL_TEXTENCODING_UTF8 ).getStr() );
}
}
@@ -1067,7 +1066,7 @@ void BackendImpl::PackageImpl::exportTo(
}
erase_path( destURL, xCmdEnv );
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
buf.appendAscii( "vnd.sun.star.zip://" );
buf.append( ::rtl::Uri::encode( destURL,
rtl_UriCharClassRegName,
@@ -1119,14 +1118,14 @@ void BackendImpl::PackageImpl::exportTo(
}
// xxx todo: think about exception specs:
catch (const deployment::DeploymentException &) {
- OSL_FAIL( ::rtl::OUStringToOString(
+ OSL_FAIL( OUStringToOString(
::comphelper::anyToString(
::cppu::getCaughtException() ),
RTL_TEXTENCODING_UTF8 ).getStr() );
}
catch (const lang::IllegalArgumentException & exc) {
(void) exc;
- OSL_FAIL( ::rtl::OUStringToOString(
+ OSL_FAIL( OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
}
@@ -1528,7 +1527,7 @@ void BackendImpl::PackageImpl::scanBundle(
{
// patch description:
::rtl::ByteSequence bytes( readFile( descrFileContent ) );
- ::rtl::OUStringBuffer buf;
+ OUStringBuffer buf;
if ( bytes.getLength() )
{
buf.append( OUString( reinterpret_cast<sal_Char const *>(
diff --git a/desktop/source/deployment/registry/script/dp_lib_container.cxx b/desktop/source/deployment/registry/script/dp_lib_container.cxx
index b296f29c774f..42d917a3eb78 100644
--- a/desktop/source/deployment/registry/script/dp_lib_container.cxx
+++ b/desktop/source/deployment/registry/script/dp_lib_container.cxx
@@ -35,7 +35,6 @@ using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-using ::rtl::OUString;
namespace dp_registry {
namespace backend {
diff --git a/desktop/source/deployment/registry/script/dp_lib_container.h b/desktop/source/deployment/registry/script/dp_lib_container.h
index 53696cf5b11a..57b15f66885c 100644
--- a/desktop/source/deployment/registry/script/dp_lib_container.h
+++ b/desktop/source/deployment/registry/script/dp_lib_container.h
@@ -43,8 +43,8 @@ namespace script {
class LibraryContainer
{
public:
- static ::rtl::OUString get_libname(
- ::rtl::OUString const & url,
+ static OUString get_libname(
+ OUString const & url,
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
css::uno::Reference<css::uno::XComponentContext> const & xContext );
};
diff --git a/desktop/source/deployment/registry/script/dp_script.cxx b/desktop/source/deployment/registry/script/dp_script.cxx
index 9007449774a8..6f2db680a8bb 100644
--- a/desktop/source/deployment/registry/script/dp_script.cxx
+++ b/desktop/source/deployment/registry/script/dp_script.cxx
@@ -39,7 +39,6 @@ using namespace ::dp_misc;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
-using ::rtl::OUString;
namespace dp_registry {
namespace backend {
diff --git a/desktop/source/deployment/registry/script/dp_scriptbackenddb.cxx b/desktop/source/deployment/registry/script/dp_scriptbackenddb.cxx
index ccf65f104669..df57bb7bc423 100644
--- a/desktop/source/deployment/registry/script/dp_scriptbackenddb.cxx
+++ b/desktop/source/deployment/registry/script/dp_scriptbackenddb.cxx
@@ -28,7 +28,6 @@
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
#define EXTENSION_REG_NS "http://openoffice.org/extensionmanager/script-registry/2010"
#define NS_PREFIX "script"
@@ -41,7 +40,7 @@ namespace script {
ScriptBackendDb::ScriptBackendDb(
Reference<XComponentContext> const & xContext,
- ::rtl::OUString const & url):RegisteredDb(xContext, url)
+ OUString const & url):RegisteredDb(xContext, url)
{
}
diff --git a/desktop/source/deployment/registry/script/dp_scriptbackenddb.hxx b/desktop/source/deployment/registry/script/dp_scriptbackenddb.hxx
index 37266ef54e71..ab196dbdbe0c 100644
--- a/desktop/source/deployment/registry/script/dp_scriptbackenddb.hxx
+++ b/desktop/source/deployment/registry/script/dp_scriptbackenddb.hxx
@@ -40,19 +40,19 @@ namespace script {
class ScriptBackendDb: public dp_registry::backend::RegisteredDb
{
protected:
- virtual ::rtl::OUString getDbNSName();
+ virtual OUString getDbNSName();
- virtual ::rtl::OUString getNSPrefix();
+ virtual OUString getNSPrefix();
- virtual ::rtl::OUString getRootElementName();
+ virtual OUString getRootElementName();
- virtual ::rtl::OUString getKeyElementName();
+ virtual OUString getKeyElementName();
public:
ScriptBackendDb( css::uno::Reference<css::uno::XComponentContext> const & xContext,
- ::rtl::OUString const & url);
+ OUString const & url);
};
diff --git a/desktop/source/deployment/registry/sfwk/dp_parceldesc.cxx b/desktop/source/deployment/registry/sfwk/dp_parceldesc.cxx
index dc09f6e52c1f..6e907f3df4a3 100644
--- a/desktop/source/deployment/registry/sfwk/dp_parceldesc.cxx
+++ b/desktop/source/deployment/registry/sfwk/dp_parceldesc.cxx
@@ -25,7 +25,6 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-using ::rtl::OUString;
namespace dp_registry
{
diff --git a/desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx b/desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx
index 34f9a4d52ffe..f1339b888420 100644
--- a/desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx
+++ b/desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx
@@ -40,11 +40,11 @@ class ParcelDescDocHandler : public t_DocHandlerImpl
{
private:
bool m_bIsParsed;
- ::rtl::OUString m_sLang;
+ OUString m_sLang;
sal_Int32 skipIndex;
public:
ParcelDescDocHandler():m_bIsParsed( false ), skipIndex( 0 ){}
- ::rtl::OUString getParcelLanguage() { return m_sLang; }
+ OUString getParcelLanguage() { return m_sLang; }
bool isParsed() { return m_bIsParsed; }
// XDocumentHandler
virtual void SAL_CALL startDocument()
@@ -53,22 +53,22 @@ public:
virtual void SAL_CALL endDocument()
throw ( css::xml::sax::SAXException, css::uno::RuntimeException );
- virtual void SAL_CALL startElement( const ::rtl::OUString& aName,
+ virtual void SAL_CALL startElement( const OUString& aName,
const css::uno::Reference< css::xml::sax::XAttributeList > & xAttribs )
throw ( css::xml::sax::SAXException,
css::uno::RuntimeException );
- virtual void SAL_CALL endElement( const ::rtl::OUString & aName )
+ virtual void SAL_CALL endElement( const OUString & aName )
throw ( css::xml::sax::SAXException, css::uno::RuntimeException );
- virtual void SAL_CALL characters( const ::rtl::OUString & aChars )
+ virtual void SAL_CALL characters( const OUString & aChars )
throw ( css::xml::sax::SAXException, css::uno::RuntimeException );
- virtual void SAL_CALL ignorableWhitespace( const ::rtl::OUString & aWhitespaces )
+ virtual void SAL_CALL ignorableWhitespace( const OUString & aWhitespaces )
throw ( css::xml::sax::SAXException, css::uno::RuntimeException );
virtual void SAL_CALL processingInstruction(
- const ::rtl::OUString & aTarget, const ::rtl::OUString & aData )
+ const OUString & aTarget, const OUString & aData )
throw ( css::xml::sax::SAXException, css::uno::RuntimeException );
virtual void SAL_CALL setDocumentLocator(
diff --git a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
index 534face1a1d8..5c8b97d79021 100644
--- a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
+++ b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
@@ -38,7 +38,6 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
using namespace ::com::sun::star::script;
-using ::rtl::OUString;
namespace dp_registry
{