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
bce042ca
Kaydet (Commit)
bce042ca
authored
Kas 03, 2012
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CMIS: added confirmation dialog for cancel checkout
Change-Id: I12317bd8c91756c7960f04d2fad38dd509840932
üst
9c248f92
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
21 deletions
+33
-21
app.hrc
sfx2/source/appl/app.hrc
+1
-0
app.src
sfx2/source/appl/app.src
+7
-0
objserv.cxx
sfx2/source/doc/objserv.cxx
+4
-1
cmis_content.cxx
ucb/source/ucp/cmis/cmis_content.cxx
+21
-20
No files found.
sfx2/source/appl/app.hrc
Dosyayı görüntüle @
bce042ca
...
...
@@ -112,6 +112,7 @@
#define RID_XMLSEC_QUERY_LOSINGSIGNATURE (RID_SFX_APP_START + 186)
#define RID_XMLSEC_QUERY_SAVEBEFORESIGN (RID_SFX_APP_START + 187)
#define RID_QUERY_CANCELCHECKOUT (RID_SFX_APP_START + 188)
#define RID_XMLSEC_INFO_WRONGDOCFORMAT (RID_SFX_APP_START + 190)
...
...
sfx2/source/appl/app.src
Dosyayı görüntüle @
bce042ca
...
...
@@ -432,6 +432,13 @@ QueryBox RID_XMLSEC_QUERY_SAVEBEFORESIGN
Message [ en-US ] = "The document has to be saved before it can be signed.\nDo you want to save the document?" ;
};
QueryBox RID_QUERY_CANCELCHECKOUT
{
Buttons = WB_YES_NO ;
DefButton = WB_DEF_YES ;
Message [ en-US ] = "This will discard all changes on the server since check-out.\nDo you want to proceed?" ;
};
InfoBox RID_XMLSEC_INFO_WRONGDOCFORMAT
{
Message [ en-US ] = "This document must be saved in OpenDocument file format before it can be digitally signed." ;
...
...
sfx2/source/doc/objserv.cxx
Dosyayı görüntüle @
bce042ca
...
...
@@ -951,7 +951,10 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
}
case
SID_CANCELCHECKOUT
:
{
CancelCheckOut
(
);
if
(
QueryBox
(
NULL
,
SfxResId
(
RID_QUERY_CANCELCHECKOUT
)
).
Execute
(
)
==
RET_YES
)
{
CancelCheckOut
(
);
}
break
;
}
case
SID_CHECKIN
:
...
...
ucb/source/ucp/cmis/cmis_content.cxx
Dosyayı görüntüle @
bce042ca
...
...
@@ -837,9 +837,9 @@ namespace cmis
// Get the Original document (latest version)
vector
<
libcmis
::
DocumentPtr
>
aVersions
=
pPwc
->
getAllVersions
(
);
libcmis
::
DocumentPtr
pDoc
;
bool
bFound
=
false
;
for
(
vector
<
libcmis
::
DocumentPtr
>::
iterator
it
=
aVersions
.
begin
();
it
!=
aVersions
.
end
(
)
&&
pDoc
!=
NULL
;
++
it
)
it
!=
aVersions
.
end
(
)
&&
!
bFound
;
++
it
)
{
libcmis
::
DocumentPtr
pVersion
=
*
it
;
map
<
string
,
libcmis
::
PropertyPtr
>
aProps
=
pVersion
->
getProperties
(
);
...
...
@@ -851,25 +851,26 @@ namespace cmis
}
if
(
bIsLatestVersion
)
pDoc
.
reset
(
pVersion
.
get
(
)
);
}
// Compute the URL of the Document
URL
aCmisUrl
(
m_sURL
);
vector
<
string
>
aPaths
=
pDoc
->
getPaths
(
);
if
(
!
aPaths
.
empty
()
)
{
string
sPath
=
aPaths
.
front
(
);
aCmisUrl
.
setObjectPath
(
STD_TO_OUSTR
(
sPath
)
);
}
else
{
// We may have unfiled doc depending on the server, those
// won't have any path, use their ID instead
string
sId
=
pDoc
->
getId
(
);
aCmisUrl
.
setObjectId
(
STD_TO_OUSTR
(
sId
)
);
{
bFound
=
true
;
// Compute the URL of the Document
URL
aCmisUrl
(
m_sURL
);
vector
<
string
>
aPaths
=
pVersion
->
getPaths
(
);
if
(
!
aPaths
.
empty
()
)
{
string
sPath
=
aPaths
.
front
(
);
aCmisUrl
.
setObjectPath
(
STD_TO_OUSTR
(
sPath
)
);
}
else
{
// We may have unfiled doc depending on the server, those
// won't have any path, use their ID instead
string
sId
=
pVersion
->
getId
(
);
aCmisUrl
.
setObjectId
(
STD_TO_OUSTR
(
sId
)
);
}
aRet
=
aCmisUrl
.
asString
(
);
}
}
aRet
=
aCmisUrl
.
asString
(
);
}
catch
(
const
libcmis
::
Exception
&
e
)
{
...
...
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