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
68e2dd0d
Kaydet (Commit)
68e2dd0d
authored
Ara 10, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make IsHeadlessModeRequested hack work for LOK
Change-Id: I30bf474fc44b122c8b7218e187c822a8784783fd
üst
7594c0c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
init.cxx
desktop/source/lib/init.cxx
+2
-2
salplug.cxx
vcl/unx/generic/plugadapt/salplug.cxx
+3
-0
No files found.
desktop/source/lib/init.cxx
Dosyayı görüntüle @
68e2dd0d
...
@@ -740,6 +740,8 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath)
...
@@ -740,6 +740,8 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath)
// CommandLineArgs):
// CommandLineArgs):
desktop
::
Desktop
::
GetCommandLineArgs
().
setHeadless
();
desktop
::
Desktop
::
GetCommandLineArgs
().
setHeadless
();
Application
::
EnableHeadlessMode
(
true
);
// We could use InitVCL() here -- and used to before using soffice_main,
// We could use InitVCL() here -- and used to before using soffice_main,
// however that now deals with the initialisation for us (and it's not
// however that now deals with the initialisation for us (and it's not
// possible to try to set up VCL twice.
// possible to try to set up VCL twice.
...
@@ -773,8 +775,6 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath)
...
@@ -773,8 +775,6 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath)
return
false
;
return
false
;
}
}
Application
::
EnableHeadlessMode
(
true
);
ErrorHandler
::
RegisterDisplay
(
aBasicErrorFunc
);
ErrorHandler
::
RegisterDisplay
(
aBasicErrorFunc
);
SAL_INFO
(
"lok"
,
"LOK Initialized"
);
SAL_INFO
(
"lok"
,
"LOK Initialized"
);
...
...
vcl/unx/generic/plugadapt/salplug.cxx
Dosyayı görüntüle @
68e2dd0d
...
@@ -43,6 +43,9 @@ namespace {
...
@@ -43,6 +43,9 @@ namespace {
// Application::EnableHeadlessMode has potentially been called:
// Application::EnableHeadlessMode has potentially been called:
bool
IsHeadlessModeRequested
()
bool
IsHeadlessModeRequested
()
{
{
if
(
Application
::
IsHeadlessModeEnabled
())
{
return
true
;
}
sal_uInt32
n
=
rtl_getAppCommandArgCount
();
sal_uInt32
n
=
rtl_getAppCommandArgCount
();
for
(
sal_uInt32
i
=
0
;
i
<
n
;
++
i
)
{
for
(
sal_uInt32
i
=
0
;
i
<
n
;
++
i
)
{
OUString
arg
;
OUString
arg
;
...
...
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