diff options
-rw-r--r-- | include/sfx2/dinfdlg.hxx | 8 | ||||
-rw-r--r-- | include/sfx2/sfxbasemodel.hxx | 10 | ||||
-rw-r--r-- | offapi/UnoApi_offapi.mk | 2 | ||||
-rw-r--r-- | offapi/com/sun/star/document/CmisProperty.idl (renamed from offapi/com/sun/star/document/CmisPropertyValue.idl) | 8 | ||||
-rw-r--r-- | offapi/com/sun/star/document/XCmisDocument.idl | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 10 | ||||
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 24 | ||||
-rw-r--r-- | sfx2/source/view/sfxbasecontroller.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/cmis/cmis_content.cxx | 15 |
10 files changed, 42 insertions, 47 deletions
diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx index 4d82f419b1fe..6f0d57a2ede9 100644 --- a/include/sfx2/dinfdlg.hxx +++ b/include/sfx2/dinfdlg.hxx @@ -26,7 +26,7 @@ #include <com/sun/star/util/DateTime.hpp> #include <com/sun/star/util/Duration.hpp> -#include <com/sun/star/document/CmisPropertyValue.hpp> +#include <com/sun/star/document/CmisProperty.hpp> #include <svl/stritem.hxx> #include <svl/zforlist.hxx> @@ -90,7 +90,7 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentProperties> & i_xDocProps, const ::com::sun::star::uno::Sequence< - ::com::sun::star::document::CmisPropertyValue> & i_cmisProps, + ::com::sun::star::document::CmisProperty> & i_cmisProps, sal_Bool bUseUserData ); SfxDocumentInfoItem( const SfxDocumentInfoItem& ); virtual ~SfxDocumentInfoItem(); @@ -640,7 +640,7 @@ public: void ClearAllLines(); void DoScroll( sal_Int32 nNewPos ); - ::com::sun::star::uno::Sequence< ::com::sun::star::document::CmisPropertyValue > + ::com::sun::star::uno::Sequence< ::com::sun::star::document::CmisProperty > GetCmisProperties() const; void updateLineWidth(); }; @@ -668,7 +668,7 @@ public: inline bool AreAllLinesValid() const { return m_pPropertiesWin->AreAllLinesValid(); } inline void ClearAllLines() { m_pPropertiesWin->ClearAllLines(); } - inline ::com::sun::star::uno::Sequence< ::com::sun::star::document::CmisPropertyValue > + inline ::com::sun::star::uno::Sequence< ::com::sun::star::document::CmisProperty > GetCmisProperties() const { return m_pPropertiesWin->GetCmisProperties(); } void Init(VclBuilderContainer& rParent); diff --git a/include/sfx2/sfxbasemodel.hxx b/include/sfx2/sfxbasemodel.hxx index 37bef5205b7b..d36eeb9ab0ae 100644 --- a/include/sfx2/sfxbasemodel.hxx +++ b/include/sfx2/sfxbasemodel.hxx @@ -63,7 +63,7 @@ #include <com/sun/star/frame/XStorable2.hpp> #include <com/sun/star/frame/XLoadable.hpp> #include <com/sun/star/beans/PropertyValue.hpp> -#include <com/sun/star/document/CmisPropertyValue.hpp> +#include <com/sun/star/document/CmisProperty.hpp> #include <com/sun/star/lang/EventObject.hpp> #include <com/sun/star/datatransfer/XTransferable.hpp> #include <com/sun/star/script/provider/XScriptProviderSupplier.hpp> @@ -1308,12 +1308,12 @@ public: // XCmisDocument - virtual css::uno::Sequence< css::document::CmisPropertyValue > - SAL_CALL getCmisPropertiesValues() + virtual css::uno::Sequence< css::document::CmisProperty > + SAL_CALL getCmisProperties() throw (css::uno::RuntimeException); - virtual void SAL_CALL setCmisPropertiesValues( + virtual void SAL_CALL setCmisProperties( const css::uno::Sequence< - css::document::CmisPropertyValue >& _cmispropertiesvalues ) + css::document::CmisProperty >& _cmisproperties ) throw (css::uno::RuntimeException); virtual void SAL_CALL checkOut( ) throw ( css::uno::RuntimeException ); diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 00d29b9dc722..5d1a6d93f015 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -2171,7 +2171,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/document,\ AmbigousFilterRequest \ BrokenPackageRequest \ ChangedByOthersRequest \ - CmisPropertyValue \ + CmisProperty \ CorruptedFilterConfigurationException \ DocumentEvent \ EmptyUndoStackException \ diff --git a/offapi/com/sun/star/document/CmisPropertyValue.idl b/offapi/com/sun/star/document/CmisProperty.idl index f60bb6d68899..f6009a0f3685 100644 --- a/offapi/com/sun/star/document/CmisPropertyValue.idl +++ b/offapi/com/sun/star/document/CmisProperty.idl @@ -16,16 +16,14 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef __com_sun_star_document_CmisPropertyValue_idl__ -#define __com_sun_star_document_CmisPropertyValue_idl__ - -#include <com/sun/star/beans/PropertyValue.idl> +#ifndef __com_sun_star_document_CmisProperty_idl__ +#define __com_sun_star_document_CmisProperty_idl__ module com { module sun { module star { module document { /** specifies a CMIS property value. */ -struct CmisPropertyValue +struct CmisProperty { /** unique ID of the Cmis property */ diff --git a/offapi/com/sun/star/document/XCmisDocument.idl b/offapi/com/sun/star/document/XCmisDocument.idl index 66e478a77651..51bcf508649f 100644 --- a/offapi/com/sun/star/document/XCmisDocument.idl +++ b/offapi/com/sun/star/document/XCmisDocument.idl @@ -9,7 +9,7 @@ #ifndef __com_sun_star_document_XCmisDocument_idl__ #define __com_sun_star_document_XCmisDocument_idl__ -#include <com/sun/star/document/CmisPropertyValue.idl> +#include <com/sun/star/document/CmisProperty.idl> #include <com/sun/star/uno/XInterface.idl> module com { module sun { module star { module document { @@ -46,7 +46,7 @@ interface XCmisDocument : com::sun::star::uno::XInterface /** Contains the properties values named after their CMIS ID. */ - [attribute] sequence <com::sun::star::document::CmisPropertyValue> CmisPropertiesValues; + [attribute] sequence <com::sun::star::document::CmisProperty> CmisProperties; }; }; }; }; }; diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index dada9736c753..111c359f87d9 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -45,7 +45,7 @@ #include <com/sun/star/util/DateWithTimezone.hpp> #include <com/sun/star/util/Duration.hpp> #include <com/sun/star/document/XDocumentProperties.hpp> -#include <com/sun/star/document/CmisPropertyValue.hpp> +#include <com/sun/star/document/CmisProperty.hpp> #include <vcl/timer.hxx> #include "sfx2/dinfdlg.hxx" @@ -252,7 +252,7 @@ SfxDocumentInfoItem::SfxDocumentInfoItem() SfxDocumentInfoItem::SfxDocumentInfoItem( const OUString& rFile, const uno::Reference<document::XDocumentProperties>& i_xDocProps, - const uno::Sequence<document::CmisPropertyValue>& i_cmisProps, + const uno::Sequence<document::CmisProperty>& i_cmisProps, sal_Bool bIs ) : SfxStringItem( SID_DOCINFO, rFile ) , m_AutoloadDelay( i_xDocProps->getAutoloadSecs() ) @@ -2611,9 +2611,9 @@ void CmisPropertiesWindow::DoScroll( sal_Int32 nNewPos ) } } -Sequence< document::CmisPropertyValue > CmisPropertiesWindow::GetCmisProperties() const +Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() const { - Sequence< document::CmisPropertyValue > aPropertiesSeq( m_aCmisPropertiesLines.size() ); + Sequence< document::CmisProperty > aPropertiesSeq( m_aCmisPropertiesLines.size() ); sal_Int32 i = 0; std::vector< CmisPropertyLine* >::const_iterator pIter; for ( pIter = m_aCmisPropertiesLines.begin(); @@ -2792,7 +2792,7 @@ sal_Bool SfxCmisPropertiesPage::FillItemSet( SfxItemSet& rSet ) if ( pInfo ) { pInfo->ClearCmisProperties(); - Sequence< document::CmisPropertyValue > aPropertySeq = m_pPropertiesCtrl->GetCmisProperties(); + Sequence< document::CmisProperty > aPropertySeq = m_pPropertiesCtrl->GetCmisProperties(); sal_Int32 i = 0, nCount = aPropertySeq.getLength(); for ( ; i < nCount; ++i ) { diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 7472cb78bb17..f7b7a7fc4a4e 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -492,7 +492,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) } Reference< XCmisDocument > xCmisDoc( GetModel(), uno::UNO_QUERY ); - uno::Sequence< document::CmisPropertyValue> aCmisProperties = xCmisDoc->getCmisPropertiesValues(); + uno::Sequence< document::CmisProperty> aCmisProperties = xCmisDoc->getCmisProperties(); SfxDocumentInfoItem aDocInfoItem( aURL, getDocProperties(), aCmisProperties, IsUseUserData() ); @@ -923,7 +923,7 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) { bool bShow = false; Reference< XCmisDocument > xCmisDoc( GetModel(), uno::UNO_QUERY ); - uno::Sequence< document::CmisPropertyValue> aCmisProperties = xCmisDoc->getCmisPropertiesValues(); + uno::Sequence< document::CmisProperty> aCmisProperties = xCmisDoc->getCmisProperties(); if ( xCmisDoc->isVersionable( ) && aCmisProperties.hasElements( ) ) { @@ -954,7 +954,7 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) { bool bShow = false; Reference< XCmisDocument > xCmisDoc( GetModel(), uno::UNO_QUERY ); - uno::Sequence< document::CmisPropertyValue> aCmisProperties = xCmisDoc->getCmisPropertiesValues( ); + uno::Sequence< document::CmisProperty> aCmisProperties = xCmisDoc->getCmisProperties( ); if ( xCmisDoc->isVersionable( ) && aCmisProperties.hasElements( ) ) { diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index f7d556b496f6..8ee40854fe21 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -120,7 +120,7 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using ::com::sun::star::beans::PropertyValue; -using ::com::sun::star::document::CmisPropertyValue; +using ::com::sun::star::document::CmisProperty; using ::com::sun::star::frame::XFrame; using ::com::sun::star::frame::XController; using ::com::sun::star::frame::XController2; @@ -212,7 +212,7 @@ struct IMPL_SfxBaseModel_DataContainer : public ::sfx2::IModifiableDocument Reference< frame::XUntitledNumbers > m_xNumberedControllers; Reference< rdf::XDocumentMetadataAccess> m_xDocumentMetadata; ::rtl::Reference< ::sfx2::DocumentUndoManager > m_pDocumentUndoManager; - Sequence< document::CmisPropertyValue> m_cmisPropertiesValues; + Sequence< document::CmisProperty> m_cmisProperties; IMPL_SfxBaseModel_DataContainer( ::osl::Mutex& rMutex, SfxObjectShell* pObjectShell ) : m_pObjectShell ( pObjectShell ) @@ -230,7 +230,7 @@ struct IMPL_SfxBaseModel_DataContainer : public ::sfx2::IModifiableDocument , m_xNumberedControllers () , m_xDocumentMetadata () // lazy , m_pDocumentUndoManager () - , m_cmisPropertiesValues () + , m_cmisProperties () { // increase global instance counter. ++g_nInstanceCounter; @@ -2462,16 +2462,16 @@ void SAL_CALL SfxBaseModel::notifyDocumentEvent( const OUString&, const Referenc throw lang::NoSupportException("SfxBaseModel controlls all the sent notifications itself!", Reference< XInterface >() ); } -Sequence< document::CmisPropertyValue > SAL_CALL SfxBaseModel::getCmisPropertiesValues() +Sequence< document::CmisProperty > SAL_CALL SfxBaseModel::getCmisProperties() throw ( RuntimeException ) { - return m_pData->m_cmisPropertiesValues; + return m_pData->m_cmisProperties; } -void SAL_CALL SfxBaseModel::setCmisPropertiesValues( const Sequence< document::CmisPropertyValue >& _cmispropertiesvalues ) +void SAL_CALL SfxBaseModel::setCmisProperties( const Sequence< document::CmisProperty >& _cmisproperties ) throw ( RuntimeException ) { - m_pData->m_cmisPropertiesValues = _cmispropertiesvalues; + m_pData->m_cmisProperties = _cmisproperties; } void SAL_CALL SfxBaseModel::checkOut( ) throw ( RuntimeException ) @@ -2637,12 +2637,12 @@ void SfxBaseModel::loadCmisProperties( ) Reference<ucb::XCommandEnvironment>(), comphelper::getProcessComponentContext() ); Reference < beans::XPropertySetInfo > xProps = aContent.getProperties(); - OUString aCmisPropsValues( "CmisPropertiesValues" ); - if ( xProps->hasPropertyByName( aCmisPropsValues ) ) + OUString aCmisProps( "CmisProperties" ); + if ( xProps->hasPropertyByName( aCmisProps ) ) { - Sequence< document::CmisPropertyValue> aCmisValues; - aContent.getPropertyValue( aCmisPropsValues ) >>= aCmisValues; - setCmisPropertiesValues( aCmisValues ); + Sequence< document::CmisProperty> aCmisProperties; + aContent.getPropertyValue( aCmisProps ) >>= aCmisProperties; + setCmisProperties( aCmisProperties ); } } catch (const ucb::ContentCreationException &) diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx index 4e3bbb61b43a..45720f5326e6 100644 --- a/sfx2/source/view/sfxbasecontroller.cxx +++ b/sfx2/source/view/sfxbasecontroller.cxx @@ -1429,7 +1429,7 @@ void SfxBaseController::ShowInfoBars( ) Reference< document::XCmisDocument > xCmisDoc( m_pData->m_pViewShell->GetObjectShell()->GetModel(), uno::UNO_QUERY ); if ( xCmisDoc.is( ) && xCmisDoc->canCheckOut( ) ) { - uno::Sequence< document::CmisPropertyValue> aCmisProperties = xCmisDoc->getCmisPropertiesValues( ); + uno::Sequence< document::CmisProperty> aCmisProperties = xCmisDoc->getCmisProperties( ); if ( xCmisDoc->isVersionable( ) && aCmisProperties.hasElements( ) ) { diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index ac206e7cb80e..c7dd64079e83 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -13,7 +13,7 @@ #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/PropertyValues.hpp> #include <com/sun/star/beans/XPropertySetInfo.hpp> -#include <com/sun/star/document/CmisPropertyValue.hpp> +#include <com/sun/star/document/CmisProperty.hpp> #include <com/sun/star/io/XActiveDataSink.hpp> #include <com/sun/star/io/XActiveDataStreamer.hpp> #include <com/sun/star/lang/IllegalAccessException.hpp> @@ -572,14 +572,14 @@ namespace cmis xRow->appendVoid( rProp ); } } - else if ( rProp.Name == "CmisPropertiesValues" ) + else if ( rProp.Name == "CmisProperties" ) { try { libcmis::ObjectPtr object = getObject( xEnv ); map< string, libcmis::PropertyPtr >& aProperties = object->getProperties( ); - uno::Sequence< document::CmisPropertyValue > aCmisProperties( aProperties.size( ) ); - document::CmisPropertyValue* pCmisProps = aCmisProperties.getArray( ); + uno::Sequence< document::CmisProperty > aCmisProperties( aProperties.size( ) ); + document::CmisProperty* pCmisProps = aCmisProperties.getArray( ); sal_Int32 i = 0; for ( map< string, libcmis::PropertyPtr >::iterator it = aProperties.begin(); it != aProperties.end( ); ++it, ++i ) @@ -1267,11 +1267,8 @@ namespace cmis beans::Property( OUString( "MediaType" ), -1, getCppuType( static_cast< const OUString * >( 0 ) ), beans::PropertyAttribute::BOUND ), - beans::Property( OUString( "CmisPropertiesValues" ), - -1, getCppuType( static_cast< const beans::PropertyValues * >( 0 ) ), - beans::PropertyAttribute::BOUND ), - beans::Property( OUString( "CmisPropertiesDisplayNames" ), - -1, getCppuType( static_cast< const beans::PropertyValues * >( 0 ) ), + beans::Property( OUString( "CmisProperties" ), + -1, getCppuType( static_cast< const uno::Sequence< document::CmisProperty> * >( 0 ) ), beans::PropertyAttribute::BOUND ), beans::Property( OUString( "IsVersionable" ), -1, getCppuBooleanType(), |