Lines Matching refs:uno

58 typedef std::vector< uno::Reference< sheet::XSpreadsheet > > Sheets;
71 uno::Reference< uno::XComponentContext > m_xContext;
73 uno::Reference< frame::XModel > m_xModel;
76 …um( const uno::Reference< uno::XComponentContext >& xContext, const Sheets& sheets, const uno::Ref… in SelectedSheetsEnum()
81 virtual ::sal_Bool SAL_CALL hasMoreElements( ) throw (uno::RuntimeException) in hasMoreElements()
85 …virtual uno::Any SAL_CALL nextElement( ) throw (container::NoSuchElementException, lang::WrappedT… in nextElement()
92 …return uno::makeAny( uno::Reference< excel::XWorksheet > ( new ScVbaWorksheet( uno::Reference< XHe… in nextElement()
100 uno::Reference< uno::XComponentContext > m_xContext;
103 uno::Reference< frame::XModel > m_xModel;
105 …SelectedSheetsEnumAccess( const uno::Reference< uno::XComponentContext >& xContext, const uno::Ref… in SelectedSheetsEnumAccess()
109 …throw uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Cannot obtain current do… in SelectedSheetsEnumAccess()
112 …throw uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Cannot obtain docshell" … in SelectedSheetsEnumAccess()
115 …throw uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Cannot obtain view shell… in SelectedSheetsEnumAccess()
118 uno::Sequence<sal_Int32> aSheets( nTabCount ); in SelectedSheetsEnumAccess()
122 uno::Reference <sheet::XSpreadsheetDocument> xSpreadSheet( m_xModel, uno::UNO_QUERY_THROW ); in SelectedSheetsEnumAccess()
123uno::Reference <container::XIndexAccess> xIndex( xSpreadSheet->getSheets(), uno::UNO_QUERY_THROW ); in SelectedSheetsEnumAccess()
128uno::Reference< sheet::XSpreadsheet > xSheet( xIndex->getByIndex( nTab ), uno::UNO_QUERY_THROW ); in SelectedSheetsEnumAccess()
129 uno::Reference< container::XNamed > xNamed( xSheet, uno::UNO_QUERY_THROW ); in SelectedSheetsEnumAccess()
138 …virtual uno::Reference< container::XEnumeration > SAL_CALL createEnumeration( ) throw (uno::Runti… in createEnumeration()
143 virtual ::sal_Int32 SAL_CALL getCount( ) throw (uno::RuntimeException) in getCount()
147 …virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw ( lang::IndexOutOfBoundsException,… in getByIndex()
153 return uno::makeAny( sheets[ Index ] ); in getByIndex()
157 virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException) in getElementType()
162 virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException) in hasElements()
168 …virtual uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw (container::NoSuchElemen… in getByName()
173 return uno::makeAny( sheets[ it->second ] ); in getByName()
177 …virtual uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames( ) throw (uno::RuntimeException… in getElementNames()
179 uno::Sequence< ::rtl::OUString > names( namesToIndices.size() ); in getElementNames()
188 …virtual ::sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw (uno::RuntimeException… in hasByName()
198 const uno::Reference< XHelperInterface >& xParent, in ScVbaWindow()
199 const uno::Reference< uno::XComponentContext >& xContext, in ScVbaWindow()
200 const uno::Reference< frame::XModel >& xModel, in ScVbaWindow()
201 const uno::Reference< frame::XController >& xController ) throw (uno::RuntimeException) : in ScVbaWindow()
208 const uno::Sequence< uno::Any >& args, in ScVbaWindow()
209 const uno::Reference< uno::XComponentContext >& xContext ) throw (uno::RuntimeException) : in ScVbaWindow()
229 catch( uno::Exception& ) in init()
235 uno::Reference< beans::XPropertySet >
236 ScVbaWindow::getControllerProps() throw (uno::RuntimeException) in getControllerProps()
238 return uno::Reference< beans::XPropertySet >( getController(), uno::UNO_QUERY_THROW ); in getControllerProps()
241 uno::Reference< beans::XPropertySet >
242 ScVbaWindow::getFrameProps() throw (uno::RuntimeException) in getFrameProps()
244 return uno::Reference< beans::XPropertySet >( getController()->getFrame(), uno::UNO_QUERY_THROW ); in getFrameProps()
247 uno::Reference< awt::XDevice >
248 ScVbaWindow::getDevice() throw (uno::RuntimeException) in getDevice()
250 return uno::Reference< awt::XDevice >( getWindow(), uno::UNO_QUERY_THROW ); in getDevice()
254 …dow::Scroll( const uno::Any& Down, const uno::Any& Up, const uno::Any& ToRight, const uno::Any& To… in Scroll()
257 throw uno::RuntimeException(); in Scroll()
265 …aWindow::SmallScroll( const uno::Any& Down, const uno::Any& Up, const uno::Any& ToRight, const uno in SmallScroll()
271 …aWindow::LargeScroll( const uno::Any& Down, const uno::Any& Up, const uno::Any& ToRight, const uno in LargeScroll()
276 uno::Any SAL_CALL
277 ScVbaWindow::SelectedSheets( const uno::Any& aIndex ) throw (uno::RuntimeException) in SelectedSheets()
279uno::Reference< container::XEnumerationAccess > xEnumAccess( new SelectedSheetsEnumAccess( mxConte… in SelectedSheets()
281uno::Reference< excel::XWorksheets > xSheets( new ScVbaWorksheets( uno::Reference< XHelperInterfa… in SelectedSheets()
284 uno::Reference< XCollection > xColl( xSheets, uno::UNO_QUERY_THROW ); in SelectedSheets()
285 return xColl->Item( aIndex, uno::Any() ); in SelectedSheets()
287 return uno::makeAny( xSheets ); in SelectedSheets()
291 ScVbaWindow::ScrollWorkbookTabs( const uno::Any& /*Sheets*/, const uno::Any& /*Position*/ ) throw ( in ScrollWorkbookTabs()
310 uno::Any SAL_CALL
311 ScVbaWindow::getCaption() throw (uno::RuntimeException) in getCaption()
327 …ScVbaWorkbook workbook( uno::Reference< XHelperInterface >( Application(), uno::UNO_QUERY_THROW ),… in getCaption()
347 return uno::makeAny( sTitle ); in getCaption()
351 ScVbaWindow::setCaption( const uno::Any& _caption ) throw (uno::RuntimeException) in setCaption()
356 uno::Any SAL_CALL
357 ScVbaWindow::getScrollRow() throw (uno::RuntimeException) in getScrollRow()
368 return uno::makeAny( nValue + 1); in getScrollRow()
372 ScVbaWindow::setScrollRow( const uno::Any& _scrollrow ) throw (uno::RuntimeException) in setScrollRow()
386 uno::Any SAL_CALL
387 ScVbaWindow::getScrollColumn() throw (uno::RuntimeException) in getScrollColumn()
398 return uno::makeAny( nValue + 1); in getScrollColumn()
402 ScVbaWindow::setScrollColumn( const uno::Any& _scrollcolumn ) throw (uno::RuntimeException) in setScrollColumn()
416 uno::Any SAL_CALL
417 ScVbaWindow::getWindowState() throw (uno::RuntimeException) in getWindowState()
431 return uno::makeAny( nwindowState ); in getWindowState()
435 ScVbaWindow::setWindowState( const uno::Any& _windowstate ) throw (uno::RuntimeException) in setWindowState()
452 …throw uno::RuntimeException( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Invalid Parameter" ) ), u… in setWindowState()
457 ScVbaWindow::Activate() throw (css::uno::RuntimeException) in Activate()
459 …ScVbaWorkbook workbook( uno::Reference< XHelperInterface >( Application(), uno::UNO_QUERY_THROW ),… in Activate()
465 ScVbaWindow::Close( const uno::Any& SaveChanges, const uno::Any& FileName, const uno::Any& RouteWor… in Close()
467 …ScVbaWorkbook workbook( uno::Reference< XHelperInterface >( Application(), uno::UNO_QUERY_THROW ),… in Close()
471 uno::Reference< excel::XPane > SAL_CALL
472 ScVbaWindow::ActivePane() throw (script::BasicErrorException, uno::RuntimeException) in ActivePane()
474 uno::Reference< sheet::XViewPane > xViewPane( getController(), uno::UNO_QUERY_THROW ); in ActivePane()
478 uno::Reference< excel::XRange > SAL_CALL
479 ScVbaWindow::ActiveCell( ) throw (script::BasicErrorException, uno::RuntimeException) in ActiveCell()
481 uno::Reference< excel::XApplication > xApplication( Application(), uno::UNO_QUERY_THROW ); in ActiveCell()
485 uno::Any SAL_CALL
486 ScVbaWindow::Selection( ) throw (script::BasicErrorException, uno::RuntimeException) in Selection()
488 uno::Reference< excel::XApplication > xApplication( Application(), uno::UNO_QUERY_THROW ); in Selection()
492 uno::Reference< excel::XRange > SAL_CALL
493 ScVbaWindow::RangeSelection() throw (script::BasicErrorException, uno::RuntimeException) in RangeSelection()
497 return uno::Reference< excel::XRange >( Selection(), uno::UNO_QUERY_THROW ); in RangeSelection()
501 ScVbaWindow::getDisplayGridlines() throw (uno::RuntimeException) in getDisplayGridlines()
511 ScVbaWindow::setDisplayGridlines( ::sal_Bool _displaygridlines ) throw (uno::RuntimeException) in setDisplayGridlines()
514 getControllerProps()->setPropertyValue( sName, uno::makeAny( _displaygridlines )); in setDisplayGridlines()
518 ScVbaWindow::getDisplayHeadings() throw (uno::RuntimeException) in getDisplayHeadings()
527 ScVbaWindow::setDisplayHeadings( ::sal_Bool _bDisplayHeadings ) throw (uno::RuntimeException) in setDisplayHeadings()
530 getControllerProps()->setPropertyValue( sName, uno::makeAny( _bDisplayHeadings )); in setDisplayHeadings()
534 ScVbaWindow::getDisplayHorizontalScrollBar() throw (uno::RuntimeException) in getDisplayHorizontalScrollBar()
543 ScVbaWindow::setDisplayHorizontalScrollBar( ::sal_Bool _bDisplayHorizontalScrollBar ) throw (uno::R… in setDisplayHorizontalScrollBar()
546 getControllerProps()->setPropertyValue( sName, uno::makeAny( _bDisplayHorizontalScrollBar )); in setDisplayHorizontalScrollBar()
550 ScVbaWindow::getDisplayOutline() throw (uno::RuntimeException) in getDisplayOutline()
559 ScVbaWindow::setDisplayOutline( ::sal_Bool _bDisplayOutline ) throw (uno::RuntimeException) in setDisplayOutline()
562 getControllerProps()->setPropertyValue( sName, uno::makeAny( _bDisplayOutline )); in setDisplayOutline()
566 ScVbaWindow::getDisplayVerticalScrollBar() throw (uno::RuntimeException) in getDisplayVerticalScrollBar()
575 ScVbaWindow::setDisplayVerticalScrollBar( ::sal_Bool _bDisplayVerticalScrollBar ) throw (uno::Runti… in setDisplayVerticalScrollBar()
578 getControllerProps()->setPropertyValue( sName, uno::makeAny( _bDisplayVerticalScrollBar )); in setDisplayVerticalScrollBar()
582 ScVbaWindow::getDisplayWorkbookTabs() throw (uno::RuntimeException) in getDisplayWorkbookTabs()
591 ScVbaWindow::setDisplayWorkbookTabs( ::sal_Bool _bDisplayWorkbookTabs ) throw (uno::RuntimeExceptio… in setDisplayWorkbookTabs()
594 getControllerProps()->setPropertyValue( sName, uno::makeAny( _bDisplayWorkbookTabs )); in setDisplayWorkbookTabs()
598 ScVbaWindow::getFreezePanes() throw (uno::RuntimeException) in getFreezePanes()
600 uno::Reference< sheet::XViewFreezable > xViewFreezable( getController(), uno::UNO_QUERY_THROW ); in getFreezePanes()
605 ScVbaWindow::setFreezePanes( ::sal_Bool _bFreezePanes ) throw (uno::RuntimeException) in setFreezePanes()
607 uno::Reference< sheet::XViewPane > xViewPane( getController(), uno::UNO_QUERY_THROW ); in setFreezePanes()
608 uno::Reference< sheet::XViewSplitable > xViewSplitable( xViewPane, uno::UNO_QUERY_THROW ); in setFreezePanes()
609 uno::Reference< sheet::XViewFreezable > xViewFreezable( xViewPane, uno::UNO_QUERY_THROW ); in setFreezePanes()
636 ScVbaWindow::getSplit() throw (uno::RuntimeException) in getSplit()
638 uno::Reference< sheet::XViewSplitable > xViewSplitable( getController(), uno::UNO_QUERY_THROW ); in getSplit()
643 ScVbaWindow::setSplit( ::sal_Bool _bSplit ) throw (uno::RuntimeException) in setSplit()
647uno::Reference< sheet::XViewSplitable > xViewSplitable( getController(), uno::UNO_QUERY_THROW ); in setSplit()
652uno::Reference< sheet::XViewFreezable > xViewFreezable( getController(), uno::UNO_QUERY_THROW ); in setSplit()
653 uno::Reference< excel::XRange > xRange = ActiveCell(); in setSplit()
661 ScVbaWindow::getSplitColumn() throw (uno::RuntimeException) in getSplitColumn()
663 uno::Reference< sheet::XViewSplitable > xViewSplitable( getController(), uno::UNO_QUERY_THROW ); in getSplitColumn()
668 ScVbaWindow::setSplitColumn( sal_Int32 _splitcolumn ) throw (uno::RuntimeException) in setSplitColumn()
672uno::Reference< sheet::XViewFreezable > xViewFreezable( getController(), uno::UNO_QUERY_THROW ); in setSplitColumn()
679 ScVbaWindow::getSplitHorizontal() throw (uno::RuntimeException) in getSplitHorizontal()
681 uno::Reference< sheet::XViewSplitable > xViewSplitable( getController(), uno::UNO_QUERY_THROW ); in getSplitHorizontal()
686 ScVbaWindow::setSplitHorizontal( double _splithorizontal ) throw (uno::RuntimeException) in setSplitHorizontal()
688 uno::Reference< sheet::XViewSplitable > xViewSplitable( getController(), uno::UNO_QUERY_THROW ); in setSplitHorizontal()
694 ScVbaWindow::getSplitRow() throw (uno::RuntimeException) in getSplitRow()
696 uno::Reference< sheet::XViewSplitable > xViewSplitable( getController(), uno::UNO_QUERY_THROW ); in getSplitRow()
701 ScVbaWindow::setSplitRow( sal_Int32 _splitrow ) throw (uno::RuntimeException) in setSplitRow()
705uno::Reference< sheet::XViewFreezable > xViewFreezable( getController(), uno::UNO_QUERY_THROW ); in setSplitRow()
712 ScVbaWindow::getSplitVertical() throw (uno::RuntimeException) in getSplitVertical()
714 uno::Reference< sheet::XViewSplitable > xViewSplitable( getController(), uno::UNO_QUERY_THROW ); in getSplitVertical()
719 ScVbaWindow::setSplitVertical(double _splitvertical ) throw (uno::RuntimeException) in setSplitVertical()
721 uno::Reference< sheet::XViewSplitable > xViewSplitable( getController(), uno::UNO_QUERY_THROW ); in setSplitVertical()
728 uno::Reference< sheet::XViewSplitable > xViewSplitable( getController(), uno::UNO_QUERY_THROW ); in SplitAtDefinedPosition()
729 uno::Reference< sheet::XViewFreezable > xViewFreezable( xViewSplitable, uno::UNO_QUERY_THROW ); in SplitAtDefinedPosition()
743 uno::Reference< excel::XApplication > xApplication( Application(), uno::UNO_QUERY_THROW ); in SplitAtDefinedPosition()
744uno::Reference< excel::XWorksheet > xSheet( xApplication->getActiveSheet(), uno::UNO_QUERY_THROW ); in SplitAtDefinedPosition()
745 xSheet->Cells(uno::makeAny(cellRow), uno::makeAny(cellColumn))->Select(); in SplitAtDefinedPosition()
752 uno::Any SAL_CALL
753 ScVbaWindow::getZoom() throw (uno::RuntimeException) in getZoom()
755 uno::Reference< beans::XPropertySet > xProps = getControllerProps(); in getZoom()
761 return uno::makeAny( sal_True ); in getZoom()
768 return uno::makeAny( nZoom ); in getZoom()
770 return uno::Any(); in getZoom()
774 ScVbaWindow::setZoom( const uno::Any& _zoom ) throw (uno::RuntimeException) in setZoom()
778 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( m_xModel, uno::UNO_QUERY_THROW ); in setZoom()
779 uno::Reference< excel::XWorksheet > xActiveSheet = ActiveSheet(); in setZoom()
782 throw uno::RuntimeException(); in setZoom()
788 uno::Reference< excel::XWorksheet > SAL_CALL
789 ScVbaWindow::ActiveSheet( ) throw (script::BasicErrorException, uno::RuntimeException) in ActiveSheet()
791 uno::Reference< excel::XApplication > xApplication( Application(), uno::UNO_QUERY_THROW ); in ActiveSheet()
795 uno::Any SAL_CALL
796 ScVbaWindow::getView() throw (uno::RuntimeException) in getView()
810 return uno::makeAny( nWindowView ); in getView()
814 ScVbaWindow::setView( const uno::Any& _view) throw (uno::RuntimeException) in setView()
836 uno::Reference< excel::XRange > SAL_CALL
837 ScVbaWindow::getVisibleRange() throw (uno::RuntimeException) in getVisibleRange()
839 uno::Reference< container::XIndexAccess > xPanesIA( getController(), uno::UNO_QUERY_THROW ); in getVisibleRange()
840uno::Reference< sheet::XViewPane > xTopLeftPane( xPanesIA->getByIndex( 0 ), uno::UNO_QUERY_THROW ); in getVisibleRange()
841uno::Reference< excel::XPane > xPane( new ScVbaPane( this, mxContext, m_xModel, xTopLeftPane ) ); in getVisibleRange()
846 …reenPixelsX(sal_Int32 _points) throw (css::script::BasicErrorException, css::uno::RuntimeException) in PointsToScreenPixelsX()
854 …reenPixelsY(sal_Int32 _points) throw (css::script::BasicErrorException, css::uno::RuntimeException) in PointsToScreenPixelsY()
862uno::Any& From, const css::uno::Any&To, const css::uno::Any& Copies, const css::uno::Any& Preview,… in PrintOut()
870 ScVbaWindow::PrintPreview( const css::uno::Any& EnableChanges ) throw (css::script::BasicErrorExcep… in PrintPreview()
884 uno::Sequence< rtl::OUString >
887 static uno::Sequence< rtl::OUString > aServiceNames; in getServiceNames()