summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbapagesetup.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbapagesetup.cxx')
-rw-r--r--sc/source/ui/vba/vbapagesetup.cxx86
1 files changed, 43 insertions, 43 deletions
diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx
index d39af7984864..64179f85f658 100644
--- a/sc/source/ui/vba/vbapagesetup.cxx
+++ b/sc/source/ui/vba/vbapagesetup.cxx
@@ -45,7 +45,7 @@ using namespace ::ooo::vba;
ScVbaPageSetup::ScVbaPageSetup(const uno::Reference< XHelperInterface >& xParent,
const uno::Reference< uno::XComponentContext >& xContext,
const uno::Reference< sheet::XSpreadsheet >& xSheet,
- const uno::Reference< frame::XModel >& xModel) throw (uno::RuntimeException):
+ const uno::Reference< frame::XModel >& xModel):
ScVbaPageSetup_BASE( xParent, xContext ), mxSheet( xSheet ), mbIsLandscape( false )
{
// query for current page style
@@ -64,7 +64,7 @@ ScVbaPageSetup::ScVbaPageSetup(const uno::Reference< XHelperInterface >& xParent
mxPageProps->getPropertyValue("IsLandscape") >>= mbIsLandscape;
}
-OUString SAL_CALL ScVbaPageSetup::getPrintArea() throw (css::uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaPageSetup::getPrintArea()
{
OUString aPrintArea;
uno::Reference< sheet::XPrintAreas > xPrintAreas( mxSheet, uno::UNO_QUERY_THROW );
@@ -87,7 +87,7 @@ OUString SAL_CALL ScVbaPageSetup::getPrintArea() throw (css::uno::RuntimeExcepti
return aPrintArea;
}
-void SAL_CALL ScVbaPageSetup::setPrintArea( const OUString& rAreas ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setPrintArea( const OUString& rAreas )
{
uno::Reference< sheet::XPrintAreas > xPrintAreas( mxSheet, uno::UNO_QUERY_THROW );
if( rAreas.isEmpty() ||
@@ -116,32 +116,32 @@ void SAL_CALL ScVbaPageSetup::setPrintArea( const OUString& rAreas ) throw (css:
}
}
-double SAL_CALL ScVbaPageSetup::getHeaderMargin() throw (css::uno::RuntimeException)
+double SAL_CALL ScVbaPageSetup::getHeaderMargin()
{
return VbaPageSetupBase::getHeaderMargin();
}
-void SAL_CALL ScVbaPageSetup::setHeaderMargin( double margin ) throw (css::uno::RuntimeException)
+void SAL_CALL ScVbaPageSetup::setHeaderMargin( double margin )
{
VbaPageSetupBase::setHeaderMargin( margin );
}
-double SAL_CALL ScVbaPageSetup::getFooterMargin() throw (css::uno::RuntimeException)
+double SAL_CALL ScVbaPageSetup::getFooterMargin()
{
return VbaPageSetupBase::getFooterMargin();
}
-void SAL_CALL ScVbaPageSetup::setFooterMargin( double margin ) throw (css::uno::RuntimeException)
+void SAL_CALL ScVbaPageSetup::setFooterMargin( double margin )
{
VbaPageSetupBase::setFooterMargin( margin );
}
-uno::Any SAL_CALL ScVbaPageSetup::getFitToPagesTall() throw (css::uno::RuntimeException, std::exception)
+uno::Any SAL_CALL ScVbaPageSetup::getFitToPagesTall()
{
return mxPageProps->getPropertyValue("ScaleToPagesY");
}
-void SAL_CALL ScVbaPageSetup::setFitToPagesTall( const uno::Any& fitToPagesTall) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setFitToPagesTall( const uno::Any& fitToPagesTall)
{
sal_uInt16 scaleToPageY = 0;
try
@@ -159,12 +159,12 @@ void SAL_CALL ScVbaPageSetup::setFitToPagesTall( const uno::Any& fitToPagesTall)
}
}
-uno::Any SAL_CALL ScVbaPageSetup::getFitToPagesWide() throw (css::uno::RuntimeException, std::exception)
+uno::Any SAL_CALL ScVbaPageSetup::getFitToPagesWide()
{
return mxPageProps->getPropertyValue("ScaleToPagesX");
}
-void SAL_CALL ScVbaPageSetup::setFitToPagesWide( const uno::Any& fitToPagesWide) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setFitToPagesWide( const uno::Any& fitToPagesWide)
{
sal_uInt16 scaleToPageX = 0;
try
@@ -182,12 +182,12 @@ void SAL_CALL ScVbaPageSetup::setFitToPagesWide( const uno::Any& fitToPagesWide)
}
}
-uno::Any SAL_CALL ScVbaPageSetup::getZoom() throw (css::uno::RuntimeException, std::exception)
+uno::Any SAL_CALL ScVbaPageSetup::getZoom()
{
return mxPageProps->getPropertyValue("PageScale");
}
-void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom)
{
sal_uInt16 pageScale = 0;
try
@@ -230,7 +230,7 @@ void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom) throw (css::uno::Ru
mxPageProps->setPropertyValue("PageScale", uno::makeAny( pageScale ));
}
-OUString SAL_CALL ScVbaPageSetup::getLeftHeader() throw (css::uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaPageSetup::getLeftHeader()
{
OUString leftHeader;
try
@@ -249,7 +249,7 @@ OUString SAL_CALL ScVbaPageSetup::getLeftHeader() throw (css::uno::RuntimeExcept
return leftHeader;
}
-void SAL_CALL ScVbaPageSetup::setLeftHeader( const OUString& leftHeader) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setLeftHeader( const OUString& leftHeader)
{
try
{
@@ -266,7 +266,7 @@ void SAL_CALL ScVbaPageSetup::setLeftHeader( const OUString& leftHeader) throw (
}
}
-OUString SAL_CALL ScVbaPageSetup::getCenterHeader() throw (css::uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaPageSetup::getCenterHeader()
{
OUString centerHeader;
try
@@ -285,7 +285,7 @@ OUString SAL_CALL ScVbaPageSetup::getCenterHeader() throw (css::uno::RuntimeExce
return centerHeader;
}
-void SAL_CALL ScVbaPageSetup::setCenterHeader( const OUString& centerHeader) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setCenterHeader( const OUString& centerHeader)
{
try
{
@@ -302,7 +302,7 @@ void SAL_CALL ScVbaPageSetup::setCenterHeader( const OUString& centerHeader) thr
}
}
-OUString SAL_CALL ScVbaPageSetup::getRightHeader() throw (css::uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaPageSetup::getRightHeader()
{
OUString rightHeader;
try
@@ -321,7 +321,7 @@ OUString SAL_CALL ScVbaPageSetup::getRightHeader() throw (css::uno::RuntimeExcep
return rightHeader;
}
-void SAL_CALL ScVbaPageSetup::setRightHeader( const OUString& rightHeader) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setRightHeader( const OUString& rightHeader)
{
try
{
@@ -338,7 +338,7 @@ void SAL_CALL ScVbaPageSetup::setRightHeader( const OUString& rightHeader) throw
}
}
-OUString SAL_CALL ScVbaPageSetup::getLeftFooter() throw (css::uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaPageSetup::getLeftFooter()
{
OUString leftFooter;
try
@@ -357,7 +357,7 @@ OUString SAL_CALL ScVbaPageSetup::getLeftFooter() throw (css::uno::RuntimeExcept
return leftFooter;
}
-void SAL_CALL ScVbaPageSetup::setLeftFooter( const OUString& leftFooter) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setLeftFooter( const OUString& leftFooter)
{
try
{
@@ -374,7 +374,7 @@ void SAL_CALL ScVbaPageSetup::setLeftFooter( const OUString& leftFooter) throw (
}
}
-OUString SAL_CALL ScVbaPageSetup::getCenterFooter() throw (css::uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaPageSetup::getCenterFooter()
{
OUString centerFooter;
try
@@ -393,7 +393,7 @@ OUString SAL_CALL ScVbaPageSetup::getCenterFooter() throw (css::uno::RuntimeExce
return centerFooter;
}
-void SAL_CALL ScVbaPageSetup::setCenterFooter( const OUString& centerFooter) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setCenterFooter( const OUString& centerFooter)
{
try
{
@@ -411,7 +411,7 @@ void SAL_CALL ScVbaPageSetup::setCenterFooter( const OUString& centerFooter) thr
}
-OUString SAL_CALL ScVbaPageSetup::getRightFooter() throw (css::uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaPageSetup::getRightFooter()
{
OUString rightFooter;
try
@@ -430,7 +430,7 @@ OUString SAL_CALL ScVbaPageSetup::getRightFooter() throw (css::uno::RuntimeExcep
return rightFooter;
}
-void SAL_CALL ScVbaPageSetup::setRightFooter( const OUString& rightFooter) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setRightFooter( const OUString& rightFooter)
{
try
{
@@ -447,7 +447,7 @@ void SAL_CALL ScVbaPageSetup::setRightFooter( const OUString& rightFooter) throw
}
}
-sal_Int32 SAL_CALL ScVbaPageSetup::getOrder() throw (css::uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaPageSetup::getOrder()
{
sal_Int32 order = excel::XlOrder::xlDownThenOver;
try
@@ -465,7 +465,7 @@ sal_Int32 SAL_CALL ScVbaPageSetup::getOrder() throw (css::uno::RuntimeException,
return order;
}
-void SAL_CALL ScVbaPageSetup::setOrder(sal_Int32 order) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setOrder(sal_Int32 order)
{
bool bOrder = true;
switch( order )
@@ -488,7 +488,7 @@ void SAL_CALL ScVbaPageSetup::setOrder(sal_Int32 order) throw (css::uno::Runtime
}
}
-sal_Int32 SAL_CALL ScVbaPageSetup::getFirstPageNumber() throw (css::uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaPageSetup::getFirstPageNumber()
{
sal_Int16 number = 0;
try
@@ -508,7 +508,7 @@ sal_Int32 SAL_CALL ScVbaPageSetup::getFirstPageNumber() throw (css::uno::Runtime
return number;
}
-void SAL_CALL ScVbaPageSetup::setFirstPageNumber( sal_Int32 firstPageNumber) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setFirstPageNumber( sal_Int32 firstPageNumber)
{
if( firstPageNumber == excel::Constants::xlAutomatic )
firstPageNumber = 0;
@@ -524,7 +524,7 @@ void SAL_CALL ScVbaPageSetup::setFirstPageNumber( sal_Int32 firstPageNumber) thr
}
}
-sal_Bool SAL_CALL ScVbaPageSetup::getCenterVertically() throw (css::uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaPageSetup::getCenterVertically()
{
bool centerVertically = false;
try
@@ -538,7 +538,7 @@ sal_Bool SAL_CALL ScVbaPageSetup::getCenterVertically() throw (css::uno::Runtime
return centerVertically;
}
-void SAL_CALL ScVbaPageSetup::setCenterVertically( sal_Bool centerVertically) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setCenterVertically( sal_Bool centerVertically)
{
try
{
@@ -549,7 +549,7 @@ void SAL_CALL ScVbaPageSetup::setCenterVertically( sal_Bool centerVertically) th
}
}
-sal_Bool SAL_CALL ScVbaPageSetup::getCenterHorizontally() throw (css::uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaPageSetup::getCenterHorizontally()
{
bool centerHorizontally = false;
try
@@ -563,7 +563,7 @@ sal_Bool SAL_CALL ScVbaPageSetup::getCenterHorizontally() throw (css::uno::Runti
return centerHorizontally;
}
-void SAL_CALL ScVbaPageSetup::setCenterHorizontally( sal_Bool centerHorizontally) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setCenterHorizontally( sal_Bool centerHorizontally)
{
try
{
@@ -574,7 +574,7 @@ void SAL_CALL ScVbaPageSetup::setCenterHorizontally( sal_Bool centerHorizontally
}
}
-sal_Bool SAL_CALL ScVbaPageSetup::getPrintHeadings() throw (css::uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaPageSetup::getPrintHeadings()
{
bool printHeadings = false;
try
@@ -588,7 +588,7 @@ sal_Bool SAL_CALL ScVbaPageSetup::getPrintHeadings() throw (css::uno::RuntimeExc
return printHeadings;
}
-void SAL_CALL ScVbaPageSetup::setPrintHeadings( sal_Bool printHeadings) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setPrintHeadings( sal_Bool printHeadings)
{
try
{
@@ -599,32 +599,32 @@ void SAL_CALL ScVbaPageSetup::setPrintHeadings( sal_Bool printHeadings) throw (c
}
}
-sal_Bool SAL_CALL ScVbaPageSetup::getPrintGridlines() throw (uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScVbaPageSetup::getPrintGridlines()
{
return false;
}
-void SAL_CALL ScVbaPageSetup::setPrintGridlines( sal_Bool /*_printgridlines*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setPrintGridlines( sal_Bool /*_printgridlines*/ )
{
}
-OUString SAL_CALL ScVbaPageSetup::getPrintTitleRows() throw (uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaPageSetup::getPrintTitleRows()
{
return OUString();
}
-void SAL_CALL ScVbaPageSetup::setPrintTitleRows( const OUString& /*_printtitlerows*/ ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setPrintTitleRows( const OUString& /*_printtitlerows*/ )
{
}
-OUString SAL_CALL ScVbaPageSetup::getPrintTitleColumns() throw (uno::RuntimeException, std::exception)
+OUString SAL_CALL ScVbaPageSetup::getPrintTitleColumns()
{
return OUString();
}
-void SAL_CALL ScVbaPageSetup::setPrintTitleColumns( const OUString& /*_printtitlecolumns*/ ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setPrintTitleColumns( const OUString& /*_printtitlecolumns*/ )
{
}
-sal_Int32 SAL_CALL ScVbaPageSetup::getPaperSize() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScVbaPageSetup::getPaperSize()
{
awt::Size aSize; // current papersize
mxPageProps->getPropertyValue( "Size" ) >>= aSize;
@@ -637,7 +637,7 @@ sal_Int32 SAL_CALL ScVbaPageSetup::getPaperSize() throw (uno::RuntimeException,
return nPaperSizeIndex;
}
-void SAL_CALL ScVbaPageSetup::setPaperSize( sal_Int32 papersize ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ScVbaPageSetup::setPaperSize( sal_Int32 papersize )
{
if ( papersize != excel::XlPaperSize::xlPaperUser )
{