scsolver::CalcInterface Class Reference

#include <xcalc.hxx>

List of all members.

Public Member Functions

 CalcInterface (const Reference< uno::XComponentContext > &)
 ~CalcInterface ()
Reference
< uno::XComponentContext > 
getComponentContext () const
Reference
< lang::XComponent > 
getCurrentComponent () const
void updateCurrentComponent () const
Reference
< lang::XMultiComponentFactory > 
getServiceManager () const
void setDocumentProperty (const rtl::OUString &, uno::Any)
uno::Any getDocumentProperty (const rtl::OUString &) const
Reference
< sheet::XRangeSelection > 
getXRangeSelection () const
Reference
< sheet::XSpreadsheet > 
getActiveSheet () const
Reference
< sheet::XSpreadsheet > 
getSheetByIndex (const sal_uInt16) const
Reference
< sheet::XSpreadsheet > 
getSheetByName (const rtl::OUString &) const
rtl::OUString getCellFormula (const rtl::OUString &, const rtl::OUString &)
table::CellAddress getCellAddress (const rtl::OUString &)
table::CellAddress getCellAddress (const rtl::OUString &, const rtl::OUString &)
table::CellRangeAddress getCellRangeAddress (const rtl::OUString &)
table::CellRangeAddress getCellRangeAddress (const rtl::OUString &, const rtl::OUString &)
Reference< table::XCell > getCell (const table::CellAddress &) const
rtl::OUString getCellFormula (const table::CellAddress &)
double getCellValue (const table::CellAddress &)
void setCellFormula (const table::CellAddress &, const rtl::OUString &) const
void setCellValue (const table::CellAddress &, double) const
void disableCellUpdates () const
void enableCellUpdates () const
void addMenuItem () const

Private Member Functions

void splitCellRangeAddress (const rtl::OUString &, rtl::OUString &, rtl::OUString &)

Private Attributes

Reference
< uno::XComponentContext > 
m_xCC
Reference
< lang::XMultiComponentFactory > 
m_xSM
Reference
< lang::XComponent > 
m_xCurComp
Reference
< sheet::XRangeSelection > 
m_xRngSel


Detailed Description

This class is the only class that interfaces with the Calc document component. If you want access to the service manager, then this class is it.

Definition at line 76 of file xcalc.hxx.


Constructor & Destructor Documentation

scsolver::CalcInterface::CalcInterface ( const Reference< uno::XComponentContext > &  xCC  ) 

Definition at line 69 of file xcalc.cxx.

scsolver::CalcInterface::~CalcInterface (  ) 

Definition at line 74 of file xcalc.cxx.


Member Function Documentation

Reference< uno::XComponentContext > scsolver::CalcInterface::getComponentContext (  )  const [inline]

Definition at line 86 of file xcalc.hxx.

References m_xCC.

Referenced by getServiceManager(), scsolver::StringResMgr::getSimpleFileAccess(), scsolver::StringResMgr::getSystemLocaleString(), scsolver::StringResMgr::init(), scsolver::BaseDialogImpl::initialize(), and scsolver::numeric::lp::UnoAlgorithmImpl::solve().

Reference< lang::XComponent > scsolver::CalcInterface::getCurrentComponent (  )  const

Definition at line 81 of file xcalc.cxx.

References m_xCurComp, and updateCurrentComponent().

Referenced by disableCellUpdates(), enableCellUpdates(), getActiveSheet(), getDocumentProperty(), getSheetByIndex(), getSheetByName(), getXRangeSelection(), and setDocumentProperty().

void scsolver::CalcInterface::updateCurrentComponent (  )  const

Definition at line 88 of file xcalc.cxx.

References scsolver::ascii(), getServiceManager(), m_xCC, and m_xCurComp.

Referenced by getCurrentComponent().

Reference< lang::XMultiComponentFactory > scsolver::CalcInterface::getServiceManager (  )  const

Definition at line 97 of file xcalc.cxx.

References getComponentContext(), and m_xSM.

Referenced by scsolver::StringResMgr::getSimpleFileAccess(), scsolver::StringResMgr::getSystemLocaleString(), scsolver::StringResMgr::init(), scsolver::BaseDialogImpl::initialize(), scsolver::numeric::lp::UnoAlgorithmImpl::solve(), and updateCurrentComponent().

void scsolver::CalcInterface::setDocumentProperty ( const rtl::OUString &  sName,
uno::Any  aVal 
)

Definition at line 104 of file xcalc.cxx.

References getCurrentComponent().

Referenced by scsolver::SolverDialog::saveModelToDocument().

uno::Any scsolver::CalcInterface::getDocumentProperty ( const rtl::OUString &  sName  )  const

Definition at line 119 of file xcalc.cxx.

References getCurrentComponent().

Referenced by scsolver::SolverDialog::loadModelFromDocument().

Reference< XRangeSelection > scsolver::CalcInterface::getXRangeSelection (  )  const

Definition at line 131 of file xcalc.cxx.

References getCurrentComponent(), and m_xRngSel.

Referenced by scsolver::SolverDialog::registerListeners(), and scsolver::ConstEditDialog::registerListeners().

Reference< XSpreadsheet > scsolver::CalcInterface::getActiveSheet (  )  const

Definition at line 153 of file xcalc.cxx.

References getCurrentComponent().

