20#include <com/sun/star/table/CellAddress.hpp>
21#include <com/sun/star/table/CellRangeAddress.hpp>
28#include <unonames.hxx>
53 if ( rHint.
GetId() == SfxHintId::Dying )
65 bool bSuccess =
false;
132 throw uno::RuntimeException();
134 bool bSuccess =
false;
140 table::CellRangeAddress aRangeAddress;
141 if ( aValue >>= aRangeAddress )
149 table::CellAddress aCellAddress;
150 if ( aValue >>= aCellAddress )
160 sal_Int32 nIntVal = 0;
161 if ( aValue >>= nIntVal )
170 OUString sRepresentation;
171 if (aValue >>= sRepresentation)
182 OUString sRepresentation;
183 if (aValue >>= sRepresentation)
185 OUString aUIString(sRepresentation);
188 if ( aUIString[0]==
'.' )
189 aUIString = aUIString.copy( 1 );
194 sal_Int32 nColon = aUIString.lastIndexOf(
':' );
195 if ( nColon >= 0 && nColon < aUIString.getLength() - 1 &&
196 aUIString[nColon+1] ==
'.' )
197 aUIString = aUIString.replaceAt( nColon+1, 1,
u"" );
205 throw beans::UnknownPropertyException(aPropertyName);
208 throw lang::IllegalArgumentException();
214 throw uno::RuntimeException();
223 table::CellRangeAddress aRangeAddress;
225 aRet <<= aRangeAddress;
229 table::CellAddress aCellAddress;
231 aRet <<= aCellAddress;
266 aFormatStr += aSecond ;
271 throw beans::UnknownPropertyException(aPropertyName);
282 return "ScAddressConversionObj";
virtual ~ScAddressConversionObj() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
bool ParseUIString(const OUString &rUIString, ::formula::FormulaGrammar::AddressConvention eConv=::formula::FormulaGrammar::CONV_OOO)
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
ScAddressConversionObj(ScDocShell *pDocSh, bool bIsRange)
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
SC_DLLPUBLIC void Format(OStringBuffer &r, ScRefFlags nFlags, const ScDocument *pDocument=nullptr, const Details &rDetails=detailsOOOa1) const
SC_DLLPUBLIC ScRefFlags Parse(const OUString &, const ScDocument &, const Details &rDetails=detailsOOOa1, ExternalInfo *pExtInfo=nullptr, const css::uno::Sequence< css::sheet::ExternalLinkInfo > *pExternalLinks=nullptr, sal_Int32 *pSheetEndPos=nullptr, const OUString *pErrRef=nullptr)
const ScDocument & GetDocument() const
void AddUnoObject(SfxListener &rObject)
void RemoveUnoObject(SfxListener &rObject)
OUString Format(const ScDocument &rDocument, ScRefFlags nFlags=ScRefFlags::ZERO, const ScAddress::Details &rDetails=ScAddress::detailsOOOa1, bool bFullAddressNotation=false) const
Returns string with formatted cell range from aStart to aEnd, according to provided address conventio...
ScRefFlags ParseAny(const OUString &, const ScDocument &, const ScAddress::Details &rDetails=ScAddress::detailsOOOa1)
static void FillScAddress(ScAddress &rScAddress, const css::table::CellAddress &rApiAddress)
static void FillScRange(ScRange &rScRange, const css::table::CellRangeAddress &rApiRange)
static void FillApiAddress(css::table::CellAddress &rApiAddress, const ScAddress &rScAddress)
static void FillApiRange(css::table::CellRangeAddress &rApiRange, const ScRange &rScRange)
css::uno::Type const & get()
#define SC_IMPL_DUMMY_PROPERTY_LISTENER(ClassName)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr OUStringLiteral SC_UNONAME_PERSREPR
constexpr OUStringLiteral SC_SERVICENAME_RANGEADDRESS
constexpr OUStringLiteral SC_SERVICENAME_CELLADDRESS
constexpr OUStringLiteral SC_UNONAME_REFSHEET
constexpr OUStringLiteral SC_UNONAME_UIREPR
constexpr OUStringLiteral SC_UNONAME_XLA1REPR
constexpr OUStringLiteral SC_UNONAME_ADDRESS