LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ScVbaWindow Class Reference

#include <vbawindow.hxx>

Inheritance diagram for ScVbaWindow:
[legend]
Collaboration diagram for ScVbaWindow:
[legend]

Public Member Functions

void Scroll (const css::uno::Any &Down, const css::uno::Any &Up, const css::uno::Any &ToRight, const css::uno::Any &ToLeft, bool bLargeScroll)
 
 ScVbaWindow (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::frame::XModel > &xModel, const css::uno::Reference< css::frame::XController > &xController)
 
 ScVbaWindow (const css::uno::Sequence< css::uno::Any > &aArgs, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL ActiveCell () override
 
virtual css::uno::Reference< ov::excel::XPane > SAL_CALL ActivePane () override
 
virtual css::uno::Reference< ov::excel::XWorksheet > SAL_CALL ActiveSheet () override
 
virtual void SAL_CALL setCaption (const css::uno::Any &_caption) override
 
virtual css::uno::Any SAL_CALL getCaption () override
 
virtual sal_Bool SAL_CALL getDisplayGridlines () override
 
virtual void SAL_CALL setDisplayGridlines (sal_Bool _displaygridlines) override
 
virtual sal_Bool SAL_CALL getDisplayHeadings () override
 
virtual void SAL_CALL setDisplayHeadings (sal_Bool _bDisplayHeadings) override
 
virtual sal_Bool SAL_CALL getDisplayHorizontalScrollBar () override
 
virtual void SAL_CALL setDisplayHorizontalScrollBar (sal_Bool _bDisplayHorizontalScrollBar) override
 
virtual sal_Bool SAL_CALL getDisplayOutline () override
 
virtual void SAL_CALL setDisplayOutline (sal_Bool _bDisplayOutline) override
 
virtual sal_Bool SAL_CALL getDisplayVerticalScrollBar () override
 
virtual void SAL_CALL setDisplayVerticalScrollBar (sal_Bool _bDisplayVerticalScrollBar) override
 
virtual sal_Bool SAL_CALL getDisplayWorkbookTabs () override
 
virtual void SAL_CALL setDisplayWorkbookTabs (sal_Bool _bDisplayWorkbookTabs) override
 
virtual sal_Bool SAL_CALL getFreezePanes () override
 
virtual void SAL_CALL setFreezePanes (sal_Bool _bFreezePanes) override
 
virtual sal_Bool SAL_CALL getSplit () override
 
virtual void SAL_CALL setSplit (sal_Bool _bSplit) override
 
virtual sal_Int32 SAL_CALL getSplitColumn () override
 
virtual void SAL_CALL setSplitColumn (sal_Int32 _splitcolumn) override
 
virtual double SAL_CALL getSplitHorizontal () override
 
virtual void SAL_CALL setSplitHorizontal (double _splithorizontal) override
 
virtual sal_Int32 SAL_CALL getSplitRow () override
 
virtual void SAL_CALL setSplitRow (sal_Int32 _splitrow) override
 
virtual double SAL_CALL getSplitVertical () override
 
virtual void SAL_CALL setSplitVertical (double _splitvertical) override
 
virtual css::uno::Any SAL_CALL getScrollRow () override
 
virtual void SAL_CALL setScrollRow (const css::uno::Any &_scrollrow) override
 
virtual css::uno::Any SAL_CALL getScrollColumn () override
 
virtual void SAL_CALL setScrollColumn (const css::uno::Any &_scrollcolumn) override
 
virtual css::uno::Any SAL_CALL getView () override
 
virtual void SAL_CALL setView (const css::uno::Any &_view) override
 
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL getVisibleRange () override
 
virtual css::uno::Any SAL_CALL getWindowState () override
 
virtual void SAL_CALL setWindowState (const css::uno::Any &_windowstate) override
 
virtual css::uno::Any SAL_CALL getZoom () override
 
virtual void SAL_CALL setZoom (const css::uno::Any &_zoom) override
 
virtual double SAL_CALL getTabRatio () override
 
virtual void SAL_CALL setTabRatio (double _tabratio) override
 
virtual void SAL_CALL SmallScroll (const css::uno::Any &Down, const css::uno::Any &Up, const css::uno::Any &ToRight, const css::uno::Any &ToLeft) override
 
virtual void SAL_CALL LargeScroll (const css::uno::Any &Down, const css::uno::Any &Up, const css::uno::Any &ToRight, const css::uno::Any &ToLeft) override
 
virtual css::uno::Any SAL_CALL SelectedSheets (const css::uno::Any &aIndex) override
 
virtual void SAL_CALL ScrollWorkbookTabs (const css::uno::Any &Sheets, const css::uno::Any &Position) override
 
virtual void SAL_CALL Activate () override
 
virtual void SAL_CALL Close (const css::uno::Any &SaveChanges, const css::uno::Any &FileName, const css::uno::Any &RouteWorkBook) override
 
virtual css::uno::Any SAL_CALL Selection () override
 
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL RangeSelection () override
 
virtual sal_Int32 SAL_CALL PointsToScreenPixelsX (sal_Int32 _points) override
 
virtual sal_Int32 SAL_CALL PointsToScreenPixelsY (sal_Int32 _points) override
 
virtual void SAL_CALL PrintOut (const css::uno::Any &From, const css::uno::Any &To, const css::uno::Any &Copies, const css::uno::Any &Preview, const css::uno::Any &ActivePrinter, const css::uno::Any &PrintToFile, const css::uno::Any &Collate, const css::uno::Any &PrToFileName) override
 
virtual void SAL_CALL PrintPreview (const css::uno::Any &EnableChanges) override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 

Protected Member Functions

void SplitAtDefinedPosition (sal_Int32 nColumns, sal_Int32 nRows)
 

Private Member Functions

void init ()
 
css::uno::Reference< css::beans::XPropertySetgetControllerProps () const
 
css::uno::Reference< css::beans::XPropertySetgetFrameProps () const
 
css::uno::Reference< css::awt::XDevice > getDevice () const
 

Private Attributes

css::uno::Reference< ov::excel::XPane > m_xPane
 

Detailed Description

Definition at line 32 of file vbawindow.hxx.

Constructor & Destructor Documentation

◆ ScVbaWindow() [1/2]

ScVbaWindow::ScVbaWindow ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const css::uno::Reference< css::frame::XModel > &  xModel,
const css::uno::Reference< css::frame::XController > &  xController 
)
Exceptions
css::uno::RuntimeException

