move titledockwin to the one place it's used

Change-Id: Ia9a1e0f687de3f916d59f28112b7b00c0d4a6610
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128872
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2022-01-24 20:37:14 +01:00
parent 2e1a38ceb6
commit fc056783bc
11 changed files with 29 additions and 37 deletions
-2
View File
@@ -292,8 +292,6 @@
#define STR_TRACK_CHANGES_BUTTON_HIDE NC_("STR_TRACK_CHANGES_BUTTON_HIDE", "Hide Toolbar")
#define STR_HYPHENATION_BUTTON NC_("STR_HYPHENATION_BUTTON", "Learn more")
#define STR_CLOSE_PANE NC_("STR_CLOSE_PANE", "Close Pane")
// Translators: default Impress template names
#define STR_TEMPLATE_NAME1 NC_("STR_TEMPLATE_NAME1", "Grey Elegant")
#define STR_TEMPLATE_NAME2 NC_("STR_TEMPLATE_NAME2", "Beehive")
+1
View File
@@ -226,6 +226,7 @@ $(eval $(call gb_Library_add_exception_objects,sd,\
sd/source/ui/dlg/navigatr \
sd/source/ui/dlg/sdabstdlg \
sd/source/ui/dlg/sdtreelb \
sd/source/ui/dlg/titledockwin \
sd/source/ui/dlg/unchss \
sd/source/ui/docshell/docshel2 \
sd/source/ui/docshell/docshel3 \
+2
View File
@@ -207,4 +207,6 @@ inline constexpr OUStringLiteral BMP_MENU_PREV = u"cmd/sc_prevrecord.png";
inline constexpr OUStringLiteral BMP_MENU_FIRST = u"cmd/sc_firstrecord.png";
inline constexpr OUStringLiteral BMP_MENU_LAST = u"cmd/sc_lastrecord.png";
inline constexpr OUStringLiteral SFX_BMP_CLOSE_DOC = u"sfx2/res/closedoc.png";
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
+2
View File
@@ -483,4 +483,6 @@
#define RID_SVXSTR_MENU_FIRST NC_("RID_SVXSTR_MENU_FIRST", "~First Slide")
#define RID_SVXSTR_MENU_LAST NC_("RID_SVXSTR_MENU_LAST", "~Last Slide")
#define STR_CLOSE_PANE NC_("STR_CLOSE_PANE", "Close Pane")
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -1
View File
@@ -28,7 +28,7 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::drawing::framework;
using ::sfx2::TitledDockingWindow;
using ::sd::TitledDockingWindow;
namespace sd {
@@ -17,20 +17,19 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sfx2/titledockwin.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/strings.hrc>
#include <bitmaps.hlst>
#include <sfx2/sfxresid.hxx>
#include <svl/eitem.hxx>
#include <vcl/event.hxx>
#include <vcl/settings.hxx>
#include <vcl/toolbox.hxx>
namespace sfx2
#include <bitmaps.hlst>
#include <strings.hrc>
#include <sdresid.hxx>
#include <titledockwin.hxx>
namespace sd
{
//= TitledDockingWindow
TitledDockingWindow::TitledDockingWindow( SfxBindings* i_pBindings, SfxChildWindow* i_pChildWindow, vcl::Window* i_pParent )
@@ -129,7 +128,7 @@ namespace sfx2
rRenderContext.SetTextFillColor();
}
void TitledDockingWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& i_rArea)
void TitledDockingWindow::Paint(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& i_rArea)
{
const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings();
@@ -156,15 +155,15 @@ namespace sfx2
int nInnerBottom = nOuterBottom - m_aBorder.Bottom() + 1;
// Paint title bar background.
tools::Rectangle aTitleBarBox(tools::Rectangle(nOuterLeft, 0, nOuterRight, nInnerTop - 1));
::tools::Rectangle aTitleBarBox(::tools::Rectangle(nOuterLeft, 0, nOuterRight, nInnerTop - 1));
rRenderContext.DrawRect(aTitleBarBox);
if (nInnerLeft > nOuterLeft)
rRenderContext.DrawRect(tools::Rectangle(nOuterLeft, nInnerTop, nInnerLeft, nInnerBottom));
rRenderContext.DrawRect(::tools::Rectangle(nOuterLeft, nInnerTop, nInnerLeft, nInnerBottom));
if (nOuterRight > nInnerRight)
rRenderContext.DrawRect(tools::Rectangle(nInnerRight, nInnerTop, nOuterRight, nInnerBottom));
rRenderContext.DrawRect(::tools::Rectangle(nInnerRight, nInnerTop, nOuterRight, nInnerBottom));
if (nInnerBottom < nOuterBottom)
rRenderContext.DrawRect(tools::Rectangle(nOuterLeft, nInnerBottom, nOuterRight, nOuterBottom));
rRenderContext.DrawRect(::tools::Rectangle(nOuterLeft, nInnerBottom, nOuterRight, nOuterBottom));
// Paint bevel border.
rRenderContext.SetFillColor();
@@ -198,7 +197,7 @@ namespace sfx2
// Get the closer bitmap and set it as right most button.
m_aToolbox->InsertItem(ToolBoxItemId(1), Image(StockImage::Yes, SFX_BMP_CLOSE_DOC));
m_aToolbox->SetQuickHelpText(ToolBoxItemId(1), SfxResId(STR_CLOSE_PANE));
m_aToolbox->SetQuickHelpText(ToolBoxItemId(1), SdResId(STR_CLOSE_PANE));
m_aToolbox->ShowItem( ToolBoxItemId(1) );
}
+2 -2
View File
@@ -19,11 +19,11 @@
#pragma once
#include <sfx2/titledockwin.hxx>
#include "titledockwin.hxx"
namespace sd {
class PaneDockingWindow : public ::sfx2::TitledDockingWindow
class PaneDockingWindow : public ::sd::TitledDockingWindow
{
public:
/** Create a new docking window.
@@ -17,20 +17,17 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SFX2_TITLEDOCKWIN_HXX
#define INCLUDED_SFX2_TITLEDOCKWIN_HXX
#pragma once
#include <sfx2/dllapi.h>
#include <sfx2/dockwin.hxx>
#include <vcl/vclptr.hxx>
#include <tools/svborder.hxx>
#include <vcl/vclptr.hxx>
class ToolBox;
namespace sfx2
namespace sd
{
class SFX2_DLLPUBLIC TitledDockingWindow : public SfxDockingWindow
class TitledDockingWindow : public SfxDockingWindow
{
public:
TitledDockingWindow(
@@ -58,7 +55,7 @@ namespace sfx2
protected:
// Window overridables
virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& i_rArea) override;
virtual void Paint(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& i_rArea) override;
virtual void Resize() override;
virtual void StateChanged( StateChangedType i_nType ) override;
virtual void DataChanged( const DataChangedEvent& i_rDataChangedEvent ) override;
@@ -71,7 +68,7 @@ namespace sfx2
void impl_resetToolBox();
private:
DECL_DLLPRIVATE_LINK( OnToolboxItemSelected, ToolBox*, void );
DECL_LINK(OnToolboxItemSelected, ToolBox*, void);
void impl_layout();
@@ -92,10 +89,6 @@ namespace sfx2
};
} // namespace sfx2
#endif // INCLUDED_SFX2_TITLEDOCKWIN_HXX
} // namespace sd
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-1
View File
@@ -210,7 +210,6 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\
sfx2/source/dialog/tabdlg \
sfx2/source/dialog/templdlg \
sfx2/source/dialog/StyleList \
sfx2/source/dialog/titledockwin \
sfx2/source/dialog/tplcitem \
sfx2/source/dialog/tplpitem \
sfx2/source/dialog/versdlg \
-2
View File
@@ -64,8 +64,6 @@ inline constexpr OUStringLiteral BMP_128X128_IMPRESS_DOC = u"sfx2/res/128x128_im
inline constexpr OUStringLiteral BMP_128X128_MATH_DOC = u"sfx2/res/128x128_math_doc-p.png";
inline constexpr OUStringLiteral BMP_128X128_WRITER_DOC = u"sfx2/res/128x128_writer_doc-p.png";
inline constexpr OUStringLiteral SFX_BMP_CLOSE_DOC = u"sfx2/res/closedoc.png";
inline constexpr OUStringLiteral SIDEBAR_CLOSE_INDICATOR = u"cmd/lc_decrementlevel.png";
inline constexpr OUStringLiteral BMP_ACTION_DEFAULT_WRITER = u"res/odt_16_8.png";
inline constexpr OUStringLiteral BMP_ACTION_DEFAULT_CALC = u"res/ods_16_8.png";
+2 -2
View File
@@ -5677,7 +5677,6 @@ include/sfx2/tbxctrl.hxx
include/sfx2/templatelocalview.hxx
include/sfx2/thumbnailview.hxx
include/sfx2/thumbnailviewitem.hxx
include/sfx2/titledockwin.hxx
include/sfx2/tplpitem.hxx
include/sfx2/userinputinterception.hxx
include/sfx2/viewfac.hxx
@@ -9680,6 +9679,7 @@ sd/source/ui/dlg/sddlgfact.hxx
sd/source/ui/dlg/sdpreslt.cxx
sd/source/ui/dlg/sdtreelb.cxx
sd/source/ui/dlg/tabtempl.cxx
sd/source/ui/dlg/titledockwin.cxx
sd/source/ui/dlg/tpaction.cxx
sd/source/ui/dlg/tpoption.cxx
sd/source/ui/dlg/unchss.cxx
@@ -9911,6 +9911,7 @@ sd/source/ui/inc/sdxfer.hxx
sd/source/ui/inc/slideshow.hxx
sd/source/ui/inc/tabtempl.hxx
sd/source/ui/inc/tmplctrl.hxx
sd/source/ui/inc/titledockwin.hxx
sd/source/ui/inc/tools/ConfigurationAccess.hxx
sd/source/ui/inc/tools/IdleDetection.hxx
sd/source/ui/inc/tools/PropertySet.hxx
@@ -10460,7 +10461,6 @@ sfx2/source/dialog/srchdlg.cxx
sfx2/source/dialog/styledlg.cxx
sfx2/source/dialog/tabdlg.cxx
sfx2/source/dialog/templdlg.cxx
sfx2/source/dialog/titledockwin.cxx
sfx2/source/dialog/tplcitem.cxx
sfx2/source/dialog/tplpitem.cxx
sfx2/source/dialog/versdlg.cxx