[Libreoffice-commits] .: extensions/source

Andras Timar timar at kemper.freedesktop.org
Sat Jul 30 14:39:03 PDT 2011


 extensions/source/bibliography/bibload.cxx |   27 --------------------
 extensions/source/bibliography/menu.src    |   39 -----------------------------
 2 files changed, 66 deletions(-)

New commits:
commit 9a544e473c553a4a15231b5c46edc66433ecc3b9
Author: Andras Timar <atimar at suse.com>
Date:   Sat Jul 30 23:38:48 2011 +0200

    remove unused menu code

diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx
index 0a6921f..22b43a0 100644
--- a/extensions/source/bibliography/bibload.cxx
+++ b/extensions/source/bibliography/bibload.cxx
@@ -279,33 +279,6 @@ void BibliographyLoader::loadView(const Reference< XFrame > & rFrame, const rtl:
     if(!m_pBibMod)
         m_pBibMod = OpenBibModul();
 
-/*
-    //create the menu
-    ResMgr* pResMgr = (*m_pBibMod)->GetResMgr();
-    INetURLObject aEntry( URIHelper::SmartRelToAbs(pResMgr->GetFileName()) );
-    String aMenuRes( RTL_CONSTASCII_USTRINGPARAM( "private:resource/" ));
-    aMenuRes += ( aEntry.GetName() += '/' );
-    aMenuRes+=String::CreateFromInt32(RID_MAIN_MENU);
-
-    util::URL aURL;
-    aURL.Complete = aMenuRes;
-
-    Reference< XMultiServiceFactory >  xMgr = comphelper::getProcessServiceFactory();
-    Reference< util::XURLTransformer >	xTrans ( xMgr->createInstance( C2U("com.sun.star.util.URLTransformer") ), UNO_QUERY );
-    if( xTrans.is() )
-    {
-        // Datei laden
-        xTrans->parseStrict( aURL );
-
-        Reference< XDispatchProvider >	xProv( rFrame, UNO_QUERY );
-        if ( xProv.is() )
-        {
-            Reference< XDispatch >	aDisp = xProv->queryDispatch( aURL, C2U("_menubar"), 12 );
-            if ( aDisp.is() )
-                aDisp->dispatch( aURL, Sequence<PropertyValue>() );
-        }
-    }
-*/
     m_pDatMan = (*m_pBibMod)->createDataManager();
     m_xDatMan = m_pDatMan;
     BibDBDescriptor aBibDesc = BibModul::GetConfig()->GetBibliographyURL();
diff --git a/extensions/source/bibliography/menu.src b/extensions/source/bibliography/menu.src
deleted file mode 100644
index 45ebcda..0000000
--- a/extensions/source/bibliography/menu.src
+++ /dev/null
@@ -1,39 +0,0 @@
-/*************************************************************************
- *
- * 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
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org.  If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include <svl/solar.hrc>
-#include <svx/svxids.hrc>
-#include <svx/globlmn.hrc>
-#include "bibliography.hrc"
-#include "bib.hrc"
-
-/*
-
-The menu bar resource has become obsolete. You find the menu bar definition 
-now at: <project>/uiconfig/sbibliography/menubar/menubar.xml
-
-*/


More information about the Libreoffice-commits mailing list