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
d259e07e
Kaydet (Commit)
d259e07e
authored
Tem 09, 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 dialog: update properties
Change-Id: Ia506713b61dc6c1343eac3640863c86a2fc3f18f
üst
b56a9a22
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
90 additions
and
1 deletion
+90
-1
dinfdlg.hxx
include/sfx2/dinfdlg.hxx
+4
-0
sfxbasemodel.hxx
include/sfx2/sfxbasemodel.hxx
+5
-0
XCmisDocument.idl
offapi/com/sun/star/document/XCmisDocument.idl
+2
-0
dinfdlg.cxx
sfx2/source/dialog/dinfdlg.cxx
+22
-0
objserv.cxx
sfx2/source/doc/objserv.cxx
+4
-1
sfxbasemodel.cxx
sfx2/source/doc/sfxbasemodel.cxx
+23
-0
cmis_content.cxx
ucb/source/ucp/cmis/cmis_content.cxx
+25
-0
cmis_content.hxx
ucb/source/ucp/cmis/cmis_content.hxx
+5
-0
No files found.
include/sfx2/dinfdlg.hxx
Dosyayı görüntüle @
d259e07e
...
...
@@ -164,6 +164,10 @@ public:
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
,
...
...
include/sfx2/sfxbasemodel.hxx
Dosyayı görüntüle @
d259e07e
...
...
@@ -1316,6 +1316,11 @@ public:
css
::
document
::
CmisProperty
>&
_cmisproperties
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
updateCmisProperties
(
const
css
::
uno
::
Sequence
<
css
::
document
::
CmisProperty
>&
_cmisproperties
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
checkOut
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
cancelCheckOut
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
checkIn
(
sal_Bool
bIsMajor
,
const
OUString
&
rMessage
)
...
...
offapi/com/sun/star/document/XCmisDocument.idl
Dosyayı görüntüle @
d259e07e
...
...
@@ -44,6 +44,8 @@ interface XCmisDocument : com::sun::star::uno::XInterface
boolean
canCheckIn
(
)
;
void
updateCmisProperties
(
[
in
]
sequence
<
com
::
sun
::
star
::
document
::
CmisProperty
>
cmisProperties
)
;
/**
Contains
the
properties
values
named
after
their
CMIS
ID
.
*/
[
attribute
]
sequence
<
com
::
sun
::
star
::
document
::
CmisProperty
>
CmisProperties
;
...
...
sfx2/source/dialog/dinfdlg.cxx
Dosyayı görüntüle @
d259e07e
...
...
@@ -576,6 +576,28 @@ std::vector< CmisProperty* > SfxDocumentInfoItem::GetCmisProperties() const
return
aRet
;
}
uno
::
Sequence
<
document
::
CmisProperty
>
SfxDocumentInfoItem
::
GetCmisPropertiesSeq
()
const
{
Sequence
<
document
::
CmisProperty
>
aPropertiesSeq
(
m_aCmisProperties
.
size
()
);
sal_Int32
i
=
0
;
std
::
vector
<
CmisProperty
*
>::
const_iterator
pIter
;
for
(
pIter
=
m_aCmisProperties
.
begin
();
pIter
!=
m_aCmisProperties
.
end
();
++
pIter
,
++
i
)
{
CmisProperty
*
aProp
=
*
pIter
;
aPropertiesSeq
[
i
].
Id
=
aProp
->
m_sId
;
aPropertiesSeq
[
i
].
Name
=
aProp
->
m_sName
;
aPropertiesSeq
[
i
].
Updatable
=
aProp
->
m_bUpdatable
;
aPropertiesSeq
[
i
].
Required
=
aProp
->
m_bRequired
;
aPropertiesSeq
[
i
].
MultiValued
=
aProp
->
m_bMultiValued
;
aPropertiesSeq
[
i
].
OpenChoice
=
aProp
->
m_bOpenChoice
;
aPropertiesSeq
[
i
].
Choices
=
aProp
->
m_aChoices
;
aPropertiesSeq
[
i
].
Value
=
aProp
->
m_aValue
;
}
return
aPropertiesSeq
;
}
void
SfxDocumentInfoItem
::
ClearCmisProperties
()
{
for
(
sal_uInt32
i
=
0
;
i
<
m_aCmisProperties
.
size
();
i
++
)
...
...
sfx2/source/doc/objserv.cxx
Dosyayı görüntüle @
d259e07e
...
...
@@ -518,10 +518,13 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
{
// user has done some changes to DocumentInfo
pDocInfoItem
->
UpdateDocumentInfo
(
getDocProperties
());
uno
::
Sequence
<
document
::
CmisProperty
>
aNewCmisProperties
=
pDocInfoItem
->
GetCmisPropertiesSeq
(
);
xCmisDoc
->
updateCmisProperties
(
aNewCmisProperties
);
SetUseUserData
(
((
const
SfxDocumentInfoItem
*
)
pDocInfoItem
)
->
IsUseUserData
()
);
// add data from dialog for possible recording purpose
rReq
.
AppendItem
(
SfxDocumentInfoItem
(
GetTitle
(),
getDocProperties
(),
aCmisProperties
,
IsUseUserData
()
)
);
getDocProperties
(),
a
New
CmisProperties
,
IsUseUserData
()
)
);
}
rReq
.
Done
();
...
...
sfx2/source/doc/sfxbasemodel.cxx
Dosyayı görüntüle @
d259e07e
...
...
@@ -2474,6 +2474,29 @@ void SAL_CALL SfxBaseModel::setCmisProperties( const Sequence< document::CmisPro
m_pData
->
m_cmisProperties
=
_cmisproperties
;
}
void
SAL_CALL
SfxBaseModel
::
updateCmisProperties
(
const
Sequence
<
document
::
CmisProperty
>&
aProperties
)
throw
(
RuntimeException
)
{
SfxMedium
*
pMedium
=
m_pData
->
m_pObjectShell
->
GetMedium
();
if
(
pMedium
)
{
try
{
::
ucbhelper
::
Content
aContent
(
pMedium
->
GetName
(
),
Reference
<
ucb
::
XCommandEnvironment
>
(),
comphelper
::
getProcessComponentContext
()
);
\
aContent
.
executeCommand
(
"updateProperties"
,
uno
::
makeAny
(
aProperties
)
);
loadCmisProperties
(
);
}
catch
(
const
Exception
&
e
)
{
throw
RuntimeException
(
e
.
Message
,
e
.
Context
);
}
}
}
void
SAL_CALL
SfxBaseModel
::
checkOut
(
)
throw
(
RuntimeException
)
{
SfxMedium
*
pMedium
=
m_pData
->
m_pObjectShell
->
GetMedium
();
...
...
ucb/source/ucp/cmis/cmis_content.cxx
Dosyayı görüntüle @
d259e07e
...
...
@@ -413,6 +413,25 @@ namespace cmis
static_cast
<
cppu
::
OWeakObject
*
>
(
this
),
-
1
)
);
}
libcmis
::
ObjectPtr
Content
::
updateProperties
(
const
uno
::
Any
&
/*iCmisProps*/
,
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>&
xEnv
)
{
// TODO convert iCmisProps to aProperties;
map
<
string
,
libcmis
::
PropertyPtr
>
aProperties
;
libcmis
::
ObjectPtr
updateObj
;
try
{
updateObj
=
getObject
(
xEnv
)
->
updateProperties
(
aProperties
);
}
catch
(
const
libcmis
::
Exception
&
e
)
{
SAL_INFO
(
"cmisucp"
,
"Unexpected libcmis exception: "
<<
e
.
what
(
)
);
}
return
updateObj
;
}
uno
::
Reference
<
sdbc
::
XRow
>
Content
::
getPropertyValues
(
const
uno
::
Sequence
<
beans
::
Property
>&
rProperties
,
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>&
xEnv
)
...
...
@@ -1328,6 +1347,8 @@ namespace cmis
ucb
::
CommandInfo
(
OUString
(
"cancelCheckout"
),
-
1
,
getCppuVoidType
()
),
ucb
::
CommandInfo
(
OUString
(
"checkIn"
),
-
1
,
getCppuType
(
static_cast
<
ucb
::
TransferInfo
*
>
(
0
)
)
),
ucb
::
CommandInfo
(
OUString
(
"updateProperties"
),
-
1
,
getCppuVoidType
()
),
// Folder Only, omitted if not a folder
ucb
::
CommandInfo
...
...
@@ -1535,6 +1556,10 @@ namespace cmis
}
aRet
<<=
checkIn
(
aArg
,
xEnv
);
}
else
if
(
aCommand
.
Name
==
"updateProperties"
)
{
updateProperties
(
aCommand
.
Argument
,
xEnv
);
}
else
{
SAL_INFO
(
"cmisucp"
,
"Unknown command to execute"
);
...
...
ucb/source/ucp/cmis/cmis_content.hxx
Dosyayı görüntüle @
d259e07e
...
...
@@ -140,6 +140,11 @@ public:
getProperties
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
&
xEnv
);
virtual
libcmis
::
ObjectPtr
updateProperties
(
const
com
::
sun
::
star
::
uno
::
Any
&
iCmisProps
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
&
xEnv
);
virtual
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
ucb
::
CommandInfo
>
getCommands
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
&
xEnv
);
...
...
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