LibreOffice Module vcl (master)  1
Classes | Namespaces | Enumerations | Functions
window.h File Reference
#include <sal/config.h>
#include <tools/fract.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/idle.hxx>
#include <vcl/inputctx.hxx>
#include <vcl/window.hxx>
#include <vcl/settings.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <cppuhelper/weakref.hxx>
#include <boost/optional.hpp>
#include <list>
#include <memory>
#include <vector>
#include <set>
Include dependency graph for window.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ImplWinData
 
struct  ImplFrameData
 
struct  ImplAccessibleInfos
 
struct  o3tl::typed_flags< ImplPaintFlags >
 
class  WindowImpl
 
class  PaintBufferGuard
 Sets up the buffer to have settings matching the window, and restores the original state in the dtor. More...
 

Namespaces

 com
 
 com::sun
 
 com::sun::star
 
 com::sun::star::accessibility
 
 com::sun::star::rendering
 
 com::sun::star::awt
 
 com::sun::star::uno
 
 com::sun::star::datatransfer
 
 com::sun::star::datatransfer::clipboard
 
 com::sun::star::datatransfer::dnd
 
 o3tl
 

Enumerations

enum  AlwaysInputMode {
  AlwaysInputNone = 0,
  AlwaysInputEnabled = 1,
  AlwaysInputDisabled =2
}
 
enum  ImplPaintFlags {
  ImplPaintFlags::NONE = 0x0000,
  ImplPaintFlags::Paint = 0x0001,
  ImplPaintFlags::PaintAll = 0x0002,
  ImplPaintFlags::PaintAllChildren = 0x0004,
  ImplPaintFlags::PaintChildren = 0x0008,
  ImplPaintFlags::Erase = 0x0010,
  ImplPaintFlags::CheckRtl = 0x0020
}
 

Functions

VCL_DLLPUBLIC Size bestmaxFrameSizeForScreenSize (const Size &rScreenSize)
 
bool isVisibleInLayout (const vcl::Window *pWindow)
 
bool isEnabledInLayout (const vcl::Window *pWindow)
 
bool ImplWindowFrameProc (vcl::Window *pInst, SalEvent nEvent, const void *pEvent)
 
bool ImplHandleMouseEvent (const VclPtr< vcl::Window > &xWindow, MouseNotifyEvent nSVEvent, bool bMouseLeave, long nX, long nY, sal_uInt64 nMsgTime, sal_uInt16 nCode, MouseEventModifiers nMode)
 
void ImplHandleResize (vcl::Window *pWindow, long nNewWidth, long nNewHeight)
 
VCL_DLLPUBLIC void ImplWindowStateFromStr (WindowStateData &rData, const OString &rStr)
 
VCL_DLLPUBLIC OString ImplWindowStateToStr (const WindowStateData &rData)
 
VCL_DLLPUBLIC css::uno::Reference< css::accessibility::XAccessibleEditableText > FindFocusedEditableText (css::uno::Reference< css::accessibility::XAccessibleContext > const &)
 

Enumeration Type Documentation

Enumerator
AlwaysInputNone 
AlwaysInputEnabled 
AlwaysInputDisabled 

Definition at line 198 of file window.h.

enum ImplPaintFlags
strong
Enumerator
NONE 
Paint 
PaintAll 
PaintAllChildren 
PaintChildren 
Erase 
CheckRtl 

Definition at line 200 of file window.h.

Function Documentation

VCL_DLLPUBLIC Size bestmaxFrameSizeForScreenSize ( const Size rScreenSize)
VCL_DLLPUBLIC css::uno::Reference<css::accessibility::XAccessibleEditableText> FindFocusedEditableText ( css::uno::Reference< css::accessibility::XAccessibleContext > const &  )
bool ImplHandleMouseEvent ( const VclPtr< vcl::Window > &  xWindow,
MouseNotifyEvent  nSVEvent,
bool  bMouseLeave,
long  nX,
long  nY,
sal_uInt64  nMsgTime,
sal_uInt16  nCode,
MouseEventModifiers  nMode 
)

bRet &&

Definition at line 261 of file winproc.cxx.

