diff options
author | Cao Cuong Ngo <cao.cuong.ngo@gmail.com> | 2013-06-17 15:17:00 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2013-09-02 13:51:48 +0200 |
commit | beff419a6e9e5ae16e84366d628ca478ab1afdb8 (patch) | |
tree | 2bf59c933ab7cecf3c82f631070dde5989a057b0 /offapi | |
parent | CMIS properties dialog (diff) | |
download | core-beff419a6e9e5ae16e84366d628ca478ab1afdb8.tar.gz core-beff419a6e9e5ae16e84366d628ca478ab1afdb8.zip |
CMIS properties
Create a CmisPropertyValue with additional DisplayName,
Updatable and Required properties.
Change-Id: Ia20d76a739ac5c51d7c89ef6f1a40a299697cb0e
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 1 | ||||
-rw-r--r-- | offapi/com/sun/star/document/CmisPropertyValue.idl | 57 | ||||
-rw-r--r-- | offapi/com/sun/star/document/XCmisDocument.idl | 8 |
3 files changed, 60 insertions, 6 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 8aff46bb2f39..00d29b9dc722 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -2171,6 +2171,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/document,\ AmbigousFilterRequest \ BrokenPackageRequest \ ChangedByOthersRequest \ + CmisPropertyValue \ CorruptedFilterConfigurationException \ DocumentEvent \ EmptyUndoStackException \ diff --git a/offapi/com/sun/star/document/CmisPropertyValue.idl b/offapi/com/sun/star/document/CmisPropertyValue.idl new file mode 100644 index 000000000000..f60bb6d68899 --- /dev/null +++ b/offapi/com/sun/star/document/CmisPropertyValue.idl @@ -0,0 +1,57 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * 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> + +module com { module sun { module star { module document { + +/** specifies a CMIS property value. + */ +struct CmisPropertyValue +{ + /** unique ID of the Cmis property + */ + string Id; + + /** specifies the display name of the CMIS property. + */ + string Name; + + /** specifies if the property is updatable. + */ + boolean Updatable; + + /** specifies if the property is required and + can not be empty. + */ + boolean Required; + + /** specifies value of the property + */ + any Value; +}; + + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/document/XCmisDocument.idl b/offapi/com/sun/star/document/XCmisDocument.idl index d1a94f9f998c..66e478a77651 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/beans/PropertyValues.idl> +#include <com/sun/star/document/CmisPropertyValue.idl> #include <com/sun/star/uno/XInterface.idl> module com { module sun { module star { module document { @@ -46,11 +46,7 @@ interface XCmisDocument : com::sun::star::uno::XInterface /** Contains the properties values named after their CMIS ID. */ - [attribute] com::sun::star::beans::PropertyValues CmisPropertiesValues; - - /** Contains the property names to show to the user from their CMIS id. - */ - [attribute] com::sun::star::beans::PropertyValues CmisPropertiesDisplayNames; + [attribute] sequence <com::sun::star::document::CmisPropertyValue> CmisPropertiesValues; }; }; }; }; }; |