◆ ScVbaWindow() [2/2]

ScVbaWindow::ScVbaWindow ( const css::uno::Sequence< css::uno::Any > &  aArgs,
const css::uno::Reference< css::uno::XComponentContext > &  xContext 
)
Exceptions
css::uno::RuntimeException

Member Function Documentation

◆ Activate()

void ScVbaWindow::Activate ( )
overridevirtual

Definition at line 419 of file vbawindow.cxx.

References m_xModel, and mxContext.

◆ ActiveCell()

uno::Reference< excel::XRange > SAL_CALL ScVbaWindow::ActiveCell ( )
overridevirtual

Definition at line 441 of file vbawindow.cxx.

Referenced by setSplit().

◆ ActivePane()

uno::Reference< excel::XPane > SAL_CALL ScVbaWindow::ActivePane ( )
overridevirtual

Definition at line 434 of file vbawindow.cxx.

References m_xModel, and mxContext.

Referenced by init().

◆ ActiveSheet()

uno::Reference< excel::XWorksheet > SAL_CALL ScVbaWindow::ActiveSheet ( )
overridevirtual

Definition at line 736 of file vbawindow.cxx.

Referenced by setZoom().

◆ Close()

void ScVbaWindow::Close ( const css::uno::Any &  SaveChanges,
const css::uno::Any &  FileName,
const css::uno::Any &  RouteWorkBook 
)
overridevirtual

Definition at line 427 of file vbawindow.cxx.

References m_xModel, and mxContext.

◆ getCaption()

uno::Any SAL_CALL ScVbaWindow::getCaption ( )
overridevirtual

Definition at line 304 of file vbawindow.cxx.

References getFrameProps(), and SC_UNONAME_TITLE.

◆ getControllerProps()

uno::Reference< beans::XPropertySet > ScVbaWindow::getControllerProps ( ) const
private

◆ getDevice()

