Kaydet (Commit) 75c1a803 authored tarafından Michael Meeks's avatar Michael Meeks

WaE: various sillies flagged by MSVC++

üst 7cac5517
...@@ -65,14 +65,6 @@ using namespace ::com::sun::star; ...@@ -65,14 +65,6 @@ using namespace ::com::sun::star;
#define SPACE_OFFSET 5 #define SPACE_OFFSET 5
#define SCROLL_TIMER 30 #define SCROLL_TIMER 30
/** loads the application logo as used in the about dialog and impress slideshow pause screen */
Image SfxApplication::GetApplicationLogo()
{
BitmapEx aBitmap;
Application::LoadBrandBitmap ("about", aBitmap);
return Image( aBitmap );
}
/* get good version information */ /* get good version information */
static String static String
GetBuildId() GetBuildId()
......
...@@ -657,6 +657,7 @@ public: ...@@ -657,6 +657,7 @@ public:
const ResId &aLoad, const ResId &aSave, const ResId &aLoad, const ResId &aSave,
const ResId &aEmbed, const ResId &aTableName, const ResId &aEmbed, const ResId &aTableName,
XPropertyListType t, XOutdevItemPool* mpXPool ); XPropertyListType t, XOutdevItemPool* mpXPool );
virtual ~SvxLoadSaveEmbed() {};
XPropertyListRef GetList(); XPropertyListRef GetList();
void HideLoadSaveEmbed(); void HideLoadSaveEmbed();
bool GetEmbed(); bool GetEmbed();
......
...@@ -315,15 +315,15 @@ void SvxProxyTabPage::ReadConfigData_Impl() ...@@ -315,15 +315,15 @@ void SvxProxyTabPage::ReadConfigData_Impl()
} }
} }
catch(container::NoSuchElementException &e) { catch(container::NoSuchElementException &) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: NoSuchElementException caught" ); OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: NoSuchElementException caught" );
} }
catch(com::sun::star::lang::WrappedTargetException &e) { catch(com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: WrappedTargetException caught" ); OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: WrappedTargetException caught" );
} }
catch(RuntimeException &e) { catch(RuntimeException &) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: RuntimeException caught" ); OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: RuntimeException caught" );
} }
...@@ -373,16 +373,16 @@ void SvxProxyTabPage::ReadConfigDefaults_Impl() ...@@ -373,16 +373,16 @@ void SvxProxyTabPage::ReadConfigDefaults_Impl()
aNoProxyForED.SetText( aStringValue ); aNoProxyForED.SetText( aStringValue );
} }
} }
catch(beans::UnknownPropertyException &e) catch(beans::UnknownPropertyException &)
{ {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" ); OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" );
} }
catch(com::sun::star::lang::WrappedTargetException &e) { catch(com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" ); OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" );
} }
catch(RuntimeException &e) catch(RuntimeException &)
{ {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" ); OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" );
} }
...@@ -407,16 +407,16 @@ void SvxProxyTabPage::RestoreConfigDefaults_Impl() ...@@ -407,16 +407,16 @@ void SvxProxyTabPage::RestoreConfigDefaults_Impl()
xChangesBatch->commitChanges(); xChangesBatch->commitChanges();
} }
catch(beans::UnknownPropertyException &e) catch(beans::UnknownPropertyException &)
{ {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" ); OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" );
} }
catch(com::sun::star::lang::WrappedTargetException &e) { catch(com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" ); OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" );
} }
catch(RuntimeException &e) catch(RuntimeException &)
{ {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" ); OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" );
} }
...@@ -512,23 +512,23 @@ sal_Bool SvxProxyTabPage::FillItemSet(SfxItemSet& ) ...@@ -512,23 +512,23 @@ sal_Bool SvxProxyTabPage::FillItemSet(SfxItemSet& )
xChangesBatch->commitChanges(); xChangesBatch->commitChanges();
} }
catch(com::sun::star::lang::IllegalArgumentException &e) { catch(com::sun::star::lang::IllegalArgumentException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: IllegalArgumentException caught" ); OSL_TRACE( "SvxProxyTabPage::FillItemSet: IllegalArgumentException caught" );
} }
catch(beans::UnknownPropertyException &e) { catch(beans::UnknownPropertyException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: UnknownPropertyException caught" ); OSL_TRACE( "SvxProxyTabPage::FillItemSet: UnknownPropertyException caught" );
} }
catch(beans::PropertyVetoException &e) { catch(beans::PropertyVetoException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: PropertyVetoException caught" ); OSL_TRACE( "SvxProxyTabPage::FillItemSet: PropertyVetoException caught" );
} }
catch(com::sun::star::lang::WrappedTargetException &e) { catch(com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: WrappedTargetException caught" ); OSL_TRACE( "SvxProxyTabPage::FillItemSet: WrappedTargetException caught" );
} }
catch(RuntimeException &e) { catch(RuntimeException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: RuntimeException caught" ); OSL_TRACE( "SvxProxyTabPage::FillItemSet: RuntimeException caught" );
} }
......
...@@ -2433,7 +2433,7 @@ struct ShapeRenderingVisitor ...@@ -2433,7 +2433,7 @@ struct ShapeRenderingVisitor
if( !maCurrState.maFontStyle.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("normal")) ) if( !maCurrState.maFontStyle.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("normal")) )
aFont.SetItalic(ITALIC_NORMAL); // TODO: discriminate aFont.SetItalic(ITALIC_NORMAL); // TODO: discriminate
if( !maCurrState.mnFontWeight != 400.0 ) if( maCurrState.mnFontWeight != 400.0 )
aFont.SetWeight(WEIGHT_BOLD); // TODO: discriminate aFont.SetWeight(WEIGHT_BOLD); // TODO: discriminate
// extract basic transformations out of CTM // extract basic transformations out of CTM
......
...@@ -309,43 +309,9 @@ static bool impl_loadBitmap( ...@@ -309,43 +309,9 @@ static bool impl_loadBitmap(
/** loads the application logo as used in the about dialog and impress slideshow pause screen */ /** loads the application logo as used in the about dialog and impress slideshow pause screen */
Image SfxApplication::GetApplicationLogo() Image SfxApplication::GetApplicationLogo()
{ {
Image aAppLogo; BitmapEx aBitmap;
Application::LoadBrandBitmap ("about", aBitmap);
rtl::OUString aAbouts; return Image( aBitmap );
bool bLoaded = false;
sal_Int32 nIndex = 0;
do
{
bLoaded = impl_loadBitmap(
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program")),
aAbouts.getToken( 0, ',', nIndex ), aAppLogo );
}
while ( !bLoaded && ( nIndex >= 0 ) );
// fallback to "about.bmp"
if ( !bLoaded )
{
bLoaded = impl_loadBitmap(
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program/edition")),
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("about.png")), aAppLogo );
if ( !bLoaded )
bLoaded = impl_loadBitmap(
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program/edition")),
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("about.bmp")), aAppLogo );
}
if ( !bLoaded )
{
bLoaded = impl_loadBitmap(
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program")),
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("about.png")), aAppLogo );
if ( !bLoaded )
bLoaded = impl_loadBitmap(
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program")),
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("about.bmp")), aAppLogo );
}
return aAppLogo;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment