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
d7b45c97
Kaydet (Commit)
d7b45c97
authored
Haz 21, 2016
tarafından
Pranav Kant
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lok: Change version string to JSON format
Change-Id: Ie1264fed9964b09006980df2e151e170b48b4082
üst
3fecccad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
8 deletions
+22
-8
init.cxx
desktop/source/lib/init.cxx
+9
-1
LibreOfficeKit.hxx
include/LibreOfficeKit/LibreOfficeKit.hxx
+6
-3
LibreOfficeKitGtk.h
include/LibreOfficeKit/LibreOfficeKitGtk.h
+7
-4
No files found.
desktop/source/lib/init.cxx
Dosyayı görüntüle @
d7b45c97
...
...
@@ -2007,7 +2007,15 @@ static void lo_setDocumentPassword(LibreOfficeKit* pThis,
static
char
*
lo_getVersionInfo
(
LibreOfficeKit
*
/*pThis*/
)
{
const
OString
sVersionStr
=
OUStringToOString
(
ReplaceStringHookProc
(
"%PRODUCTNAME %PRODUCTVERSION %PRODUCTEXTENSION %BUILDID"
),
RTL_TEXTENCODING_UTF8
);
const
OUString
sVersionStrTemplate
(
"{ "
"
\"
ProductName
\"
:
\"
%PRODUCTNAME
\"
, "
"
\"
ProductVersion
\"
:
\"
%PRODUCTVERSION
\"
, "
"
\"
ProductExtension
\"
:
\"
%PRODUCTEXTENSION
\"
, "
"
\"
BuildId
\"
:
\"
%BUILDID
\"
"
"}"
);
const
OString
sVersionStr
=
OUStringToOString
(
ReplaceStringHookProc
(
sVersionStrTemplate
),
RTL_TEXTENCODING_UTF8
);
char
*
pVersion
=
static_cast
<
char
*>
(
malloc
(
sVersionStr
.
getLength
()
+
1
));
strcpy
(
pVersion
,
sVersionStr
.
getStr
());
...
...
include/LibreOfficeKit/LibreOfficeKit.hxx
Dosyayı görüntüle @
d7b45c97
...
...
@@ -550,10 +550,13 @@ public:
/**
* Get version information of the LOKit process
*
* @returns string containing version information in format:
*
PRODUCT_NAME PRODUCT_VERSION PRODUCT_EXTENSION BUILD_ID
* @returns
JSON
string containing version information in format:
*
{ProductName: <>, ProductVersion: <>, ProductExtension: <>, BuildId: <>}
*
* Eg: LibreOffice 5.3 .0.0 alpha0 <commit hash>
* Eg: {"ProductName": "LibreOffice",
* "ProductVersion": "5.3",
* "ProductExtension": ".0.0.alpha0",
* "BuildId": "<full 40 char git hash>"}
*/
inline
char
*
getVersionInfo
()
{
...
...
include/LibreOfficeKit/LibreOfficeKitGtk.h
Dosyayı görüntüle @
d7b45c97
...
...
@@ -319,12 +319,15 @@ void lok_doc_view_set_document_password (LOKDocView*
* lok_doc_view_get_version_info:
* @pDocView: The #LOKDocView instance
*
* Get version information of
underlying
LOKit process
* Get version information of
the
LOKit process
*
* Returns:
string containing version information in format
*
PRODUCT_NAME PRODUCT_VERSION PRODUCT_EXTENSION BUILD_ID
* Returns:
JSON string containing version information in format:
*
{ProductName: <>, ProductVersion: <>, ProductExtension: <>, BuildId: <>}
*
* Eg: LibreOffice 5.3 .0.0.alpha0 <commit hash>
* Eg: {"ProductName": "LibreOffice",
* "ProductVersion": "5.3",
* "ProductExtension": ".0.0.alpha0",
* "BuildId": "<full 40 char git hash>"}
*/
gchar
*
lok_doc_view_get_version_info
(
LOKDocView
*
pDocView
);
...
...
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