Referenced by scsolver::SolverDialog::setVisible().

Reference< XSpreadsheet > scsolver::CalcInterface::getSheetByIndex ( const   sal_uInt16  )  const

Definition at line 162 of file xcalc.cxx.

References getCurrentComponent().

Referenced by getCell().

Reference< XSpreadsheet > scsolver::CalcInterface::getSheetByName ( const rtl::OUString &  sName  )  const

Definition at line 174 of file xcalc.cxx.

References getCurrentComponent().

Referenced by getCellFormula(), and getCellRangeAddress().

rtl::OUString scsolver::CalcInterface::getCellFormula ( const rtl::OUString &  sSheetAddr,
const rtl::OUString &  sCellAddr 
)

Definition at line 300 of file xcalc.cxx.

References getSheetByName(), and scsolver::lcl_resolveSheetName().

Referenced by scsolver::SolveModelImpl::parseConstraints().

table::CellAddress scsolver::CalcInterface::getCellAddress ( const rtl::OUString &  sFullAddr  ) 

Definition at line 216 of file xcalc.cxx.

References splitCellRangeAddress().

Referenced by scsolver::SolveModelImpl::resolveObjectiveFuncAddress().

table::CellAddress scsolver::CalcInterface::getCellAddress ( const rtl::OUString &  sSheetAddr,
const rtl::OUString &  sCellAddr 
)

Definition at line 223 of file xcalc.cxx.

References getCellRangeAddress().

table::CellRangeAddress scsolver::CalcInterface::getCellRangeAddress ( const rtl::OUString &  sFullAddr  ) 

Definition at line 235 of file xcalc.cxx.

References splitCellRangeAddress().

Referenced by getCellAddress(), scsolver::ConstEditDialog::isCellRangeGeometryEqual(), scsolver::SolveModelImpl::resolveConstraintAddress(), and scsolver::SolveModelImpl::resolveDecisionVarAddress().

table::CellRangeAddress scsolver::CalcInterface::getCellRangeAddress ( const rtl::OUString &  sSheetAddr,
const rtl::OUString &  sCellAddr 
)

Definition at line 243 of file xcalc.cxx.

References scsolver::Debug(), getSheetByName(), and scsolver::lcl_resolveSheetName().

Reference< table::XCell > scsolver::CalcInterface::getCell ( const table::CellAddress &  aAddr  )  const

Definition at line 211 of file xcalc.cxx.

References getSheetByIndex().

Referenced by getCellFormula(), getCellValue(), setCellFormula(), and setCellValue().

rtl::OUString scsolver::CalcInterface::getCellFormula ( const table::CellAddress &  aAddr  ) 

Definition at line 278 of file xcalc.cxx.

References getCell().

double scsolver::CalcInterface::getCellValue ( const table::CellAddress &  aAddr  ) 

Definition at line 295 of file xcalc.cxx.

References getCell().

Referenced by scsolver::NlpModelBuilderImpl::getModel(), and scsolver::SolveModelImpl::parseConstraints().

void scsolver::CalcInterface::setCellFormula ( const table::CellAddress &  aAddr,
const rtl::OUString &  sStr 
) const

Definition at line 283 of file xcalc.cxx.

References getCell().

Referenced by scsolver::SolveModelImpl::parseConstraints().

void scsolver::CalcInterface::setCellValue ( const table::CellAddress &  aAddr,
double  fVal 
) const

Definition at line 289 of file xcalc.cxx.

References getCell().

Referenced by scsolver::SolveModelImpl::updateCells().

void scsolver::CalcInterface::disableCellUpdates (  )  const

Definition at line 314 of file xcalc.cxx.

References getCurrentComponent().

Referenced by scsolver::CellUpdateSwitch::CellUpdateSwitch().

void scsolver::CalcInterface::enableCellUpdates (  )  const

Definition at line 322 of file xcalc.cxx.

References getCurrentComponent().

Referenced by scsolver::CellUpdateSwitch::~CellUpdateSwitch().

void scsolver::CalcInterface::addMenuItem (  )  const

void scsolver::CalcInterface::splitCellRangeAddress ( const rtl::OUString &  sFullAddr,
rtl::OUString &  sSheetAddr,
rtl::OUString &  sCellAddr 
) [private]

Definition at line 331 of file xcalc.cxx.

References scsolver::ascii().

Referenced by getCellAddress(), and getCellRangeAddress().


Member Data Documentation

Reference< uno::XComponentContext > scsolver::CalcInterface::m_xCC [private]

Definition at line 128 of file xcalc.hxx.

Referenced by getComponentContext(), and updateCurrentComponent().

Reference< lang::XMultiComponentFactory > scsolver::CalcInterface::m_xSM [mutable, private]

Definition at line 129 of file xcalc.hxx.

Referenced by getServiceManager().

Reference< lang::XComponent > scsolver::CalcInterface::m_xCurComp [mutable, private]

Definition at line 130 of file xcalc.hxx.

Referenced by getCurrentComponent(), and updateCurrentComponent().

Reference< sheet::XRangeSelection > scsolver::CalcInterface::m_xRngSel [mutable, private]

Definition at line 131 of file xcalc.hxx.

Referenced by getXRangeSelection().


The documentation for this class was generated from the following files:
Generated on Mon Jul 28 09:13:48 2008 for scsolver by  doxygen 1.5.3