summaryrefslogtreecommitdiff
path: root/xmlhelp/source/treeview/tvfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlhelp/source/treeview/tvfactory.cxx')
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx35
1 files changed, 0 insertions, 35 deletions
diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx
index 5cee589c8cac..b4cee958fd8e 100644
--- a/xmlhelp/source/treeview/tvfactory.cxx
+++ b/xmlhelp/source/treeview/tvfactory.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
@@ -25,7 +24,6 @@
#include "tvfactory.hxx"
#include "tvread.hxx"
-
using namespace treeview;
using namespace com::sun::star;
using namespace com::sun::star::uno;
@@ -33,22 +31,16 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::container;
-
-
TVFactory::TVFactory( const uno::Reference< XComponentContext >& xContext )
: m_xContext( xContext )
{
}
-
TVFactory::~TVFactory()
{
}
-
-//////////////////////////////////////////////////////////////////////////
// XInterface
-//////////////////////////////////////////////////////////////////////////
void SAL_CALL
TVFactory::acquire(
@@ -58,7 +50,6 @@ TVFactory::acquire(
OWeakObject::acquire();
}
-
void SAL_CALL
TVFactory::release(
void )
@@ -67,7 +58,6 @@ TVFactory::release(
OWeakObject::release();
}
-
Any SAL_CALL
TVFactory::queryInterface(
const Type& rType )
@@ -81,9 +71,6 @@ TVFactory::queryInterface(
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
-
-////////////////////////////////////////////////////////////////////////////////
-//
// XTypeProvider methods.
XTYPEPROVIDER_IMPL_3( TVFactory,
@@ -91,10 +78,6 @@ XTYPEPROVIDER_IMPL_3( TVFactory,
XTypeProvider,
XMultiServiceFactory );
-
-
-////////////////////////////////////////////////////////////////////////////////
-
// XServiceInfo methods.
OUString SAL_CALL
@@ -104,7 +87,6 @@ TVFactory::getImplementationName()
return TVFactory::getImplementationName_static();
}
-
sal_Bool SAL_CALL
TVFactory::supportsService(
const OUString& ServiceName )
@@ -115,7 +97,6 @@ TVFactory::supportsService(
ServiceName.compareToAscii( "com.sun.star.ucb.HiearchyDataSource" ) == 0;
}
-
Sequence< OUString > SAL_CALL
TVFactory::getSupportedServiceNames( void )
throw( RuntimeException )
@@ -123,8 +104,6 @@ TVFactory::getSupportedServiceNames( void )
return TVFactory::getSupportedServiceNames_static();
}
-
-
// XMultiServiceFactory
Reference< XInterface > SAL_CALL
@@ -146,7 +125,6 @@ TVFactory::createInstance(
seq );
}
-
Reference< XInterface > SAL_CALL
TVFactory::createInstanceWithArguments(
const OUString& ServiceSpecifier,
@@ -192,7 +170,6 @@ TVFactory::createInstanceWithArguments(
return m_xHDS;
}
-
Sequence< OUString > SAL_CALL
TVFactory::getAvailableServiceNames( )
throw( RuntimeException )
@@ -202,18 +179,14 @@ TVFactory::getAvailableServiceNames( )
return seq;
}
-
-
// static
-
OUString SAL_CALL
TVFactory::getImplementationName_static()
{
return OUString( "com.sun.star.help.TreeViewImpl" );
}
-
Sequence< OUString > SAL_CALL
TVFactory::getSupportedServiceNames_static()
{
@@ -223,7 +196,6 @@ TVFactory::getSupportedServiceNames_static()
return seq;
}
-
Reference< XSingleServiceFactory > SAL_CALL
TVFactory::createServiceFactory(
const Reference< XMultiServiceFactory >& rxServiceMgr )
@@ -236,8 +208,6 @@ TVFactory::createServiceFactory(
TVFactory::getSupportedServiceNames_static() ) );
}
-
-
Reference< XInterface > SAL_CALL
TVFactory::CreateInstance(
const Reference< XMultiServiceFactory >& xMultiServiceFactory )
@@ -246,7 +216,6 @@ TVFactory::CreateInstance(
return Reference< XInterface >::query( xP );
}
-//=========================================================================
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL treeview_component_getFactory(
const sal_Char * pImplName,void * pServiceManager,void * pRegistryKey )
{
@@ -259,17 +228,13 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL treeview_component_getFactory(
Reference< XSingleServiceFactory > xFactory;
- //////////////////////////////////////////////////////////////////////
// File Content Provider.
- //////////////////////////////////////////////////////////////////////
if ( TVFactory::getImplementationName_static().compareToAscii( pImplName ) == 0 )
{
xFactory = TVFactory::createServiceFactory( xSMgr );
}
- //////////////////////////////////////////////////////////////////////
-
if ( xFactory.is() )
{
xFactory->acquire();