Kaydet (Commit) 60d60caf authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Renamed XPropertySet2 to XPropertySetOption.

To avoid making it appear to be a derived interface of XPropertySet
when it's not.
üst 11207ae9
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <cppuhelper/interfacecontainer.hxx> #include <cppuhelper/interfacecontainer.hxx>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySet2.hpp> #include <com/sun/star/beans/XPropertySetOption.hpp>
#include <com/sun/star/beans/XMultiPropertySet.hpp> #include <com/sun/star/beans/XMultiPropertySet.hpp>
#include <com/sun/star/beans/XFastPropertySet.hpp> #include <com/sun/star/beans/XFastPropertySet.hpp>
...@@ -352,7 +352,7 @@ public: ...@@ -352,7 +352,7 @@ public:
class OPropertySetHelper : public ::com::sun::star::beans::XMultiPropertySet, class OPropertySetHelper : public ::com::sun::star::beans::XMultiPropertySet,
public ::com::sun::star::beans::XFastPropertySet, public ::com::sun::star::beans::XFastPropertySet,
public ::com::sun::star::beans::XPropertySet, public ::com::sun::star::beans::XPropertySet,
public ::com::sun::star::beans::XPropertySet2 public ::com::sun::star::beans::XPropertySetOption
{ {
public: public:
/** /**
...@@ -506,7 +506,7 @@ public: ...@@ -506,7 +506,7 @@ public:
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener > & Listener ) const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener > & Listener )
throw(::com::sun::star::uno::RuntimeException); throw(::com::sun::star::uno::RuntimeException);
// XPropertySet2 // XPropertySetOption
virtual void SAL_CALL enableChangeListenerNotification( sal_Bool bEnable ) virtual void SAL_CALL enableChangeListenerNotification( sal_Bool bEnable )
throw(::com::sun::star::uno::RuntimeException); throw(::com::sun::star::uno::RuntimeException);
......
...@@ -61,7 +61,7 @@ UNOTYPES= \ ...@@ -61,7 +61,7 @@ UNOTYPES= \
com.sun.star.beans.XMultiPropertySet \ com.sun.star.beans.XMultiPropertySet \
com.sun.star.beans.XPropertyAccess \ com.sun.star.beans.XPropertyAccess \
com.sun.star.beans.XPropertySet \ com.sun.star.beans.XPropertySet \
com.sun.star.beans.XPropertySet2 \ com.sun.star.beans.XPropertySetOption \
com.sun.star.bridge.UnoUrlResolver \ com.sun.star.bridge.UnoUrlResolver \
com.sun.star.bridge.XUnoUrlResolver \ com.sun.star.bridge.XUnoUrlResolver \
com.sun.star.connection.SocketPermission \ com.sun.star.connection.SocketPermission \
......
...@@ -288,5 +288,5 @@ UDK_3.7 { # OOo 3.4 ...@@ -288,5 +288,5 @@ UDK_3.7 { # OOo 3.4
UDK_3.8 { # LibO 3.5 UDK_3.8 { # LibO 3.5
global: global:
?enableChangeListenerNotification@OPropertySetHelper@cppu@@UAAXE@Z; ?enableChangeListenerNotification@OPropertySetHelper@cppu@@UAAXE@Z;
??_7OPropertySetHelper@cppu@@6BXPropertySet2@beans@star@sun@com@@@; ??_7OPropertySetHelper@cppu@@6BXPropertySetOption@beans@star@sun@com@@@;
} UDK_3.7; } UDK_3.7;
...@@ -218,7 +218,7 @@ Any OPropertySetHelper::queryInterface( const ::com::sun::star::uno::Type & rTyp ...@@ -218,7 +218,7 @@ Any OPropertySetHelper::queryInterface( const ::com::sun::star::uno::Type & rTyp
return ::cppu::queryInterface( return ::cppu::queryInterface(
rType, rType,
static_cast< XPropertySet * >( this ), static_cast< XPropertySet * >( this ),
static_cast< XPropertySet2 * >( this ), static_cast< XPropertySetOption * >( this ),
static_cast< XMultiPropertySet * >( this ), static_cast< XMultiPropertySet * >( this ),
static_cast< XFastPropertySet * >( this ) ); static_cast< XFastPropertySet * >( this ) );
} }
...@@ -231,7 +231,7 @@ Any OPropertySetHelper::queryInterface( const ::com::sun::star::uno::Type & rTyp ...@@ -231,7 +231,7 @@ Any OPropertySetHelper::queryInterface( const ::com::sun::star::uno::Type & rTyp
{ {
Sequence< ::com::sun::star::uno::Type > aTypes( 4 ); Sequence< ::com::sun::star::uno::Type > aTypes( 4 );
aTypes[ 0 ] = XPropertySet::static_type(); aTypes[ 0 ] = XPropertySet::static_type();
aTypes[ 1 ] = XPropertySet2::static_type(); aTypes[ 1 ] = XPropertySetOption::static_type();
aTypes[ 2 ] = XMultiPropertySet::static_type(); aTypes[ 2 ] = XMultiPropertySet::static_type();
aTypes[ 3 ] = XFastPropertySet::static_type(); aTypes[ 3 ] = XFastPropertySet::static_type();
return aTypes; return aTypes;
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <com/sun/star/lang/XServiceName.hpp> #include <com/sun/star/lang/XServiceName.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/beans/XPropertyState.hpp> #include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/beans/XPropertySet2.hpp> #include <com/sun/star/beans/XPropertySetOption.hpp>
#include <comphelper/docpasswordhelper.hxx> #include <comphelper/docpasswordhelper.hxx>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <tools/urlobj.hxx> #include <tools/urlobj.hxx>
...@@ -169,18 +169,18 @@ uno::Sequence< beans::NamedValue > ScfApiHelper::QueryEncryptionDataForMedium( S ...@@ -169,18 +169,18 @@ uno::Sequence< beans::NamedValue > ScfApiHelper::QueryEncryptionDataForMedium( S
ScfPropertySet::~ScfPropertySet() ScfPropertySet::~ScfPropertySet()
{ {
Reference<beans::XPropertySet2> xPropSet2(mxPropSet, UNO_QUERY); Reference<beans::XPropertySetOption> xPropSetOpt(mxPropSet, UNO_QUERY);
if (xPropSet2.is()) if (xPropSetOpt.is())
xPropSet2->enableChangeListenerNotification(true); xPropSetOpt->enableChangeListenerNotification(true);
} }
void ScfPropertySet::Set( Reference< XPropertySet > xPropSet ) void ScfPropertySet::Set( Reference< XPropertySet > xPropSet )
{ {
mxPropSet = xPropSet; mxPropSet = xPropSet;
mxMultiPropSet.set( mxPropSet, UNO_QUERY ); mxMultiPropSet.set( mxPropSet, UNO_QUERY );
Reference<beans::XPropertySet2> xPropSet2(mxPropSet, UNO_QUERY); Reference<beans::XPropertySetOption> xPropSetOpt(mxPropSet, UNO_QUERY);
if (xPropSet2.is()) if (xPropSetOpt.is())
xPropSet2->enableChangeListenerNotification(false); xPropSetOpt->enableChangeListenerNotification(false);
} }
OUString ScfPropertySet::GetServiceName() const OUString ScfPropertySet::GetServiceName() const
......
...@@ -159,10 +159,10 @@ $(eval $(call gb_UnoApiTarget_add_idlfiles,udkapi,\ ...@@ -159,10 +159,10 @@ $(eval $(call gb_UnoApiTarget_add_idlfiles,udkapi,\
udkapi/com/sun/star/beans/XPropertyChangeListener \ udkapi/com/sun/star/beans/XPropertyChangeListener \
udkapi/com/sun/star/beans/XPropertyContainer \ udkapi/com/sun/star/beans/XPropertyContainer \
udkapi/com/sun/star/beans/XPropertySet \ udkapi/com/sun/star/beans/XPropertySet \
udkapi/com/sun/star/beans/XPropertySet2 \
udkapi/com/sun/star/beans/XPropertySetInfo \ udkapi/com/sun/star/beans/XPropertySetInfo \
udkapi/com/sun/star/beans/XPropertySetInfoChangeListener \ udkapi/com/sun/star/beans/XPropertySetInfoChangeListener \
udkapi/com/sun/star/beans/XPropertySetInfoChangeNotifier \ udkapi/com/sun/star/beans/XPropertySetInfoChangeNotifier \
udkapi/com/sun/star/beans/XPropertySetOption \
udkapi/com/sun/star/beans/XPropertyState \ udkapi/com/sun/star/beans/XPropertyState \
udkapi/com/sun/star/beans/XPropertyStateChangeListener \ udkapi/com/sun/star/beans/XPropertyStateChangeListener \
udkapi/com/sun/star/beans/XPropertyWithState \ udkapi/com/sun/star/beans/XPropertyWithState \
......
...@@ -2,17 +2,11 @@ ...@@ -2,17 +2,11 @@
#ifndef __com_sun_star_beans_XPropertySet2_idl__ #ifndef __com_sun_star_beans_XPropertySet2_idl__
#define __com_sun_star_beans_XPropertySet2_idl__ #define __com_sun_star_beans_XPropertySet2_idl__
#include <com/sun/star/beans/XPropertySet.idl> #include <com/sun/star/uno/XInterface.idl>
module com { module sun { module star { module beans { module com { module sun { module star { module beans {
/** interface XPropertySetOption: com::sun::star::uno::XInterface
* This interface should be conceptually derived from XPropertySet but isn't
* due to ABI compatibility on Windows; cppu::OPrpertySetHelper exports
* XPropertySet's vtable symbol in the UDK_3_0_0 section which must stay
* there. Once we hit LibreOffice 4 we should clean this mess up.
*/
interface XPropertySet2: com::sun::star::uno::XInterface
{ {
/** /**
* Turn on or off notifying change listeners on property value change. It * Turn on or off notifying change listeners on property value change. It
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment