diff options
author | Shubham Goyal <22shubh22@gmail.com> | 2019-03-09 06:10:58 +0530 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-03-11 15:51:16 +0100 |
commit | 4c4ccdf724dedebce23cc9abd7b74bee43f184d7 (patch) | |
tree | d21b1de3b1b6f125117d690627c50cc10d9941a6 /basctl/source/dlged | |
parent | 50d91e7294700ea38fc4933b0636a19d4684eede (diff) |
i#119731 Hyperlink Control on dialog Editor
Change-Id: I34132931eba103aec5f9622be9c3bf2dd4de237d
Reviewed-on: https://gerrit.libreoffice.org/69001
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'basctl/source/dlged')
-rw-r--r-- | basctl/source/dlged/dlgedfac.cxx | 3 | ||||
-rw-r--r-- | basctl/source/dlged/dlgedobj.cxx | 8 | ||||
-rw-r--r-- | basctl/source/dlged/propbrw.cxx | 4 |
3 files changed, 15 insertions, 0 deletions
diff --git a/basctl/source/dlged/dlgedfac.cxx b/basctl/source/dlged/dlgedfac.cxx index b69856c3cf23..ec003586e090 100644 --- a/basctl/source/dlged/dlgedfac.cxx +++ b/basctl/source/dlged/dlgedfac.cxx @@ -219,6 +219,9 @@ IMPL_LINK( DlgEdFactory, MakeObject, SdrObjCreatorParams, aParams, SdrObject* ) case OBJ_DLG_GRIDCONTROL: pNewObj = new DlgEdObj(aParams.rSdrModel, "com.sun.star.awt.grid.UnoControlGridModel", xDialogSFact ); break; + case OBJ_DLG_HYPERLINKCONTROL: + pNewObj = new DlgEdObj(aParams.rSdrModel, "com.sun.star.awt.UnoControlFixedHyperlinkModel", xDialogSFact ); + break; } } diff --git a/basctl/source/dlged/dlgedobj.cxx b/basctl/source/dlged/dlgedobj.cxx index 81eb13a4fa6e..45a642fa116c 100644 --- a/basctl/source/dlged/dlgedobj.cxx +++ b/basctl/source/dlged/dlgedobj.cxx @@ -723,6 +723,10 @@ OUString DlgEdObj::GetDefaultName() const { sResId = RID_STR_CLASS_GRIDCONTROL; } + else if ( supportsService( "com.sun.star.awt.UnoControlFixedHyperlinkModel" ) ) + { + sResId = RID_STR_CLASS_HYPERLINKCONTROL; + } else if ( supportsService( "com.sun.star.awt.UnoControlSpinButtonModel" ) ) { sResId = RID_STR_CLASS_SPINCONTROL; @@ -852,6 +856,10 @@ sal_uInt16 DlgEdObj::GetObjIdentifier() const { return OBJ_DLG_GRIDCONTROL; } + else if ( supportsService( "com.sun.star.awt.UnoControlFixedHyperlinkModel" )) + { + return OBJ_DLG_HYPERLINKCONTROL; + } else { return OBJ_DLG_CONTROL; diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx index 1f4a02c82f5c..955b87783d8c 100644 --- a/basctl/source/dlged/propbrw.cxx +++ b/basctl/source/dlged/propbrw.cxx @@ -407,6 +407,10 @@ OUString PropBrw::GetHeadlineName( const Reference< XPropertySet >& _rxObject ) { sResId = RID_STR_CLASS_GRIDCONTROL; } + else if ( xServiceInfo->supportsService( "com.sun.star.awt.UnoControlFixedHyperlinkModel" ) ) + { + sResId = RID_STR_CLASS_HYPERLINKCONTROL; + } else { sResId = RID_STR_CLASS_CONTROL; |