39 return *SINGLETON.get();
44 return *SINGLETON.get();
74 Window::ImplInit( pParent, nWinStyle,
nullptr );
80 if(
GetSettings().GetStyleSettings().GetFaceColor().IsDark() )
130 mnStartSplitPos( 0 ),
132 mbKbdSplitting( false ),
133 mbInKeyEvent( false ),
183 pSplitter =
static_cast<Splitter*
>(pWin);
316 sal_uInt16 nCode = aKeyCode.
GetCode();
370 while( maxiter-- && aOldWindowPos ==
GetPosPixel() )
559 sal_uInt16 nCode = aKeyCode.
GetCode();
621 if( aKeyCode.
IsShift() && pSibling )
640 Window::KeyInput( rKEvt );
649 Window::DataChanged( rDCEvt );
661 if( newFaceColor.
IsDark() )
670 rRenderContext.
DrawRect(rPaintRect);
681 aInfo.SetDistance( 1 );
682 aInfo.SetDotLen( 2 );
683 aInfo.SetDotCount( 3 );
689 rRenderContext.
DrawRect(rPaintRect);
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
Gets the application's settings.
DataChangedEventType GetType() const
const AllSettings * GetOldSettings() const
const vcl::KeyCode & GetKeyCode() const
sal_uInt16 GetClicks() const
const Point & GetPosPixel() const
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Size GetOutputSize() const
void DrawPolyLine(const tools::Polygon &rPoly)
Render the given polygon as a line stroke.
void DrawRect(const tools::Rectangle &rRect)
void DrawTransparent(const tools::PolyPolygon &rPolyPoly, sal_uInt16 nTransparencePercent)
constexpr tools::Long Y() const
void setX(tools::Long nX)
void setY(tools::Long nY)
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
tools::Long mnStartSplitPos
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
bool IsHorizontal() const
VclPtr< vcl::Window > mpRefWin
Splitter(const Splitter &)=delete
virtual ~Splitter() override
SAL_DLLPRIVATE void ImplRestoreSplitter()
tools::Rectangle maDragRect
virtual void LoseFocus() override
void SetSplitPosPixel(tools::Long nPos)
SAL_DLLPRIVATE void ImplInit(vcl::Window *pParent, WinBits nWinStyle)
SAL_DLLPRIVATE void ImplInitHorVer(bool bNew)
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
tools::Long mnKeyboardStepSize
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rPaintRect) override
virtual Size GetOptimalSize() const override
SAL_DLLPRIVATE void ImplDrawSplitter()
SAL_DLLPRIVATE void ImplSplitMousePos(Point &rPos)
Link< Splitter *, void > maSplitHdl
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
Link< Splitter *, void > maEndSplitHdl
virtual void KeyInput(const KeyEvent &rKEvt) override
SAL_DLLPRIVATE void ImplStartKbdSplitting()
tools::Long mnLastSplitPos
SAL_DLLPRIVATE Splitter * ImplFindSibling()
Link< Splitter *, void > maStartSplitHdl
void SetKeyboardStepSize(tools::Long nStepSize)
virtual void GetFocus() override
void SetHorizontal(bool bNew)
SAL_DLLPRIVATE void ImplKbdTracking(vcl::KeyCode aKeyCode)
void SetDragRectPixel(const tools::Rectangle &rDragRect, vcl::Window *pRefWin=nullptr)
SAL_DLLPRIVATE bool ImplSplitterActive()
virtual void Tracking(const TrackingEvent &rTEvt) override
sal_Int32 GetScrollBarSize() const
static sal_Int32 GetSplitSize()
const Color & GetFaceColor() const
TaskPaneList * GetTaskPaneList()
void AddWindow(vcl::Window *pWindow)
void RemoveWindow(vcl::Window *pWindow)
bool IsTrackingEnded() const
bool IsTrackingCanceled() const
const MouseEvent & GetMouseEvent() const
sal_uInt16 GetCode() const
void StartTracking(StartTrackingFlags nFlags=StartTrackingFlags::NONE)
vcl::Window * GetParent() const
Point LogicToPixel(const Point &rLogicPt) const
virtual void SetSizePixel(const Size &rNewSize)
vcl::Window * GetWindow(GetWindowType nType) const
SAL_DLLPRIVATE bool ImplIsSplitter() const
virtual Point GetPosPixel() const
Point NormalizedScreenToOutputPixel(const Point &rPos) const
void GrabFocusToDocument()
const AllSettings & GetSettings() const
::OutputDevice const * GetOutDev() const
SystemWindow * GetSystemWindow() const
SAL_DLLPRIVATE WindowImpl * ImplGetWindowImpl() const
Point PixelToLogic(const Point &rDevicePt) const
Point GetPointerPosPixel()
virtual void SetPointer(PointerStyle)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
void InvertTracking(const tools::Rectangle &rRect, ShowTrackFlags nFlags)
Point OutputToNormalizedScreenPixel(const Point &rPos) const
constexpr sal_uInt16 KEY_RETURN
constexpr sal_uInt16 KEY_ESCAPE
constexpr sal_uInt16 KEY_LEFT
constexpr sal_uInt16 KEY_UP
constexpr sal_uInt16 KEY_RIGHT
constexpr sal_uInt16 KEY_DELETE
constexpr sal_uInt16 KEY_DOWN
#define SPLITTER_DEFAULTSTEPSIZE