summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-07-18 11:30:59 +0200
committerCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-07-18 11:30:59 +0200
commit2507e671554cc9ec058c0fdb6082898eca4d4bc4 (patch)
treea7d16bc83b1830226341563c94c86f3ef7981a6e /include/sfx2
parent683701d45325f20edec58ca7f57088e956db9b20 (diff)
CMIS properties dialog
Use Sequence directly instead of creating intermediate properties Change-Id: I194342678d7f56f34cc24a56440827e795e6be95
Diffstat (limited to 'include/sfx2')
-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 e677f57d2301..a344bdcf13ab 100644
--- a/include/sfx2/dinfdlg.hxx
+++ b/include/sfx2/dinfdlg.hxx
@@ -50,8 +50,6 @@ namespace com { namespace sun { namespace star {
} } }
struct CustomProperty;
-struct CmisProperty;
-
// class SfxDocumentInfoItem ---------------------------------------------
@@ -79,7 +77,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();
@@ -99,7 +97,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; }
@@ -162,18 +160,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;