diff options
Diffstat (limited to 'dbaccess/source/ui/browser')
-rw-r--r-- | dbaccess/source/ui/browser/dbloader.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/sbabrw.src | 19 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 12 |
3 files changed, 30 insertions, 7 deletions
diff --git a/dbaccess/source/ui/browser/dbloader.cxx b/dbaccess/source/ui/browser/dbloader.cxx index 4d81472445ee..dfb36b272358 100644 --- a/dbaccess/source/ui/browser/dbloader.cxx +++ b/dbaccess/source/ui/browser/dbloader.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dbloader.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: oj $ $Date: 2001-02-14 14:29:32 $ + * last change: $Author: oj $ $Date: 2001-02-28 10:01:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -248,6 +248,8 @@ void SAL_CALL DBContentLoader::load(const Reference< XFrame > & rFrame, const :: xController = Reference< XController >(m_xServiceFactory->createInstance(::rtl::OUString::createFromAscii("org.openoffice.comp.dbu.OQueryDesign")),UNO_QUERY); else if(aParser.GetMainURL() == String(URL_COMPONENT_TABLEDESIGN))// construct the control xController = Reference< XController >(m_xServiceFactory->createInstance(::rtl::OUString::createFromAscii("org.openoffice.comp.dbu.OTableDesign")),UNO_QUERY); + else if(aParser.GetMainURL() == String(URL_COMPONENT_RELATIONDESIGN))// construct the control + xController = Reference< XController >(m_xServiceFactory->createInstance(::rtl::OUString::createFromAscii("org.openoffice.comp.dbu.ORelationDesign")),UNO_QUERY); else OSL_ENSHURE(0,"wrong dispatch url!"); diff --git a/dbaccess/source/ui/browser/sbabrw.src b/dbaccess/source/ui/browser/sbabrw.src index 78eb10630a00..9a00ff107f8b 100644 --- a/dbaccess/source/ui/browser/sbabrw.src +++ b/dbaccess/source/ui/browser/sbabrw.src @@ -2,9 +2,9 @@ * * $RCSfile: sbabrw.src,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: oj $ $Date: 2001-02-23 15:13:25 $ + * last change: $Author: oj $ $Date: 2001-02-28 10:01:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -121,9 +121,10 @@ ID_BROWSER_SAVEASDOC;\ ID_QUERY_ZOOM_IN;\ ID_QUERY_ZOOM_OUT;\ + ID_REALTION_ADD_RELATION;\ };\ IdCount = {\ - 38;\ + 39;\ } // Default Image-Liste ---------------------------------------------------------------- @@ -693,6 +694,18 @@ Menu MENU_BROWSERTREE_CONTEXT Text [ english ] = "~insert table" ; Text [ english_us ] = "~insert table" ; }; + MenuItem + { + Separator = TRUE; + }; + MenuItem + { + Identifier = ID_TREE_RELATION_DESIGN ; + HelpId = HID_BROWSER_RELATION_DESIGN ; + Text = "Relatio~nenentwurf" ; + Text [ english ] = "relatio~n design" ; + Text [ english_us ] = "relatio~n design" ; + }; }; }; String STR_TITLE_CONFIRM_DELETION diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 1c64b502d8c7..a918103e8636 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unodatbr.cxx,v $ * - * $Revision: 1.33 $ + * $Revision: 1.34 $ * - * last change: $Author: oj $ $Date: 2001-02-23 15:17:34 $ + * last change: $Author: oj $ $Date: 2001-02-28 10:01:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -276,6 +276,8 @@ #ifndef _DBAUI_SQLMESSAGE_HXX_ #include "sqlmessage.hxx" #endif +#include <sot/storage.hxx> + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::sdb; @@ -1468,6 +1470,8 @@ IMPL_LINK(SbaTableQueryBrowser, OnListContextMenu, const CommandEvent*, _pEvent) SvLBoxEntry* pTables = m_pTreeView->getListBox()->GetEntry(pDSEntry,1); aContextMenu.EnableItem(ID_TREE_TABLE_CREATE_DESIGN, (pTables == pEntry || pTables == pTemp)); + aContextMenu.EnableItem(ID_TREE_RELATION_DESIGN, (pTables == pEntry || pTables == pTemp)); + sal_Bool bPasteAble = (pTables == pEntry || pTables == pTemp); if(bPasteAble) { @@ -1551,6 +1555,7 @@ IMPL_LINK(SbaTableQueryBrowser, OnListContextMenu, const CommandEvent*, _pEvent) closeConnection(pDSEntry); } break; + case ID_TREE_RELATION_DESIGN: case ID_TREE_TABLE_CREATE_DESIGN: case ID_TREE_QUERY_CREATE_DESIGN: case ID_TREE_QUERY_CREATE_TEXT: @@ -1613,6 +1618,9 @@ IMPL_LINK(SbaTableQueryBrowser, OnListContextMenu, const CommandEvent*, _pEvent) sal_Bool bEdit = sal_False; switch(nPos) { + case ID_TREE_RELATION_DESIGN: + pDispatcher = new ORelationDesignAccess(m_xMultiServiceFacatory) ; + break; case ID_TREE_TABLE_EDIT: bEdit = sal_True; // run through case ID_TREE_TABLE_CREATE_DESIGN: |