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(), assert(), COL_TRANSPARENT(), weld::Window::collect_screenshot_data(), VclPtr< reference_type >::Create(), OutputDevice::DrawBitmapEx(), 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(), Point, weld::Window::screenshot(), OutputDevice::SetFillColor(), VirtualDevice::SetOutputSizePixel(), weld::Builder::weld_button(), weld::Builder::weld_text_view(), and Size::Width().
ScreenshotAnnotationDlg_Impl::~ScreenshotAnnotationDlg_Impl | ( | ) |
Definition at line 271 of file screenshotannotationdlg.cxx.
References VclPtr< VirtualDevice >::disposeAndClear(), and mxVirtualBufferDevice.
|
private |
Definition at line 349 of file screenshotannotationdlg.cxx.
References weld::ScreenShotEntry::getB2IRange(), basegfx::B2IRange::isInside(), and maAllChildren.
Referenced by MouseMove().
|
private |
|
private |
Definition at line 420 of file screenshotannotationdlg.cxx.
References Size::Height(), maParentDialogSize, maPicture, Point, and Size::Width().
Referenced by MouseMove(), and Paint().
bool ScreenshotAnnotationDlg_Impl::MouseButtonUp | ( | ) |
Definition at line 537 of file screenshotannotationdlg.cxx.
References maMainMarkupText, maPicture, maSelected, mpHilighted, mxText, and RepaintPictureElement().
bool ScreenshotAnnotationDlg_Impl::MouseMove | ( | const MouseEvent & | rMouseEvent | ) |
Definition at line 495 of file screenshotannotationdlg.cxx.
References CheckHit(), GetOffsetInPicture(), MouseEvent::GetPosPixel(), maPicture, mpHilighted, Point, and RepaintPictureElement().
void ScreenshotAnnotationDlg_Impl::Paint | ( | vcl::RenderContext & | rRenderContext | ) |
Definition at line 483 of file screenshotannotationdlg.cxx.
References OutputDevice::DrawOutDev(), GetOffsetInPicture(), OutputDevice::GetOutputSizePixel(), mxVirtualBufferDevice, and Point.
|
private |
Definition at line 375 of file screenshotannotationdlg.cxx.
References basegfx::utils::createPolygonFromRect(), OutputDevice::DrawPolyLine(), OutputDevice::DrawPolyLineDirect(), weld::ScreenShotEntry::getB2IRange(), mxPicture, mxVirtualBufferDevice, basegfx::Round, and OutputDevice::SetLineColor().
Referenced by RepaintToBuffer().
|
private |
Definition at line 473 of file screenshotannotationdlg.cxx.
References mxPicture, mxVirtualBufferDevice, and RepaintToBuffer().
Referenced by MouseButtonUp(), and MouseMove().
|
private |
Definition at line 429 of file screenshotannotationdlg.cxx.
References COL_LIGHTRED, OutputDevice::DrawBitmapEx(), OutputDevice::GetAntialiasing(), SvtOptionsDrawinglayer::getHilightColor(), SvtOptionsDrawinglayer::GetTransparentSelectionPercent(), SvtOptionsDrawinglayer::IsAntiAliasing(), maDimmedDialogBitmap, maParentDialogBitmap, maSelected, mpHilighted, mxVirtualBufferDevice, PaintScreenShotEntry(), Point, and OutputDevice::SetAntialiasing().
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().