21 , m_pModulWindow(pModulWindow)
61 const sal_uInt32 nStartLine = startY / nLineHeight + 1;
62 sal_uInt32 nEndLine = (startY + windowHeight) / nLineHeight + 1;
74 sal_uInt32
i = (nMaxLineNumber + 1) / 1000;
81 sal_Int64
y = (nStartLine - 1) *
static_cast<sal_Int64
>(nLineHeight);
83 for (sal_uInt32
n = nStartLine;
n <= nEndLine; ++
n,
y += nLineHeight)
85 const OUString aLineNumber = OUString::number(
n);
98 Window::DataChanged(rDCEvt);
99 if (rDCEvt.
GetType() == DataChangedEventType::SETTINGS
100 && (rDCEvt.
GetFlags() & AllSettingsFlags::STYLE))
115 Window::Scroll(0, nVertScroll);
const StyleSettings & GetStyleSettings() const
DataChangedEventType GetType() const
AllSettingsFlags GetFlags() const
const AllSettings * GetOldSettings() const
Size GetOutputSize() const
void SetTextColor(const Color &rColor)
tools::Long GetTextHeight() const
void DrawText(const Point &rStartPt, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, std::vector< tools::Rectangle > *pVector=nullptr, OUString *pDisplayText=nullptr, const SalLayoutGlyphs *pLayoutCache=nullptr)
constexpr tools::Long Y() const
constexpr tools::Long Height() const
const Color & GetFieldColor() const
const Color & GetWindowTextColor() const
sal_uInt32 GetParagraphCount() const
const Point & GetStartDocPos() const
VclPtr< ModulWindow > m_pModulWindow
void DoScroll(tools::Long nVertScroll)
virtual void DataChanged(DataChangedEvent const &rDCEvt) override
tools::Long m_nCurYOffset
LineNumberWindow(vcl::Window *pParent, ModulWindow *pModulWin)
virtual void dispose() override
virtual ~LineNumberWindow() override
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
tools::Long GetTextWidth(const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::text::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
vcl::Window * GetParent() const
vcl::Window * GetWindow(GetWindowType nType) const
const AllSettings & GetSettings() const
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)