23#include <com/sun/star/beans/XPropertySet.hpp>
30 const uno::Reference< uno::XComponentContext >& xContext,
32 uno::Reference< text::XSimpleText> xRange,
33 const css::uno::Any& Start,
34 const css::uno::Any&
Length,
37 m_xSimpleText(
std::move(xRange)), m_aPalette( dPalette), bReplace(
Replace )
46 uno::Reference< text::XTextCursor > xTextCursor(
m_xSimpleText->createTextCursor(), uno::UNO_SET_THROW );
47 xTextCursor->collapseToStart();
50 if ( ( nStart + 1 ) >
m_xSimpleText->getString().getLength() )
52 xTextCursor->gotoEnd(
false );
53 xTextCursor->goRight( nStart,
false );
56 xTextCursor->gotoEnd(
true );
58 xTextCursor->goRight(
nLength,
true );
91uno::Reference< excel::XFont > SAL_CALL
94 uno::Reference< beans::XPropertySet > xProps(
m_xTextRange, uno::UNO_QUERY_THROW );
101 throw uno::RuntimeException(
"Not Implemented" );
122 return "ScVbaCharacters";
125uno::Sequence< OUString >
130 "ooo.vba.excel.Characters"
css::uno::Reference< css::uno::XComponentContext > mxContext
virtual void SAL_CALL Delete() override
virtual void SAL_CALL Insert(const OUString &String) override
ScVbaCharacters(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const ScVbaPalette &dPalette, css::uno::Reference< css::text::XSimpleText > xRange, const css::uno::Any &Start, const css::uno::Any &Length, bool bReplace=false)
virtual OUString SAL_CALL getCaption() override
virtual OUString SAL_CALL getText() override
virtual OUString getServiceImplName() override
virtual void SAL_CALL setCaption(const OUString &_caption) override
virtual void SAL_CALL setText(const OUString &_text) override
virtual void SAL_CALL setFont(const css::uno::Reference< ov::excel::XFont > &_font) override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual ::sal_Int32 SAL_CALL getCount() override
virtual css::uno::Reference< ov::excel::XFont > SAL_CALL getFont() override
css::uno::Reference< css::text::XTextRange > m_xTextRange
css::uno::Reference< css::text::XSimpleText > m_xSimpleText
Sequence< OUString > aServiceNames