uno::Reference< awt::XDevice > ScVbaWindow::getDevice ( ) const
private
Exceptions
css::uno::RuntimeException

Definition at line 241 of file vbawindow.cxx.

Referenced by getSplitHorizontal(), getSplitVertical(), PointsToScreenPixelsX(), PointsToScreenPixelsY(), setSplitHorizontal(), and setSplitVertical().

◆ getDisplayGridlines()

sal_Bool SAL_CALL ScVbaWindow::getDisplayGridlines ( )
overridevirtual

Definition at line 463 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_SHOWGRID.

◆ getDisplayHeadings()

sal_Bool SAL_CALL ScVbaWindow::getDisplayHeadings ( )
overridevirtual

Definition at line 477 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_COLROWHDR.

◆ getDisplayHorizontalScrollBar()

sal_Bool SAL_CALL ScVbaWindow::getDisplayHorizontalScrollBar ( )
overridevirtual

Definition at line 491 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_HORSCROLL.

◆ getDisplayOutline()

sal_Bool SAL_CALL ScVbaWindow::getDisplayOutline ( )
overridevirtual

Definition at line 505 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_OUTLSYMB.

◆ getDisplayVerticalScrollBar()

sal_Bool SAL_CALL ScVbaWindow::getDisplayVerticalScrollBar ( )
overridevirtual

Definition at line 519 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_VERTSCROLL.

◆ getDisplayWorkbookTabs()

sal_Bool SAL_CALL ScVbaWindow::getDisplayWorkbookTabs ( )
overridevirtual

Definition at line 533 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_SHEETTABS.

◆ getFrameProps()

uno::Reference< beans::XPropertySet > ScVbaWindow::getFrameProps ( ) const
private
Exceptions
css::uno::RuntimeException

Definition at line 235 of file vbawindow.cxx.

Referenced by getCaption(), and setCaption().

◆ getFreezePanes()

sal_Bool SAL_CALL ScVbaWindow::getFreezePanes ( )
overridevirtual

Definition at line 547 of file vbawindow.cxx.

◆ getScrollColumn()

uno::Any SAL_CALL ScVbaWindow::getScrollColumn ( )
overridevirtual

◆ getScrollRow()

uno::Any SAL_CALL ScVbaWindow::getScrollRow ( )
overridevirtual

◆ getServiceImplName()

OUString ScVbaWindow::getServiceImplName ( )
overridevirtual

Definition at line 847 of file vbawindow.cxx.

◆ getServiceNames()

uno::Sequence< OUString > ScVbaWindow::getServiceNames ( )
overridevirtual

Definition at line 853 of file vbawindow.cxx.

References aServiceNames.

◆ getSplit()

sal_Bool SAL_CALL ScVbaWindow::getSplit ( )
overridevirtual

Definition at line 585 of file vbawindow.cxx.

◆ getSplitColumn()

sal_Int32 SAL_CALL ScVbaWindow::getSplitColumn ( )
overridevirtual

Definition at line 610 of file vbawindow.cxx.

Referenced by setFreezePanes(), setSplitColumn(), and setSplitRow().

◆ getSplitHorizontal()

double SAL_CALL ScVbaWindow::getSplitHorizontal ( )
overridevirtual

Definition at line 628 of file vbawindow.cxx.

References getDevice(), and PixelsToPoints().

◆ getSplitRow()

sal_Int32 SAL_CALL ScVbaWindow::getSplitRow ( )
overridevirtual

Definition at line 643 of file vbawindow.cxx.

Referenced by setFreezePanes(), setSplitColumn(), and setSplitRow().

◆ getSplitVertical()

double SAL_CALL ScVbaWindow::getSplitVertical ( )
overridevirtual

Definition at line 661 of file vbawindow.cxx.

References getDevice(), and PixelsToPoints().

◆ getTabRatio()

double SAL_CALL ScVbaWindow::getTabRatio ( )
overridevirtual

◆ getView()

uno::Any SAL_CALL ScVbaWindow::getView ( )
overridevirtual

◆ getVisibleRange()

uno::Reference< excel::XRange > SAL_CALL ScVbaWindow::getVisibleRange ( )
overridevirtual