References ContextMenuEvent::aChildPos, AutoFocus, AutoScroll, ContextMenu, ContextMenuEventLink(), DBG_ASSERT, vcl::Window::EndAutoScroll(), Help::EndExtHelp(), vcl::Window::EndExtTextInput(), vcl::Window::EndTracking(), ENTERWINDOW, VclPtr< reference_type >::get(), MouseSettings::GetContextMenuClicks(), MouseSettings::GetContextMenuCode(), MouseSettings::GetDoubleClickHeight(), MouseSettings::GetDoubleClickTime(), MouseSettings::GetDoubleClickWidth(), vcl::Window::GetDragSource(), MouseSettings::GetMiddleButtonAction(), AllSettings::GetMouseSettings(), MouseSettings::GetOptions(), vcl::Window::GetOutDev(), MouseEvent::GetPosPixel(), OutputDevice::GetSettings(), MouseSettings::GetStartDragCode(), MouseSettings::GetStartDragHeight(), MouseSettings::GetStartDragWidth(), vcl::Window::GetStyle(), tools::Time::GetSystemTicks(), NotifyEvent::GetWindow(), ImplCallCommand(), ImplCallPreNotify(), ImplDestroyHelpWindow(), vcl::Window::ImplFindWindow(), vcl::Window::ImplFrameToOutput(), vcl::Window::ImplGetFrameData(), vcl::Window::ImplGetFrameWindow(), ImplGetSVData(), vcl::Window::ImplGetWinData(), vcl::Window::ImplGetWindow(), vcl::Window::ImplGetWindowImpl(), ImplHandleMouseEvent(), ImplHandleMouseFloatMode(), ImplHandleMouseHelpRequest(), OutputDevice::ImplIsAntiparallel(), vcl::Window::ImplNotifyKeyMouseCommandEventListeners(), ImplSetMousePointer(), vcl::Window::IsCallHandlersOnInputDisabled(), vcl::Window::IsDisposed(), vcl::Window::IsEnabled(), vcl::Window::IsInModalMode(), vcl::Window::IsInputEnabled(), KEY_MOD1, KEY_MOD2, KEY_MOD3, KEY_SHIFT, LEAVEWINDOW, ImplSVData::maAppData, ImplSVData::maHelpData, ImplSVData::maWinData, ImplSVHelpData::mbExtHelpMode, ImplFrameData::mbInMouseMove, ImplFrameData::mbInternalDragGestureRecognizer, ImplSVHelpData::mbKeyboardHelp, WindowImpl::mbMouseButtonDown, WindowImpl::mbMouseButtonUp, ImplFrameData::mbMouseIn, ImplWinData::mbMouseOver, ImplFrameData::mbStartDragCalled, ImplFrameData::mnBeforeLastMouseX, ImplFrameData::mnBeforeLastMouseY, ImplFrameData::mnClickCount, ImplFrameData::mnFirstMouseCode, ImplFrameData::mnFirstMouseX, ImplFrameData::mnFirstMouseY, ImplSVAppData::mnLastInputTime, ImplFrameData::mnLastMouseWinX, ImplFrameData::mnLastMouseWinY, ImplFrameData::mnLastMouseX, ImplFrameData::mnLastMouseY, ImplFrameData::mnMouseCode, ImplFrameData::mnMouseDownTime, ImplFrameData::mnMouseMode, ImplSVWinData::mnTrackFlags, MODIFIERCHANGED, MOUSE_LEFT, MOUSE_MIDDLE, MOUSE_RIGHT, MOUSEBUTTONDOWN, vcl::Window::MouseButtonDown(), MOUSEBUTTONUP, vcl::Window::MouseButtonUp(), MOUSEMOVE, vcl::Window::MouseMove(), ImplSVAppData::mpActivePopupMenu, ImplSVWinData::mpAutoScrollWin, ImplSVWinData::mpCaptureWin, ImplSVWinData::mpExtTextInputWin, ImplSVWinData::mpFirstFloat, WindowImpl::mpFrameData, ImplSVHelpData::mpHelpWin, ImplFrameData::mpMouseDownWin, ImplFrameData::mpMouseMoveWin, ImplSVWinData::mpTrackTimer, ImplSVWinData::mpTrackWin, WindowImpl::mxDNDListenerContainer, NoGrabFocus, vcl::Window::OutputToScreenPixel(), PasteSelection, Application::PostUserEvent(), ContextMenuEvent::pWindow, OutputDevice::ReMirror(), SAL_WARN_IF, ScrollRepeat, Timer::Start(), StartAutoScroll, SYNTHETIC, vcl::Window::ToTop(), vcl::Window::Tracking(), WB_OWNERDRAWDECORATION, Point::X(), and Point::Y().

Referenced by vcl::Window::ImplCallMouseMove(), ImplHandleMouseEvent(), ImplHandleSalMouseButtonDown(), ImplHandleSalMouseButtonUp(), ImplHandleSalMouseLeave(), and ImplHandleSalMouseMove().

void ImplHandleResize ( vcl::Window pWindow,
long  nNewWidth,
long  nNewHeight 
)
bool ImplWindowFrameProc ( vcl::Window pInst,
SalEvent  nEvent,
const void pEvent 
)

