31#include <document.hxx>
34#define SC_NOTEMARK_TIME 800
35#define SC_NOTEMARK_SHORT 70
39 const MapMode& rMap,
bool bLeftEdge,
bool bForce,
bool bKeyboard) :
41 m_pRightWin( pRight ),
42 m_pBottomWin( pBottom ),
43 m_pDiagWin( pDiagonal ),
46 m_aUserText(
std::move( aUser )),
47 m_aTimer(
"ScNoteMarker m_aTimer"),
50 m_bByKeyboard( bKeyboard ),
80 m_pModel->SetScaleUnit(MapUnit::Map100thMM);
90 Outliner& rOutliner = m_pModel->GetDrawOutliner();
107 m_aRect = m_xObject->GetCurrentBoundRect();
111 m_pModel->InsertPage( pPage.get() );
128 pWindow->
SetDrawMode( nOldDrawMode | DrawModeFlags::SettingsLine | DrawModeFlags::SettingsFill |
129 DrawModeFlags::SettingsText | DrawModeFlags::SettingsGradient );
132 pObject->SingleObjectPainter( *pWindow );
static const AllSettings & GetSettings()
void SetOrigin(const Point &rOrigin)
const Point & GetOrigin() const
void SetRefDevice(OutputDevice *pRefDev)
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
const MapMode & GetMapMode() const
void SetDrawMode(DrawModeFlags nDrawMode)
DrawModeFlags GetDrawMode() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
ScNoteMarker(vcl::Window *pWin, vcl::Window *pRight, vcl::Window *pBottom, vcl::Window *pDiagonal, ScDocument *pD, const ScAddress &aPos, OUString aUser, const MapMode &rMap, bool bLeftEdge, bool bForce, bool bKeyboard)
VclPtr< vcl::Window > m_pRightWin
tools::Rectangle m_aVisRect
VclPtr< vcl::Window > m_pDiagWin
std::unique_ptr< SdrModel > m_pModel
VclPtr< vcl::Window > m_pWindow
VclPtr< vcl::Window > m_pBottomWin
rtl::Reference< SdrCaptionObj > m_xObject
static rtl::Reference< SdrCaptionObj > CreateTempCaption(ScDocument &rDoc, const ScAddress &rPos, SdrPage &rDrawPage, std::u16string_view rUserText, const tools::Rectangle &rVisRect, bool bTailFront)
Creates and returns a caption object for a temporary caption.
void SetDefaultMetric(MapUnit eNewMetric)
constexpr tools::Long getHeight() const
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
constexpr tools::Long getWidth() const
tools::Long AdjustWidth(tools::Long n)
constexpr tools::Long Width() const
void SetTimeout(sal_uInt64 nTimeoutMs)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
virtual void Start(bool bStartTimer=true) override
EmbeddedObjectRef * pObject
#define LINK(Instance, Class, Member)
static MapMode lcl_MoveMapMode(const MapMode &rMap, const Size &rMove)
IMPL_LINK_NOARG(ScNoteMarker, TimeHdl, Timer *, void)
static void lcl_DrawWin(const SdrObject *pObject, vcl::RenderContext *pWindow, const MapMode &rMap)
#define SC_NOTEMARK_SHORT