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
67f5fa5a
Kaydet (Commit)
67f5fa5a
authored
Ara 10, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Demote Application::IsHeadlessModeRequested to local hack
Change-Id: I3ae51b8c57e70593153805e5c7c139573c543b5a
üst
dbbfad3d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
27 deletions
+21
-27
svapp.hxx
include/vcl/svapp.hxx
+0
-12
svapp.cxx
vcl/source/app/svapp.cxx
+0
-14
salplug.cxx
vcl/unx/generic/plugadapt/salplug.cxx
+21
-1
No files found.
include/vcl/svapp.hxx
Dosyayı görüntüle @
67f5fa5a
...
@@ -1393,27 +1393,15 @@ public:
...
@@ -1393,27 +1393,15 @@ public:
/** Enables headless mode.
/** Enables headless mode.
@param dialogsAreFatal Set to true if a dialog ends the session, false if not.
@param dialogsAreFatal Set to true if a dialog ends the session, false if not.
@see IsHeadlessModeEnabled, IsHeadlessModeRequested
*/
*/
static
void
EnableHeadlessMode
(
bool
dialogsAreFatal
);
static
void
EnableHeadlessMode
(
bool
dialogsAreFatal
);
/** Determines if headless mode is enabled
/** Determines if headless mode is enabled
@return True if headless mode is enabled, false if not.
@return True if headless mode is enabled, false if not.
@see EnableHeadlessMode, IsHeadlessModeRequested
*/
*/
static
bool
IsHeadlessModeEnabled
();
static
bool
IsHeadlessModeEnabled
();
/** Check command line arguments for \code --headless \endcode
@return True if headless mode was requested, false if not
@see EnableHeadlessMode, IsHeadlessModeEnabled
*/
static
bool
IsHeadlessModeRequested
();
/** Enable Console Only mode
/** Enable Console Only mode
Used to disable Mac specific app init that requires an app bundle.
Used to disable Mac specific app init that requires an app bundle.
...
...
vcl/source/app/svapp.cxx
Dosyayı görüntüle @
67f5fa5a
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include "rtl/tencinfo.h"
#include "rtl/tencinfo.h"
#include "rtl/instance.hxx"
#include "rtl/instance.hxx"
#include "rtl/process.h"
#include "tools/debug.hxx"
#include "tools/debug.hxx"
#include "tools/time.hxx"
#include "tools/time.hxx"
...
@@ -1535,19 +1534,6 @@ bool Application::IsHeadlessModeEnabled()
...
@@ -1535,19 +1534,6 @@ bool Application::IsHeadlessModeEnabled()
return
IsDialogCancelEnabled
();
return
IsDialogCancelEnabled
();
}
}
bool
Application
::
IsHeadlessModeRequested
()
{
sal_uInt32
n
=
rtl_getAppCommandArgCount
();
for
(
sal_uInt32
i
=
0
;
i
<
n
;
++
i
)
{
OUString
arg
;
rtl_getAppCommandArg
(
i
,
&
arg
.
pData
);
if
(
arg
==
"--headless"
||
arg
==
"-headless"
)
{
return
true
;
}
}
return
false
;
}
static
bool
bConsoleOnly
=
false
;
static
bool
bConsoleOnly
=
false
;
bool
Application
::
IsConsoleOnly
()
bool
Application
::
IsConsoleOnly
()
...
...
vcl/unx/generic/plugadapt/salplug.cxx
Dosyayı görüntüle @
67f5fa5a
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include "osl/process.h"
#include "osl/process.h"
#include "rtl/bootstrap.hxx"
#include "rtl/bootstrap.hxx"
#include "rtl/process.h"
#include "salinst.hxx"
#include "salinst.hxx"
#include "generic/gensys.h"
#include "generic/gensys.h"
...
@@ -36,6 +37,25 @@ extern "C" {
...
@@ -36,6 +37,25 @@ extern "C" {
typedef
SalInstance
*
(
*
salFactoryProc
)();
typedef
SalInstance
*
(
*
salFactoryProc
)();
}
}
namespace
{
// HACK to obtain Application::IsHeadlessModeEnabled early on, before
// Application::EnableHeadlessMode has potentially been called:
bool
IsHeadlessModeRequested
()
{
sal_uInt32
n
=
rtl_getAppCommandArgCount
();
for
(
sal_uInt32
i
=
0
;
i
<
n
;
++
i
)
{
OUString
arg
;
rtl_getAppCommandArg
(
i
,
&
arg
.
pData
);
if
(
arg
==
"--headless"
||
arg
==
"-headless"
)
{
return
true
;
}
}
return
false
;
}
}
static
oslModule
pCloseModule
=
NULL
;
static
oslModule
pCloseModule
=
NULL
;
static
SalInstance
*
tryInstance
(
const
OUString
&
rModuleBase
,
bool
bForce
=
false
)
static
SalInstance
*
tryInstance
(
const
OUString
&
rModuleBase
,
bool
bForce
=
false
)
...
@@ -216,7 +236,7 @@ SalInstance *CreateSalInstance()
...
@@ -216,7 +236,7 @@ SalInstance *CreateSalInstance()
SalInstance
*
pInst
=
NULL
;
SalInstance
*
pInst
=
NULL
;
OUString
aUsePlugin
;
OUString
aUsePlugin
;
if
(
Application
::
IsHeadlessModeRequested
()
)
if
(
IsHeadlessModeRequested
()
)
aUsePlugin
=
"svp"
;
aUsePlugin
=
"svp"
;
else
else
{
{
...
...
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