From dac4ca5f682fdd0c3eee7f7ee1d98c9b3c8b7ce4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Jun 2014 14:57:44 +0200 Subject: new loplugin: externalandnotdefined Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2 --- forms/source/component/scrollbar.hxx | 8 ++++++++ forms/source/component/spinbutton.cxx | 7 +------ 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'forms') diff --git a/forms/source/component/scrollbar.hxx b/forms/source/component/scrollbar.hxx index 50af8b258fee..aee2d41f0fef 100644 --- a/forms/source/component/scrollbar.hxx +++ b/forms/source/component/scrollbar.hxx @@ -83,6 +83,14 @@ namespace frm }; + css::uno::Any translateExternalDoubleToControlIntValue( + const css::uno::Any& _rExternalValue, const css::uno::Reference< css::beans::XPropertySet >& _rxProperties, + const OUString& _rMinValueName, const OUString& _rMaxValueName ); + + css::uno::Any translateControlIntToExternalDoubleValue( const css::uno::Any& _rControlIntValue ); + + + } // namespacefrm diff --git a/forms/source/component/spinbutton.cxx b/forms/source/component/spinbutton.cxx index fef41b5cf688..79714a329b58 100644 --- a/forms/source/component/spinbutton.cxx +++ b/forms/source/component/spinbutton.cxx @@ -18,6 +18,7 @@ */ #include "spinbutton.hxx" +#include "scrollbar.hxx" #include #include @@ -44,12 +45,6 @@ namespace frm //= OSpinButtonModel - // implemented elsewhere - Any translateExternalDoubleToControlIntValue( - const Any& _rExternalValue, const Reference< XPropertySet >& _rxProperties, - const OUString& _rMinValueName, const OUString& _rMaxValueName ); - Any translateControlIntToExternalDoubleValue( const Any& _rControlIntValue ); - OSpinButtonModel::OSpinButtonModel( const Reference& _rxFactory ) :OBoundControlModel( _rxFactory, VCL_CONTROLMODEL_SPINBUTTON, VCL_CONTROL_SPINBUTTON, true, true, false ) ,m_nDefaultSpinValue( 0 ) -- cgit