summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-14 09:49:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-15 06:45:14 +0000
commitd15b4e204598fc7e4c1682c4f10228e217575937 (patch)
tree1173b2725abac5f06bfd2e28965a95256283e6a4 /svx
parent14a0d26d6ae0ee59a685c254ec235fea81636475 (diff)
teach sallogareas plugin to catch inconsistencies
Change-Id: I8bcea5ffc74d48148bea78da8c17744e288c069a Reviewed-on: https://gerrit.libreoffice.org/32004 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx2
-rw-r--r--svx/source/fmcomp/gridcell.cxx4
-rw-r--r--svx/source/fmcomp/gridctrl.cxx4
-rw-r--r--svx/source/form/fmtextcontrolshell.cxx20
-rw-r--r--svx/source/gengal/gengal.cxx4
5 files changed, 17 insertions, 17 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index d07db154241f..2e7df555a1ab 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -1877,7 +1877,7 @@ namespace
try {
xProp->getPropertyValue( _sPropName ) >>= sRetText;
} catch (UnknownPropertyException const& e) {
- SAL_WARN("svx.form",
+ SAL_WARN("svx.fmcomp",
"exception caught: " << e.Message);
}
}
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 6a115a3fd970..0ec4156755a6 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -1288,7 +1288,7 @@ void DbFormattedField::Init( vcl::Window& rParent, const Reference< XRowSet >& x
}
else
{
- SAL_INFO("svx", "DbFormattedField::Init : my uno-model has no format-key, but a formats supplier !");
+ SAL_INFO("svx.fmcomp", "DbFormattedField::Init : my uno-model has no format-key, but a formats supplier !");
// the OFormattedModel which we usually are working with ensures that the model has a format key
// as soon as the form is loaded. Unfortunally this method here is called from within loaded, too.
// So if our LoadListener is called before the LoadListener of the model, this "else case" is
@@ -3552,7 +3552,7 @@ void FmXTextCell::PaintFieldToCell(OutputDevice& rDev,
}
catch (const Exception& e)
{
- SAL_WARN("svx.form", "PaintFieldToCell: caught an exception: " << e.Message);
+ SAL_WARN("svx.fmcomp", "PaintFieldToCell: caught an exception: " << e.Message);
}
}
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 9457839c1c70..75516618b595 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -2298,14 +2298,14 @@ sal_Int32 DbGridControl::AlignSeekCursor()
if ( m_pDataCursor->isBeforeFirst() )
{
// this is somewhat strange, but can nevertheless happen
- SAL_INFO( "svx", "DbGridControl::AlignSeekCursor: nobody should tamper with my cursor this way (before first)!" );
+ SAL_INFO( "svx.fmcomp", "DbGridControl::AlignSeekCursor: nobody should tamper with my cursor this way (before first)!" );
m_pSeekCursor->first();
m_pSeekCursor->previous();
m_nSeekPos = -1;
}
else if ( m_pDataCursor->isAfterLast() )
{
- SAL_INFO( "svx", "DbGridControl::AlignSeekCursor: nobody should tamper with my cursor this way (after last)!" );
+ SAL_INFO( "svx.fmcomp", "DbGridControl::AlignSeekCursor: nobody should tamper with my cursor this way (after last)!" );
m_pSeekCursor->last();
m_pSeekCursor->next();
m_nSeekPos = -1;
diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx
index 76726e244420..4233fc17ab54 100644
--- a/svx/source/form/fmtextcontrolshell.cxx
+++ b/svx/source/form/fmtextcontrolshell.cxx
@@ -552,7 +552,7 @@ namespace svx
{
if ( m_bNeedClipboardInvalidation )
{
- SAL_INFO("svx", "invalidating clipboard slots" );
+ SAL_INFO("svx.form", "invalidating clipboard slots" );
m_rBindings.Invalidate( SID_CUT );
m_rBindings.Invalidate( SID_COPY );
m_rBindings.Invalidate( SID_PASTE );
@@ -614,7 +614,7 @@ namespace svx
OString sMessage = "found a feature state for " + sUnoSlotNameAscii;
if ( !bFeatureIsEnabled )
sMessage += " (disabled)";
- SAL_INFO("svx", sMessage );
+ SAL_INFO("svx.form", sMessage );
#endif
lcl_translateUnoStateToItem( nSlotId, aFeature->second->getFeatureState(), _rSet );
@@ -622,7 +622,7 @@ namespace svx
#if OSL_DEBUG_LEVEL > 0
else
{
- SAL_WARN("svx", "found a feature state for " << sUnoSlotNameAscii << ", but could not translate it into an item!" );
+ SAL_WARN("svx.form", "found a feature state for " << sUnoSlotNameAscii << ", but could not translate it into an item!" );
}
#endif
}
@@ -954,7 +954,7 @@ namespace svx
bNeedSelection = true;
bNeedTextComponent = true;
bNeedWriteableControl = true;
- SAL_INFO("svx", "need to invalidate again" );
+ SAL_INFO("svx.form", "need to invalidate again" );
m_bNeedClipboardInvalidation = true;
break;
@@ -1038,7 +1038,7 @@ namespace svx
void FmTextControlShell::formActivated( const Reference< runtime::XFormController >& _rxController )
{
#if OSL_DEBUG_LEVEL > 0
- SAL_INFO("svx", "0x" << OUString::number( reinterpret_cast<sal_IntPtr>(_rxController.get()), 16 ));
+ SAL_INFO("svx.form", "0x" << OUString::number( reinterpret_cast<sal_IntPtr>(_rxController.get()), 16 ));
#endif
DBG_ASSERT( _rxController.is(), "FmTextControlShell::formActivated: invalid controller!" );
@@ -1064,7 +1064,7 @@ namespace svx
void FmTextControlShell::formDeactivated( const Reference< runtime::XFormController >& _rxController )
{
#if OSL_DEBUG_LEVEL > 0
- SAL_INFO("svx", "0x" << OUString::number( reinterpret_cast<sal_IntPtr>(_rxController.get()), 16 ));
+ SAL_INFO("svx.form", "0x" << OUString::number( reinterpret_cast<sal_IntPtr>(_rxController.get()), 16 ));
#endif
(void)_rxController;
@@ -1152,7 +1152,7 @@ namespace svx
if ( m_xActiveTextComponent.is() )
{
- SAL_INFO("svx", "stopping timer for clipboard invalidation" );
+ SAL_INFO("svx.form", "stopping timer for clipboard invalidation" );
m_aClipboardInvalidation.Stop();
}
// no more active control
@@ -1217,7 +1217,7 @@ namespace svx
if ( m_xActiveTextComponent.is() )
{
- SAL_INFO("svx", "starting timer for clipboard invalidation" );
+ SAL_INFO("svx.form", "starting timer for clipboard invalidation" );
m_aClipboardInvalidation.Start();
}
@@ -1310,7 +1310,7 @@ namespace svx
Reference< css::awt::XControl > xControl( _rEvent.Source, UNO_QUERY );
#if OSL_DEBUG_LEVEL > 0
- SAL_INFO("svx", "0x" << OUString::number( reinterpret_cast<sal_IntPtr>(xControl.get()), 16 ));
+ SAL_INFO("svx.form", "0x" << OUString::number( reinterpret_cast<sal_IntPtr>(xControl.get()), 16 ));
#endif
DBG_ASSERT( xControl.is(), "FmTextControlShell::focusGained: suspicious focus event!" );
@@ -1324,7 +1324,7 @@ namespace svx
Reference< css::awt::XControl > xControl( _rEvent.Source, UNO_QUERY );
#if OSL_DEBUG_LEVEL > 0
- SAL_INFO("svx", "0x" << OUString::number( reinterpret_cast<sal_IntPtr>(xControl.get()), 16 ));
+ SAL_INFO("svx.form", "0x" << OUString::number( reinterpret_cast<sal_IntPtr>(xControl.get()), 16 ));
#endif
m_bActiveControl = false;
diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx
index 2f0b5cbe8bcb..45411186081a 100644
--- a/svx/source/gengal/gengal.cxx
+++ b/svx/source/gengal/gengal.cxx
@@ -319,12 +319,12 @@ int GalApp::Main()
}
catch (const uno::Exception& e)
{
- SAL_WARN("vcl.app", "Fatal exception: " << e.Message);
+ SAL_WARN("svx", "Fatal exception: " << e.Message);
return EXIT_FAILURE;
}
catch (const std::exception &e)
{
- SAL_WARN("vcl.app", "Fatal exception: " << e.what());
+ SAL_WARN("svx", "Fatal exception: " << e.what());
return 1;
}