Definition at line 784 of file vbawindow.cxx.

References m_xModel, and mxContext.

◆ getWindowState()

uno::Any SAL_CALL ScVbaWindow::getWindowState ( )
overridevirtual

◆ getZoom()

uno::Any SAL_CALL ScVbaWindow::getZoom ( )
overridevirtual

Definition at line 702 of file vbawindow.cxx.

References getControllerProps(), SC_UNO_ZOOMTYPE, SC_UNO_ZOOMVALUE, and sName.

◆ init()

void ScVbaWindow::init ( )
private

Definition at line 209 of file vbawindow.cxx.

References ActivePane(), m_refCount, and m_xPane.

◆ LargeScroll()

void SAL_CALL ScVbaWindow::LargeScroll ( const css::uno::Any &  Down,
const css::uno::Any &  Up,
const css::uno::Any &  ToRight,
const css::uno::Any &  ToLeft 
)
overridevirtual

Definition at line 264 of file vbawindow.cxx.

References Down, Scroll(), and Up.

◆ PointsToScreenPixelsX()

sal_Int32 SAL_CALL ScVbaWindow::PointsToScreenPixelsX ( sal_Int32  _points)
overridevirtual

Definition at line 793 of file vbawindow.cxx.

References getDevice().

◆ PointsToScreenPixelsY()

sal_Int32 SAL_CALL ScVbaWindow::PointsToScreenPixelsY ( sal_Int32  _points)
overridevirtual

Definition at line 801 of file vbawindow.cxx.

References getDevice().

◆ PrintOut()

void SAL_CALL ScVbaWindow::PrintOut ( const css::uno::Any &  From,
const css::uno::Any &  To,
const css::uno::Any &  Copies,
const css::uno::Any &  Preview,
const css::uno::Any &  ActivePrinter,
const css::uno::Any &  PrintToFile,
const css::uno::Any &  Collate,
const css::uno::Any &  PrToFileName 
)
overridevirtual

◆ PrintPreview()

void SAL_CALL ScVbaWindow::PrintPreview ( const css::uno::Any &  EnableChanges)
overridevirtual

◆ RangeSelection()

uno::Reference< excel::XRange > SAL_CALL ScVbaWindow::RangeSelection ( )
overridevirtual

Definition at line 455 of file vbawindow.cxx.

References Selection().

◆ Scroll()

void ScVbaWindow::Scroll ( const css::uno::Any &  Down,
const css::uno::Any &  Up,
const css::uno::Any &  ToRight,
const css::uno::Any &  ToLeft,
bool  bLargeScroll 
)
Exceptions
css::uno::RuntimeException

Definition at line 247 of file vbawindow.cxx.

References Down, m_xPane, and Up.

Referenced by LargeScroll(), and SmallScroll().

◆ ScrollWorkbookTabs()

void SAL_CALL ScVbaWindow::ScrollWorkbookTabs ( const css::uno::Any &  Sheets,
const css::uno::Any &  Position 
)
overridevirtual

Definition at line 284 of file vbawindow.cxx.

◆ SelectedSheets()

uno::Any SAL_CALL ScVbaWindow::SelectedSheets ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 270 of file vbawindow.cxx.

References aIndex, m_xModel, and mxContext.

◆ Selection()

uno::Any SAL_CALL ScVbaWindow::Selection ( )
overridevirtual

Definition at line 448 of file vbawindow.cxx.

Referenced by RangeSelection().

◆ setCaption()

void SAL_CALL ScVbaWindow::setCaption ( const css::uno::Any &  _caption)
overridevirtual

Definition at line 313 of file vbawindow.cxx.

References getFrameProps(), and SC_UNONAME_TITLE.

◆ setDisplayGridlines()

void SAL_CALL ScVbaWindow::setDisplayGridlines ( sal_Bool  _displaygridlines)
overridevirtual

Definition at line 471 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_SHOWGRID.

◆ setDisplayHeadings()

void SAL_CALL ScVbaWindow::setDisplayHeadings ( sal_Bool  _bDisplayHeadings)
overridevirtual

Definition at line 485 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_COLROWHDR.

◆ setDisplayHorizontalScrollBar()

