23#include <com/sun/star/container/XIndexAccess.hpp>
24#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
25#include <com/sun/star/sheet/XSpreadsheet.hpp>
26#include <com/sun/star/table/CellAddress.hpp>
51 return ( rAddress.Sheet << 24 ) | ( rAddress.Column << 16 ) | rAddress.Row;
72 const table::CellAddress& rPos )
74 uno::Reference<container::XIndexAccess> xSheets( xDoc->getSheets(), uno::UNO_QUERY );
75 uno::Reference<sheet::XSpreadsheet> xSheet( xSheets->getByIndex( rPos.Sheet ), uno::UNO_QUERY );
76 return xSheet->getCellByPosition( rPos.Column, rPos.Row );
80 const table::CellAddress& rPos,
double fValue )
86 const table::CellAddress& rPos )
92 OPropertyContainer( GetBroadcastHelper() ),
94 mbNonNegative( false ),
98 mbLimitBBDepth( true ),
119 uno::Sequence<beans::Property> aProps;
120 describeProperties( aProps );
147 case PROP_NONNEGATIVE:
148 pResId = RID_PROPERTY_NONNEGATIVE;
151 pResId = RID_PROPERTY_INTEGER;
154 pResId = RID_PROPERTY_TIMEOUT;
156 case PROP_EPSILONLEVEL:
157 pResId = RID_PROPERTY_EPSILONLEVEL;
159 case PROP_LIMITBBDEPTH:
160 pResId = RID_PROPERTY_LIMITBBDEPTH;
251 return {
"com.sun.star.sheet.Solver" };
constexpr OUStringLiteral STR_TIMEOUT
constexpr OUStringLiteral STR_INTEGER
constexpr OUStringLiteral STR_NONNEGATIVE
constexpr OUStringLiteral STR_LIMITBBDEPTH
constexpr OUStringLiteral STR_EPSILONLEVEL
cppu::WeakImplHelper< css::sheet::XSolver, css::sheet::XSolverDescription, css::lang::XServiceInfo > SolverComponent_Base
bool AddressEqual(const css::table::CellAddress &rAddr1, const css::table::CellAddress &rAddr2)
virtual css::uno::Sequence< css::sheet::SolverConstraint > SAL_CALL getConstraints() override
virtual css::uno::Sequence< css::table::CellAddress > SAL_CALL getVariables() override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual void SAL_CALL setVariables(const css::uno::Sequence< css::table::CellAddress > &_variables) override
virtual sal_Bool SAL_CALL getSuccess() override
virtual sal_Bool SAL_CALL getMaximize() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Reference< css::sheet::XSpreadsheetDocument > SAL_CALL getDocument() override
virtual double SAL_CALL getResultValue() override
css::uno::Sequence< double > maSolution
virtual ~SolverComponent() override
static css::uno::Reference< css::table::XCell > GetCell(const css::uno::Reference< css::sheet::XSpreadsheetDocument > &xDoc, const css::table::CellAddress &rPos)
virtual OUString SAL_CALL getPropertyDescription(const OUString &aPropertyName) override
css::uno::Reference< css::sheet::XSpreadsheetDocument > mxDoc
css::uno::Sequence< css::sheet::SolverConstraint > maConstraints
css::table::CellAddress maObjective
static double GetValue(const css::uno::Reference< css::sheet::XSpreadsheetDocument > &xDoc, const css::table::CellAddress &rPos)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
static void SetValue(const css::uno::Reference< css::sheet::XSpreadsheetDocument > &xDoc, const css::table::CellAddress &rPos, double fValue)
virtual void SAL_CALL setObjective(const css::table::CellAddress &_objective) override
static OUString GetResourceString(TranslateId aId)
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual OUString SAL_CALL getStatusDescription() override
virtual css::uno::Sequence< double > SAL_CALL getSolution() override
css::uno::Sequence< css::table::CellAddress > maVariables
virtual css::table::CellAddress SAL_CALL getObjective() override
virtual void SAL_CALL setDocument(const css::uno::Reference< css::sheet::XSpreadsheetDocument > &_document) override
virtual void SAL_CALL setConstraints(const css::uno::Sequence< css::sheet::SolverConstraint > &_constraints) override
virtual void SAL_CALL setMaximize(sal_Bool _maximize) override
::cppu::IPropertyArrayHelper * getArrayHelper()
void registerProperty(const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
virtual sal_Int32 SAL_CALL getHandleByName(const ::rtl::OUString &rPropertyName)=0
std::locale Create(std::string_view aPrefixName, const LanguageTag &rLocale)
OUString get(TranslateId sContextAndId, const std::locale &loc)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
IMPLEMENT_FORWARD_XINTERFACE2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
bool operator()(const css::table::CellAddress &rAddr1, const css::table::CellAddress &rAddr2) const
size_t operator()(const css::table::CellAddress &rAddress) const