summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-07-18 11:30:59 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2013-09-02 13:51:53 +0200
commit96d4c5358348472c347d62ab67afb52d880cd796 (patch)
tree16e43220be7280d9abe8f8a5894a4d1b83e8d787 /include
parentcca32681386d1282754fbaca7a19ec14c3ad2264 (diff)
CMIS properties dialog
Use Sequence directly instead of creating intermediate properties Change-Id: I194342678d7f56f34cc24a56440827e795e6be95
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/dinfdlg.hxx18
1 files changed, 4 insertions, 14 deletions
diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx
index 8f45e524eb07..caadde76dda8 100644
--- a/include/sfx2/dinfdlg.hxx
+++ b/include/sfx2/dinfdlg.hxx
@@ -52,8 +52,6 @@ namespace com { namespace sun { namespace star {
} } }
struct CustomProperty;
-struct CmisProperty;
-
// class SfxDocumentInfoItem ---------------------------------------------
@@ -81,7 +79,7 @@ private:
sal_Bool m_bDeleteUserData;
sal_Bool m_bUseUserData;
std::vector< CustomProperty* > m_aCustomProperties;
- std::vector< CmisProperty* > m_aCmisProperties;
+ ::com::sun::star::uno::Sequence< ::com::sun::star::document::CmisProperty > m_aCmisProperties;
public:
TYPEINFO();
@@ -101,7 +99,7 @@ public:
::com::sun::star::document::XDocumentProperties> & i_xDocProps,
bool i_bDoNotUpdateUserDefined = false)
const;
- sal_Bool isCmisDocument() const { return m_aCmisProperties.size() > 0;}
+ sal_Bool isCmisDocument() const { return m_aCmisProperties.getLength() > 0;}
sal_Bool isAutoloadEnabled() const { return m_isAutoloadEnabled; }
void setAutoloadEnabled(sal_Bool i_val) { m_isAutoloadEnabled = i_val; }
@@ -164,18 +162,10 @@ public:
void AddCustomProperty( const OUString& sName,
const com::sun::star::uno::Any& rValue );
- std::vector< CmisProperty* > GetCmisProperties() const;
-
::com::sun::star::uno::Sequence< ::com::sun::star::document::CmisProperty >
- GetCmisPropertiesSeq() const;
-
- void ClearCmisProperties();
- void AddCmisProperty( const OUString& sId, const OUString& sName,
- const bool bUpdatable, const bool bRequired,
- const bool bMultiValued, const bool bOpenChoice,
- const com::sun::star::uno::Any& Choices,
- const com::sun::star::uno::Any& rValue );
+ GetCmisProperties() const;
+ void SetCmisProperties(::com::sun::star::uno::Sequence< ::com::sun::star::document::CmisProperty > cmisProps );
virtual SfxPoolItem* Clone( SfxItemPool* pPool = NULL ) const;
virtual int operator==( const SfxPoolItem& ) const;
virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;