Definition at line 2309 of file winproc.cxx.

References Close, ClosePopups, DBG_TESTSOLARMUTEX, DisplayChanged, EndExtTextInput, ExternalGesture, ExternalKeyInput, ExternalKeyUp, ExternalMouseButtonDown, ExternalMouseButtonUp, ExternalMouseMove, ExtTextInput, ExtTextInputPos, FontChanged, Gesture, MouseEvent::GetButtons(), KeyEvent::GetCharCode(), SalFrame::GetClientSize(), GetFocus, vcl::KeyCode::GetFullCode(), SalFrame::GetGeometry(), KeyEvent::GetKeyCode(), AllSettings::GetLayoutRTL(), MouseEvent::GetModifier(), GetpApp(), MouseEvent::GetPosPixel(), KeyEvent::GetRepeat(), tools::Time::GetSystemTicks(), vcl::Window::ImplGetWindowImpl(), ImplHandleClose(), ImplHandleEndExtTextInput(), ImplHandleExtTextInput(), ImplHandleGestureEvent(), ImplHandleGetFocus(), ImplHandleInputContextChange(), ImplHandleInputLanguageChange(), ImplHandleKey(), ImplHandleLongPress(), ImplHandleLoseFocus(), ImplHandleMenuEvent(), ImplHandleMove(), ImplHandleMoveResize(), ImplHandlePaint(), ImplHandleResize(), ImplHandleSalExtTextInputPos(), ImplHandleSalKeyMod(), ImplHandleSalMouseButtonDown(), ImplHandleSalMouseButtonUp(), ImplHandleSalMouseLeave(), ImplHandleSalMouseMove(), ImplHandleSalQueryCharPosition(), ImplHandleSalSettings(), ImplHandleSalSurroundingTextRequest(), ImplHandleShowDialog(), ImplHandleStartReconversion(), ImplHandleSurroundingTextSelectionChange(), ImplHandleSwipe(), ImplHandleUserEvent(), ImplHandleWheelEvent(), InputContextChange, InputLanguageChange, KeyInput, KEYINPUT, KeyModChange, KeyUp, KEYUP, KillOwnPopups(), LongPress, LoseFocus, SalFrame::maGeometry, SalExtTextInputEvent::maText, SalPaintEvent::mbImmediateUpdate, SalGestureEvent::meEventType, MenuActivate, MenuButtonCommand, MenuCommand, MenuDeactivate, MenuHighlight, SalGestureEvent::meOrientation, SalGestureEvent::mfOffset, SalPaintEvent::mnBoundHeight, SalPaintEvent::mnBoundWidth, SalPaintEvent::mnBoundX, SalPaintEvent::mnBoundY, SalMouseEvent::mnButton, SalKeyEvent::mnCharCode, SalMouseEvent::mnCode, SalKeyEvent::mnCode, SalExtTextInputEvent::mnCursorFlags, SalExtTextInputEvent::mnCursorPos, SalSurroundingTextSelectionChangeEvent::mnEnd, SalKeyEvent::mnRepeat, SalSurroundingTextSelectionChangeEvent::mnStart, SalMouseEvent::mnTime, SalMouseEvent::mnX, SalGestureEvent::mnX, SalMouseEvent::mnY, SalGestureEvent::mnY, MouseActivate, MouseButtonDown, MouseButtonUp, MouseLeave, MouseMove, Move, MoveResize, WindowImpl::mpFrame, SalExtTextInputEvent::mpTextAttr, SalFrameGeometry::nHeight, SalFrameGeometry::nWidth, Paint, PrinterChanged, QueryCharPosition, Application::Quit(), Resize, SAL_WARN, SettingsChanged, ShowDialog, Shutdown, StartReconversion, SurroundingTextRequest, SurroundingTextSelectionChange, Swipe, UserEvent, WheelMouse, Point::X(), and Point::Y().

Referenced by IMPL_STATIC_LINK(), vcl::Window::ImplInit(), DebugEventInjector::InjectKeyNavEdit(), DebugEventInjector::InjectMenuEvent(), DebugEventInjector::InjectTextEvent(), and vcl::Window::PostExtTextInputEvent().

VCL_DLLPUBLIC void ImplWindowStateFromStr ( WindowStateData rData,
const OString &  rStr 
)
VCL_DLLPUBLIC OString ImplWindowStateToStr ( const WindowStateData rData)
bool isEnabledInLayout ( const vcl::Window pWindow)
bool isVisibleInLayout ( const vcl::Window pWindow)