diff options
author | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2024-03-18 08:43:41 +0100 |
---|---|---|
committer | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2024-03-29 14:26:47 +0100 |
commit | 69a8adcc76de2d827d109d2c66e1d0c64a1e6a52 (patch) | |
tree | 95e1e714b3f00d952e8a5ad554680ebe6893daa9 /svx/source/gallery2/galctrl.cxx | |
parent | b4134d3554711bfb1c05e8f36f9f4b5bc52aec3f (diff) |
Use default HIDs in Gallery, simplify code
and copy relevant help texts from helpcontent to .ui file
Change-Id: I3791f7843d6d8a0285d0d3369c867e6b165a582f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165021
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Diffstat (limited to 'svx/source/gallery2/galctrl.cxx')
-rw-r--r-- | svx/source/gallery2/galctrl.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx index 05b64117577e..b753dbfac069 100644 --- a/svx/source/gallery2/galctrl.cxx +++ b/svx/source/gallery2/galctrl.cxx @@ -23,7 +23,6 @@ #include <sfx2/dispatch.hxx> #include <sfx2/sfxsids.hrc> #include <avmedia/mediaplayer.hxx> -#include <helpids.h> #include <galbrws1.hxx> #include <svx/galtheme.hxx> #include <svx/galmisc.hxx> @@ -66,8 +65,6 @@ void GalleryPreview::SetDrawingArea(weld::DrawingArea* pDrawingArea) pDrawingArea->set_size_request(aSize.Width(), aSize.Height()); SetOutputSizePixel(aSize); - pDrawingArea->set_help_id(HID_GALLERY_WINDOW); - mxDragDropTargetHelper.reset(new GalleryDragDrop(mpParent, pDrawingArea->get_drop_target())); } @@ -227,7 +224,6 @@ void DialogGalleryPreview::SetDrawingArea(weld::DrawingArea* pDrawingArea) CustomWidgetController::SetDrawingArea(pDrawingArea); Size aSize(pDrawingArea->get_ref_device().LogicToPixel(Size(70, 88), MapMode(MapUnit::MapAppFont))); pDrawingArea->set_size_request(aSize.Width(), aSize.Height()); - pDrawingArea->set_help_id(HID_GALLERY_WINDOW); } bool DialogGalleryPreview::SetGraphic( const INetURLObject& _aURL ) @@ -302,7 +298,6 @@ void GalleryIconView::SetDrawingArea(weld::DrawingArea* pDrawingArea) SetStyle(GetStyle() | WB_TABSTOP | WB_3DLOOK | WB_BORDER | WB_ITEMBORDER | WB_DOUBLEBORDER | WB_VSCROLL | WB_FLATVALUESET); EnableFullItemMode( false ); - SetHelpId( HID_GALLERY_WINDOW ); SetExtraSpacing( 2 ); SetItemWidth( S_THUMB + 6 ); SetItemHeight( S_THUMB + 6 ); |