oovbaapi/ooo/vba/word/XRange.idl |    2 ++
 sw/source/ui/vba/vbarange.hxx    |    4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit febfbaff07562dd68bc2b5bc870699754f763e50
Author:     Hannah Meeks <[email protected]>
AuthorDate: Tue Jul 12 17:15:17 2022 +0100
Commit:     Tomaž Vajngerl <[email protected]>
CommitDate: Thu Jul 14 10:19:57 2022 +0200

    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 <[email protected]>

diff --git a/oovbaapi/ooo/vba/word/XRange.idl b/oovbaapi/ooo/vba/word/XRange.idl
index ea5e05d2a497..3b51db78ca3e 100644
--- a/oovbaapi/ooo/vba/word/XRange.idl
+++ b/oovbaapi/ooo/vba/word/XRange.idl
@@ -28,6 +28,8 @@ interface XListFormat;
 interface XRange
 {
     interface ooo::vba::XHelperInterface;
+    interface com::sun::star::script::XDefaultProperty;
+
 
     [attribute] string Text;
     [attribute] XParagraphFormat ParagraphFormat;
diff --git a/sw/source/ui/vba/vbarange.hxx b/sw/source/ui/vba/vbarange.hxx
index 38e2631e40fe..ee8ed621bb8c 100644
--- a/sw/source/ui/vba/vbarange.hxx
+++ b/sw/source/ui/vba/vbarange.hxx
@@ -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;

Reply via email to