LibreOffice Module vcl (master)
1
|
#include <comphelper/string.hxx>
#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
#include <tools/time.hxx>
#include <vcl/window.hxx>
#include <vcl/event.hxx>
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
#include <vcl/help.hxx>
#include <vcl/settings.hxx>
#include <helpwin.hxx>
#include <salframe.hxx>
#include <svdata.hxx>
Go to the source code of this file.
Macros | |
#define | HELPWINSTYLE_QUICK 0 |
#define | HELPWINSTYLE_BALLOON 1 |
#define | HELPTEXTMARGIN_QUICK 3 |
#define | HELPTEXTMARGIN_BALLOON 6 |
#define | HELPTEXTMAXLEN 150 |
Functions | |
IMPL_LINK (HelpTextWindow, TimerHdl, Timer *, pTimer, void) | |
void | ImplShowHelpWindow (vcl::Window *pParent, sal_uInt16 nHelpWinStyle, QuickHelpFlags nStyle, const OUString &rHelpText, const Point &rScreenPos, const tools::Rectangle &rHelpArea) |
void | ImplDestroyHelpWindow (bool bUpdateHideTime) |
void | ImplDestroyHelpWindow (ImplSVHelpData &rHelpData, bool bUpdateHideTime) |
void | ImplSetHelpWindowPos (vcl::Window *pHelpWin, sal_uInt16 nHelpWinStyle, QuickHelpFlags nStyle, const Point &rPos, const tools::Rectangle &rHelpArea) |
#define HELPTEXTMARGIN_BALLOON 6 |
Definition at line 41 of file help.cxx.
Referenced by HelpTextWindow::SetHelpText().
#define HELPTEXTMARGIN_QUICK 3 |
Definition at line 40 of file help.cxx.
Referenced by HelpTextWindow::SetHelpText().
#define HELPTEXTMAXLEN 150 |
Definition at line 43 of file help.cxx.
Referenced by HelpTextWindow::Paint(), and HelpTextWindow::SetHelpText().
#define HELPWINSTYLE_BALLOON 1 |
Definition at line 38 of file help.cxx.
Referenced by HelpTextWindow::Paint(), Help::ShowBalloon(), Help::ShowPopover(), and Help::ShowQuickHelp().
#define HELPWINSTYLE_QUICK 0 |
Definition at line 37 of file help.cxx.
Referenced by IMPL_LINK(), ImplSetHelpWindowPos(), HelpTextWindow::Paint(), HelpTextWindow::SetHelpText(), HelpTextWindow::ShowHelp(), Help::ShowPopover(), and Help::ShowQuickHelp().
IMPL_LINK | ( | HelpTextWindow | , |
TimerHdl | , | ||
Timer * | , | ||
pTimer | , | ||
void | |||
) |
Definition at line 441 of file help.cxx.
References HELPWINSTYLE_QUICK, ImplDestroyHelpWindow(), ImplGetSVHelpData(), and SAL_WARN_IF.
void ImplDestroyHelpWindow | ( | bool | bUpdateHideTime | ) |
Definition at line 550 of file help.cxx.
References ImplDestroyHelpWindow(), and ImplGetSVHelpData().
Referenced by DestroySVHelpData(), vcl::Window::dispose(), Help::HideBalloonAndQuickHelp(), IMPL_LINK(), ImplDestroyHelpWindow(), ImplHandleClose(), ImplHandleKey(), ImplHandleMouseEvent(), ImplHandleMouseFloatMode(), ImplHandleMouseHelpRequest(), ImplHandleMove(), ImplHandleResize(), and ImplShowHelpWindow().
void ImplDestroyHelpWindow | ( | ImplSVHelpData & | rHelpData, |
bool | bUpdateHideTime | ||
) |
Definition at line 555 of file help.cxx.
References VclPtr< reference_type >::disposeAndClear(), tools::Time::GetSystemTicks(), vcl::Window::Hide(), ImplSVHelpData::mbKeyboardHelp, ImplSVHelpData::mnLastHelpHideTime, and ImplSVHelpData::mpHelpWin.
void ImplSetHelpWindowPos | ( | vcl::Window * | pHelpWin, |
sal_uInt16 | nHelpWinStyle, | ||
QuickHelpFlags | nStyle, | ||
const Point & | rPos, | ||
const tools::Rectangle & | rHelpArea | ||
) |
Definition at line 569 of file help.cxx.
References vcl::Window::AbsoluteScreenToOutputPixel(), tools::Rectangle::Bottom(), Bottom, tools::Rectangle::BottomRight(), tools::Rectangle::Center(), tools::Rectangle::Contains(), vcl::Window::GetDesktopRectPixel(), tools::Rectangle::GetHeight(), vcl::Window::GetParent(), vcl::Window::GetPointerPosPixel(), vcl::Window::GetSizePixel(), Size::Height(), HELPWINSTYLE_QUICK, vcl::Window::ImplGetFrameWindow(), tools::Rectangle::Left(), Left, NoAutoPos, NoEvadePointer, vcl::Window::OutputToAbsoluteScreenPixel(), Point, tools::Rectangle::Right(), Right, vcl::Window::SetPosPixel(), tools::Rectangle::Top(), Top, tools::Rectangle::TopLeft(), and Size::Width().
Referenced by ImplShowHelpWindow(), and Help::UpdatePopover().
void ImplShowHelpWindow | ( | vcl::Window * | pParent, |
sal_uInt16 | nHelpWinStyle, | ||
QuickHelpFlags | nStyle, | ||
const OUString & | rHelpText, | ||
const Point & | rScreenPos, | ||
const tools::Rectangle & | rHelpArea | ||
) |
Definition at line 479 of file help.cxx.
References HelpTextWindow::CalcOutSize(), VclPtr< reference_type >::Create(), HelpTextWindow::GetHelpArea(), HelpTextWindow::GetHelpText(), vcl::Window::GetParent(), tools::Time::GetSystemTicks(), HelpSettings::GetTipDelay(), HelpTextWindow::GetWinStyle(), ImplDestroyHelpWindow(), vcl::Window::ImplGetFrame(), ImplGetSVHelpData(), ImplSetHelpWindowPos(), vcl::Window::Invalidate(), vcl::Window::IsVisible(), o3tl::make_unsigned(), ImplSVHelpData::mbRequestingHelp, ImplSVHelpData::mnLastHelpHideTime, ImplSVHelpData::mpHelpWin, SAL_WARN_IF, HelpTextWindow::SetHelpArea(), HelpTextWindow::SetHelpText(), vcl::Window::SetOutputSizePixel(), HelpTextWindow::ShowHelp(), and SalFrame::ShowTooltip().
Referenced by Help::ShowBalloon(), and Help::ShowQuickHelp().