Kaydet (Commit) 2f25dc96 authored tarafından Caolán McNamara's avatar Caolán McNamara

de-resource FLT_LEFT_PANE_[DRAW|IMPRESS]_DOCKING_WINDOW

Change-Id: I5042141eaa0dfbf9d2184b86b537a9b149c9a06c
üst 780457b1
...@@ -42,10 +42,6 @@ namespace sfx2 ...@@ -42,10 +42,6 @@ namespace sfx2
vcl::Window* i_pParent, WinBits i_nStyle = 0 vcl::Window* i_pParent, WinBits i_nStyle = 0
); );
TitledDockingWindow( SfxBindings* i_pBindings, SfxChildWindow* i_pChildWindow,
vcl::Window* i_pParent, const ResId& i_rResId
);
virtual ~TitledDockingWindow(); virtual ~TitledDockingWindow();
/** sets a title to be displayed in the docking window /** sets a title to be displayed in the docking window
......
...@@ -41,7 +41,6 @@ $(eval $(call gb_SrsTarget_add_files,sd/res,\ ...@@ -41,7 +41,6 @@ $(eval $(call gb_SrsTarget_add_files,sd/res,\
sd/source/ui/app/strings.src \ sd/source/ui/app/strings.src \
sd/source/ui/app/toolbox.src \ sd/source/ui/app/toolbox.src \
sd/source/ui/dlg/navigatr.src \ sd/source/ui/dlg/navigatr.src \
sd/source/ui/dlg/PaneDockingWindow.src \
sd/source/ui/slideshow/slideshow.src \ sd/source/ui/slideshow/slideshow.src \
sd/source/ui/view/DocumentRenderer.src \ sd/source/ui/view/DocumentRenderer.src \
)) ))
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
#include "PaneChildWindows.hxx" #include "PaneChildWindows.hxx"
#include "PaneDockingWindow.hrc"
#include "PaneDockingWindow.hxx" #include "PaneDockingWindow.hxx"
#include "ViewShellBase.hxx" #include "ViewShellBase.hxx"
#include "framework/FrameworkHelper.hxx" #include "framework/FrameworkHelper.hxx"
...@@ -48,23 +47,20 @@ SFX_IMPL_DOCKINGWINDOW_WITHID(LeftPaneImpressChildWindow, SID_LEFT_PANE_IMPRESS) ...@@ -48,23 +47,20 @@ SFX_IMPL_DOCKINGWINDOW_WITHID(LeftPaneImpressChildWindow, SID_LEFT_PANE_IMPRESS)
SFX_IMPL_DOCKINGWINDOW_WITHID(LeftPaneDrawChildWindow, SID_LEFT_PANE_DRAW) SFX_IMPL_DOCKINGWINDOW_WITHID(LeftPaneDrawChildWindow, SID_LEFT_PANE_DRAW)
//===== PaneChildWindow ======================================================= //===== PaneChildWindow =======================================================
PaneChildWindow::PaneChildWindow ( PaneChildWindow::PaneChildWindow (
vcl::Window* pParentWindow, vcl::Window* pParentWindow,
sal_uInt16 nId, sal_uInt16 nId,
SfxBindings* pBindings, SfxBindings* pBindings,
SfxChildWinInfo* pInfo, SfxChildWinInfo* pInfo,
const sal_uInt16 nDockWinTitleResId,
const sal_uInt16 nTitleBarResId, const sal_uInt16 nTitleBarResId,
SfxChildAlignment eAlignment) SfxChildAlignment eAlignment)
: SfxChildWindow (pParentWindow, nId) : SfxChildWindow (pParentWindow, nId)
{ {
pWindow = new PaneDockingWindow ( pWindow = new PaneDockingWindow(
pBindings, pBindings,
this, this,
pParentWindow, pParentWindow,
SdResId( nDockWinTitleResId ), SD_RESSTR(nTitleBarResId));
SD_RESSTR( nTitleBarResId ) );
eChildAlignment = eAlignment; eChildAlignment = eAlignment;
static_cast<SfxDockingWindow*>(pWindow)->Initialize(pInfo); static_cast<SfxDockingWindow*>(pWindow)->Initialize(pInfo);
SetHideNotDelete(true); SetHideNotDelete(true);
...@@ -88,7 +84,6 @@ PaneChildWindow::~PaneChildWindow (void) ...@@ -88,7 +84,6 @@ PaneChildWindow::~PaneChildWindow (void)
} }
//===== LeftPaneImpressChildWindow ============================================ //===== LeftPaneImpressChildWindow ============================================
LeftPaneImpressChildWindow::LeftPaneImpressChildWindow ( LeftPaneImpressChildWindow::LeftPaneImpressChildWindow (
vcl::Window* pParentWindow, vcl::Window* pParentWindow,
sal_uInt16 nId, sal_uInt16 nId,
...@@ -99,14 +94,12 @@ LeftPaneImpressChildWindow::LeftPaneImpressChildWindow ( ...@@ -99,14 +94,12 @@ LeftPaneImpressChildWindow::LeftPaneImpressChildWindow (
nId, nId,
pBindings, pBindings,
pInfo, pInfo,
FLT_LEFT_PANE_IMPRESS_DOCKING_WINDOW,
STR_LEFT_PANE_IMPRESS_TITLE, STR_LEFT_PANE_IMPRESS_TITLE,
SFX_ALIGN_LEFT) SFX_ALIGN_LEFT)
{ {
} }
//===== LeftPaneDrawChildWindow =============================================== //===== LeftPaneDrawChildWindow ===============================================
LeftPaneDrawChildWindow::LeftPaneDrawChildWindow ( LeftPaneDrawChildWindow::LeftPaneDrawChildWindow (
vcl::Window* pParentWindow, vcl::Window* pParentWindow,
sal_uInt16 nId, sal_uInt16 nId,
...@@ -117,7 +110,6 @@ LeftPaneDrawChildWindow::LeftPaneDrawChildWindow ( ...@@ -117,7 +110,6 @@ LeftPaneDrawChildWindow::LeftPaneDrawChildWindow (
nId, nId,
pBindings, pBindings,
pInfo, pInfo,
FLT_LEFT_PANE_DRAW_DOCKING_WINDOW,
STR_LEFT_PANE_DRAW_TITLE, STR_LEFT_PANE_DRAW_TITLE,
SFX_ALIGN_LEFT) SFX_ALIGN_LEFT)
{ {
......
...@@ -39,10 +39,11 @@ namespace sd { ...@@ -39,10 +39,11 @@ namespace sd {
PaneDockingWindow::PaneDockingWindow( PaneDockingWindow::PaneDockingWindow(
SfxBindings *_pBindings, SfxChildWindow *pChildWindow, vcl::Window* pParent, SfxBindings *_pBindings, SfxChildWindow *pChildWindow, vcl::Window* pParent,
const ResId& rResId, const OUString& rsTitle ) const OUString& rsTitle )
:TitledDockingWindow( _pBindings, pChildWindow, pParent, rResId ) : TitledDockingWindow(_pBindings, pChildWindow, pParent, WB_MOVEABLE|WB_CLOSEABLE|WB_HIDE|WB_3DLOOK)
{ {
SetTitle( rsTitle ); SetTitle(rsTitle);
SetSizePixel(LogicToPixel(Size(100,200), MAP_APPFONT));
} }
PaneDockingWindow::~PaneDockingWindow (void) PaneDockingWindow::~PaneDockingWindow (void)
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "PaneDockingWindow.hrc"
DockingWindow FLT_LEFT_PANE_IMPRESS_DOCKING_WINDOW
{
HelpID = "sd:DockingWindow:FLT_LEFT_PANE_IMPRESS_DOCKING_WINDOW";
Border = TRUE ;
Hide = TRUE ;
SVLook = TRUE ;
Sizeable = TRUE ;
Moveable = TRUE ;
Closeable = TRUE ;
Zoomable = TRUE ;
Dockable = TRUE ;
EnableResizing = TRUE ;
Size = MAP_APPFONT (100,200) ;
Text [ en-US ] = "Slide Pane" ;
};
DockingWindow FLT_LEFT_PANE_DRAW_DOCKING_WINDOW
{
HelpID = "sd:DockingWindow:FLT_LEFT_PANE_DRAW_DOCKING_WINDOW";
Border = TRUE ;
Hide = TRUE ;
SVLook = TRUE ;
Sizeable = TRUE ;
Moveable = TRUE ;
Closeable = TRUE ;
Zoomable = TRUE ;
Dockable = TRUE ;
EnableResizing = TRUE ;
Size = MAP_APPFONT (100,200) ;
Text [ en-US ] = "Page Pane" ;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -34,10 +34,9 @@ public: ...@@ -34,10 +34,9 @@ public:
sal_uInt16 nId, sal_uInt16 nId,
SfxBindings* pBindings, SfxBindings* pBindings,
SfxChildWinInfo* pInfo, SfxChildWinInfo* pInfo,
const sal_uInt16 nDockWinTitleResId,
const sal_uInt16 nTitleBarResId, const sal_uInt16 nTitleBarResId,
SfxChildAlignment eAlignment); SfxChildAlignment eAlignment);
virtual ~PaneChildWindow (void); virtual ~PaneChildWindow();
}; };
class LeftPaneImpressChildWindow class LeftPaneImpressChildWindow
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#define FLT_LEFT_PANE_IMPRESS_DOCKING_WINDOW 792
#define FLT_LEFT_PANE_DRAW_DOCKING_WINDOW 793
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -42,8 +42,6 @@ public: ...@@ -42,8 +42,6 @@ public:
window. window.
@param pParent @param pParent
The parent window of the new docking window. The parent window of the new docking window.
@param rResId
The resource is used to determine initial size and attributes.
@param rsTitle @param rsTitle
the initial title the initial title
*/ */
...@@ -51,10 +49,9 @@ public: ...@@ -51,10 +49,9 @@ public:
SfxBindings *pBindings, SfxBindings *pBindings,
SfxChildWindow *pChildWindow, SfxChildWindow *pChildWindow,
vcl::Window* pParent, vcl::Window* pParent,
const ResId& rResId,
const OUString& rsTitle); const OUString& rsTitle);
virtual ~PaneDockingWindow (void); virtual ~PaneDockingWindow();
virtual void StateChanged( StateChangedType nType ) SAL_OVERRIDE; virtual void StateChanged( StateChangedType nType ) SAL_OVERRIDE;
virtual void MouseButtonDown (const MouseEvent& rEvent) SAL_OVERRIDE; virtual void MouseButtonDown (const MouseEvent& rEvent) SAL_OVERRIDE;
/** When docked the given range is passed to the parent SplitWindow. /** When docked the given range is passed to the parent SplitWindow.
......
...@@ -30,12 +30,7 @@ ...@@ -30,12 +30,7 @@
namespace sfx2 namespace sfx2
{ {
//= TitledDockingWindow //= TitledDockingWindow
TitledDockingWindow::TitledDockingWindow( SfxBindings* i_pBindings, SfxChildWindow* i_pChildWindow, vcl::Window* i_pParent, TitledDockingWindow::TitledDockingWindow( SfxBindings* i_pBindings, SfxChildWindow* i_pChildWindow, vcl::Window* i_pParent,
WinBits i_nStyle ) WinBits i_nStyle )
:SfxDockingWindow( i_pBindings, i_pChildWindow, i_pParent, i_nStyle ) :SfxDockingWindow( i_pBindings, i_pChildWindow, i_pParent, i_nStyle )
...@@ -49,21 +44,6 @@ namespace sfx2 ...@@ -49,21 +44,6 @@ namespace sfx2
impl_construct(); impl_construct();
} }
TitledDockingWindow::TitledDockingWindow( SfxBindings* i_pBindings, SfxChildWindow* i_pChildWindow, vcl::Window* i_pParent,
const ResId& i_rResId )
:SfxDockingWindow( i_pBindings, i_pChildWindow, i_pParent, i_rResId )
,m_sTitle()
,m_aToolbox( this )
,m_aContentWindow( this )
,m_aBorder( 3, 1, 3, 3 )
,m_bLayoutPending( false )
,m_nTitleBarHeight(0)
{
impl_construct();
}
void TitledDockingWindow::impl_construct() void TitledDockingWindow::impl_construct()
{ {
SetBackground( Wallpaper() ); SetBackground( Wallpaper() );
...@@ -77,7 +57,6 @@ namespace sfx2 ...@@ -77,7 +57,6 @@ namespace sfx2
m_aContentWindow.Show(); m_aContentWindow.Show();
} }
TitledDockingWindow::~TitledDockingWindow() TitledDockingWindow::~TitledDockingWindow()
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment