summaryrefslogtreecommitdiff
path: root/ucbhelper/source/client
diff options
context:
space:
mode:
Diffstat (limited to 'ucbhelper/source/client')
-rw-r--r--ucbhelper/source/client/activedatasink.cxx38
-rw-r--r--ucbhelper/source/client/activedatastreamer.cxx38
-rw-r--r--ucbhelper/source/client/commandenvironment.cxx52
-rw-r--r--ucbhelper/source/client/content.cxx182
-rw-r--r--ucbhelper/source/client/fileidentifierconverter.cxx24
-rw-r--r--ucbhelper/source/client/proxydecider.cxx90
6 files changed, 212 insertions, 212 deletions
diff --git a/ucbhelper/source/client/activedatasink.cxx b/ucbhelper/source/client/activedatasink.cxx
index f7a844eee3b4..11ba985e6170 100644
--- a/ucbhelper/source/client/activedatasink.cxx
+++ b/ucbhelper/source/client/activedatasink.cxx
@@ -30,39 +30,39 @@ using namespace com::sun::star;
namespace ucbhelper
{
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ActiveDataSink Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
-//
+
+
+
+
+
// XInterface methods
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_2( ActiveDataSink,
lang::XTypeProvider,
io::XActiveDataSink );
-//=========================================================================
-//
+
+
// XTypeProvider methods
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_2( ActiveDataSink,
lang::XTypeProvider,
io::XActiveDataSink );
-//=========================================================================
-//
+
+
// XActiveDataSink methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL ActiveDataSink::setInputStream(
@@ -72,7 +72,7 @@ void SAL_CALL ActiveDataSink::setInputStream(
m_xStream = aStream;
}
-//=========================================================================
+
// virtual
uno::Reference< io::XInputStream > SAL_CALL ActiveDataSink::getInputStream()
throw( uno::RuntimeException )
diff --git a/ucbhelper/source/client/activedatastreamer.cxx b/ucbhelper/source/client/activedatastreamer.cxx
index 054d3c236b29..17035c6760da 100644
--- a/ucbhelper/source/client/activedatastreamer.cxx
+++ b/ucbhelper/source/client/activedatastreamer.cxx
@@ -30,39 +30,39 @@ using namespace com::sun::star;
namespace ucbhelper
{
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ActiveDataStreamer Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
-//
+
+
+
+
+
// XInterface methods
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_2( ActiveDataStreamer,
lang::XTypeProvider,
io::XActiveDataStreamer );
-//=========================================================================
-//
+
+
// XTypeProvider methods
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_2( ActiveDataStreamer,
lang::XTypeProvider,
io::XActiveDataStreamer );
-//=========================================================================
-//
+
+
// XActiveDataStreamer methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL ActiveDataStreamer::setStream( const uno::Reference< io::XStream >& xStream )
@@ -71,7 +71,7 @@ void SAL_CALL ActiveDataStreamer::setStream( const uno::Reference< io::XStream >
m_xStream = xStream;
}
-//=========================================================================
+
// virtual
uno::Reference< io::XStream > SAL_CALL ActiveDataStreamer::getStream()
throw( uno::RuntimeException )
diff --git a/ucbhelper/source/client/commandenvironment.cxx b/ucbhelper/source/client/commandenvironment.cxx
index d65d8f0746b1..ad07f2d73b4a 100644
--- a/ucbhelper/source/client/commandenvironment.cxx
+++ b/ucbhelper/source/client/commandenvironment.cxx
@@ -38,13 +38,13 @@ using namespace com::sun::star::uno;
namespace ucbhelper
{
-//=========================================================================
-//=========================================================================
-//
+
+
+
// struct CommandEnvironment_Impl.
-//
-//=========================================================================
-//=========================================================================
+
+
+
struct CommandEnvironment_Impl
{
@@ -58,13 +58,13 @@ struct CommandEnvironment_Impl
m_xProgressHandler( rxProgressHandler ) {}
};
-//=========================================================================
-//=========================================================================
-//
+
+
+
// CommandEnvironment Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
CommandEnvironment::CommandEnvironment(
const Reference< XInteractionHandler >& rxInteractionHandler,
@@ -74,38 +74,38 @@ CommandEnvironment::CommandEnvironment(
rxProgressHandler );
}
-//=========================================================================
+
// virtual
CommandEnvironment::~CommandEnvironment()
{
delete m_pImpl;
}
-//=========================================================================
-//
+
+
// XInterface methods
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_2( CommandEnvironment,
XTypeProvider,
XCommandEnvironment );
-//=========================================================================
-//
+
+
// XTypeProvider methods
-//
-//=========================================================================
+
+
XTYPEPROVIDER_IMPL_2( CommandEnvironment,
XTypeProvider,
XCommandEnvironment );
-//=========================================================================
-//
+
+
// XCommandEnvironemnt methods.
-//
-//=========================================================================
+
+
// virtual
Reference< XInteractionHandler > SAL_CALL
@@ -115,7 +115,7 @@ CommandEnvironment::getInteractionHandler()
return m_pImpl->m_xInteractionHandler;
}
-//=========================================================================
+
// virtual
Reference< XProgressHandler > SAL_CALL
CommandEnvironment::getProgressHandler()
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx
index 4a0718696eb7..ac1bd2d67092 100644
--- a/ucbhelper/source/client/content.cxx
+++ b/ucbhelper/source/client/content.cxx
@@ -125,13 +125,13 @@ void EmptyInputStream::closeInput()
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// class ContentEventListener_Impl.
-//
-//=========================================================================
-//=========================================================================
+
+
+
class ContentEventListener_Impl : public cppu::OWeakObject,
public XContentEventListener
@@ -154,13 +154,13 @@ public:
throw( RuntimeException );
};
-//=========================================================================
-//=========================================================================
-//
+
+
+
// class Content_Impl.
-//
-//=========================================================================
-//=========================================================================
+
+
+
class Content_Impl : public salhelper::SimpleReferenceObject
{
@@ -201,9 +201,9 @@ public:
void inserted();
};
-//=========================================================================
+
// Helpers.
-//=========================================================================
+
static void ensureContentProviderForURL( const Reference< XUniversalContentBroker >& rBroker,
const OUString & rURL )
@@ -220,7 +220,7 @@ static void ensureContentProviderForURL( const Reference< XUniversalContentBroke
}
}
-//=========================================================================
+
static Reference< XContentIdentifier > getContentIdentifier(
const Reference< XUniversalContentBroker > & rBroker,
const OUString & rURL,
@@ -246,7 +246,7 @@ static Reference< XContentIdentifier > getContentIdentifier(
return Reference< XContentIdentifier >();
}
-//=========================================================================
+
static Reference< XContent > getContent(
const Reference< XUniversalContentBroker > & rBroker,
const Reference< XContentIdentifier > & xId,
@@ -281,20 +281,20 @@ static Reference< XContent > getContent(
return Reference< XContent >();
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// Content Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
Content::Content()
: m_xImpl( new Content_Impl )
{
}
-//=========================================================================
+
Content::Content( const OUString& rURL,
const Reference< XCommandEnvironment >& rEnv,
const Reference< XComponentContext >& rCtx )
@@ -311,7 +311,7 @@ Content::Content( const OUString& rURL,
m_xImpl = new Content_Impl( rCtx, xContent, rEnv );
}
-//=========================================================================
+
Content::Content( const Reference< XContent >& rContent,
const Reference< XCommandEnvironment >& rEnv,
const Reference< XComponentContext >& rCtx )
@@ -320,13 +320,13 @@ Content::Content( const Reference< XContent >& rContent,
m_xImpl = new Content_Impl( rCtx, rContent, rEnv );
}
-//=========================================================================
+
Content::Content( const Content& rOther )
{
m_xImpl = rOther.m_xImpl;
}
-//=========================================================================
+
// static
bool Content::create( const OUString& rURL,
const Reference< XCommandEnvironment >& rEnv,
@@ -351,44 +351,44 @@ bool Content::create( const OUString& rURL,
return true;
}
-//=========================================================================
+
Content::~Content()
{
}
-//=========================================================================
+
Content& Content::operator=( const Content& rOther )
{
m_xImpl = rOther.m_xImpl;
return *this;
}
-//=========================================================================
+
Reference< XContent > Content::get() const
{
return m_xImpl->getContent();
}
-//=========================================================================
+
const OUString& Content::getURL() const
{
return m_xImpl->getURL();
}
-//=========================================================================
+
const Reference< XCommandEnvironment >& Content::getCommandEnvironment() const
{
return m_xImpl->getEnvironment();
}
-//=========================================================================
+
void Content::setCommandEnvironment(
const Reference< XCommandEnvironment >& xNewEnv )
{
m_xImpl->setEnvironment( xNewEnv );
}
-//=========================================================================
+
Reference< XCommandInfo > Content::getCommands()
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -404,7 +404,7 @@ Reference< XCommandInfo > Content::getCommands()
return xInfo;
}
-//=========================================================================
+
Reference< XPropertySetInfo > Content::getProperties()
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -420,7 +420,7 @@ Reference< XPropertySetInfo > Content::getProperties()
return xInfo;
}
-//=========================================================================
+
Any Content::getPropertyValue( const OUString& rPropertyName )
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -431,7 +431,7 @@ Any Content::getPropertyValue( const OUString& rPropertyName )
return aRet.getConstArray()[ 0 ];
}
-//=========================================================================
+
Any Content::setPropertyValue( const OUString& rName,
const Any& rValue )
throw( CommandAbortedException, RuntimeException, Exception )
@@ -446,7 +446,7 @@ Any Content::setPropertyValue( const OUString& rName,
return aErrors.getConstArray()[ 0 ];
}
-//=========================================================================
+
Sequence< Any > Content::getPropertyValues(
const Sequence< OUString >& rPropertyNames )
throw( CommandAbortedException, RuntimeException, Exception )
@@ -467,7 +467,7 @@ Sequence< Any > Content::getPropertyValues(
return aValues;
}
-//=========================================================================
+
Reference< XRow > Content::getPropertyValuesInterface(
const Sequence< OUString >& rPropertyNames )
throw( CommandAbortedException, RuntimeException, Exception )
@@ -500,7 +500,7 @@ Reference< XRow > Content::getPropertyValuesInterface(
return xRow;
}
-//=========================================================================
+
Sequence< Any > Content::setPropertyValues(
const Sequence< OUString >& rPropertyNames,
const Sequence< Any >& rValues )
@@ -548,7 +548,7 @@ Sequence< Any > Content::setPropertyValues(
return aErrors;
}
-//=========================================================================
+
Any Content::executeCommand( const OUString& rCommandName,
const Any& rCommandArgument )
throw( CommandAbortedException, RuntimeException, Exception )
@@ -561,7 +561,7 @@ Any Content::executeCommand( const OUString& rCommandName,
return m_xImpl->executeCommand( aCommand );
}
-//=========================================================================
+
Any Content::createCursorAny( const Sequence< OUString >& rPropertyNames,
ResultSetInclude eMode )
throw( CommandAbortedException, RuntimeException, Exception )
@@ -594,7 +594,7 @@ Any Content::createCursorAny( const Sequence< OUString >& rPropertyNames,
return m_xImpl->executeCommand( aCommand );
}
-//=========================================================================
+
Reference< XResultSet > Content::createCursor(
const Sequence< OUString >& rPropertyNames,
ResultSetInclude eMode )
@@ -624,7 +624,7 @@ Reference< XResultSet > Content::createCursor(
return aResult;
}
-//=========================================================================
+
Reference< XDynamicResultSet > Content::createDynamicCursor(
const Sequence< OUString >& rPropertyNames,
ResultSetInclude eMode )
@@ -638,7 +638,7 @@ Reference< XDynamicResultSet > Content::createDynamicCursor(
return aResult;
}
-//=========================================================================
+
Reference< XResultSet > Content::createSortedCursor(
const Sequence< OUString >& rPropertyNames,
const Sequence< NumberedSortingInfo >& rSortInfo,
@@ -690,7 +690,7 @@ Reference< XResultSet > Content::createSortedCursor(
return aResult;
}
-//=========================================================================
+
Reference< XInputStream > Content::openStream()
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -715,7 +715,7 @@ Reference< XInputStream > Content::openStream()
return xSink->getInputStream();
}
-//=========================================================================
+
Reference< XInputStream > Content::openStreamNoLock()
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -740,7 +740,7 @@ Reference< XInputStream > Content::openStreamNoLock()
return xSink->getInputStream();
}
-//=========================================================================
+
Reference< XStream > Content::openWriteableStream()
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -765,7 +765,7 @@ Reference< XStream > Content::openWriteableStream()
return xStreamer->getStream();
}
-//=========================================================================
+
Reference< XStream > Content::openWriteableStreamNoLock()
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -790,7 +790,7 @@ Reference< XStream > Content::openWriteableStreamNoLock()
return xStreamer->getStream();
}
-//=========================================================================
+
bool Content::openStream( const Reference< XActiveDataSink >& rSink )
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -813,7 +813,7 @@ bool Content::openStream( const Reference< XActiveDataSink >& rSink )
return true;
}
-//=========================================================================
+
bool Content::openStream( const Reference< XOutputStream >& rStream )
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -836,7 +836,7 @@ bool Content::openStream( const Reference< XOutputStream >& rStream )
return true;
}
-//=========================================================================
+
void Content::writeStream( const Reference< XInputStream >& rStream,
bool bReplaceExisting )
throw( CommandAbortedException, RuntimeException, Exception )
@@ -855,7 +855,7 @@ void Content::writeStream( const Reference< XInputStream >& rStream,
m_xImpl->inserted();
}
-//=========================================================================
+
Sequence< ContentInfo > Content::queryCreatableContentsInfo()
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -875,7 +875,7 @@ Sequence< ContentInfo > Content::queryCreatableContentsInfo()
return aInfo;
}
-//=========================================================================
+
bool Content::insertNewContent( const OUString& rContentType,
const Sequence< OUString >&
rPropertyNames,
@@ -890,7 +890,7 @@ bool Content::insertNewContent( const OUString& rContentType,
rNewContent );
}
-//=========================================================================
+
bool Content::insertNewContent( const OUString& rContentType,
const Sequence< OUString >&
rPropertyNames,
@@ -954,7 +954,7 @@ bool Content::insertNewContent( const OUString& rContentType,
return true;
}
-//=========================================================================
+
bool Content::transferContent( const Content& rSourceContent,
InsertOperation eOperation,
const OUString & rTitle,
@@ -1033,7 +1033,7 @@ bool Content::transferContent( const Content& rSourceContent,
return true;
}
-//=========================================================================
+
bool Content::isFolder()
throw( CommandAbortedException, RuntimeException, Exception )
{
@@ -1056,7 +1056,7 @@ bool Content::isFolder()
#endif
}
-//=========================================================================
+
SAL_WNOUNREACHABLE_CODE_PUSH
@@ -1082,13 +1082,13 @@ bool Content::isDocument()
SAL_WNOUNREACHABLE_CODE_POP
-//=========================================================================
-//=========================================================================
-//
+
+
+
// Content_Impl Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
Content_Impl::Content_Impl( const Reference< XComponentContext >& rCtx,
const Reference< XContent >& rContent,
@@ -1111,7 +1111,7 @@ Content_Impl::Content_Impl( const Reference< XComponentContext >& rCtx,
}
}
-//=========================================================================
+
void Content_Impl::reinit( const Reference< XContent >& xContent )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -1152,7 +1152,7 @@ void Content_Impl::reinit( const Reference< XContent >& xContent )
}
}
-//=========================================================================
+
// virtual
Content_Impl::~Content_Impl()
{
@@ -1168,7 +1168,7 @@ Content_Impl::~Content_Impl()
}
}
-//=========================================================================
+
void Content_Impl::disposing( const EventObject& Source )
{
Reference<XContent> xContent;
@@ -1197,7 +1197,7 @@ void Content_Impl::disposing( const EventObject& Source )
}
}
-//=========================================================================
+
const OUString& Content_Impl::getURL() const
{
if ( m_aURL.isEmpty() && m_xContent.is() )
@@ -1215,7 +1215,7 @@ const OUString& Content_Impl::getURL() const
return m_aURL;
}
-//=========================================================================
+
Reference< XContent > Content_Impl::getContent()
{
if ( !m_xContent.is() && !m_aURL.isEmpty() )
@@ -1255,7 +1255,7 @@ Reference< XContent > Content_Impl::getContent()
return m_xContent;
}
-//=========================================================================
+
Reference< XCommandProcessor > Content_Impl::getCommandProcessor()
{
if ( !m_xCommandProcessor.is() )
@@ -1270,7 +1270,7 @@ Reference< XCommandProcessor > Content_Impl::getCommandProcessor()
return m_xCommandProcessor;
}
-//=========================================================================
+
Any Content_Impl::executeCommand( const Command& rCommand )
{
Reference< XCommandProcessor > xProc = getCommandProcessor();
@@ -1281,14 +1281,14 @@ Any Content_Impl::executeCommand( const Command& rCommand )
return xProc->execute( rCommand, 0, m_xEnv );
}
-//=========================================================================
+
inline const Reference< XCommandEnvironment >&
Content_Impl::getEnvironment() const
{
return m_xEnv;
}
-//=========================================================================
+
inline void Content_Impl::setEnvironment(
const Reference< XCommandEnvironment >& xNewEnv )
{
@@ -1296,7 +1296,7 @@ inline void Content_Impl::setEnvironment(
m_xEnv = xNewEnv;
}
-//=========================================================================
+
void Content_Impl::inserted()
{
// URL might have changed during 'insert' => recalculate in next getURL()
@@ -1304,29 +1304,29 @@ void Content_Impl::inserted()
m_aURL = "";
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// ContentEventListener_Impl Implementation.
-//
-//=========================================================================
-//=========================================================================
-//=========================================================================
-//
+
+
+
+
+
// XInterface methods.
-//
-//=========================================================================
+
+
XINTERFACE_IMPL_2( ContentEventListener_Impl,
XContentEventListener,
XEventListener ); /* base of XContentEventListener */
-//=========================================================================
-//
+
+
// XContentEventListener methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL ContentEventListener_Impl::contentEvent( const ContentEvent& evt )
@@ -1350,11 +1350,11 @@ void SAL_CALL ContentEventListener_Impl::contentEvent( const ContentEvent& evt )
}
}
-//=========================================================================
-//
+
+
// XEventListenr methods.
-//
-//=========================================================================
+
+
// virtual
void SAL_CALL ContentEventListener_Impl::disposing( const EventObject& Source )
diff --git a/ucbhelper/source/client/fileidentifierconverter.cxx b/ucbhelper/source/client/fileidentifierconverter.cxx
index c1498cc21680..fadc8ed01997 100644
--- a/ucbhelper/source/client/fileidentifierconverter.cxx
+++ b/ucbhelper/source/client/fileidentifierconverter.cxx
@@ -31,11 +31,11 @@ using namespace com::sun::star;
namespace ucbhelper {
-//============================================================================
-//
+
+
// getLocalFileURL
-//
-//============================================================================
+
+
OUString
getLocalFileURL() SAL_THROW((uno::RuntimeException))
@@ -47,11 +47,11 @@ getLocalFileURL() SAL_THROW((uno::RuntimeException))
return OUString("file:///");
}
-//============================================================================
-//
+
+
// getFileURLFromSystemPath
-//
-//============================================================================
+
+
OUString
getFileURLFromSystemPath(
@@ -70,11 +70,11 @@ getFileURLFromSystemPath(
return OUString();
}
-//============================================================================
-//
+
+
// getSystemPathFromFileURL
-//
-//============================================================================
+
+
OUString
getSystemPathFromFileURL(
diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx
index 1ed0e91ea7ad..5bcb5f0f0c32 100644
--- a/ucbhelper/source/client/proxydecider.cxx
+++ b/ucbhelper/source/client/proxydecider.cxx
@@ -52,11 +52,11 @@ using namespace ucbhelper;
#define FTP_PROXY_NAME_KEY "ooInetFTPProxyName"
#define FTP_PROXY_PORT_KEY "ooInetFTPProxyPort"
-//=========================================================================
+
namespace ucbhelper
{
-//=========================================================================
+
namespace proxydecider_impl
{
@@ -75,10 +75,10 @@ public:
bool Matches( const OUString & rStr ) const;
};
-//=========================================================================
+
typedef std::pair< WildCard, WildCard > NoProxyListEntry;
-//=========================================================================
+
class HostnameCache
{
@@ -119,7 +119,7 @@ public:
}
};
-//=========================================================================
+
class InternetProxyDecider_Impl :
public cppu::WeakImplHelper1< util::XChangesListener >
{
@@ -160,13 +160,13 @@ private:
void setNoProxyList( const OUString & rNoProxyList );
};
-//=========================================================================
-//=========================================================================
-//
+
+
+
// WildCard Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
bool WildCard::Matches( const OUString& rString ) const
{
@@ -236,7 +236,7 @@ bool WildCard::Matches( const OUString& rString ) const
return ( *pStr == '\0' ) && ( *pWild == '\0' );
}
-//=========================================================================
+
bool getConfigStringValue(
const uno::Reference< container::XNameAccess > & xNameAccess,
const char * key,
@@ -263,7 +263,7 @@ bool getConfigStringValue(
return true;
}
-//=========================================================================
+
bool getConfigInt32Value(
const uno::Reference< container::XNameAccess > & xNameAccess,
const char * key,
@@ -291,13 +291,13 @@ bool getConfigInt32Value(
return true;
}
-//=========================================================================
-//=========================================================================
-//
+
+
+
// InternetProxyDecider_Impl Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
InternetProxyDecider_Impl::InternetProxyDecider_Impl(
const uno::Reference< uno::XComponentContext >& rxContext )
@@ -306,9 +306,9 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl(
{
try
{
- //////////////////////////////////////////////////////////////
+
// Read proxy configuration from config db.
- //////////////////////////////////////////////////////////////
+
uno::Reference< lang::XMultiServiceFactory > xConfigProv =
configuration::theDefaultProvider::get( rxContext );
@@ -392,13 +392,13 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl(
}
}
-//=========================================================================
+
// virtual
InternetProxyDecider_Impl::~InternetProxyDecider_Impl()
{
}
-//=========================================================================
+
void InternetProxyDecider_Impl::dispose()
{
uno::Reference< util::XChangesNotifier > xNotifier;
@@ -419,7 +419,7 @@ void InternetProxyDecider_Impl::dispose()
xNotifier->removeChangesListener( this );
}
-//=========================================================================
+
bool InternetProxyDecider_Impl::shouldUseProxy( const OUString & rHost,
sal_Int32 nPort,
bool bUseFullyQualified ) const
@@ -467,7 +467,7 @@ bool InternetProxyDecider_Impl::shouldUseProxy( const OUString & rHost,
return true;
}
-//=========================================================================
+
const InternetProxyServer & InternetProxyDecider_Impl::getProxy(
const OUString & rProtocol,
const OUString & rHost,
@@ -483,16 +483,16 @@ const InternetProxyServer & InternetProxyDecider_Impl::getProxy(
if ( !rHost.isEmpty() && !m_aNoProxyList.empty() )
{
- //////////////////////////////////////////////////////////////////
+
// First, try direct hostname match - #110515#
- //////////////////////////////////////////////////////////////////
+
if ( !shouldUseProxy( rHost, nPort, false ) )
return m_aEmptyProxy;
- //////////////////////////////////////////////////////////////////
+
// Second, try match against full qualified hostname - #104401#
- //////////////////////////////////////////////////////////////////
+
OUString aHost;
@@ -527,15 +527,15 @@ const InternetProxyServer & InternetProxyDecider_Impl::getProxy(
return m_aEmptyProxy;
}
- //////////////////////////////////////////////////////////////////
+
// Third, try match of fully qualified entries in no-proxy list
// against full qualified hostname
- //
+
// Example:
// list: staroffice-doc -> full: xyz.germany.sun.com
// in: staroffice-doc.germany.sun.com -> full: xyz.germany.sun.com
- //
- //////////////////////////////////////////////////////////////////
+
+
if ( !shouldUseProxy( aFullyQualifiedHost, nPort, true ) )
return m_aEmptyProxy;
@@ -559,7 +559,7 @@ const InternetProxyServer & InternetProxyDecider_Impl::getProxy(
return m_aEmptyProxy;
}
-//=========================================================================
+
// virtual
void SAL_CALL InternetProxyDecider_Impl::changesOccurred(
const util::ChangesEvent& Event )
@@ -656,7 +656,7 @@ void SAL_CALL InternetProxyDecider_Impl::changesOccurred(
}
}
-//=========================================================================
+
// virtual
void SAL_CALL InternetProxyDecider_Impl::disposing(const lang::EventObject&)
throw( uno::RuntimeException )
@@ -670,7 +670,7 @@ void SAL_CALL InternetProxyDecider_Impl::disposing(const lang::EventObject&)
}
}
-//=========================================================================
+
void InternetProxyDecider_Impl::setNoProxyList(
const OUString & rNoProxyList )
{
@@ -783,13 +783,13 @@ void InternetProxyDecider_Impl::setNoProxyList(
} // namespace proxydecider_impl
-//=========================================================================
-//=========================================================================
-//
+
+
+
// InternetProxyDecider Implementation.
-//
-//=========================================================================
-//=========================================================================
+
+
+
InternetProxyDecider::InternetProxyDecider(
const uno::Reference< uno::XComponentContext>& rxContext )
@@ -798,7 +798,7 @@ InternetProxyDecider::InternetProxyDecider(
m_pImpl->acquire();
}
-//=========================================================================
+
InternetProxyDecider::~InternetProxyDecider()
{
// Break circular reference between config listener and notifier.
@@ -808,7 +808,7 @@ InternetProxyDecider::~InternetProxyDecider()
m_pImpl->release();
}
-//=========================================================================
+
bool InternetProxyDecider::shouldUseProxy( const OUString & rProtocol,
const OUString & rHost,
sal_Int32 nPort ) const
@@ -819,7 +819,7 @@ bool InternetProxyDecider::shouldUseProxy( const OUString & rProtocol,
return !rData.aName.isEmpty();
}
-//=========================================================================
+
const InternetProxyServer & InternetProxyDecider::getProxy(
const OUString & rProtocol,
const OUString & rHost,