Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
eb23b2d9
Kaydet (Commit)
eb23b2d9
authored
Tem 18, 2013
tarafından
Cao Cuong Ngo
Kaydeden (comit)
Cédric Bosdonnat
Eyl 02, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CMIS properties: Add type to the UNO API
Change-Id: Ie4f32bc840cdfab1d5f600991cd6ac8aabcb1f87
üst
96d4c535
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
8 deletions
+69
-8
dinfdlg.hxx
include/sfx2/dinfdlg.hxx
+7
-4
CmisProperty.idl
offapi/com/sun/star/document/CmisProperty.idl
+4
-0
dinfdlg.cxx
sfx2/source/dialog/dinfdlg.cxx
+0
-0
dinfdlg.hrc
sfx2/source/dialog/dinfdlg.hrc
+3
-3
cmis_content.cxx
ucb/source/ucp/cmis/cmis_content.cxx
+32
-1
cmis_strings.hxx
ucb/source/ucp/cmis/cmis_strings.hxx
+23
-0
No files found.
include/sfx2/dinfdlg.hxx
Dosyayı görüntüle @
eb23b2d9
...
...
@@ -584,6 +584,7 @@ public:
struct
CmisPropertyLine
{
OUString
m_sId
;
OUString
m_sType
;
bool
m_bUpdatable
;
bool
m_bRequired
;
bool
m_bMultiValued
;
...
...
@@ -638,8 +639,9 @@ public:
sal_uInt16
GetLineCount
()
const
;
inline
sal_Int32
GetLineHeight
()
const
{
return
m_nLineHeight
;
}
void
AddLine
(
const
OUString
&
sId
,
const
OUString
&
sName
,
const
bool
bUpdatable
,
const
bool
bRequired
,
const
bool
bMultiValued
,
const
bool
bOpenChoice
,
const
OUString
&
sType
,
const
bool
bUpdatable
,
const
bool
bRequired
,
const
bool
bMultiValued
,
const
bool
bOpenChoice
,
com
::
sun
::
star
::
uno
::
Any
&
aChoices
,
com
::
sun
::
star
::
uno
::
Any
&
rAny
);
bool
AreAllLinesValid
()
const
;
...
...
@@ -669,8 +671,9 @@ public:
~
CmisPropertiesControl
();
void
AddLine
(
const
OUString
&
sId
,
const
OUString
&
sName
,
const
bool
bUpdatable
,
const
bool
bRequired
,
const
bool
bMultiValude
,
const
bool
bOpenChoice
,
const
OUString
&
sType
,
const
bool
bUpdatable
,
const
bool
bRequired
,
const
bool
bMultiValude
,
const
bool
bOpenChoice
,
com
::
sun
::
star
::
uno
::
Any
&
aChoices
,
com
::
sun
::
star
::
uno
::
Any
&
rAny
,
bool
bInteractive
);
...
...
offapi/com/sun/star/document/CmisProperty.idl
Dosyayı görüntüle @
eb23b2d9
...
...
@@ -33,6 +33,10 @@ struct CmisProperty
*/
string
Name
;
/**
type
of
the
property
*/
string
Type
;
/**
specifies
if
the
property
is
updatable
.
*/
boolean
Updatable
;
...
...
sfx2/source/dialog/dinfdlg.cxx
Dosyayı görüntüle @
eb23b2d9
This diff is collapsed.
Click to expand it.
sfx2/source/dialog/dinfdlg.hrc
Dosyayı görüntüle @
eb23b2d9
...
...
@@ -31,11 +31,11 @@
#define CUSTOM_TYPE_DURATION 5
#define CUSTOM_TYPE_DATETIME 6
#define CMIS_TYPE_ANY "Any"
#define CMIS_TYPE_STRING "String"
#define CMIS_TYPE_NUMBER "Number"
#define CMIS_TYPE_INTEGER "Integer"
#define CMIS_TYPE_DECIMAL "Decimal"
#define CMIS_TYPE_DATETIME "Datetime"
#define CMIS_TYPE_BOOL
EAN "Boolean
"
#define CMIS_TYPE_BOOL
"Bool
"
// defines ---------------------------------------------------------------
...
...
ucb/source/ucp/cmis/cmis_content.cxx
Dosyayı görüntüle @
eb23b2d9
...
...
@@ -47,6 +47,7 @@
#include "cmis_provider.hxx"
#include "cmis_resultset.hxx"
#include "cmis_oauth2_providers.hxx"
#include "cmis_strings.hxx"
#define OUSTR_TO_STDSTR(s) string( OUStringToOString( s, RTL_TEXTENCODING_UTF8 ).getStr() )
#define STD_TO_OUSTR( str ) OUString( str.c_str(), str.length( ), RTL_TEXTENCODING_UTF8 )
...
...
@@ -205,7 +206,17 @@ namespace
bool
bMultiValued
=
prop
.
MultiValued
;
bool
bOpenChoice
=
prop
.
OpenChoice
;
uno
::
Any
value
=
prop
.
Value
;
libcmis
::
PropertyType
::
Type
type
=
libcmis
::
PropertyType
::
String
;
libcmis
::
PropertyType
::
Type
type
;
if
(
prop
.
Type
==
CMIS_TYPE_STRING
)
type
=
libcmis
::
PropertyType
::
String
;
else
if
(
prop
.
Type
==
CMIS_TYPE_BOOL
)
type
=
libcmis
::
PropertyType
::
Bool
;
else
if
(
prop
.
Type
==
CMIS_TYPE_INTEGER
)
type
=
libcmis
::
PropertyType
::
Integer
;
else
if
(
prop
.
Type
==
CMIS_TYPE_DECIMAL
)
type
=
libcmis
::
PropertyType
::
Decimal
;
else
if
(
prop
.
Type
==
CMIS_TYPE_DATETIME
)
type
=
libcmis
::
PropertyType
::
DateTime
;
propertyType
->
setId
(
OUSTR_TO_STDSTR
(
id
));
propertyType
->
setDisplayName
(
OUSTR_TO_STDSTR
(
name
)
);
...
...
@@ -682,6 +693,26 @@ namespace cmis
pCmisProps
[
i
].
MultiValued
=
bMultiValued
;
pCmisProps
[
i
].
OpenChoice
=
bOpenChoice
;
pCmisProps
[
i
].
Value
=
lcl_cmisPropertyToUno
(
it
->
second
);
switch
(
it
->
second
->
getPropertyType
(
)
->
getType
(
)
)
{
default
:
case
libcmis
:
:
PropertyType
::
String
:
pCmisProps
[
i
].
Type
=
CMIS_TYPE_STRING
;
break
;
case
libcmis
:
:
PropertyType
::
Integer
:
pCmisProps
[
i
].
Type
=
CMIS_TYPE_INTEGER
;
break
;
case
libcmis
:
:
PropertyType
::
Decimal
:
pCmisProps
[
i
].
Type
=
CMIS_TYPE_DECIMAL
;
break
;
case
libcmis
:
:
PropertyType
::
Bool
:
pCmisProps
[
i
].
Type
=
CMIS_TYPE_BOOL
;
break
;
case
libcmis
:
:
PropertyType
::
DateTime
:
pCmisProps
[
i
].
Type
=
CMIS_TYPE_DATETIME
;
break
;
}
}
xRow
->
appendObject
(
rProp
.
Name
,
uno
::
makeAny
(
aCmisProperties
)
);
}
...
...
ucb/source/ucp/cmis/cmis_strings.hxx
0 → 100644
Dosyayı görüntüle @
eb23b2d9
/* -*- 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:
*
*/
#ifndef CMIS_STRINGS_HXX
#define CMIS_STRINGS_HXX
#define CMIS_TYPE_STRING "String"
#define CMIS_TYPE_INTEGER "Integer"
#define CMIS_TYPE_DECIMAL "Decimal"
#define CMIS_TYPE_DATETIME "Datetime"
#define CMIS_TYPE_BOOL "Bool"
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment