summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-31 15:30:37 +0200
committerNoel Grandin <noel@peralex.com>2013-06-03 10:00:02 +0200
commit2838b8eb5ead00780ed9ed9410abee8b8d53a9a4 (patch)
tree9adc985fafa8e87435546cee5e64aa6d83ef1fe3 /forms
parent28e3aff576f06b0b02c7232da5d723e865b3c7ed (diff)
fdo#46808, Convert ComponentContext in connectivity,extension..
...modules. Change-Id: Ie61976dc12b514bb85ca42496c0d9173a1c56264
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ComboBox.cxx4
-rw-r--r--forms/source/component/Edit.cxx2
-rw-r--r--forms/source/component/ListBox.cxx2
-rw-r--r--forms/source/component/Pattern.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/component/ComboBox.cxx b/forms/source/component/ComboBox.cxx
index b28d93577339..33c28e30bbdb 100644
--- a/forms/source/component/ComboBox.cxx
+++ b/forms/source/component/ComboBox.cxx
@@ -628,7 +628,7 @@ void OComboBoxModel::loadData( bool _bForce )
if ( !xDataField.is() )
return;
- ::dbtools::FormattedColumnValue aValueFormatter( getContext(), xForm, xDataField );
+ ::dbtools::FormattedColumnValue aValueFormatter( getContext().getUNOContext(), xForm, xDataField );
// Fill Lists
sal_Int16 i = 0;
@@ -684,7 +684,7 @@ void OComboBoxModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm
{
Reference<XPropertySet> xField = getField();
if ( xField.is() )
- m_pValueFormatter.reset( new ::dbtools::FormattedColumnValue( getContext(), Reference< XRowSet >( _rxForm, UNO_QUERY ), xField ) );
+ m_pValueFormatter.reset( new ::dbtools::FormattedColumnValue( getContext().getUNOContext(), Reference< XRowSet >( _rxForm, UNO_QUERY ), xField ) );
getPropertyValue( PROPERTY_STRINGITEMLIST ) >>= m_aDesignModeStringItems;
// Only load data if a ListSource was supplied
diff --git a/forms/source/component/Edit.cxx b/forms/source/component/Edit.cxx
index e1556f33fb7a..2a1113ca8374 100644
--- a/forms/source/component/Edit.cxx
+++ b/forms/source/component/Edit.cxx
@@ -611,7 +611,7 @@ void OEditModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm )
Reference< XPropertySet > xField = getField();
if ( xField.is() )
{
- m_pValueFormatter.reset( new ::dbtools::FormattedColumnValue( getContext(), Reference< XRowSet >( _rxForm, UNO_QUERY ), xField ) );
+ m_pValueFormatter.reset( new ::dbtools::FormattedColumnValue( getContext().getUNOContext(), Reference< XRowSet >( _rxForm, UNO_QUERY ), xField ) );
if ( m_pValueFormatter->getKeyType() != NumberFormat::SCIENTIFIC )
{
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index fe31087b12f0..29f698199d0d 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -877,7 +877,7 @@ namespace frm
if ( !xDataField.is() )
return;
- ::dbtools::FormattedColumnValue aValueFormatter( getContext(), m_xCursor, xDataField );
+ ::dbtools::FormattedColumnValue aValueFormatter( getContext().getUNOContext(), m_xCursor, xDataField );
// Get the field of BoundColumn of the ResultSet
m_nBoundColumnType = DataType::SQLNULL;
diff --git a/forms/source/component/Pattern.cxx b/forms/source/component/Pattern.cxx
index 67335d0905e3..2d24d5f65a5f 100644
--- a/forms/source/component/Pattern.cxx
+++ b/forms/source/component/Pattern.cxx
@@ -189,7 +189,7 @@ void OPatternModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm
if ( !xField.is() )
return;
- m_pFormattedValue.reset( new ::dbtools::FormattedColumnValue( getContext(), Reference< XRowSet >( _rxForm, UNO_QUERY ), xField ) );
+ m_pFormattedValue.reset( new ::dbtools::FormattedColumnValue( getContext().getUNOContext(), Reference< XRowSet >( _rxForm, UNO_QUERY ), xField ) );
}
//------------------------------------------------------------------------------