void SAL_CALL ScVbaWindow::setDisplayHorizontalScrollBar ( sal_Bool  _bDisplayHorizontalScrollBar)
overridevirtual

Definition at line 499 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_HORSCROLL.

◆ setDisplayOutline()

void SAL_CALL ScVbaWindow::setDisplayOutline ( sal_Bool  _bDisplayOutline)
overridevirtual

Definition at line 513 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_OUTLSYMB.

◆ setDisplayVerticalScrollBar()

void SAL_CALL ScVbaWindow::setDisplayVerticalScrollBar ( sal_Bool  _bDisplayVerticalScrollBar)
overridevirtual

Definition at line 527 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_VERTSCROLL.

◆ setDisplayWorkbookTabs()

void SAL_CALL ScVbaWindow::setDisplayWorkbookTabs ( sal_Bool  _bDisplayWorkbookTabs)
overridevirtual

Definition at line 541 of file vbawindow.cxx.

References getControllerProps(), and SC_UNO_SHEETTABS.

◆ setFreezePanes()

void SAL_CALL ScVbaWindow::setFreezePanes ( sal_Bool  _bFreezePanes)
overridevirtual

Definition at line 554 of file vbawindow.cxx.

References getSplitColumn(), and getSplitRow().

◆ setScrollColumn()

void SAL_CALL ScVbaWindow::setScrollColumn ( const css::uno::Any &  _scrollcolumn)
overridevirtual

◆ setScrollRow()

void SAL_CALL ScVbaWindow::setScrollRow ( const css::uno::Any &  _scrollrow)
overridevirtual

◆ setSplit()

void SAL_CALL ScVbaWindow::setSplit ( sal_Bool  _bSplit)
overridevirtual

Definition at line 592 of file vbawindow.cxx.

References ActiveCell(), and SplitAtDefinedPosition().

◆ setSplitColumn()

void SAL_CALL ScVbaWindow::setSplitColumn ( sal_Int32  _splitcolumn)
overridevirtual

Definition at line 617 of file vbawindow.cxx.

References getSplitColumn(), getSplitRow(), and SplitAtDefinedPosition().

◆ setSplitHorizontal()

void SAL_CALL ScVbaWindow::setSplitHorizontal ( double  _splithorizontal)
overridevirtual

Definition at line 635 of file vbawindow.cxx.

References getDevice(), and PointsToPixels().

◆ setSplitRow()

void SAL_CALL ScVbaWindow::setSplitRow ( sal_Int32  _splitrow)
overridevirtual

Definition at line 650 of file vbawindow.cxx.

References getSplitColumn(), getSplitRow(), and SplitAtDefinedPosition().

◆ setSplitVertical()

void SAL_CALL ScVbaWindow::setSplitVertical ( double  _splitvertical)
overridevirtual

Definition at line 668 of file vbawindow.cxx.

References getDevice(), and PointsToPixels().

◆ setTabRatio()

void SAL_CALL ScVbaWindow::setTabRatio ( double  _tabratio)
overridevirtual

◆ setView()

void SAL_CALL ScVbaWindow::setView ( const css::uno::Any &  _view)
overridevirtual

◆ setWindowState()

void SAL_CALL ScVbaWindow::setWindowState ( const css::uno::Any &  _windowstate)
overridevirtual

◆ setZoom()

void SAL_CALL ScVbaWindow::setZoom ( const css::uno::Any &  _zoom)
overridevirtual

◆ SmallScroll()

void SAL_CALL ScVbaWindow::SmallScroll ( const css::uno::Any &  Down,
const css::uno::Any &  Up,
const css::uno::Any &  ToRight,
const css::uno::Any &  ToLeft 
)
overridevirtual

Definition at line 258 of file vbawindow.cxx.

References Down, Scroll(), and Up.

◆ SplitAtDefinedPosition()

void ScVbaWindow::SplitAtDefinedPosition ( sal_Int32  nColumns,
sal_Int32  nRows 
)
protected

Member Data Documentation

◆ m_xPane

css::uno::Reference< ov::excel::XPane > ScVbaWindow::m_xPane
private

Definition at line 35 of file vbawindow.hxx.

Referenced by init(), and Scroll().


The documentation for this class was generated from the following files: