LibreOffice Module cui (master) 1
|
Public Member Functions | |
ScreenshotAnnotationDlg_Impl (weld::Window *pParent, weld::Builder &rParent, weld::Dialog &rParentDialog) | |
~ScreenshotAnnotationDlg_Impl () | |
void | Paint (vcl::RenderContext &rRenderContext) |
bool | MouseMove (const MouseEvent &rMouseEvent) |
bool | MouseButtonUp () |
Private Member Functions | |
DECL_LINK (saveButtonHandler, weld::Button &, void) | |
weld::ScreenShotEntry * | CheckHit (const basegfx::B2IPoint &rPosition) |
void | PaintScreenShotEntry (const weld::ScreenShotEntry &rEntry, const Color &rColor, double fLineWidth, double fTransparency) |
void | RepaintToBuffer (bool bUseDimmed=false, bool bPaintHilight=false) |
void | RepaintPictureElement () |
Point | GetOffsetInPicture () const |
Private Attributes | |
weld::Window * | mpParentWindow |
weld::Dialog & | mrParentDialog |
BitmapEx | maParentDialogBitmap |
BitmapEx | maDimmedDialogBitmap |
Size | maParentDialogSize |
VclPtr< VirtualDevice > | mxVirtualBufferDevice |
weld::ScreenShotCollection | maAllChildren |
weld::ScreenShotEntry * | mpHilighted |
std::set< weld::ScreenShotEntry * > | maSelected |
Picture | maPicture |
std::unique_ptr< weld::CustomWeld > | mxPicture |
std::unique_ptr< weld::TextView > | mxText |
std::unique_ptr< weld::Button > | mxSave |
OUString | maSaveAsText |
OUString | maMainMarkupText |
Static Private Attributes | |
static OUString | maLastFolderURL = OUString() |
Definition at line 132 of file screenshotannotationdlg.cxx.
ScreenshotAnnotationDlg_Impl::ScreenshotAnnotationDlg_Impl | ( | weld::Window * | pParent, |
weld::Builder & | rParent, | ||
weld::Dialog & | rParentDialog | ||
) |
Definition at line 196 of file screenshotannotationdlg.cxx.
References BitmapEx::Adjust(), COL_TRANSPARENT(), weld::Window::collect_screenshot_data(), VclPtr< class reference_type >::Create(), weld::Widget::get_help_id(), Application::GetDefaultDevice(), BitmapEx::GetSizePixel(), Size::Height(), BitmapEx::IsEmpty(), LINK, maAllChildren, maDimmedDialogBitmap, maMainMarkupText, maParentDialogBitmap, maParentDialogSize, maPicture, mrParentDialog, mxPicture, mxSave, mxText, mxVirtualBufferDevice, OutputDevice::PixelToLogic(), weld::Window::screenshot(), weld::Builder::weld_button(), weld::Builder::weld_text_view(), and Size::Width().
ScreenshotAnnotationDlg_Impl::~ScreenshotAnnotationDlg_Impl | ( | ) |
Definition at line 269 of file screenshotannotationdlg.cxx.
References VclPtr< class reference_type >::disposeAndClear(), and mxVirtualBufferDevice.
|
private |
Definition at line 348 of file screenshotannotationdlg.cxx.
References weld::ScreenShotEntry::getB2IRange(), basegfx::Range2D< typename TYPE, typename TRAITS >::isInside(), and maAllChildren.
Referenced by MouseMove().
|
private |
|
private |
Definition at line 419 of file screenshotannotationdlg.cxx.
References Size::Height(), maParentDialogSize, maPicture, and Size::Width().
Referenced by MouseMove(), and Paint().
bool ScreenshotAnnotationDlg_Impl::MouseButtonUp | ( | ) |
Definition at line 535 of file screenshotannotationdlg.cxx.
References maMainMarkupText, maPicture, maSelected, mpHilighted, mxText, and RepaintPictureElement().
bool ScreenshotAnnotationDlg_Impl::MouseMove | ( | const MouseEvent & | rMouseEvent | ) |
Definition at line 493 of file screenshotannotationdlg.cxx.
References CheckHit(), GetOffsetInPicture(), MouseEvent::GetPosPixel(), maPicture, mpHilighted, RepaintPictureElement(), Point::X(), and Point::Y().
void ScreenshotAnnotationDlg_Impl::Paint | ( | vcl::RenderContext & | rRenderContext | ) |
Definition at line 481 of file screenshotannotationdlg.cxx.
References OutputDevice::DrawOutDev(), GetOffsetInPicture(), and mxVirtualBufferDevice.
|
private |
Definition at line 374 of file screenshotannotationdlg.cxx.
References basegfx::utils::createPolygonFromRect(), basegfx::Range2D< typename TYPE, typename TRAITS >::expand(), weld::ScreenShotEntry::getB2IRange(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), basegfx::B2DRange::getMaximum(), basegfx::B2DRange::getMinimum(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), mxPicture, mxVirtualBufferDevice, and basegfx::Round.
Referenced by RepaintToBuffer().
|
private |
Definition at line 471 of file screenshotannotationdlg.cxx.
References mxPicture, mxVirtualBufferDevice, and RepaintToBuffer().
Referenced by MouseButtonUp(), and MouseMove().
|
private |
Definition at line 428 of file screenshotannotationdlg.cxx.
References COL_LIGHTRED(), SvtOptionsDrawinglayer::getHilightColor(), SvtOptionsDrawinglayer::GetTransparentSelectionPercent(), SvtOptionsDrawinglayer::IsAntiAliasing(), maDimmedDialogBitmap, maParentDialogBitmap, maSelected, mpHilighted, mxVirtualBufferDevice, and PaintScreenShotEntry().
Referenced by RepaintPictureElement().
|
private |
Definition at line 169 of file screenshotannotationdlg.cxx.
Referenced by CheckHit(), and ScreenshotAnnotationDlg_Impl().
|
private |
Definition at line 162 of file screenshotannotationdlg.cxx.
Referenced by RepaintToBuffer(), and ScreenshotAnnotationDlg_Impl().
|
staticprivate |
Definition at line 187 of file screenshotannotationdlg.cxx.
|
private |
Definition at line 184 of file screenshotannotationdlg.cxx.
Referenced by MouseButtonUp(), and ScreenshotAnnotationDlg_Impl().
|
private |
Definition at line 161 of file screenshotannotationdlg.cxx.
Referenced by RepaintToBuffer(), and ScreenshotAnnotationDlg_Impl().
|
private |
Definition at line 163 of file screenshotannotationdlg.cxx.
Referenced by GetOffsetInPicture(), and ScreenshotAnnotationDlg_Impl().
|
private |
Definition at line 177 of file screenshotannotationdlg.cxx.
Referenced by GetOffsetInPicture(), MouseButtonUp(), MouseMove(), and ScreenshotAnnotationDlg_Impl().
|
private |
Definition at line 183 of file screenshotannotationdlg.cxx.
|
private |
Definition at line 174 of file screenshotannotationdlg.cxx.
Referenced by MouseButtonUp(), and RepaintToBuffer().
|
private |
Definition at line 172 of file screenshotannotationdlg.cxx.
Referenced by MouseButtonUp(), MouseMove(), and RepaintToBuffer().
|
private |
Definition at line 159 of file screenshotannotationdlg.cxx.
|
private |
Definition at line 160 of file screenshotannotationdlg.cxx.
Referenced by ScreenshotAnnotationDlg_Impl().
|
private |
Definition at line 178 of file screenshotannotationdlg.cxx.
Referenced by PaintScreenShotEntry(), RepaintPictureElement(), and ScreenshotAnnotationDlg_Impl().
|
private |
Definition at line 180 of file screenshotannotationdlg.cxx.
Referenced by ScreenshotAnnotationDlg_Impl().
|
private |
Definition at line 179 of file screenshotannotationdlg.cxx.
Referenced by MouseButtonUp(), and ScreenshotAnnotationDlg_Impl().
|
private |
Definition at line 166 of file screenshotannotationdlg.cxx.
Referenced by Paint(), PaintScreenShotEntry(), RepaintPictureElement(), RepaintToBuffer(), ScreenshotAnnotationDlg_Impl(), and ~ScreenshotAnnotationDlg_Impl().