summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>2012-02-21 14:55:10 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-02-21 15:01:38 +0000
commitbc7b349ea262995d4599cda686d39af15a1e7aa6 (patch)
treee367275e355aa6bd90ae654b64c5b4e947398557 /vcl
parent4cd2af27cbedc0f59f5a8a3f0a7c27b158b42fce (diff)
headless: more work in vcl
Provide HeadlessSalSystem::ShowNativeDialog() instead of having it if-zeroed. Then remove LIBO_HEADLESS ifdefery from unx/generic/plugadapt/salplug.cxx which we are not building anymore.
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/headlessinst.cxx8
-rw-r--r--vcl/unx/generic/plugadapt/salplug.cxx4
2 files changed, 5 insertions, 7 deletions
diff --git a/vcl/headless/headlessinst.cxx b/vcl/headless/headlessinst.cxx
index bde892fa7c23..439de86a583d 100644
--- a/vcl/headless/headlessinst.cxx
+++ b/vcl/headless/headlessinst.cxx
@@ -49,22 +49,20 @@ HeadlessSalInstance::~HeadlessSalInstance()
}
class HeadlessSalSystem : public SvpSalSystem {
-#if 0
public:
- AndroidSalSystem() : SvpSalSystem() {}
- virtual ~AndroidSalSystem() {}
+ HeadlessSalSystem() : SvpSalSystem() {}
+ virtual ~HeadlessSalSystem() {}
virtual int ShowNativeDialog( const rtl::OUString& rTitle,
const rtl::OUString& rMessage,
const std::list< rtl::OUString >& rButtons,
int nDefButton )
{
(void)rButtons; (void)nDefButton;
- __android_log_print(ANDROID_LOG_INFO, "LibreOffice - dialog '%s': '%s'",
+ ::fprintf(stdout, "LibreOffice - dialog '%s': '%s'",
rtl::OUStringToOString(rTitle, RTL_TEXTENCODING_ASCII_US).getStr(),
rtl::OUStringToOString(rMessage, RTL_TEXTENCODING_ASCII_US).getStr());
return 0;
}
-#endif
};
SalSystem *HeadlessSalInstance::CreateSalSystem()
diff --git a/vcl/unx/generic/plugadapt/salplug.cxx b/vcl/unx/generic/plugadapt/salplug.cxx
index 1ce60de385e6..1d9a5baa540e 100644
--- a/vcl/unx/generic/plugadapt/salplug.cxx
+++ b/vcl/unx/generic/plugadapt/salplug.cxx
@@ -53,7 +53,7 @@ static oslModule pCloseModule = NULL;
static SalInstance* tryInstance( const OUString& rModuleBase, bool bForce = false )
{
SalInstance* pInst = NULL;
-#if !defined(ANDROID) || !defined(LIBO_HEADLESS)
+#if !defined(ANDROID)
// Disable gtk3 plugin load except in experimental mode for now.
if( !bForce &&
rModuleBase.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "gtk3" ) ) &&
@@ -129,7 +129,7 @@ static SalInstance* tryInstance( const OUString& rModuleBase, bool bForce = fals
return pInst;
}
-#if !defined(ANDROID) || !defined(LIBO_HEADLESS)
+#if !defined(ANDROID)
static DesktopType get_desktop_environment()
{