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
5032455f
Kaydet (Commit)
5032455f
authored
Eyl 02, 2015
tarafından
Henry Castro
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lok: rework use preInitBootstrap
Change-Id: Ifdba1eaf4cec448fe3284015c36ea7fd1b3440b0
üst
1bea5bf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
init.cxx
desktop/source/lib/init.cxx
+12
-9
No files found.
desktop/source/lib/init.cxx
Dosyayı görüntüle @
5032455f
...
...
@@ -894,7 +894,7 @@ static void aBasicErrorFunc(const OUString& rError, const OUString& rAction)
fprintf
(
stderr
,
"Unexpected basic error dialog '%s'
\n
"
,
aBuffer
.
getStr
());
}
static
bool
initialize_uno
(
const
OUString
&
aAppProgramURL
)
static
bool
initialize_uno
(
const
OUString
&
aAppProgramURL
,
bool
bPreInit
)
{
#ifdef IOS
// For iOS we already hardocde the inifile as "rc" in the .app directory.
...
...
@@ -903,6 +903,13 @@ static bool initialize_uno(const OUString& aAppProgramURL)
rtl
::
Bootstrap
::
setIniFilename
(
aAppProgramURL
+
"/"
SAL_CONFIGFILE
(
"soffice"
));
#endif
if
(
bPreInit
)
{
// pre-load all component libraries.
cppu
::
preInitBootstrap
();
return
true
;
}
xContext
=
cppu
::
defaultBootstrap_InitialComponentContext
();
if
(
!
xContext
.
is
())
{
...
...
@@ -966,11 +973,6 @@ 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
static
void
forceLoadFilterXML
()
{
...
...
@@ -1032,9 +1034,11 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
{
SAL_INFO
(
"lok"
,
"Attempting to initalize UNO"
);
if
(
!
initialize_uno
(
aAppURL
))
if
(
!
initialize_uno
(
aAppURL
,
(
eStage
==
PRE_INIT
)
))
return
false
;
force_c_locale
();
if
(
eStage
!=
PRE_INIT
)
force_c_locale
();
// Force headless -- this is only for bitmap rendering.
rtl
::
Bootstrap
::
set
(
"SAL_USE_VCLPLUGIN"
,
"svp"
);
...
...
@@ -1049,7 +1053,6 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
if
(
eStage
==
PRE_INIT
)
{
forceLoadAllNativeComponents
();
forceLoadFilterXML
();
}
...
...
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