summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-03-01 18:39:24 +0000
committerKurt Zenker <kz@openoffice.org>2005-03-01 18:39:24 +0000
commit2abc24d9df97cfa9909bede1dfd3f87584a3d60b (patch)
tree749ffbe0f2dc417ce857e6fec798b011a6a0c853 /framework
parent055477742bf4df813aa57ab03a8828d5b412623d (diff)
INTEGRATION: CWS removedrafts (1.4.60); FILE MERGED
2005/02/17 12:47:44 cd 1.4.60.1: #i42557# move UNOIDL types from drafts to com
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uiconfiguration/imagemanager.cxx60
1 files changed, 30 insertions, 30 deletions
diff --git a/framework/source/uiconfiguration/imagemanager.cxx b/framework/source/uiconfiguration/imagemanager.cxx
index 8da17a9e9521..c0f959a42348 100644
--- a/framework/source/uiconfiguration/imagemanager.cxx
+++ b/framework/source/uiconfiguration/imagemanager.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: imagemanager.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hr $ $Date: 2004-11-26 20:36:59 $
+ * last change: $Author: kz $ $Date: 2005-03-01 19:39:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -85,12 +85,12 @@
// interface includes
//_________________________________________________________________________________________________________________
-#ifndef _DRAFTS_COM_SUN_STAR_UI_UIELEMENTTYPE_HPP_
-#include <drafts/com/sun/star/ui/UIElementType.hpp>
+#ifndef _COM_SUN_STAR_UI_UIELEMENTTYPE_HPP_
+#include <com/sun/star/ui/UIElementType.hpp>
#endif
-#ifndef _DRAFTS_COM_SUN_STAR_UI_CONFIGURATIONEVENT_HPP_
-#include <drafts/com/sun/star/ui/ConfigurationEvent.hpp>
+#ifndef _COM_SUN_STAR_UI_CONFIGURATIONEVENT_HPP_
+#include <com/sun/star/ui/ConfigurationEvent.hpp>
#endif
#ifndef _COM_SUN_STAR_LANG_DISPOSEDEXCEPTION_HPP_
@@ -113,8 +113,8 @@
#include <com/sun/star/io/XStream.hpp>
#endif
-#ifndef _DRAFTS_COM_SUN_STAR_UI_IMAGETYPE_HPP_
-#include <drafts/com/sun/star/ui/ImageType.hpp>
+#ifndef _COM_SUN_STAR_UI_IMAGETYPE_HPP_
+#include <com/sun/star/ui/ImageType.hpp>
#endif
//_________________________________________________________________________________________________________________
@@ -155,13 +155,13 @@ using namespace ::com::sun::star::embed;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::beans;
-using namespace ::drafts::com::sun::star::ui;
+using namespace ::com::sun::star::ui;
// Image sizes for our toolbars/menus
const sal_Int32 IMAGE_SIZE_NORMAL = 16;
const sal_Int32 IMAGE_SIZE_LARGE = 26;
-const sal_Int16 MAX_IMAGETYPE_VALUE = ::drafts::com::sun::star::ui::ImageType::COLOR_HIGHCONTRAST|
- ::drafts::com::sun::star::ui::ImageType::SIZE_LARGE;
+const sal_Int16 MAX_IMAGETYPE_VALUE = ::com::sun::star::ui::ImageType::COLOR_HIGHCONTRAST|
+ ::com::sun::star::ui::ImageType::SIZE_LARGE;
static const char IMAGE_FOLDER[] = "images";
static const char BITMAPS_FOLDER[] = "Bitmaps";
@@ -198,18 +198,18 @@ DEFINE_XINTERFACE_6 ( ImageManager
DIRECT_INTERFACE( css::lang::XTypeProvider ),
DIRECT_INTERFACE( css::lang::XComponent ),
DIRECT_INTERFACE( css::lang::XInitialization ),
- DIRECT_INTERFACE( drafts::com::sun::star::ui::XImageManager ),
- DIRECT_INTERFACE( drafts::com::sun::star::ui::XUIConfiguration ),
- DIRECT_INTERFACE( drafts::com::sun::star::ui::XUIConfigurationPersistence )
+ DIRECT_INTERFACE( ::com::sun::star::ui::XImageManager ),
+ DIRECT_INTERFACE( ::com::sun::star::ui::XUIConfiguration ),
+ DIRECT_INTERFACE( ::com::sun::star::ui::XUIConfigurationPersistence )
)
DEFINE_XTYPEPROVIDER_6 ( ImageManager ,
css::lang::XTypeProvider ,
css::lang::XComponent ,
css::lang::XInitialization ,
- drafts::com::sun::star::ui::XImageManager ,
- drafts::com::sun::star::ui::XUIConfiguration ,
- drafts::com::sun::star::ui::XUIConfigurationPersistence
+ ::com::sun::star::ui::XImageManager ,
+ ::com::sun::star::ui::XUIConfiguration ,
+ ::com::sun::star::ui::XUIConfigurationPersistence
)
static OUString RetrieveNameFromResourceURL( const rtl::OUString& aResourceURL )
@@ -254,23 +254,23 @@ static sal_Bool implts_checkAndScaleGraphic( uno::Reference< XGraphic >& rOutGra
static sal_Int16 implts_convertImageTypeToIndex( sal_Int16 nImageType )
{
sal_Int16 nIndex( 0 );
- if ( nImageType & ::drafts::com::sun::star::ui::ImageType::SIZE_LARGE )
+ if ( nImageType & ::com::sun::star::ui::ImageType::SIZE_LARGE )
nIndex += 1;
- if ( nImageType & ::drafts::com::sun::star::ui::ImageType::COLOR_HIGHCONTRAST )
+ if ( nImageType & ::com::sun::star::ui::ImageType::COLOR_HIGHCONTRAST )
nIndex += 2;
return nIndex;
}
static sal_Int16 implts_convertIndexToImageType( sal_Int16 nIndex )
{
- sal_Int16 nImageType = ::drafts::com::sun::star::ui::ImageType::SIZE_DEFAULT;
+ sal_Int16 nImageType = ::com::sun::star::ui::ImageType::SIZE_DEFAULT;
switch ( nImageType )
{
case 0: break;
- case 1: nImageType |= ::drafts::com::sun::star::ui::ImageType::SIZE_LARGE; break;
- case 2: nImageType |= ::drafts::com::sun::star::ui::ImageType::COLOR_HIGHCONTRAST; break;
- case 3: nImageType |= ::drafts::com::sun::star::ui::ImageType::COLOR_HIGHCONTRAST|
- ::drafts::com::sun::star::ui::ImageType::SIZE_LARGE; break;
+ case 1: nImageType |= ::com::sun::star::ui::ImageType::SIZE_LARGE; break;
+ case 2: nImageType |= ::com::sun::star::ui::ImageType::COLOR_HIGHCONTRAST; break;
+ case 3: nImageType |= ::com::sun::star::ui::ImageType::COLOR_HIGHCONTRAST|
+ ::com::sun::star::ui::ImageType::SIZE_LARGE; break;
}
return nImageType;
}
@@ -944,7 +944,7 @@ throw ( ::com::sun::star::container::ElementExistException,
}
// XUIConfiguration
-void SAL_CALL ImageManager::addConfigurationListener( const uno::Reference< ::drafts::com::sun::star::ui::XUIConfigurationListener >& xListener )
+void SAL_CALL ImageManager::addConfigurationListener( const uno::Reference< ::com::sun::star::ui::XUIConfigurationListener >& xListener )
throw (::com::sun::star::uno::RuntimeException)
{
{
@@ -958,7 +958,7 @@ throw (::com::sun::star::uno::RuntimeException)
m_aListenerContainer.addInterface( ::getCppuType( ( const uno::Reference< XUIConfigurationListener >* ) NULL ), xListener );
}
-void SAL_CALL ImageManager::removeConfigurationListener( const uno::Reference< ::drafts::com::sun::star::ui::XUIConfigurationListener >& xListener )
+void SAL_CALL ImageManager::removeConfigurationListener( const uno::Reference< ::com::sun::star::ui::XUIConfigurationListener >& xListener )
throw (::com::sun::star::uno::RuntimeException)
{
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
@@ -1165,7 +1165,7 @@ sal_Bool SAL_CALL ImageManager::isReadOnly() throw (::com::sun::star::uno::Runti
void ImageManager::implts_notifyContainerListener( const ConfigurationEvent& aEvent, NotifyOp eOp )
{
::cppu::OInterfaceContainerHelper* pContainer = m_aListenerContainer.getContainer(
- ::getCppuType( ( const css::uno::Reference< drafts::com::sun::star::ui::XUIConfigurationListener >*) NULL ) );
+ ::getCppuType( ( const css::uno::Reference< ::com::sun::star::ui::XUIConfigurationListener >*) NULL ) );
if ( pContainer != NULL )
{
::cppu::OInterfaceIteratorHelper pIterator( *pContainer );
@@ -1176,13 +1176,13 @@ void ImageManager::implts_notifyContainerListener( const ConfigurationEvent& aEv
switch ( eOp )
{
case NotifyOp_Replace:
- ((drafts::com::sun::star::ui::XUIConfigurationListener*)pIterator.next())->elementReplaced( aEvent );
+ ((::com::sun::star::ui::XUIConfigurationListener*)pIterator.next())->elementReplaced( aEvent );
break;
case NotifyOp_Insert:
- ((drafts::com::sun::star::ui::XUIConfigurationListener*)pIterator.next())->elementInserted( aEvent );
+ ((::com::sun::star::ui::XUIConfigurationListener*)pIterator.next())->elementInserted( aEvent );
break;
case NotifyOp_Remove:
- ((drafts::com::sun::star::ui::XUIConfigurationListener*)pIterator.next())->elementRemoved( aEvent );
+ ((::com::sun::star::ui::XUIConfigurationListener*)pIterator.next())->elementRemoved( aEvent );
break;
}
}