Kaydet (Commit) 0d5e62ca authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.11.132); FILE MERGED

2006/04/20 14:49:41 cl 1.11.132.1: warning free code changes
üst 741a149b
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: optsave.cxx,v $ * $RCSfile: optsave.cxx,v $
* *
* $Revision: 1.11 $ * $Revision: 1.12 $
* *
* last change: $Author: kz $ $Date: 2005-11-11 13:55:34 $ * last change: $Author: hr $ $Date: 2006-06-19 15:24:28 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -48,8 +48,6 @@ ...@@ -48,8 +48,6 @@
#ifndef _SFXINTITEM_HXX //autogen #ifndef _SFXINTITEM_HXX //autogen
#include <svtools/intitem.hxx> #include <svtools/intitem.hxx>
#endif #endif
#pragma hdrstop
#define _SVX_OPTSAVE_CXX #define _SVX_OPTSAVE_CXX
#include "optsave.hrc" #include "optsave.hrc"
...@@ -146,13 +144,10 @@ class FilterWarningDialog_Impl : public ModalDialog ...@@ -146,13 +144,10 @@ class FilterWarningDialog_Impl : public ModalDialog
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
FilterWarningDialog_Impl::FilterWarningDialog_Impl(Window* pParent) : FilterWarningDialog_Impl::FilterWarningDialog_Impl(Window* pParent) :
ModalDialog(pParent, SVX_RES( RID_SVXDLG_FILTER_WARNING ) ), ModalDialog(pParent, SVX_RES( RID_SVXDLG_FILTER_WARNING ) ),
#pragma warning (disable : 4355)
aOk( this, ResId(PB_OK )), aOk( this, ResId(PB_OK )),
aCancel( this, ResId(PB_CANCEL )), aCancel( this, ResId(PB_CANCEL )),
aImage( this, ResId(IMG_WARNING )), aImage( this, ResId(IMG_WARNING )),
aFilterWarningFT( this, ResId(FT_FILTER_WARNING )) aFilterWarningFT( this, ResId(FT_FILTER_WARNING ))
#pragma warning (default : 4355)
// ,aDontShowAgainCB( this, ResId(CB_DONT_SHOW_AGAIN ))
{ {
FreeResource(); FreeResource();
aImage.SetImage(WarningBox::GetStandardImage()); aImage.SetImage(WarningBox::GetStandardImage());
...@@ -253,7 +248,6 @@ SvxSaveTabPage_Impl::~SvxSaveTabPage_Impl() ...@@ -253,7 +248,6 @@ SvxSaveTabPage_Impl::~SvxSaveTabPage_Impl()
SfxSaveTabPage::SfxSaveTabPage( Window* pParent, const SfxItemSet& rCoreSet ) : SfxSaveTabPage::SfxSaveTabPage( Window* pParent, const SfxItemSet& rCoreSet ) :
SfxTabPage( pParent, SVX_RES( RID_SFXPAGE_SAVE ), rCoreSet ), SfxTabPage( pParent, SVX_RES( RID_SFXPAGE_SAVE ), rCoreSet ),
#pragma warning (disable : 4355)
aLoadFL( this, ResId( LB_LOAD ) ), aLoadFL( this, ResId( LB_LOAD ) ),
aLoadUserSettingsCB( this, ResId( CB_LOAD_SETTINGS) ), aLoadUserSettingsCB( this, ResId( CB_LOAD_SETTINGS) ),
aSaveBox ( this, ResId( GB_SAVE ) ), aSaveBox ( this, ResId( GB_SAVE ) ),
...@@ -274,7 +268,6 @@ SfxSaveTabPage::SfxSaveTabPage( Window* pParent, const SfxItemSet& rCoreSet ) : ...@@ -274,7 +268,6 @@ SfxSaveTabPage::SfxSaveTabPage( Window* pParent, const SfxItemSet& rCoreSet ) :
aFiltersFI ( this, ResId( FI_FILTER ) ), aFiltersFI ( this, ResId( FI_FILTER ) ),
aFiltersLB ( this, ResId( LB_FILTER ) ), aFiltersLB ( this, ResId( LB_FILTER ) ),
aWarningFT ( this, ResId( FT_WARN ) ), aWarningFT ( this, ResId( FT_WARN ) ),
#pragma warning (default : 4355)
pImpl(new SvxSaveTabPage_Impl) pImpl(new SvxSaveTabPage_Impl)
{ {
pImpl->m_pNoPrettyPrinting = new CheckBox( this, ResId( BTN_NOPRETTYPRINTING ) ); pImpl->m_pNoPrettyPrinting = new CheckBox( this, ResId( BTN_NOPRETTYPRINTING ) );
...@@ -385,21 +378,11 @@ bool SfxSaveTabPage::AcceptFilter( USHORT nPos ) ...@@ -385,21 +378,11 @@ bool SfxSaveTabPage::AcceptFilter( USHORT nPos )
if( pImpl->aDefaultArr[nPos] == pFilters[nFilter] ) if( pImpl->aDefaultArr[nPos] == pFilters[nFilter] )
{ {
bAlien = pImpl->aAlienArr[nPos][nFilter]; bAlien = pImpl->aAlienArr[nPos][nFilter];
OUString* pUIFilters = pImpl->aUIFilterArr[nPos].getArray();
sUIName = pUIFilters[nFilter];; sUIName = pUIFilters[nFilter];;
break; break;
} }
} }
bool bSet = true; bool bSet = true;
/*if(bAlien)
{
FilterWarningDialog_Impl aDlg(this);
aDlg.SetFilterName(sUIName);
if(RET_OK != aDlg.Execute())
{
bSet = false;
}
} */
return bSet; return bSet;
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
...@@ -507,7 +490,7 @@ BOOL SfxSaveTabPage::FillItemSet( SfxItemSet& rSet ) ...@@ -507,7 +490,7 @@ BOOL SfxSaveTabPage::FillItemSet( SfxItemSet& rSet )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void SfxSaveTabPage::Reset( const SfxItemSet& rSet ) void SfxSaveTabPage::Reset( const SfxItemSet& )
{ {
SvtSaveOptions aSaveOpt; SvtSaveOptions aSaveOpt;
aLoadUserSettingsCB.Check(aSaveOpt.IsLoadUserSettings()); aLoadUserSettingsCB.Check(aSaveOpt.IsLoadUserSettings());
......
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