diff options
author | Cao Cuong Ngo <cao.cuong.ngo@gmail.com> | 2013-06-18 14:00:48 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2013-09-02 13:51:48 +0200 |
commit | 91d9430d68434cd267b481f73d4bc522a902eeda (patch) | |
tree | acff987fef92240ffd063a815048ded9c21ffb2f /sfx2 | |
parent | 7af023246b59ca73a42f3f5164d6f0321f424c0f (diff) |
CMIS properties dialog
Rename CmisPropertyValues to CmisProperty
Change-Id: I7360e6b55406c1abe381c8d915be41d972498167
Diffstat (limited to 'sfx2')
-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 |
4 files changed, 21 insertions, 21 deletions
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( ) ) { |