21#include <com/sun/star/beans/XPropertySet.hpp>
33#include <osl/diagnose.h>
43using com::sun::star::uno::UNO_QUERY;
74 pClonedFmFormPage->lateInit(*
this);
75 return pClonedFmFormPage;
88 const SdrPage& rMasterPage( *
this );
90 OSL_ENSURE( pFormPage,
"FmFormPage::GetForms: referenced page is no FmFormPage - is this allowed?!" );
94 return pFormPage->
m_pImpl->getForms( _bForceCreate );
113 FmFormObj* pFormObject = FmFormObj::GetFormObject( pObj );
118 css::uno::Reference< css::beans::XPropertySet > xSet( pFormObject->GetUnoControlModel(), css::uno::UNO_QUERY );
122 aHelpText = ::comphelper::getString(xSet->getPropertyValue(
FM_PROP_HELPTEXT));
132 { INetProtocol::Ftp, INetProtocol::Http, INetProtocol::File, INetProtocol::Mailto,
133 INetProtocol::Https, INetProtocol::Javascript,
144 if ( !aHelpText.isEmpty() )
155 if( rEvt.
GetMode() == HelpEventMode::BALLOON )
void lateInit(const FmFormPage &rPage)
const css::uno::Reference< css::form::XForms > & GetForms(bool _bForceCreate=true) const
FmFormPage(const FmFormPage &)=delete
std::unique_ptr< FmFormPageImpl > m_pImpl
static bool RequestHelp(vcl::Window *pWin, SdrView const *pView, const HelpEvent &rEvt)
virtual ~FmFormPage() override
virtual void InsertObject(SdrObject *pObj, size_t nPos=SAL_MAX_SIZE) override
FmFormPageImpl & GetImpl() const
virtual rtl::Reference< SdrObject > RemoveObject(size_t nObjNum) override
virtual rtl::Reference< SdrPage > CloneSdrPage(SdrModel &rTargetModel) const override
HelpEventMode GetMode() const
const Point & GetMousePosPixel() const
static void ShowQuickHelp(vcl::Window *pParent, const tools::Rectangle &rScreenRect, const OUString &rHelpText, QuickHelpFlags nStyle=QuickHelpFlags::NONE)
static void ShowBalloon(vcl::Window *pParent, const Point &rScreenPos, const tools::Rectangle &, const OUString &rHelpText)
INetProtocol GetProtocol() const
OUString GetURLNoPass(DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
constexpr tools::Long Y() const
constexpr tools::Long X() const
virtual bool IsAction() const override
SdrObject * PickObj(const Point &rPnt, short nTol, SdrPageView *&rpPV, SdrSearchOptions nOptions, SdrObject **ppRootObj, bool *pbHitPassDirect=nullptr) const
virtual void InsertObject(SdrObject *pObj, size_t nPos=SAL_MAX_SIZE)
virtual rtl::Reference< SdrObject > RemoveObject(size_t nObjNum)
virtual const tools::Rectangle & GetCurrentBoundRect() const
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
bool IsMasterPage() const
void lateInit(const SdrPage &rSrcPage)
SdrModel & getSdrModelFromSdrPage() const
Point OutputToScreenPixel(const Point &rPos) const
Point LogicToPixel(const Point &rLogicPt) const
Point PixelToLogic(const Point &rDevicePt) const
Point ScreenToOutputPixel(const Point &rPos) const
constexpr OUStringLiteral FM_PROP_HELPTEXT
constexpr OUStringLiteral FM_PROP_TARGET_URL