summaryrefslogtreecommitdiffstats
path: root/extensions/source/bibliography/bibview.cxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-08-14 14:20:41 +0000
committerOliver Specht <os@openoffice.org>2002-08-14 14:20:41 +0000
commit5eb298345c40b90f422efb21925473de944ee91b (patch)
tree85c7c98307e00f6caeb321c07098a7bf6b5f3eb1 /extensions/source/bibliography/bibview.cxx
parent#101937# initial revision (diff)
downloadcore-5eb298345c40b90f422efb21925473de944ee91b.tar.gz
core-5eb298345c40b90f422efb21925473de944ee91b.zip
#97180# suppress column assignment warning optionally
Diffstat (limited to 'extensions/source/bibliography/bibview.cxx')
-rw-r--r--extensions/source/bibliography/bibview.cxx27
1 files changed, 21 insertions, 6 deletions
diff --git a/extensions/source/bibliography/bibview.cxx b/extensions/source/bibliography/bibview.cxx
index e9d95e5bd392..51f4d14176b0 100644
--- a/extensions/source/bibliography/bibview.cxx
+++ b/extensions/source/bibliography/bibview.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bibview.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: gt $ $Date: 2002-05-17 09:43:10 $
+ * last change: $Author: os $ $Date: 2002-08-14 15:20:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -87,6 +87,9 @@
#include "bibmod.hxx"
#endif
#include "sections.hrc"
+#ifndef _BIBCONFIG_HXX
+#include "bibconfig.hxx"
+#endif
#ifndef _SV_SVAPP_HXX
@@ -192,10 +195,22 @@ namespace bib
String sErrorString( m_pGeneralPage->GetErrorString() );
if ( sErrorString.Len() )
{
- sErrorString += '\n';
- sErrorString += String( BibResId( RID_MAP_QUESTION ) );
- QueryBox aQuery( this, WB_YES_NO, sErrorString );
- if ( RET_YES == aQuery.Execute() )
+ sal_Bool bExecute = sal_True;
+ if(BibModul::GetConfig()->IsShowColumnAssignmentWarning())
+ {
+ sErrorString += '\n';
+ sErrorString += String( BibResId( RID_MAP_QUESTION ) );
+ QueryBox aQuery( this, WB_YES_NO, sErrorString );
+ aQuery.SetDefaultCheckBoxText();
+ short nResult = aQuery.Execute();
+ BibModul::GetConfig()->SetShowColumnAssignmentWarning(
+ !aQuery.GetCheckBoxState());
+ if( RET_YES != nResult )
+ {
+ bExecute = sal_False;
+ }
+ }
+ if(bExecute)
{
Application::PostUserEvent( STATIC_LINK( this, BibView, CallMappingHdl ) );
}