summaryrefslogtreecommitdiff
path: root/extensions/source/plugin/base
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-10-11 20:57:51 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-10-25 19:55:29 -0500
commit9db5fb9aa736977261247a8cb58d5ffde234dc28 (patch)
tree9cc9f32f894b4773c5bde9c8c721b6135e6389f8 /extensions/source/plugin/base
parentc2abeee82654e11cc6f15ff71609d32e816a5243 (diff)
merge vosremoval-timer.diff
Diffstat (limited to 'extensions/source/plugin/base')
-rw-r--r--extensions/source/plugin/base/xplugin.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/extensions/source/plugin/base/xplugin.cxx b/extensions/source/plugin/base/xplugin.cxx
index c9f355aa0..610cc8dd1 100644
--- a/extensions/source/plugin/base/xplugin.cxx
+++ b/extensions/source/plugin/base/xplugin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@
#include <tools/urlobj.hxx>
#include <tools/string.hxx>
#include <vcl/svapp.hxx>
-#include <vos/timer.hxx>
+#include <salhelper/timer.hxx>
#include <osl/file.hxx>
#ifdef UNX
@@ -63,7 +63,7 @@ using namespace com::sun::star::plugin;
using namespace rtl;
using namespace osl;
-class PluginDisposer : public vos::OTimer
+class PluginDisposer : public salhelper::Timer
{
private:
XPlugin_Impl* m_pPlugin;
@@ -71,8 +71,8 @@ private:
virtual void SAL_CALL onShot();
public:
PluginDisposer( XPlugin_Impl* pPlugin ) :
- OTimer( vos::TTimeValue( 2, 0 ),
- vos::TTimeValue( 2, 0 ) ),
+ salhelper::Timer( salhelper::TTimeValue( 2, 0 ),
+ salhelper::TTimeValue( 2, 0 ) ),
m_pPlugin( pPlugin )
{ start(); }
~PluginDisposer() {}
@@ -285,7 +285,7 @@ void XPlugin_Impl::prependArg( const char* pName, const char* pValue )
{
const char** pNewNames = new const char*[m_nArgs+1];
const char** pNewValues = new const char*[m_nArgs+1];
-
+
pNewNames[0] = strdup( pName );
pNewValues[0] = strdup( pValue );
for( int nIndex = 0; nIndex < m_nArgs; ++nIndex )
@@ -325,7 +325,7 @@ void XPlugin_Impl::handleSpecialArgs()
{
}
}
-
+
if( aURL.getLength() )
{
// set new args, old args need not be freed as there were none set
@@ -358,7 +358,7 @@ void XPlugin_Impl::handleSpecialArgs()
m_aPluginMode = PluginMode::FULL;
// see if we have a TYPE tag
- int nIndex;
+ int nIndex;
for( nIndex = 0; nIndex < m_nArgs; ++nIndex )
if( m_pArgn[nIndex][0] == 'T' &&
m_pArgn[nIndex][1] == 'Y' &&
@@ -883,7 +883,7 @@ void XPlugin_Impl::setPosSize( sal_Int32 nX_, sal_Int32 nY_, sal_Int32 nWidth_,
m_aNPWindow.clipRect.left = 0;
m_aNPWindow.clipRect.right = ::sal::static_int_cast< uint16, sal_Int32 >( nWidth_ );
m_aNPWindow.clipRect.bottom = ::sal::static_int_cast< uint16, sal_Int32 >( nHeight_ );
-
+
if( getPluginComm() )
getPluginComm()->NPP_SetWindow( this );
}