diff options
author | Andras Timar <atimar@suse.com> | 2011-07-30 23:38:48 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-07-30 23:39:24 +0200 |
commit | 9eb03883eef93757609a984c6cb33a709b41c81c (patch) | |
tree | 0d02163129203c0158fd2801e456a6d021cb8d13 /extensions | |
parent | f900be1d53705174a26befe2c47fb24a4e44f2f3 (diff) |
remove unused menu code
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/bibliography/bibload.cxx | 27 | ||||
-rw-r--r-- | extensions/source/bibliography/menu.src | 39 |
2 files changed, 0 insertions, 66 deletions
diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx index 939e99ac117c..89c3d7d51952 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 a2a41ed06def..000000000000 --- 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 - -*/ |