summaryrefslogtreecommitdiff
path: root/svx/source/table
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/table')
-rw-r--r--svx/source/table/cellcursor.cxx4
-rw-r--r--svx/source/table/svdotable.cxx6
-rw-r--r--svx/source/table/tablecontroller.cxx2
-rw-r--r--svx/source/table/tablelayouter.cxx6
-rw-r--r--svx/source/table/tablertfimporter.cxx4
5 files changed, 11 insertions, 11 deletions
diff --git a/svx/source/table/cellcursor.cxx b/svx/source/table/cellcursor.cxx
index bbf8f8810a70..bd77a885957c 100644
--- a/svx/source/table/cellcursor.cxx
+++ b/svx/source/table/cellcursor.cxx
@@ -284,7 +284,7 @@ void CellCursor::split_column( sal_Int32 nCol, sal_Int32 nColumns, std::vector<
if( nNewCols > 0 )
{
const OUString sWidth("Width");
- Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_QUERY_THROW );
+ Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_SET_THROW );
Reference< XPropertySet > xRefColumn( xCols->getByIndex( nCol ), UNO_QUERY_THROW );
sal_Int32 nWidth = 0;
xRefColumn->getPropertyValue( sWidth ) >>= nWidth;
@@ -398,7 +398,7 @@ void CellCursor::split_row( sal_Int32 nRow, sal_Int32 nRows, std::vector< sal_In
if( nNewRows > 0 )
{
const OUString sHeight("Height");
- Reference< XTableRows > xRows( mxTable->getRows(), UNO_QUERY_THROW );
+ Reference< XTableRows > xRows( mxTable->getRows(), UNO_SET_THROW );
Reference< XPropertySet > xRefRow( xRows->getByIndex( nRow ), UNO_QUERY_THROW );
sal_Int32 nHeight = 0;
xRefRow->getPropertyValue( sHeight ) >>= nHeight;
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index 4717e1b796cd..42f97ef7eb4d 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -317,7 +317,7 @@ void SdrTableObjImpl::CropTableModelToSelection(const CellPos& rStart, const Cel
}
// copy row heights
- Reference< XTableRows > xNewRows(mxTable->getRows(), UNO_QUERY_THROW );
+ Reference< XTableRows > xNewRows(mxTable->getRows(), css::uno::UNO_SET_THROW );
const OUString sHeight( "Height" );
for( sal_Int32 nRow = 0; nRow < nRows; ++nRow )
{
@@ -326,7 +326,7 @@ void SdrTableObjImpl::CropTableModelToSelection(const CellPos& rStart, const Cel
}
// copy column widths
- Reference< XTableColumns > xNewColumns( mxTable->getColumns(), UNO_QUERY_THROW );
+ Reference< XTableColumns > xNewColumns( mxTable->getColumns(), css::uno::UNO_SET_THROW );
const OUString sWidth( "Width" );
for( sal_Int32 nCol = 0; nCol < nColumns; ++nCol )
{
@@ -429,7 +429,7 @@ SdrTableObjImpl& SdrTableObjImpl::operator=( const SdrTableObjImpl& rSource )
// search in traget SdrModel for that TableStyle
const OUString sStyleName( Reference< XNamed >( rSource.mxTableStyle, UNO_QUERY_THROW )->getName() );
Reference< XStyleFamiliesSupplier > xSFS(rTargetSdrModel.getUnoModel(), UNO_QUERY_THROW );
- Reference< XNameAccess > xFamilyNameAccess( xSFS->getStyleFamilies(), UNO_QUERY_THROW );
+ Reference< XNameAccess > xFamilyNameAccess( xSFS->getStyleFamilies(), css::uno::UNO_SET_THROW );
const OUString sFamilyName( "table" );
Reference< XNameAccess > xTableFamilyAccess( xFamilyNameAccess->getByName( sFamilyName ), UNO_QUERY_THROW );
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 18e87bd48c24..be279e41a8e9 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -1068,7 +1068,7 @@ void SvxTableController::SetTableStyle( const SfxItemSet* pArgs )
if( pArg && mxTable.is() ) try
{
Reference< XStyleFamiliesSupplier > xSFS( rModel.getUnoModel(), UNO_QUERY_THROW );
- Reference< XNameAccess > xFamilyNameAccess( xSFS->getStyleFamilies(), UNO_QUERY_THROW );
+ Reference< XNameAccess > xFamilyNameAccess( xSFS->getStyleFamilies(), UNO_SET_THROW );
const OUString sFamilyName( "table" );
Reference< XNameAccess > xTableFamilyAccess( xFamilyNameAccess->getByName( sFamilyName ), UNO_QUERY_THROW );
diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx
index e1a89ddce186..31f11e2e083a 100644
--- a/svx/source/table/tablelayouter.cxx
+++ b/svx/source/table/tablelayouter.cxx
@@ -561,7 +561,7 @@ void TableLayouter::LayoutTableWidth( tools::Rectangle& rArea, bool bFit )
if( sal::static_int_cast< sal_Int32 >( maColumns.size() ) != nColCount )
maColumns.resize( nColCount );
- Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_QUERY_THROW );
+ Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_SET_THROW );
// first calculate current width and initial minimum width per column,
// merged cells will be counted later
@@ -1090,7 +1090,7 @@ void TableLayouter::DistributeColumns( ::tools::Rectangle& rArea,
if( mxTable.is() ) try
{
const sal_Int32 nColCount = getColumnCount();
- Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_QUERY_THROW );
+ Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_SET_THROW );
const Size aSize(0xffffff, 0xffffff);
//special case - optimize a single column
@@ -1184,7 +1184,7 @@ void TableLayouter::DistributeRows( ::tools::Rectangle& rArea,
if( mxTable.is() ) try
{
const sal_Int32 nRowCount = mxTable->getRowCount();
- Reference< XTableRows > xRows( mxTable->getRows(), UNO_QUERY_THROW );
+ Reference< XTableRows > xRows( mxTable->getRows(), UNO_SET_THROW );
sal_Int32 nMinHeight = 0;
//special case - minimize a single row
diff --git a/svx/source/table/tablertfimporter.cxx b/svx/source/table/tablertfimporter.cxx
index 29fe40b58620..43b7f44b2e78 100644
--- a/svx/source/table/tablertfimporter.cxx
+++ b/svx/source/table/tablertfimporter.cxx
@@ -265,7 +265,7 @@ void SdrTableRTFParser::FillTable()
try
{
sal_Int32 nColCount = mxTable->getColumnCount();
- Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_QUERY_THROW );
+ Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_SET_THROW );
sal_Int32 nColMax = maColumnEdges.size();
if( nColCount < nColMax )
{
@@ -287,7 +287,7 @@ void SdrTableRTFParser::FillTable()
const sal_Int32 nRowCount = mxTable->getRowCount();
if( nRowCount < mnRowCnt )
{
- Reference< XTableRows > xRows( mxTable->getRows(), UNO_QUERY_THROW );
+ Reference< XTableRows > xRows( mxTable->getRows(), UNO_SET_THROW );
xRows->insertByIndex( nRowCount, mnRowCnt - nRowCount );
}