31 #include <rtl/instance.hxx>
38 :
public rtl::StaticWithInit<Wallpaper, ImplBlackWall> {
44 :
public rtl::StaticWithInit<Wallpaper, ImplWhiteWall> {
77 Window::ImplInit( pParent, nWinStyle,
nullptr );
83 if(
GetSettings().GetStyleSettings().GetFaceColor().IsDark() )
133 mnStartSplitPos( 0 ),
135 mbKbdSplitting( false ),
136 mbInKeyEvent( false ),
186 pSplitter =
static_cast<Splitter*
>(pWin);
373 while( maxiter-- && aOldWindowPos ==
GetPosPixel() )
385 aNewPos.AdjustX( -delta );
388 aNewPos.AdjustX(delta );
391 aNewPos.AdjustY( -delta );
394 aNewPos.AdjustY(delta );
624 if( aKeyCode.
IsShift() && pSibling )
643 Window::KeyInput( rKEvt );
652 Window::DataChanged( rDCEvt );
664 if( newFaceColor.
IsDark() )
673 rRenderContext.
DrawRect(rPaintRect);
684 aInfo.SetDistance( 1 );
685 aInfo.SetDotLen( 2 );
686 aInfo.SetDotCount( 3 );
692 rRenderContext.
DrawRect(rPaintRect);
SAL_DLLPRIVATE void ImplRestoreSplitter()
virtual Point GetPosPixel() const
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
void SetDragRectPixel(const tools::Rectangle &rDragRect, vcl::Window *pRefWin=nullptr)
Point GetPointerPosPixel()
tools::Long mnStartSplitPos
SAL_DLLPRIVATE Splitter * ImplFindSibling()
SystemWindow * GetSystemWindow() const
Point OutputToNormalizedScreenPixel(const Point &rPos) const
const AllSettings * GetOldSettings() const
void InvertTracking(const tools::Rectangle &rRect, ShowTrackFlags nFlags)
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
Gets the application's settings.
const Color & GetFaceColor() const
bool IsHorizontal() const
virtual void SetSizePixel(const Size &rNewSize)
SAL_DLLPRIVATE WindowImpl * ImplGetWindowImpl() const
SAL_DLLPRIVATE void ImplStartKbdSplitting()
void DrawPolyLine(const tools::Polygon &rPoly)
Render the given polygon as a line stroke.
virtual void LoseFocus() override
sal_uInt16 GetCode() const
DataChangedEventType GetType() const
tools::Long mnKeyboardStepSize
void StartTracking(StartTrackingFlags nFlags=StartTrackingFlags::NONE)
constexpr sal_uInt16 KEY_UP
sal_uInt16 GetClicks() const
Link< Splitter *, void > maEndSplitHdl
SAL_DLLPRIVATE void ImplKbdTracking(vcl::KeyCode aKeyCode)
SAL_DLLPRIVATE bool ImplIsSplitter() const
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
void DrawRect(const tools::Rectangle &rRect)
virtual void KeyInput(const KeyEvent &rKEvt) override
constexpr sal_uInt16 KEY_DOWN
virtual ~Splitter() override
Link< Splitter *, void > maSplitHdl
tools::Long mnLastSplitPos
SAL_DLLPRIVATE void ImplInitHorVer(bool bNew)
Link< Splitter *, void > maStartSplitHdl
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rPaintRect) override
void DrawTransparent(const tools::PolyPolygon &rPolyPoly, sal_uInt16 nTransparencePercent)
virtual void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
Size GetOutputSize() const
tools::Long Width() const
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
virtual void GetFocus() override
Point NormalizedScreenToOutputPixel(const Point &rPos) const
void GrabFocusToDocument()
VclPtr< vcl::Window > mpRefWin
void SetKeyboardStepSize(tools::Long nStepSize)
const AllSettings & GetSettings() const
void SetSplitPosPixel(tools::Long nPos)
tools::Rectangle maDragRect
tools::Long GetScrollBarSize() const
Splitter(const Splitter &)=delete
#define SPLITTER_DEFAULTSTEPSIZE
vcl::Window * GetParent() const
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects...
bool IsTrackingEnded() const
constexpr sal_uInt16 KEY_RETURN
vcl::Window * GetWindow(GetWindowType nType) const
constexpr sal_uInt16 KEY_RIGHT
Point PixelToLogic(const Point &rDevicePt) const
Point LogicToPixel(const Point &rLogicPt) const
void SetPointer(PointerStyle)
const vcl::KeyCode & GetKeyCode() const
static tools::Long GetSplitSize()
constexpr sal_uInt16 KEY_ESCAPE
virtual Size GetOptimalSize() const override
SAL_DLLPRIVATE void ImplDrawSplitter()
tools::Long Height() const
void RemoveWindow(vcl::Window *pWindow)
const Point & GetPosPixel() const
virtual void Tracking(const TrackingEvent &rTEvt) override
SAL_DLLPRIVATE bool ImplSplitterActive()
bool IsTrackingCanceled() const
void AddWindow(vcl::Window *pWindow)
TaskPaneList * GetTaskPaneList()
constexpr sal_uInt16 KEY_DELETE
constexpr sal_uInt16 KEY_LEFT
void SetHorizontal(bool bNew)
SAL_DLLPRIVATE void ImplSplitMousePos(Point &rPos)
const MouseEvent & GetMouseEvent() const
SAL_DLLPRIVATE void ImplInit(vcl::Window *pParent, WinBits nWinStyle)