[Libreoffice-commits] .: svx/workben
Joseph Powers
jpowers at kemper.freedesktop.org
Wed Apr 20 05:15:47 PDT 2011
svx/workben/edittest.cxx | 22 +++++-----------------
1 file changed, 5 insertions(+), 17 deletions(-)
New commits:
commit 6e0ead6e3d1ac5be95cb4eca530a8b62a966b17f
Author: Joseph Powers <jpowers27 at cox.net>
Date: Wed Apr 20 05:15:41 2011 -0700
Remove DECLARE_LIST( ViewList, MyView* )
PS: This file isn't compiled. But the list wasn't used anyways so this
should be a safe change.
diff --git a/svx/workben/edittest.cxx b/svx/workben/edittest.cxx
index f579ed4..8dd12b7 100644
--- a/svx/workben/edittest.cxx
+++ b/svx/workben/edittest.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,6 @@
#include <dialdll.hxx>
-
#define SERVICE_SIMPLEREGISTRY "com.sun.star.registry.SimpleRegistry"
#include <comphelper/processfactory.hxx>
#include <comphelper/regpathhelper.hxx>
@@ -356,7 +355,6 @@ BOOL __EXPORT MyView::QueryDrop( DropEvent& rEvt )
}
// --- class EditMainWindow --------------------------------------------
-DECLARE_LIST( ViewList, MyView* );
class EditViewWindow : public Window
{
@@ -366,7 +364,6 @@ private:
Pointer aStdPtr;
Pointer aURLPtr;
WorkWindow* pTmpWindow;
- ViewList aViewList;
XubString aTestStr;
@@ -1396,15 +1393,6 @@ IMPL_LINK( EditMainWindow, ShowStatus, EditStatus *, pStat )
EditViewWindow::~EditViewWindow()
{
- // erst die angemeldeten Views zerstoeren
- // (melden sich selbst ab)
- MyView* pView = aViewList.First();
- while ( pView )
- {
- delete pView;
- pView = aViewList.Next();
- }
-
pEditEngine->RemoveView( pEditView );
delete pEditView;
// Beim Zerstoeren der Styles am Ende, EditEngine noch nicht kaputt,
@@ -1420,7 +1408,7 @@ EditViewWindow::EditViewWindow( Window* pParent ) :
Window( pParent ), aURLPtr( POINTER_HAND )
{
SetBackgroundBrush( Brush( Color( COL_WHITE ) ) );
- SetMapMode( MAP_100TH_MM );
+ SetMapMode( MAP_100TH_MM );
// EnableDrop();
SfxItemPool* pPool = EditEngine::CreatePool();
@@ -1780,14 +1768,14 @@ void __EXPORT EditApp::Main()
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xSMgr = createApplicationServiceManager();
::comphelper::setProcessServiceFactory( xSMgr );
-
+
EditDLL aEditDll;
SvxGlobalItemData aItemData;
SvxFieldItem::GetClassManager().SV_CLASS_REGISTER( SvxDateField );
SvxFieldItem::GetClassManager().SV_CLASS_REGISTER( SvxURLField );
-
+
Help::EnableQuickHelp();
-
+
EditMainWindow aWindow;
Execute();
}
More information about the Libreoffice-commits
mailing list