20#include <config_features.h>
26#include <com/sun/star/form/FormButtonType.hpp>
27#include <com/sun/star/beans/XPropertySet.hpp>
28#include <osl/diagnose.h>
60 if (rSh.
BeginCreate(SdrObjKind::FormButton, SdrInventor::FmForm, aStartPos))
73 OSL_ENSURE( pUnoCtrl,
"not an SdrUnoObj" );
79 OSL_ENSURE( xControlModel.is(),
"UNO-Control without Model" );
80 if (!xControlModel.is())
83 uno::Reference< beans::XPropertySet > xPropSet(xControlModel, uno::UNO_QUERY);
88 xPropSet->setPropertyValue(
"Label", aTmp );
96 xPropSet->setPropertyValue(
"TargetURL", aTmp );
101 xPropSet->setPropertyValue(
"TargetFrame", aTmp );
104 aTmp <<= form::FormButtonType_URL;
105 xPropSet->setPropertyValue(
"ButtonType", aTmp );
107#if HAVE_FEATURE_AVMEDIA
112 xPropSet->setPropertyValue(
"DispatchURLInternal", aTmp );
void SetEditMode(SdrViewEditMode eMode)
void SetCurrentObj(SdrObjKind nIdent, SdrInventor nInvent=SdrInventor::Default)
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
void SetDesignMode(bool bOn=true)
SdrObject * GetMarkedSdrObj() const
const css::uno::Reference< css::awt::XControlModel > & GetUnoControlModel() const
const INetURLObject & GetURLObject() const
SfxMedium * GetMedium() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
void InsertURLButton(const OUString &rURL, const OUString &rTarget, const OUString &rText)
const SwRect & GetCharRect() const
void EndAction(const bool bIdleEnd=false)
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
bool BeginCreate(SdrObjKind eSdrObjectKind, const Point &rPos)
Process of creating draw objects.
bool EndCreate(SdrCreateCmd eSdrCreateCmd)
size_t IsObjSelected() const
void MoveCreate(const Point &rPos)
void Pos(const Point &rNew)
SwDocShell * GetDocShell()
Used by the UI to modify the document model.
const SwView & GetView() const
SVL_DLLPUBLIC OUString SmartRel2Abs(INetURLObject const &rTheBaseURIRef, OUString const &rTheRelURIRef, Link< OUString *, bool > const &rMaybeFileHdl=Link< OUString *, bool >(), bool bCheckFileExists=true, bool bIgnoreFragment=false, INetURLObject::EncodeMechanism eEncodeMechanism=INetURLObject::EncodeMechanism::WasEncoded, INetURLObject::DecodeMechanism eDecodeMechanism=INetURLObject::DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, FSysStyle eStyle=FSysStyle::Detect)