summaryrefslogtreecommitdiff
path: root/UnoControls/source/controls/framecontrol.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'UnoControls/source/controls/framecontrol.cxx')
-rw-r--r--UnoControls/source/controls/framecontrol.cxx58
1 files changed, 0 insertions, 58 deletions
diff --git a/UnoControls/source/controls/framecontrol.cxx b/UnoControls/source/controls/framecontrol.cxx
index 553571c17a6b..f6d94ef83515 100644
--- a/UnoControls/source/controls/framecontrol.cxx
+++ b/UnoControls/source/controls/framecontrol.cxx
@@ -30,10 +30,8 @@
#include <cppuhelper/typeprovider.hxx>
#include <osl/diagnose.h>
-
// namespaces
-
using namespace ::rtl ;
using namespace ::osl ;
using namespace ::cppu ;
@@ -46,10 +44,8 @@ using namespace ::com::sun::star::util ;
namespace unocontrols{
-
// construct/destruct
-
FrameControl::FrameControl( const Reference< XComponentContext >& rxContext)
: BaseControl ( rxContext )
, OBroadcastHelper ( m_aMutex )
@@ -63,10 +59,8 @@ FrameControl::~FrameControl()
{
}
-
// XInterface
-
Any SAL_CALL FrameControl::queryInterface( const Type& rType ) throw( RuntimeException, std::exception )
{
// Attention:
@@ -88,10 +82,8 @@ Any SAL_CALL FrameControl::queryInterface( const Type& rType ) throw( RuntimeExc
return aReturn ;
}
-
// XInterface
-
void SAL_CALL FrameControl::acquire() throw()
{
// Attention:
@@ -101,10 +93,8 @@ void SAL_CALL FrameControl::acquire() throw()
BaseControl::acquire();
}
-
// XInterface
-
void SAL_CALL FrameControl::release() throw()
{
// Attention:
@@ -114,10 +104,8 @@ void SAL_CALL FrameControl::release() throw()
BaseControl::release();
}
-
// XTypeProvider
-
Sequence< Type > SAL_CALL FrameControl::getTypes() throw( RuntimeException, std::exception )
{
// Optimize this method !
@@ -147,10 +135,8 @@ Sequence< Type > SAL_CALL FrameControl::getTypes() throw( RuntimeException, std:
return pTypeCollection->getTypes();
}
-
// XAggregation
-
Any SAL_CALL FrameControl::queryAggregation( const Type& aType ) throw( RuntimeException, std::exception )
{
// Ask for my own supported interfaces ...
@@ -175,10 +161,8 @@ Any SAL_CALL FrameControl::queryAggregation( const Type& aType ) throw( RuntimeE
return aReturn ;
}
-
// XControl
-
void SAL_CALL FrameControl::createPeer( const Reference< XToolkit >& xToolkit ,
const Reference< XWindowPeer >& xParentPeer ) throw( RuntimeException, std::exception )
{
@@ -192,80 +176,64 @@ void SAL_CALL FrameControl::createPeer( const Reference< XToolkit >& xToo
}
}
-
// XControl
-
sal_Bool SAL_CALL FrameControl::setModel( const Reference< XControlModel >& /*xModel*/ ) throw( RuntimeException, std::exception )
{
// We have no model.
return sal_False ;
}
-
// XControl
-
Reference< XControlModel > SAL_CALL FrameControl::getModel() throw( RuntimeException, std::exception )
{
// We have no model.
return Reference< XControlModel >();
}
-
// XControl
-
void SAL_CALL FrameControl::dispose() throw( RuntimeException, std::exception )
{
impl_deleteFrame();
BaseControl::dispose();
}
-
// XView
-
sal_Bool SAL_CALL FrameControl::setGraphics( const Reference< XGraphics >& /*xDevice*/ ) throw( RuntimeException, std::exception )
{
// it is not possible to print this control
return sal_False ;
}
-
// XView
-
Reference< XGraphics > SAL_CALL FrameControl::getGraphics() throw( RuntimeException, std::exception )
{
// when its not posible to set graphics ! then its possible to return null
return Reference< XGraphics >();
}
-
// XConnectionPointContainer
-
Sequence< Type > SAL_CALL FrameControl::getConnectionPointTypes() throw( RuntimeException, std::exception )
{
// Forwarded to helper class
return m_aConnectionPointContainer.getConnectionPointTypes();
}
-
// XConnectionPointContainer
-
Reference< XConnectionPoint > SAL_CALL FrameControl::queryConnectionPoint( const Type& aType ) throw( RuntimeException, std::exception )
{
// Forwarded to helper class
return m_aConnectionPointContainer.queryConnectionPoint( aType );
}
-
// XConnectionPointContainer
-
void SAL_CALL FrameControl::advise( const Type& aType ,
const Reference< XInterface >& xListener ) throw( RuntimeException, std::exception )
{
@@ -273,10 +241,8 @@ void SAL_CALL FrameControl::advise( const Type& aType
m_aConnectionPointContainer.advise( aType, xListener );
}
-
// XConnectionPointContainer
-
void SAL_CALL FrameControl::unadvise( const Type& aType ,
const Reference< XInterface >& xListener ) throw( RuntimeException, std::exception )
{
@@ -284,10 +250,8 @@ void SAL_CALL FrameControl::unadvise( const Type& aTyp
m_aConnectionPointContainer.unadvise( aType, xListener );
}
-
// impl but public method to register service
-
const Sequence< OUString > FrameControl::impl_getStaticSupportedServiceNames()
{
MutexGuard aGuard( Mutex::getGlobalMutex() );
@@ -296,19 +260,15 @@ const Sequence< OUString > FrameControl::impl_getStaticSupportedServiceNames()
return seqServiceNames ;
}
-
// impl but public method to register service
-
const OUString FrameControl::impl_getStaticImplementationName()
{
return OUString(IMPLEMENTATIONNAME_FRAMECONTROL);
}
-
// OPropertySetHelper
-
sal_Bool FrameControl::convertFastPropertyValue( Any& rConvertedValue ,
Any& rOldValue ,
sal_Int32 nHandle ,
@@ -336,10 +296,8 @@ sal_Bool FrameControl::convertFastPropertyValue( Any& rConvertedVa
return bReturn ;
}
-
// OPropertySetHelper
-
void FrameControl::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle ,
const Any& rValue )
throw ( ::com::sun::star::uno::Exception, std::exception )
@@ -362,10 +320,8 @@ void FrameControl::setFastPropertyValue_NoBroadcast( sal_Int32 nHan
}
}
-
// OPropertySetHelper
-
void FrameControl::getFastPropertyValue( Any& rRet ,
sal_Int32 nHandle ) const
{
@@ -386,10 +342,8 @@ void FrameControl::getFastPropertyValue( Any& rRet ,
}
}
-
// OPropertySetHelper
-
IPropertyArrayHelper& FrameControl::getInfoHelper()
{
// Create a table that map names to index values.
@@ -409,10 +363,8 @@ IPropertyArrayHelper& FrameControl::getInfoHelper()
return *pInfo ;
}
-
// OPropertySetHelper
-
Reference< XPropertySetInfo > SAL_CALL FrameControl::getPropertySetInfo() throw( RuntimeException, std::exception )
{
// Optimize this method !
@@ -435,10 +387,8 @@ Reference< XPropertySetInfo > SAL_CALL FrameControl::getPropertySetInfo() throw(
return ( *pInfo ) ;
}
-
// BaseControl
-
WindowDescriptor* FrameControl::impl_getWindowDescriptor( const Reference< XWindowPeer >& xParentPeer )
{
WindowDescriptor* pDescriptor = new WindowDescriptor ;
@@ -452,10 +402,8 @@ WindowDescriptor* FrameControl::impl_getWindowDescriptor( const Reference< XWind
return pDescriptor ;
}
-
// private method
-
void FrameControl::impl_createFrame( const Reference< XWindowPeer >& xPeer ,
const OUString& rURL ,
const Sequence< PropertyValue >& rArguments )
@@ -468,8 +416,6 @@ void FrameControl::impl_createFrame( const Reference< XWindowPeer >& xPee
xOldFrame = m_xFrame ;
}
-
-
xNewFrame = Frame::create( impl_getComponentContext() );
Reference< XWindow > xWP ( xPeer, UNO_QUERY ) ;
@@ -509,10 +455,8 @@ void FrameControl::impl_createFrame( const Reference< XWindowPeer >& xPee
}
}
-
// private method
-
void FrameControl::impl_deleteFrame()
{
Reference< XFrame2 > xOldFrame;
@@ -536,10 +480,8 @@ void FrameControl::impl_deleteFrame()
xOldFrame->dispose();
}
-
// private method
-
const Sequence< Property > FrameControl::impl_getStaticPropertyDescriptor()
{
// All Properties of this implementation. The array must be sorted!