20#include <com/sun/star/awt/Key.hpp>
28#include <sfx2/sfxsids.hrc>
52, maPauseTimer(
"sd ShowWindow maPauseTimer")
53, maMouseTimer(
"sd ShowWindow maMouseTimer")
57, mbShowNavigatorAfterSpecialMode( false )
58, mbMouseAutoHide(true)
59, mbMouseCursorHidden(false)
70 aMap.SetMapUnit(MapUnit::Map100thMM);
101 bool bReturn =
false;
119 case awt::Key::CONTEXTMENU:
152 case awt::Key::CONTEXTMENU:
329 if( xSlideShow.is() && !nTimeout )
331 xSlideShow->jumpToPageIndex( 0 );
433 if( xSlideShow.is() )
439 xSlideShow->pause(
false);
444 xSlideShow->jumpToPageIndex( nPageIndexToRestart );
467 OUString aText(
SdResId( STR_PRES_PAUSE ) );
478 if( !bTimeoutOnly && (
maLogo.
GetType() != GraphicType::NONE ) )
487 const Point aGrfPos( std::max( aOutOrg.
X() + aOutSize.
Width() - aGrfSize.
Width() - aOffset.
Width(), aOutOrg.
X() ),
488 std::max( aOutOrg.
Y() + aOutSize.
Height() - aGrfSize.
Height() - aOffset.
Height(), aOutOrg.
Y() ) );
502 pVDev->SetMapMode( aVMap );
506 pVDev->SetFont( aFont );
508 const Size aVDevSize( aOutSize.
Width(), pVDev->GetTextHeight() );
510 if( pVDev->SetOutputSize( aVDevSize ) )
517 pVDev->DrawText(
Point( aOffset.
Width(), 0 ), aText );
538 const OUString aText(
SdResId( STR_PRES_SOFTEND ) );
551 if( !( --mnPauseTimeout ) )
555 DrawPauseScene(
true );
562 if( mbMouseCursorHidden )
566 mnFirstMouseMove = 0;
571 ShowPointer(
false );
572 mbMouseCursorHidden =
true;
578 if( mbMouseAutoHide )
580 if (rEvent.GetId() == VclEventId::WindowShow)
583 maMouseTimer.Start();
609css::uno::Reference<css::accessibility::XAccessible>
612 css::uno::Reference< css::accessibility::XAccessible > xAcc =
GetAccessible(
false);
625 SAL_WARN(
"sd",
"::sd::Window::CreateAccessible: no view shell");
GraphicType GetType() const
MapMode GetPrefMapMode() const
void Draw(OutputDevice &rOutDev, const Point &rDestPt) const
void StartAnimation(OutputDevice &rOutDev, const Point &rDestPt, const Size &rDestSize, tools::Long nExtraData=0, OutputDevice *pFirstFrameOutDev=nullptr)
const vcl::KeyCode & GetKeyCode() const
OUString getDuration(const tools::Duration &rDuration, bool bSec=true, bool b100Sec=false) const
void SetOrigin(const Point &rOrigin)
MapUnit GetMapUnit() const
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
SAL_DLLPRIVATE void DrawOutDev(const Point &, const Size &, const Point &, const Size &, const Printer &)=delete
void SetOutDevViewType(OutDevViewType eOutDevViewType)
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)
SAL_DLLPRIVATE void DrawWallpaper(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const Wallpaper &rWallpaper)
constexpr tools::Long Y() const
constexpr tools::Long X() const
SfxChildWindow * GetChildWindow(sal_uInt16)
void ShowChildWindow(sal_uInt16, bool bVisible=true)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
const LocaleDataWrapper & GetLocaleData() const
void SetTimeout(sal_uInt64 nTimeoutMs)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
virtual void Start(bool bStartTimer=true) override
void AddWindowToPaintView()
virtual ~ShowWindow() override
virtual void KeyInput(const KeyEvent &rKEvt) override
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
Wallpaper maShowBackground
void DeleteWindowFromPaintView()
virtual void LoseFocus() override
Deactivate window.
ShowWindowMode meShowWindowMode
bool SetBlankMode(sal_Int32 nPageIndexToRestart, const Color &rBlankColor)
void DrawPauseScene(bool bTimeoutOnly)
bool mbShowNavigatorAfterSpecialMode
::rtl::Reference< SlideshowImpl > mxController
sal_Int32 mnRestartPageIndex
virtual void dispose() override
sal_uInt64 mnFirstMouseMove
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual void MouseMove(const MouseEvent &rMEvt) override
ShowWindow(::rtl::Reference< ::sd::SlideshowImpl > xController, vcl::Window *pParent)
virtual void Paint(vcl::RenderContext &rRenderContext, const ::tools::Rectangle &rRect) override
if FuSlideShow is still available, forward it
bool SetPauseMode(sal_Int32 nTimeoutSec, Graphic const *pLogo=nullptr)
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
Override the sd::Window's CreateAccessible to create a different accessible object.
static rtl::Reference< SlideShow > GetSlideShow(SdDrawDocument const *pDocument)
virtual bool KeyInput(const KeyEvent &rKEvt, ::sd::Window *pWin)
virtual void Paint(const ::tools::Rectangle &rRect, ::sd::Window *pWin)
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleDocumentView(::sd::Window *pWindow)
Create an accessible object representing the specified window.
void SetActiveWindow(::sd::Window *pWindow)
Set the active window.
::sd::View * GetView() const
SD_DLLPUBLIC ViewShellBase & GetViewShellBase() const
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
An SdWindow contains the actual working area of ViewShell.
virtual void LoseFocus() override
Deactivate window.
virtual void dispose() override
virtual void KeyInput(const KeyEvent &rKEvt) override
void SetFontSize(const Size &)
void SetColor(const Color &)
void SetCharSet(rtl_TextEncoding)
LanguageType GetLanguage() const
rtl_TextEncoding GetCharSet() const
void SetLanguage(LanguageType)
sal_uInt16 GetCode() const
sal_uInt16 GetFullCode() const
void SetFont(const vcl::Font &rNewFont)
vcl::Window * GetParent() const
void ShowPointer(bool bVisible)
sal_uInt16 GetChildCount() const
void SetAccessible(const css::uno::Reference< css::accessibility::XAccessible > &)
virtual void EnableRTL(bool bEnable=true)
const AllSettings & GetSettings() const
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
const MapMode & GetMapMode() const
::OutputDevice const * GetOutDev() const
const vcl::Font & GetFont() const
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible()
void AddEventListener(const Link< VclWindowEvent &, void > &rEventListener)
Point PixelToLogic(const Point &rDevicePt) const
css::uno::Reference< css::accessibility::XAccessible > GetAccessible(bool bCreate=true)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
vcl::Window * GetChild(sal_uInt16 nChild) const
void SetHelpId(const OUString &)
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
constexpr OUStringLiteral HID_SD_WIN_PRESENTATION
constexpr sal_uInt16 KEY_ESCAPE
constexpr sal_uInt16 KEY_HOME
constexpr sal_uInt16 KEY_LEFT
constexpr sal_uInt16 KEY_UP
constexpr sal_uInt16 KEY_RIGHT
constexpr sal_uInt16 KEY_PAGEUP
constexpr sal_uInt16 KEY_P
constexpr sal_uInt16 KEY_END
#define LINK(Instance, Class, Member)
#define SAL_WARN(area, stream)
IMPL_LINK_NOARG(MainSequence, onTimerHdl, Timer *, void)
const sal_uInt64 SHOW_MOUSE_TIMEOUT
IMPL_LINK(SdCharHeightPropertyBox, implMenuSelectHdl, const OUString &, rIdent, void)
const sal_uInt64 HIDE_MOUSE_TIMEOUT
HashMap_OWString_Interface aMap
OUString SdResId(TranslateId aId)
Reference< XController > xController