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
1bea5bf9
Kaydet (Commit)
1bea5bf9
authored
Eyl 02, 2015
tarafından
Henry Castro
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert lok: use preInitBootstrap
Change-Id: I4030781b76ba4954174b3fab2ffb8e8e93a02bcd
üst
718815a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
28 deletions
+12
-28
init.cxx
desktop/source/lib/init.cxx
+12
-28
No files found.
desktop/source/lib/init.cxx
Dosyayı görüntüle @
1bea5bf9
...
@@ -966,6 +966,11 @@ static void lo_status_indicator_callback(void *data, comphelper::LibreOfficeKit:
...
@@ -966,6 +966,11 @@ static void lo_status_indicator_callback(void *data, comphelper::LibreOfficeKit:
}
}
}
}
/// pre-load all C++ component factories and leak references to them.
static
void
forceLoadAllNativeComponents
()
{
}
/// pre-load and parse all filter XML
/// pre-load and parse all filter XML
static
void
forceLoadFilterXML
()
static
void
forceLoadFilterXML
()
{
{
...
@@ -1042,6 +1047,12 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
...
@@ -1042,6 +1047,12 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
Application
::
EnableHeadlessMode
(
true
);
Application
::
EnableHeadlessMode
(
true
);
}
}
if
(
eStage
==
PRE_INIT
)
{
forceLoadAllNativeComponents
();
forceLoadFilterXML
();
}
// This is horrible crack. I really would want to go back to simply just call
// This is horrible crack. I really would want to go back to simply just call
// InitVCL() here. The OfficeIPCThread thing is just horrible.
// InitVCL() here. The OfficeIPCThread thing is just horrible.
...
@@ -1125,34 +1136,7 @@ LibreOfficeKit *libreofficekit_hook(const char* install_path)
...
@@ -1125,34 +1136,7 @@ LibreOfficeKit *libreofficekit_hook(const char* install_path)
SAL_JNI_EXPORT
SAL_JNI_EXPORT
int
lok_preinit
(
const
char
*
install_path
,
const
char
*
user_profile_path
)
int
lok_preinit
(
const
char
*
install_path
,
const
char
*
user_profile_path
)
{
{
rtl
::
Bootstrap
::
set
(
OUString
(
"UserInstallation"
),
OUString
(
user_profile_path
,
strlen
(
user_profile_path
),
RTL_TEXTENCODING_UTF8
));
return
lo_initialize
(
NULL
,
install_path
,
user_profile_path
);
OUString
aAppPath
;
if
(
install_path
)
{
aAppPath
=
OUString
(
install_path
,
strlen
(
install_path
),
RTL_TEXTENCODING_UTF8
);
}
else
{
// Fun conversion dance back and forth between URLs and system paths...
OUString
aAppURL
;
::
osl
::
Module
::
getUrlFromAddress
(
reinterpret_cast
<
oslGenericFunction
>
(
lo_initialize
),
aAppURL
);
osl
::
FileBase
::
getSystemPathFromFileURL
(
aAppURL
,
aAppPath
);
}
OUString
aAppURL
;
if
(
osl
::
FileBase
::
getFileURLFromSystemPath
(
aAppPath
,
aAppURL
)
!=
osl
::
FileBase
::
E_None
)
return
-
1
;
rtl
::
Bootstrap
::
setIniFilename
(
aAppURL
+
"/"
SAL_CONFIGFILE
(
"soffice"
));
// pre-load all C++ component factories and leak references to them.
cppu
::
preInitBootstrap
();
forceLoadFilterXML
();
return
0
;
}
}
static
void
lo_destroy
(
LibreOfficeKit
*
pThis
)
static
void
lo_destroy
(
LibreOfficeKit
*
pThis
)
...
...
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