LibreOffice Module cui (master) 1
|
#include <cuigrfflt.hxx>
Public Member Functions | |
CuiGraphicPreviewWindow () | |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
void | init (const Graphic *pOrigGraphic, const Link< LinkParamNone *, void > &rLink) |
void | SetPreview (const Graphic &rGraphic) |
const Graphic & | GetScaledOriginal () const |
double | GetScaleX () const |
double | GetScaleY () const |
const Size & | GetGraphicSizePixel () const |
Public Member Functions inherited from weld::CustomWidgetController | |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0 |
virtual void | Resize () |
virtual bool | MouseButtonDown (const MouseEvent &) |
virtual bool | MouseMove (const MouseEvent &) |
virtual bool | MouseButtonUp (const MouseEvent &) |
virtual void | GetFocus () |
virtual void | LoseFocus () |
virtual void | StyleUpdated () |
virtual bool | Command (const CommandEvent &) |
virtual bool | KeyInput (const KeyEvent &) |
virtual tools::Rectangle | GetFocusRect () |
virtual FactoryFunction | GetUITestFactory () const |
virtual OUString | RequestHelp (tools::Rectangle &) |
virtual OUString | GetHelpText () const |
Size const & | GetOutputSizePixel () const |
void | SetOutputSizePixel (const Size &rSize) |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) |
weld::DrawingArea * | GetDrawingArea () const |
void | Invalidate () |
void | Invalidate (const tools::Rectangle &rRect) |
virtual void | Show () |
virtual void | Hide () |
void | SetCursor (void *pData) |
void | GrabFocus () |
bool | HasFocus () const |
bool | HasChildFocus () const |
bool | IsVisible () const |
bool | IsReallyVisible () const |
bool | IsEnabled () const |
void | Enable () const |
void | Disable () const |
bool | IsActive () const |
int | GetTextHeight () const |
int | GetTextWidth (const OUString &rText) const |
OUString | GetAccessibleName () const |
OUString | GetAccessibleDescription () const |
void | CaptureMouse () |
bool | IsMouseCaptured () const |
Point | GetPointerPosPixel () const |
void | EnableRTL (bool bEnable) |
bool | IsRTLEnabled () const |
void | ReleaseMouse () |
void | SetPointer (PointerStyle ePointerStyle) |
void | SetHelpId (const OUString &rHelpId) |
void | SetAccessibleName (const OUString &rName) |
void | SetInputContext (const InputContext &rInputContext) |
void | SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth) |
virtual int | GetSurroundingText (OUString &) |
virtual bool | DeleteSurroundingText (const Selection &) |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () |
css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const |
void | SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants) |
virtual bool | StartDrag () |
void | set_size_request (int nWidth, int nHeight) |
void | queue_resize () |
CustomWidgetController () | |
virtual | ~CustomWidgetController () |
CustomWidgetController (CustomWidgetController const &)=default | |
CustomWidgetController (CustomWidgetController &&)=default | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (CustomWidgetController &&)=default |
Private Member Functions | |
virtual void | Paint (vcl::RenderContext &rRenderContext, const ::tools::Rectangle &rRect) override |
virtual void | Resize () override |
void | ScaleImageToFit () |
Private Attributes | |
const Graphic * | mpOrigGraphic |
Size | maOrigGraphicSizePixel |
Size | maOutputSizePixel |
Link< LinkParamNone *, void > | maModifyHdl |
Graphic | maScaledOrig |
Graphic | maPreview |
double | mfScaleX |
double | mfScaleY |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Definition at line 26 of file cuigrfflt.hxx.
CuiGraphicPreviewWindow::CuiGraphicPreviewWindow | ( | ) |
Definition at line 33 of file cuigrfflt.cxx.
|
inline |
Definition at line 59 of file cuigrfflt.hxx.
References maOrigGraphicSizePixel.
Referenced by GraphicFilterDialog::GetGraphicSizePixel().
|
inline |
Definition at line 56 of file cuigrfflt.hxx.
References maScaledOrig.
|
inline |
Definition at line 57 of file cuigrfflt.hxx.
References mfScaleX.
|
inline |
Definition at line 58 of file cuigrfflt.hxx.
References mfScaleY.
|
inline |
Definition at line 46 of file cuigrfflt.hxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), OutputDevice::LogicToPixel(), maModifyHdl, maOrigGraphicSizePixel, mpOrigGraphic, and ScaleImageToFit().
Referenced by GraphicFilterDialog::GraphicFilterDialog().
|
overrideprivatevirtual |
Definition at line 48 of file cuigrfflt.cxx.
References Graphic::Draw(), OutputDevice::Erase(), weld::CustomWidgetController::GetOutputSizePixel(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), Application::GetSettings(), Graphic::GetSizePixel(), Size::Height(), Graphic::IsAnimated(), OutputDevice::LogicToPixel(), maPreview, OutputDevice::SetBackground(), Graphic::StartAnimation(), and Size::Width().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 120 of file cuigrfflt.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), maOutputSizePixel, and ScaleImageToFit().
|
private |
Definition at line 77 of file cuigrfflt.cxx.
References Link< typename Arg, typename Ret >::Call(), Graphic::GetBitmapEx(), weld::CustomWidgetController::GetOutputSizePixel(), Graphic::GetType(), Size::Height(), Graphic::IsAnimated(), maModifyHdl, maOrigGraphicSizePixel, maScaledOrig, mfScaleX, mfScaleY, mpOrigGraphic, BitmapEx::Scale(), Size::setHeight(), Size::setWidth(), and Size::Width().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 40 of file cuigrfflt.cxx.
References weld::DrawingArea::get_ref_device(), Size::Height(), OutputDevice::LogicToPixel(), maOutputSizePixel, weld::Widget::set_size_request(), and Size::Width().
void CuiGraphicPreviewWindow::SetPreview | ( | const Graphic & | rGraphic | ) |
Definition at line 71 of file cuigrfflt.cxx.
References weld::CustomWidgetController::Invalidate(), and maPreview.
Referenced by TipOfTheDayDialog::UpdateTip().
|
private |
Definition at line 32 of file cuigrfflt.hxx.
Referenced by init(), and ScaleImageToFit().
|
private |
Definition at line 30 of file cuigrfflt.hxx.
Referenced by GetGraphicSizePixel(), init(), and ScaleImageToFit().
|
private |
Definition at line 31 of file cuigrfflt.hxx.
Referenced by Resize(), and SetDrawingArea().
|
private |
Definition at line 34 of file cuigrfflt.hxx.
Referenced by Paint(), and SetPreview().
|
private |
Definition at line 33 of file cuigrfflt.hxx.
Referenced by GetScaledOriginal(), and ScaleImageToFit().
|
private |
Definition at line 35 of file cuigrfflt.hxx.
Referenced by GetScaleX(), and ScaleImageToFit().
|
private |
Definition at line 36 of file cuigrfflt.hxx.
Referenced by GetScaleY(), and ScaleImageToFit().
|
private |
Definition at line 29 of file cuigrfflt.hxx.
Referenced by init(), and ScaleImageToFit().