diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-22 15:07:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-22 15:11:50 +0000 |
commit | 2f25dc9644397ff4fc5e9586106aaca32950b596 (patch) | |
tree | b706c9ac072aa000fad30f243005e27fd1f7b4e5 /sd | |
parent | 780457b1595158ac37c3217528c8f087d9fc16c3 (diff) |
de-resource FLT_LEFT_PANE_[DRAW|IMPRESS]_DOCKING_WINDOW
Change-Id: I5042141eaa0dfbf9d2184b86b537a9b149c9a06c
Diffstat (limited to 'sd')
-rw-r--r-- | sd/AllLangResTarget_sd.mk | 1 | ||||
-rw-r--r-- | sd/source/ui/dlg/PaneChildWindows.cxx | 12 | ||||
-rw-r--r-- | sd/source/ui/dlg/PaneDockingWindow.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/dlg/PaneDockingWindow.src | 54 | ||||
-rw-r--r-- | sd/source/ui/inc/PaneChildWindows.hxx | 3 | ||||
-rw-r--r-- | sd/source/ui/inc/PaneDockingWindow.hrc | 23 | ||||
-rw-r--r-- | sd/source/ui/inc/PaneDockingWindow.hxx | 5 |
7 files changed, 8 insertions, 97 deletions
diff --git a/sd/AllLangResTarget_sd.mk b/sd/AllLangResTarget_sd.mk index f9bb1efcb992..027f5997d6b3 100644 --- a/sd/AllLangResTarget_sd.mk +++ b/sd/AllLangResTarget_sd.mk @@ -41,7 +41,6 @@ $(eval $(call gb_SrsTarget_add_files,sd/res,\ sd/source/ui/app/strings.src \ sd/source/ui/app/toolbox.src \ sd/source/ui/dlg/navigatr.src \ - sd/source/ui/dlg/PaneDockingWindow.src \ sd/source/ui/slideshow/slideshow.src \ sd/source/ui/view/DocumentRenderer.src \ )) diff --git a/sd/source/ui/dlg/PaneChildWindows.cxx b/sd/source/ui/dlg/PaneChildWindows.cxx index 7d6e75fc7078..89a5b652cedc 100644 --- a/sd/source/ui/dlg/PaneChildWindows.cxx +++ b/sd/source/ui/dlg/PaneChildWindows.cxx @@ -18,7 +18,6 @@ */ #include "PaneChildWindows.hxx" -#include "PaneDockingWindow.hrc" #include "PaneDockingWindow.hxx" #include "ViewShellBase.hxx" #include "framework/FrameworkHelper.hxx" @@ -48,23 +47,20 @@ SFX_IMPL_DOCKINGWINDOW_WITHID(LeftPaneImpressChildWindow, SID_LEFT_PANE_IMPRESS) SFX_IMPL_DOCKINGWINDOW_WITHID(LeftPaneDrawChildWindow, SID_LEFT_PANE_DRAW) //===== PaneChildWindow ======================================================= - PaneChildWindow::PaneChildWindow ( vcl::Window* pParentWindow, sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* pInfo, - const sal_uInt16 nDockWinTitleResId, const sal_uInt16 nTitleBarResId, SfxChildAlignment eAlignment) : SfxChildWindow (pParentWindow, nId) { - pWindow = new PaneDockingWindow ( + pWindow = new PaneDockingWindow( pBindings, this, pParentWindow, - SdResId( nDockWinTitleResId ), - SD_RESSTR( nTitleBarResId ) ); + SD_RESSTR(nTitleBarResId)); eChildAlignment = eAlignment; static_cast<SfxDockingWindow*>(pWindow)->Initialize(pInfo); SetHideNotDelete(true); @@ -88,7 +84,6 @@ PaneChildWindow::~PaneChildWindow (void) } //===== LeftPaneImpressChildWindow ============================================ - LeftPaneImpressChildWindow::LeftPaneImpressChildWindow ( vcl::Window* pParentWindow, sal_uInt16 nId, @@ -99,14 +94,12 @@ LeftPaneImpressChildWindow::LeftPaneImpressChildWindow ( nId, pBindings, pInfo, - FLT_LEFT_PANE_IMPRESS_DOCKING_WINDOW, STR_LEFT_PANE_IMPRESS_TITLE, SFX_ALIGN_LEFT) { } //===== LeftPaneDrawChildWindow =============================================== - LeftPaneDrawChildWindow::LeftPaneDrawChildWindow ( vcl::Window* pParentWindow, sal_uInt16 nId, @@ -117,7 +110,6 @@ LeftPaneDrawChildWindow::LeftPaneDrawChildWindow ( nId, pBindings, pInfo, - FLT_LEFT_PANE_DRAW_DOCKING_WINDOW, STR_LEFT_PANE_DRAW_TITLE, SFX_ALIGN_LEFT) { diff --git a/sd/source/ui/dlg/PaneDockingWindow.cxx b/sd/source/ui/dlg/PaneDockingWindow.cxx index 286f3e1a28c6..5363051f0b3e 100644 --- a/sd/source/ui/dlg/PaneDockingWindow.cxx +++ b/sd/source/ui/dlg/PaneDockingWindow.cxx @@ -39,10 +39,11 @@ namespace sd { PaneDockingWindow::PaneDockingWindow( SfxBindings *_pBindings, SfxChildWindow *pChildWindow, vcl::Window* pParent, - const ResId& rResId, const OUString& rsTitle ) - :TitledDockingWindow( _pBindings, pChildWindow, pParent, rResId ) + const OUString& rsTitle ) + : 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) diff --git a/sd/source/ui/dlg/PaneDockingWindow.src b/sd/source/ui/dlg/PaneDockingWindow.src deleted file mode 100644 index f69b3c114042..000000000000 --- a/sd/source/ui/dlg/PaneDockingWindow.src +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- 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: */ diff --git a/sd/source/ui/inc/PaneChildWindows.hxx b/sd/source/ui/inc/PaneChildWindows.hxx index 8b76b9e2ad99..09c0e566a36d 100644 --- a/sd/source/ui/inc/PaneChildWindows.hxx +++ b/sd/source/ui/inc/PaneChildWindows.hxx @@ -34,10 +34,9 @@ public: sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* pInfo, - const sal_uInt16 nDockWinTitleResId, const sal_uInt16 nTitleBarResId, SfxChildAlignment eAlignment); - virtual ~PaneChildWindow (void); + virtual ~PaneChildWindow(); }; class LeftPaneImpressChildWindow diff --git a/sd/source/ui/inc/PaneDockingWindow.hrc b/sd/source/ui/inc/PaneDockingWindow.hrc deleted file mode 100644 index 9bf547498b29..000000000000 --- a/sd/source/ui/inc/PaneDockingWindow.hrc +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- 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: */ diff --git a/sd/source/ui/inc/PaneDockingWindow.hxx b/sd/source/ui/inc/PaneDockingWindow.hxx index adba60aaf9af..54d6bf43a2b3 100644 --- a/sd/source/ui/inc/PaneDockingWindow.hxx +++ b/sd/source/ui/inc/PaneDockingWindow.hxx @@ -42,8 +42,6 @@ public: window. @param pParent The parent window of the new docking window. - @param rResId - The resource is used to determine initial size and attributes. @param rsTitle the initial title */ @@ -51,10 +49,9 @@ public: SfxBindings *pBindings, SfxChildWindow *pChildWindow, vcl::Window* pParent, - const ResId& rResId, const OUString& rsTitle); - virtual ~PaneDockingWindow (void); + virtual ~PaneDockingWindow(); virtual void StateChanged( StateChangedType nType ) SAL_OVERRIDE; virtual void MouseButtonDown (const MouseEvent& rEvent) SAL_OVERRIDE; /** When docked the given range is passed to the parent SplitWindow. |