26#include <osl/diagnose.h>
41#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
42#include <com/sun/star/frame/XModel.hpp>
50 m_pDoc(&rNewModel.GetDoc())
65 for ( sal_uInt16
i = 0;
i != rSrcPage.
m_pGridLst->GetCount(); ++
i )
77 pClonedSwDPage->lateInit(*
this);
78 return pClonedSwDPage;
84 OSL_ENSURE( pOld,
"Oups, Object not replaced" );
88 static_cast<SwDrawContact*
>(pContact)->ChangeMasterObject( pNewObj );
109 if(rShell.Imp()->GetPageView() == pPV)
123 const SwRect aRect( *pRect );
150 bool bContinue =
true;
152 if( rEvt.
GetMode() & ( HelpEventMode::QUICK | HelpEventMode::BALLOON ))
159 SdrObject* pObj = pView->
PickObj(aPos, 0, pPV, SdrSearchOptions::PICKMACRO);
163 bool bTooltip =
false;
183 if ( sText.isEmpty() )
189 else if ( !rURL.
GetURL().isEmpty() )
203 aPt,
MapMode( MapUnit::MapTwip ) );
204 sText +=
"?" + OUString::number( aPt.
getX() )
205 +
"," + OUString::number( aPt.
getY() );
214 pView->
PickAnything(aMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt);
222 if (!sText.isEmpty())
226 if (!bExecHyperlinks && !bTooltip)
233 if (rEvt.
GetMode() & HelpEventMode::BALLOON)
251 Reference < XInterface > xRet;
256 Reference<XDrawPageSupplier> xPageSupp(
xModel, UNO_QUERY);
257 xRet = xPageSupp->getDrawPage();
void lateInit(const FmFormPage &rPage)
static bool RequestHelp(vcl::Window *pWin, SdrView const *pView, const HelpEvent &rEvt)
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)
const OUString & GetAltText() const
const OUString & GetURL() const
constexpr tools::Long getX() const
constexpr tools::Long getY() const
SdrObject * PickObj(const Point &rPnt, short nTol, SdrPageView *&rpPV, SdrSearchOptions nOptions, SdrObject **ppRootObj, bool *pbHitPassDirect=nullptr) const
virtual rtl::Reference< SdrObject > ReplaceObject(SdrObject *pNewObj, size_t nObjNum)
SdrObject * GetObj(size_t nNum) const
virtual const tools::Rectangle & GetLogicRect() const
void Insert(const SdrPageGridFrame &rGF)
bool IsMasterPage() const
SdrModel & getSdrModelFromSdrPage() const
SdrHitKind PickAnything(const MouseEvent &rMEvt, SdrMouseEventKind nMouseDownOrMoveOrUp, SdrViewEvent &rVEvt) const
static OUString GetURLHelpText(std::u16string_view)
css::uno::Reference< css::frame::XModel3 > GetBaseModel() const
const OUString & GetURL() const
SwDPage is Writer's draw page: derives from SdrPage, but has a reference to the Writer document via S...
virtual rtl::Reference< SdrObject > ReplaceObject(SdrObject *pNewObj, size_t nObjNum) override
void lateInit(const SwDPage &rSrcPage)
virtual ~SwDPage() override
SwDPage(const SwDPage &)=delete
std::unique_ptr< SdrPageGridFrameList > m_pGridLst
virtual css::uno::Reference< css::uno::XInterface > createUnoPage() override
virtual rtl::Reference< SdrPage > CloneSdrPage(SdrModel &rTargetModel) const override
virtual const SdrPageGridFrameList * GetGridFrameList(const SdrPageView *pPV, const tools::Rectangle *pRect) const override
bool RequestHelp(vcl::Window *pWindow, SdrView const *pView, const HelpEvent &rEvt)
SwDocShell * GetDocShell()
general base class for all free-flowing frames
virtual const SwFlyFrameFormat * GetFormat() const override
const SwRect & getFrameArea() const
const SwRect & getFramePrintArea() const
Base class of the Writer layout elements.
const SwFrame * Lower() const
Of course Writer needs its own rectangles.
void Pos(const Point &rNew)
bool Overlaps(const SwRect &rRect) const
tools::Rectangle SVRect() const
const SwPageFrame * GetFirstVisPage(OutputDevice const *pRenderContext) const
Management of the first visible Page.
vcl::RenderContext * GetOut() const
SwRootFrame * GetLayout() const
const SwRect & VisArea() const
SwFlyFrame * GetFlyFrame()
ring_container GetRingContainer()
Point OutputToScreenPixel(const Point &rPos) const
Point LogicToPixel(const Point &rLogicPt) const
Point PixelToLogic(const Point &rDevicePt) const
Point ScreenToOutputPixel(const Point &rPos) const
virtual SotClipboardFormatId GetFormat(const TransferableDataHelper &aHelper) override
static void InsertGridFrame(SdrPageGridFrameList *pLst, const SwFrame *pPg)
constexpr TypedWhichId< SwDrawFrameFormat > RES_DRAWFRMFMT(165)
SVL_DLLPUBLIC OUString removePassword(OUString const &rURI, INetURLObject::EncodeMechanism eEncodeMechanism, INetURLObject::DecodeMechanism eDecodeMechanism=INetURLObject::DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
const SvxURLField * mpURLField
Reference< XModel > xModel