30 #include <document.hxx>
33 #define SC_NOTEMARK_TIME 800
34 #define SC_NOTEMARK_SHORT 70
38 const MapMode& rMap,
bool bLeftEdge,
bool bForce,
bool bKeyboard) :
40 m_pRightWin( pRight ),
41 m_pBottomWin( pBottom ),
42 m_pDiagWin( pDiagonal ),
46 m_aTimer(
"ScNoteMarker m_aTimer"),
49 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 );
142 aOrigin.AdjustX( -(rMove.
Width()) );
143 aOrigin.AdjustY( -rMove.
Height() );
#define LINK(Instance, Class, Member)
static ScCaptionPtr 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.
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
ScNoteMarker(vcl::Window *pWin, vcl::Window *pRight, vcl::Window *pBottom, vcl::Window *pDiagonal, ScDocument *pD, const ScAddress &aPos, const OUString &rUser, const MapMode &rMap, bool bLeftEdge, bool bForce, bool bKeyboard)
VclPtr< vcl::Window > m_pDiagWin
static const AllSettings & GetSettings()
static void lcl_DrawWin(const SdrObject *pObject, vcl::RenderContext *pWindow, const MapMode &rMap)
#define SC_NOTEMARK_SHORT
const MapMode & GetMapMode() const
std::unique_ptr< SdrModel > m_pModel
void SetDrawMode(DrawModeFlags nDrawMode)
IMPL_LINK_NOARG(ScNoteMarker, TimeHdl, Timer *, void)
constexpr tools::Long Width() const
static MapMode lcl_MoveMapMode(const MapMode &rMap, const Size &rMove)
constexpr tools::Long getHeight() const
void SingleObjectPainter(OutputDevice &rOut) const
const MapMode & GetMapMode() const
virtual void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
void SetOrigin(const Point &rOrigin)
virtual void Start(bool bStartTimer=true) override
Point PixelToLogic(const Point &rDevicePt) const
DrawModeFlags GetDrawMode() const
void SetTimeout(sal_uInt64 nTimeoutMs)
VclPtr< vcl::Window > m_pRightWin
void SetDefaultMetric(MapUnit eNewMetric)
constexpr tools::Long Height() const
const SdrCaptionObj * get() const
VclPtr< vcl::Window > m_pWindow
::OutputDevice const * GetOutDev() const
tools::Long AdjustWidth(tools::Long n)
SdrCaptionObj * release()
Release all management of the SdrCaptionObj* in all instances of this list and dissolve.
void SetRefDevice(OutputDevice *pRefDev)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
const Point & GetOrigin() const
tools::Long AdjustHeight(tools::Long n)
Size GetOutputSizePixel() const
constexpr tools::Long getWidth() const
VclPtr< vcl::Window > m_pBottomWin
tools::Rectangle m_aVisRect
bool m_bDetectedRangeSegmentation false