The DefaultPropertyName for range is tex

Change-Id: I0e5f1ae0757a2ad8f58f011df435c30c577d8a79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137006
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
This commit is contained in:
Hannah Meeks 2022-07-12 17:15:17 +01:00 committed by Tomaž Vajngerl
parent 0b5df6634a
commit febfbaff07
2 changed files with 5 additions and 1 deletions

View file

@ -28,6 +28,8 @@ interface XListFormat;
interface XRange
{
interface ooo::vba::XHelperInterface;
interface com::sun::star::script::XDefaultProperty;
[attribute] string Text;
[attribute] XParagraphFormat ParagraphFormat;

View file

@ -67,11 +67,13 @@ public:
virtual void SAL_CALL setParagraphFormat( const css::uno::Reference< ooo::vba::word::XParagraphFormat >& rParagraphFormat ) override;
virtual css::uno::Any SAL_CALL getStyle() override;
virtual void SAL_CALL setStyle( const css::uno::Any& _xStyle ) override;
virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() override;
virtual css::uno::Reference< ooo::vba::word::XFind > SAL_CALL getFind() override;
virtual css::uno::Reference< ooo::vba::word::XListFormat > SAL_CALL getListFormat() override;
//XDefaultProperty
virtual OUString SAL_CALL getDefaultPropertyName() override { return "Text"; }
// Methods
virtual void SAL_CALL InsertBreak(const css::uno::Any& _breakType) override;
virtual void SAL_CALL Select() override;