summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-10-13 17:41:05 +0200
committerAndras Timar <atimar@suse.com>2012-10-13 17:41:05 +0200
commite5ce011c3f32f53ef073aec5485450b2588b656a (patch)
tree8a838a53bcdd70cc3d4cdbca0ebe07504790952e /desktop
parentc6b26144c93aa5222e4260c5b0ef45ce5bdc18d2 (diff)
parente74fc93e4aba7887e6a278cc44c4bc0962471065 (diff)
Merge branch 'master' into feature/killsdf
Conflicts: Makefile.top Module_tail_build.mk RepositoryExternal.mk RepositoryFixes.mk accessibility/source/standard/vclxaccessibletoolbox.cxx basic/source/uno/dlgcont.cxx connectivity/Library_ado.mk cross_tail_build/prj/build.lst desktop/source/offacc/acceptor.cxx filter/Library_PptImporter.mk filter/source/t602/filterenv.cxx i18npool/Library_textconv_dict.mk ooo.lst.in saxon/ExternalProject_saxon.mk saxon/build.xml sc/sdi/scalc.sdi sc/source/filter/xml/xmlstyli.cxx sc/source/ui/condformat/condformatdlg.cxx sc/source/ui/condformat/condformatmgr.cxx sc/source/ui/view/cellsh1.cxx sdext/source/pdfimport/misc/pwdinteract.cxx shell/qa/zip/makefile.mk shell/qa/zip/testimpl/makefile.mk solenv/gbuild/CppunitTest.mk solenv/gbuild/gbuild.mk solenv/gbuild/platform/android.mk solenv/gbuild/platform/com_GCC_defs.mk solenv/gbuild/platform/macosx.mk soltools/Executable_adjustvisibility.mk soltools/Executable_checkdll.mk soltools/Executable_cpp.mk soltools/Executable_javadep.mk soltools/Executable_makedepend.mk sw/qa/extras/rtfimport/rtfimport.cxx tail_build/prj/build.lst tomcat/ExternalProject_tomcat.mk ucb/source/ucp/webdav/webdavcontent.cxx xml2cmp/Executable_xml2cmp.mk
Diffstat (limited to 'desktop')
-rw-r--r--desktop/AllLangResTarget_deploymentgui.mk4
-rw-r--r--desktop/scripts/gdbtrace1
-rw-r--r--desktop/source/app/configinit.cxx15
-rw-r--r--desktop/source/app/dispatchwatcher.cxx8
-rw-r--r--desktop/source/deployment/dp_xml.cxx6
-rw-r--r--desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx13
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.cxx17
-rw-r--r--desktop/source/deployment/misc/dp_misc.cxx2
-rw-r--r--desktop/source/deployment/registry/configuration/dp_configuration.cxx5
-rw-r--r--desktop/source/deployment/registry/help/dp_help.cxx1
-rw-r--r--desktop/source/deployment/registry/sfwk/dp_sfwk.cxx6
-rw-r--r--desktop/source/migration/services/oo3extensionmigration.hxx1
-rw-r--r--desktop/source/offacc/acceptor.cxx5
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx1
-rw-r--r--desktop/source/splash/splash.cxx48
-rw-r--r--desktop/unx/splash/unxsplash.cxx3
-rw-r--r--desktop/win32/source/guistdio/guistdio.inc2
17 files changed, 75 insertions, 63 deletions
diff --git a/desktop/AllLangResTarget_deploymentgui.mk b/desktop/AllLangResTarget_deploymentgui.mk
index d9e82cc4937f..4dde2fc46b0e 100644
--- a/desktop/AllLangResTarget_deploymentgui.mk
+++ b/desktop/AllLangResTarget_deploymentgui.mk
@@ -35,6 +35,10 @@ $(eval $(call gb_AllLangResTarget_add_srs,deploymentgui,\
$(eval $(call gb_SrsTarget_SrsTarget,deploymentgui/res))
+$(eval $(call gb_SrsTarget_use_packages,deploymentgui/res,\
+ svtools_inc \
+))
+
$(eval $(call gb_SrsTarget_set_include,deploymentgui/res,\
$$(INCLUDE) \
-I$(SRCDIR)/desktop/inc \
diff --git a/desktop/scripts/gdbtrace b/desktop/scripts/gdbtrace
index 548ffe6512e9..f5fbf6325d11 100644
--- a/desktop/scripts/gdbtrace
+++ b/desktop/scripts/gdbtrace
@@ -1,5 +1,6 @@
set pagination off
echo log will be saved as gdbtrace.log, this will take some time, patience...\n
+handle SIGPIPE SIGXCPU SIG33 SIG35 SIGPWR nostop noprint
set logging redirect on
set logging file gdbtrace.log
set logging on
diff --git a/desktop/source/app/configinit.cxx b/desktop/source/app/configinit.cxx
index 393a755ea96b..9394a9b59be5 100644
--- a/desktop/source/app/configinit.cxx
+++ b/desktop/source/app/configinit.cxx
@@ -36,6 +36,7 @@
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
#include <stdio.h>
+#include <com/sun/star/task/InteractionHandler.hpp>
// ----------------------------------------------------------------------------
@@ -45,7 +46,6 @@ using rtl::OUString;
using uno::UNO_QUERY;
// ----------------------------------------------------------------------------
-static char const CONFIGURATION_ERROR_HANDLER[] = "com.sun.star.configuration.backend.InteractionHandler";
// must be aligned with configmgr/source/misc/configinteractionhandler
static char const CONFIG_ERROR_HANDLER[] = "configuration.interaction-handler";
@@ -164,17 +164,8 @@ void ConfigurationErrorHandler::deactivate()
ConfigurationErrorHandler::InteractionHandler ConfigurationErrorHandler::getDefaultInteractionHandler()
{
- uno::Reference< lang::XMultiServiceFactory > xServiceManager = ::comphelper::getProcessServiceFactory();
-
- OSL_ENSURE( xServiceManager.is(),"No ServiceManager set for ConfigurationErrorHandler");
-
- InteractionHandler xHandler;
-
- if (xServiceManager.is())
- {
- xHandler.set( xServiceManager->createInstance(k_ERRORHANDLER), UNO_QUERY );
- }
-
+ uno::Reference< uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext();
+ InteractionHandler xHandler( com::sun::star::task::InteractionHandler::createWithParent(xContext, 0), UNO_QUERY );
return xHandler;
}
//------------------------------------------------------------------------------
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index 1ed73d59f48f..261fa64572de 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -41,7 +41,7 @@
#include <comphelper/synchronousdispatch.hxx>
#include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/util/CloseVetoException.hpp>
-#include <com/sun/star/task/XInteractionHandler.hpp>
+#include <com/sun/star/task/InteractionHandler.hpp>
#include <com/sun/star/util/URL.hpp>
#include <com/sun/star/frame/XDesktop.hpp>
#include <com/sun/star/container/XEnumeration.hpp>
@@ -73,6 +73,7 @@ using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::view;
+using namespace ::com::sun::star::task;
namespace desktop
{
@@ -226,9 +227,8 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch
}
else
{
- Reference < com::sun::star::task::XInteractionHandler > xInteraction(
- ::comphelper::getProcessServiceFactory()->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.task.InteractionHandler")) ),
- com::sun::star::uno::UNO_QUERY );
+ Reference < XInteractionHandler2 > xInteraction(
+ InteractionHandler::createWithParent(::comphelper::getProcessComponentContext(), 0) );
aArgs[1].Name = OUString(RTL_CONSTASCII_USTRINGPARAM( "InteractionHandler" ));
aArgs[1].Value <<= xInteraction;
diff --git a/desktop/source/deployment/dp_xml.cxx b/desktop/source/deployment/dp_xml.cxx
index d276818619ce..b45c4c0db5d5 100644
--- a/desktop/source/deployment/dp_xml.cxx
+++ b/desktop/source/deployment/dp_xml.cxx
@@ -31,7 +31,7 @@
#include "dp_xml.h"
#include "rtl/ustrbuf.hxx"
#include "ucbhelper/content.hxx"
-#include "com/sun/star/xml/sax/XParser.hpp"
+#include "com/sun/star/xml/sax/Parser.hpp"
using namespace ::com::sun::star;
@@ -48,9 +48,7 @@ void xml_parse(
Reference<XComponentContext> const & xContext )
{
// raise sax parser:
- Reference<xml::sax::XParser> xParser(
- xContext->getServiceManager()->createInstanceWithContext(
- OUSTR("com.sun.star.xml.sax.Parser"), xContext ), UNO_QUERY_THROW );
+ Reference<xml::sax::XParser> xParser = xml::sax::Parser::create(xContext);
// error handler, entity resolver omitted
xParser->setDocumentHandler( xDocHandler );
diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
index 323778d4c642..943d37e6b33b 100644
--- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
@@ -36,7 +36,6 @@
#include <cstddef>
-#include "com/sun/star/beans/PropertyValue.hpp"
#include "com/sun/star/beans/NamedValue.hpp"
#include "com/sun/star/deployment/DependencyException.hpp"
@@ -50,6 +49,7 @@
#include "com/sun/star/deployment/UpdateInformationProvider.hpp"
#include "com/sun/star/deployment/XPackage.hpp"
+#include "com/sun/star/task/InteractionHandler.hpp"
#include "com/sun/star/task/XAbortChannel.hpp"
#include "com/sun/star/task/XInteractionAbort.hpp"
#include "com/sun/star/task/XInteractionApprove.hpp"
@@ -133,7 +133,7 @@ class ProgressCmdEnv
task::XInteractionHandler,
ucb::XProgressHandler >
{
- uno::Reference< task::XInteractionHandler> m_xHandler;
+ uno::Reference< task::XInteractionHandler2> m_xHandler;
uno::Reference< uno::XComponentContext > m_xContext;
uno::Reference< task::XAbortChannel> m_xAbortChannel;
@@ -532,14 +532,7 @@ void ProgressCmdEnv::handle( uno::Reference< task::XInteractionRequest > const &
// forward to UUI handler:
if (! m_xHandler.is()) {
// late init:
- uno::Sequence< uno::Any > handlerArgs( 1 );
- handlerArgs[ 0 ] <<= beans::PropertyValue(
- OUSTR("Context"), -1, uno::Any( m_sTitle ),
- beans::PropertyState_DIRECT_VALUE );
- m_xHandler.set( m_xContext->getServiceManager()
- ->createInstanceWithArgumentsAndContext(
- OUSTR("com.sun.star.uui.InteractionHandler"),
- handlerArgs, m_xContext ), uno::UNO_QUERY_THROW );
+ m_xHandler = task::InteractionHandler::createWithParentAndContext(m_xContext, NULL, m_sTitle);
}
m_xHandler->handle( xRequest );
}
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
index 88deb2042ad0..0b6a8df76fde 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
@@ -66,6 +66,7 @@
#include "com/sun/star/lang/XSingleServiceFactory.hpp"
#include "com/sun/star/system/SystemShellExecuteFlags.hpp"
#include "com/sun/star/system/SystemShellExecute.hpp"
+#include "com/sun/star/task/InteractionHandler.hpp"
#include "com/sun/star/task/XAbortChannel.hpp"
#include "com/sun/star/task/XJob.hpp"
#include "com/sun/star/ucb/CommandAbortedException.hpp"
@@ -92,7 +93,7 @@
#include "sal/types.h"
#include "salhelper/thread.hxx"
#include "svtools/svlbitm.hxx"
-#include "svtools/svlbox.hxx"
+#include "svtools/treelistbox.hxx"
#include <svtools/controldims.hrc>
#include "svx/checklbx.hxx"
#include "tools/gen.hxx"
@@ -272,16 +273,10 @@ UpdateDialog::Thread::Thread(
{
if( m_context.is() )
{
- uno::Reference< lang::XMultiComponentFactory > xServiceManager( m_context->getServiceManager() );
-
- if( xServiceManager.is() )
- {
- m_xInteractionHdl = uno::Reference< task::XInteractionHandler > (
- xServiceManager->createInstanceWithContext( OUSTR( "com.sun.star.task.InteractionHandler" ), m_context),
- uno::UNO_QUERY );
- if ( m_xInteractionHdl.is() )
- m_updateInformation->setInteractionHandler( m_xInteractionHdl );
- }
+ m_xInteractionHdl.set(
+ task::InteractionHandler::createWithParent(m_context, 0),
+ uno::UNO_QUERY );
+ m_updateInformation->setInteractionHandler( m_xInteractionHdl );
}
}
diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx
index 2c30677aff02..31cb38c2f4ed 100644
--- a/desktop/source/deployment/misc/dp_misc.cxx
+++ b/desktop/source/deployment/misc/dp_misc.cxx
@@ -526,7 +526,7 @@ OUString readConsole()
}
#else
char buf[1024];
- rtl_zeroMemory(buf, 1024);
+ memset(buf, 0, 1024);
// read one char less so that the last char in buf is always zero
if (fgets(buf, 1024, stdin) != NULL)
{
diff --git a/desktop/source/deployment/registry/configuration/dp_configuration.cxx b/desktop/source/deployment/registry/configuration/dp_configuration.cxx
index c1019bacefe4..06589bf80ed6 100644
--- a/desktop/source/deployment/registry/configuration/dp_configuration.cxx
+++ b/desktop/source/deployment/registry/configuration/dp_configuration.cxx
@@ -39,7 +39,6 @@
#include "rtl/string.hxx"
#include "rtl/ustrbuf.hxx"
#include "rtl/uri.hxx"
-#include "rtl/memory.h"
#include "osl/file.hxx"
#include "cppuhelper/exc_hlp.hxx"
#include "ucbhelper/content.hxx"
@@ -640,7 +639,7 @@ OUString replaceOrigin(
if ((write_pos + index) > filtered.getLength())
filtered.realloc( (filtered.getLength() + index) * 2 );
- rtl_copyMemory( filtered.getArray() + write_pos, pBytes, index );
+ memcpy( filtered.getArray() + write_pos, pBytes, index );
write_pos += index;
pBytes += index;
nBytes -= index;
@@ -679,7 +678,7 @@ OUString replaceOrigin(
}
if ((write_pos + nAdd) > filtered.getLength())
filtered.realloc( (filtered.getLength() + nAdd) * 2 );
- rtl_copyMemory( filtered.getArray() + write_pos, pAdd, nAdd );
+ memcpy( filtered.getArray() + write_pos, pAdd, nAdd );
write_pos += nAdd;
}
if (!use_filtered)
diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx
index 7af20604a911..a5bd86141340 100644
--- a/desktop/source/deployment/registry/help/dp_help.cxx
+++ b/desktop/source/deployment/registry/help/dp_help.cxx
@@ -37,7 +37,6 @@
#include "ucbhelper/content.hxx"
#include "comphelper/servicedecl.hxx"
#include "svl/inettype.hxx"
-#include "svtools/javainteractionhandler.hxx"
#include "uno/current_context.hxx"
#include "unotools/pathoptions.hxx"
diff --git a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
index 5741ccc2bea2..f751f8b7c9d2 100644
--- a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
+++ b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
@@ -37,6 +37,7 @@
#include "svl/inettype.hxx"
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/script/provider/XScriptProviderFactory.hpp>
+#include <com/sun/star/xml/sax/Parser.hpp>
#include <memory>
@@ -252,10 +253,7 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_(
Reference<XComponentContext>
xContext( getComponentContext() );
- Reference< xml::sax::XParser > xParser(
- xContext->getServiceManager()->createInstanceWithContext(
- OUSTR("com.sun.star.xml.sax.Parser"), xContext ),
- UNO_QUERY_THROW );
+ Reference< xml::sax::XParser > xParser = xml::sax::Parser::create(xContext);
xParser->setDocumentHandler( xDocHandler );
xml::sax::InputSource source;
diff --git a/desktop/source/migration/services/oo3extensionmigration.hxx b/desktop/source/migration/services/oo3extensionmigration.hxx
index d941c3b4274e..950473a23b37 100644
--- a/desktop/source/migration/services/oo3extensionmigration.hxx
+++ b/desktop/source/migration/services/oo3extensionmigration.hxx
@@ -43,7 +43,6 @@
#include <cppuhelper/implbase3.hxx>
#include <cppuhelper/compbase3.hxx>
#include <ucbhelper/content.hxx>
-#include <xmlscript/xmllib_imexp.hxx>
namespace com { namespace sun { namespace star {
namespace uno {
diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx
index 4510f65dcbc5..61749529f335 100644
--- a/desktop/source/offacc/acceptor.cxx
+++ b/desktop/source/offacc/acceptor.cxx
@@ -28,9 +28,6 @@
#include "acceptor.hxx"
-#include <unotools/bootstrap.hxx>
-#include <tools/stream.hxx>
-#include <vcl/svapp.hxx>
#include <com/sun/star/bridge/BridgeFactory.hpp>
#include <com/sun/star/uno/XNamingService.hpp>
#include <comphelper/processfactory.hxx>
@@ -293,7 +290,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL offacc_component_getFactory(const sal_Char
Reference< XMultiServiceFactory > xServiceManager(
reinterpret_cast< XMultiServiceFactory* >(pServiceManager));
- if (Acceptor::impl_getImplementationName().compareToAscii( pImplementationName ) == COMPARE_EQUAL )
+ if (Acceptor::impl_getImplementationName().equalsAscii( pImplementationName ) )
{
xFactory = Reference< XSingleServiceFactory >( cppu::createSingleFactory(
xServiceManager, Acceptor::impl_getImplementationName(),
diff --git a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
index b7b57b27e1d4..85141645fb96 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
@@ -31,7 +31,6 @@
#include "../../deployment/gui/dp_gui_shared.hxx"
#include "unopkg_shared.h"
#include "osl/thread.h"
-#include "rtl/memory.h"
#include "tools/string.hxx"
#include "tools/resmgr.hxx"
#include "cppuhelper/implbase3.hxx"
diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx
index 38de2eb112cf..1f816cd14b2f 100644
--- a/desktop/source/splash/splash.cxx
+++ b/desktop/source/splash/splash.cxx
@@ -31,7 +31,6 @@
#include <stdio.h>
#include <unotools/bootstrap.hxx>
#include <tools/stream.hxx>
-#include <sfx2/sfx.hrc>
#include <vcl/svapp.hxx>
#include <vcl/salnativewidgets.hxx>
@@ -86,6 +85,7 @@ private:
BitmapEx _aIntroBmp;
Color _cProgressFrameColor;
Color _cProgressBarColor;
+ Color _cProgressTextColor;
bool _bNativeProgress;
OUString _sAppName;
OUString _sProgressText;
@@ -101,7 +101,7 @@ private:
sal_Bool _bFullScreenSplash;
sal_Bool _bProgressEnd;
long _height, _width, _tlx, _tly, _barwidth;
- long _barheight, _barspace;
+ long _barheight, _barspace, _textBaseline;
double _fXPos, _fYPos;
double _fWidth, _fHeight;
const long _xoffset, _yoffset;
@@ -130,6 +130,7 @@ SplashScreen::SplashScreen()
, _vdev(*((IntroWindow*)this))
, _cProgressFrameColor(sal::static_int_cast< ColorData >(NOT_LOADED))
, _cProgressBarColor(sal::static_int_cast< ColorData >(NOT_LOADED))
+ , _cProgressTextColor(sal::static_int_cast< ColorData >(NOT_LOADED))
, _bNativeProgress(true)
, _iMax(100)
, _iProgress(0)
@@ -144,6 +145,7 @@ SplashScreen::SplashScreen()
, _barwidth(NOT_LOADED)
, _barheight(NOT_LOADED)
, _barspace(2)
+ , _textBaseline(NOT_LOADED)
, _fXPos(-1.0)
, _fYPos(-1.0)
, _fWidth(-1.0)
@@ -152,6 +154,7 @@ SplashScreen::SplashScreen()
, _yoffset(18)
{
loadConfig();
+ _vdev.EnableRTL(IsRTLEnabled());
}
SplashScreen::~SplashScreen()
@@ -297,6 +300,9 @@ SplashScreen::initialize( const ::com::sun::star::uno::Sequence< ::com::sun::sta
}
}
+ if ( NOT_LOADED == _textBaseline )
+ _textBaseline = _height;
+
if ( sal::static_int_cast< ColorData >(NOT_LOADED) ==
_cProgressFrameColor.GetColor() )
_cProgressFrameColor = Color( COL_LIGHTGRAY );
@@ -311,6 +317,10 @@ SplashScreen::initialize( const ::com::sun::star::uno::Sequence< ::com::sun::sta
_cProgressBarColor = Color( COL_BLUE );
}
+ if ( sal::static_int_cast< ColorData >(NOT_LOADED) ==
+ _cProgressTextColor.GetColor() )
+ _cProgressTextColor = Color( COL_BLACK );
+
Application::AddEventListener(
LINK( this, SplashScreen, AppEventListenerHdl ) );
@@ -363,6 +373,10 @@ void SplashScreen::loadConfig()
OUString( RTL_CONSTASCII_USTRINGPARAM( "ProgressFrameColor" ) ) );
OUString sProgressBarColor = implReadBootstrapKey(
OUString( RTL_CONSTASCII_USTRINGPARAM( "ProgressBarColor" ) ) );
+ OUString sProgressTextColor = implReadBootstrapKey(
+ OUString( RTL_CONSTASCII_USTRINGPARAM( "ProgressTextColor" ) ) );
+ OUString sProgressTextBaseline = implReadBootstrapKey(
+ OUString( RTL_CONSTASCII_USTRINGPARAM( "ProgressTextBaseline" ) ) );
OUString sSize = implReadBootstrapKey(
OUString( RTL_CONSTASCII_USTRINGPARAM( "ProgressSize" ) ) );
OUString sPosition = implReadBootstrapKey(
@@ -418,6 +432,29 @@ void SplashScreen::loadConfig()
}
}
+ if ( !sProgressTextColor.isEmpty() )
+ {
+ sal_uInt8 nRed = 0;
+ sal_Int32 idx = 0;
+ sal_Int32 temp = sProgressTextColor.getToken( 0, ',', idx ).toInt32();
+ if ( idx != -1 )
+ {
+ nRed = static_cast< sal_uInt8 >( temp );
+ temp = sProgressTextColor.getToken( 0, ',', idx ).toInt32();
+ }
+ if ( idx != -1 )
+ {
+ sal_uInt8 nGreen = static_cast< sal_uInt8 >( temp );
+ sal_uInt8 nBlue = static_cast< sal_uInt8 >( sProgressTextColor.getToken( 0, ',', idx ).toInt32() );
+ _cProgressTextColor = Color( nRed, nGreen, nBlue );
+ }
+ }
+
+ if ( !sProgressTextBaseline.isEmpty() )
+ {
+ _textBaseline = sProgressTextBaseline.toInt32();
+ }
+
if( !sNativeProgress.isEmpty() )
{
_bNativeProgress = sNativeProgress.toBoolean();
@@ -608,7 +645,12 @@ void SplashScreen::Paint( const Rectangle&)
_vdev.SetFillColor( _cProgressBarColor );
_vdev.SetLineColor();
_vdev.DrawRect(Rectangle(_tlx+_barspace, _tly+_barspace, _tlx+_barspace+length, _tly+_barheight-_barspace));
- _vdev.DrawText( Rectangle(_tlx, _tly+_barheight+5, _tlx+_barwidth, _tly+_barheight+5+20), _sProgressText, TEXT_DRAW_CENTER );
+ Font aFont;
+ aFont.SetSize(Size(0, 12));
+ aFont.SetAlign(ALIGN_BASELINE);
+ _vdev.SetFont(aFont);
+ _vdev.SetTextColor(_cProgressTextColor);
+ _vdev.DrawText(Point(_tlx, _textBaseline), _sProgressText);
}
DrawOutDev(Point(), GetOutputSizePixel(), Point(), _vdev.GetOutputSizePixel(), _vdev );
}
diff --git a/desktop/unx/splash/unxsplash.cxx b/desktop/unx/splash/unxsplash.cxx
index e7c7bd56305d..c761359fcd2d 100644
--- a/desktop/unx/splash/unxsplash.cxx
+++ b/desktop/unx/splash/unxsplash.cxx
@@ -28,10 +28,7 @@
************************************************************************/
#include "unxsplash.hxx"
#include <stdio.h>
-#include <unotools/bootstrap.hxx>
#include <osl/process.h>
-#include <tools/stream.hxx>
-#include <sfx2/sfx.hrc>
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <cppuhelper/implementationentry.hxx>
#include <rtl/logfile.hxx>
diff --git a/desktop/win32/source/guistdio/guistdio.inc b/desktop/win32/source/guistdio/guistdio.inc
index 25586f0be214..0c2f09712f27 100644
--- a/desktop/win32/source/guistdio/guistdio.inc
+++ b/desktop/win32/source/guistdio/guistdio.inc
@@ -75,7 +75,7 @@ DWORD passOutputToConsole(HANDLE readPipe, HANDLE console)
dwRead++;
//We must make sure that only complete wchar_t|s are written. WriteConsolse takes
//the number of wchar_t|s as argument. ReadFile, however, reads bytes.
- bIncompleteWchar = dwRead % 2 ? true : false;
+ bIncompleteWchar = (dwRead % 2) ? true : false;
if (bIncompleteWchar)
{
//To test this case, give aBuffer a small odd size, e.g. aBuffer[3]