/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_PAGEBREAKWIN_HXX #define INCLUDED_SW_SOURCE_UIBASE_INC_PAGEBREAKWIN_HXX
This control shows a line indicating a manual page break and a button providing a few actions on that page break.
*/ class SwBreakDashedLine final : public SwDashedLine, public ISwFrameControl
{ private:
VclPtr<SwPageBreakWin> m_pWin;
VclPtr<SwEditWin> m_pEditWin;
std::optional<Point> m_xMousePt;
::tools::Rectangle m_aBtnRect; const SwFrame* m_pFrame;
class SwPageBreakWin final : public InterimItemWindow
{
std::unique_ptr<weld::MenuButton> m_xMenuButton;
VclPtr<SwBreakDashedLine> m_pLine;
VclPtr<SwEditWin> m_pEditWin;
VclPtr<VirtualDevice> m_xVirDev; const SwFrame* m_pFrame; bool m_bIsAppearing; int m_nFadeRate; int m_nDelayAppearing; ///< Before we show the control, let it transparent for a few timer ticks to avoid appearing with every mouse over.
Timer m_aFadeTimer; bool m_bDestroyed;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.