summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extensions/inc/extensio.hrc6
-rw-r--r--extensions/source/bibliography/bib.hrc6
-rw-r--r--extensions/source/bibliography/bibview.hxx6
-rw-r--r--extensions/source/bibliography/datman.cxx18
-rw-r--r--extensions/source/bibliography/datman.hxx19
-rw-r--r--extensions/source/bibliography/framectr.cxx153
-rw-r--r--extensions/source/bibliography/framectr.hxx15
-rw-r--r--extensions/source/bibliography/general.cxx9
-rw-r--r--extensions/source/bibliography/general.hxx10
-rw-r--r--extensions/source/bibliography/menu.src79
-rw-r--r--extensions/util/hidother.src7
11 files changed, 261 insertions, 67 deletions
diff --git a/extensions/inc/extensio.hrc b/extensions/inc/extensio.hrc
index a67b7d41c..a3ce7de75 100644
--- a/extensions/inc/extensio.hrc
+++ b/extensions/inc/extensio.hrc
@@ -2,9 +2,9 @@
*
* $RCSfile: extensio.hrc,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: fs $ $Date: 2001-10-12 12:24:12 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:53:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -159,4 +159,6 @@
#define UID_DBIWIZARD_HELP (HID_EXTENSIONS_START + 70)
#define HID_DBIWIZARD_FILESELECTION (HID_EXTENSIONS_START + 71)
+#define HID_BIB_DELETE_RECORD (HID_EXTENSIONS_START + 72)
+#define HID_BIB_INSERT_RECORD (HID_EXTENSIONS_START + 73)
#endif
diff --git a/extensions/source/bibliography/bib.hrc b/extensions/source/bibliography/bib.hrc
index 27679687f..71d3cf887 100644
--- a/extensions/source/bibliography/bib.hrc
+++ b/extensions/source/bibliography/bib.hrc
@@ -2,9 +2,9 @@
*
* $RCSfile: bib.hrc,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: os $ $Date: 2002-05-07 13:49:06 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:50:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -93,6 +93,8 @@
//#define RID_MAIN_ME_LAYOUT (RID_BIB_MENU +8)
#define RID_MAIN_ME_MAPPING (RID_BIB_MENU +9)
#define RID_MAIN_ME_DBSOURCE (RID_BIB_MENU +10)
+#define RID_MAIN_DELETE_RECORD (RID_BIB_MENU +11)
+#define RID_MAIN_INSERT_RECORD (RID_BIB_MENU +12)
#define RID_POPUP_ME_VIEW (RID_BIB_MENU +50)
diff --git a/extensions/source/bibliography/bibview.hxx b/extensions/source/bibliography/bibview.hxx
index 8b8adfd47..d9d20cece 100644
--- a/extensions/source/bibliography/bibview.hxx
+++ b/extensions/source/bibliography/bibview.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bibview.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: gt $ $Date: 2002-04-25 09:27:20 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:50:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -64,7 +64,7 @@
#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
#include <com/sun/star/beans/XPropertySet.hpp>
#endif
-#ifndef _COM_SUN_STAR_AWT_XCONTROLCONTAINER_HPP_
+#ifndef _COM_SUN_STAR_AWT_XCONTROLCONTAINER_HPP_
#include <com/sun/star/awt/XControlContainer.hpp>
#endif
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index 68ef170ad..1cd068f7e 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: datman.cxx,v $
*
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
- * last change: $Author: os $ $Date: 2002-02-22 09:40:36 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:50:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1847,4 +1847,18 @@ void BibDataManager::SetToolbar(BibToolBar* pSet)
if(pToolbar)
pToolbar->SetDatMan(*this);
}
+/* -----------------------------08.05.2002 09:26------------------------------
+
+ ---------------------------------------------------------------------------*/
+uno::Reference< form::XFormController > BibDataManager::GetFormController()
+{
+ if(!m_xFormCtrl.is())
+ {
+ Reference< lang::XMultiServiceFactory > xMgr = comphelper::getProcessServiceFactory();
+ m_xFormCtrl = uno::Reference< form::XFormController > (
+ xMgr->createInstance(C2U("com.sun.star.form.controller.FormController")), UNO_QUERY);
+ m_xFormCtrl->setModel(uno::Reference< awt::XTabControllerModel > (getForm(), UNO_QUERY));
+ }
+ return m_xFormCtrl;
+}
diff --git a/extensions/source/bibliography/datman.hxx b/extensions/source/bibliography/datman.hxx
index 4e5bba0d7..8a2694446 100644
--- a/extensions/source/bibliography/datman.hxx
+++ b/extensions/source/bibliography/datman.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: datman.hxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: fs $ $Date: 2001-10-22 07:31:41 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:50:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,14 +74,16 @@
#ifndef _COM_SUN_STAR_SDB_XSQLQUERYCOMPOSER_HPP_
#include <com/sun/star/sdb/XSQLQueryComposer.hpp>
#endif
-
-#ifndef _CPPUHELPER_COMPBASE2_HXX_
+#ifndef _COM_SUN_STAR_FORM_XFORMCONTROLLER_HPP_
+#include <com/sun/star/form/XFormController.hpp>
+#endif
+#ifndef _CPPUHELPER_COMPBASE2_HXX_
#include <cppuhelper/compbase2.hxx>
#endif
-#ifndef _CPPUHELPER_INTERFACECONTAINER_H_
+#ifndef _CPPUHELPER_INTERFACECONTAINER_H_
#include <cppuhelper/interfacecontainer.h>
#endif
-#ifndef _COM_SUN_STAR_FORM_XLOADABLE_HPP_
+#ifndef _COM_SUN_STAR_FORM_XLOADABLE_HPP_
#include <com/sun/star/form/XLoadable.hpp>
#endif
#ifndef _COMPHELPER_BROADCASTHELPER_HXX_
@@ -111,7 +113,8 @@ private:
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > m_xGridModel;
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xSourceProps;
::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSQLQueryComposer > m_xParser;
- ::rtl::OUString aActiveDataTable;
+ ::com::sun::star::uno::Reference< ::com::sun::star::form::XFormController > m_xFormCtrl;
+ ::rtl::OUString aActiveDataTable;
::rtl::OUString aDataSourceURL;
::rtl::OUString aQuoteChar;
::com::sun::star::uno::Any aUID;
@@ -196,6 +199,8 @@ public:
const rtl::OUString& GetIdentifierMapping();
void ResetIdentifierMapping() {sIdentifierMapping = rtl::OUString();}
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::form::XFormController > GetFormController();
};
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx
index 92edcd6c2..e8f29d851 100644
--- a/extensions/source/bibliography/framectr.cxx
+++ b/extensions/source/bibliography/framectr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: framectr.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: cd $ $Date: 2002-04-22 07:42:24 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:50:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,10 +78,12 @@
#ifndef _TOOLS_DEBUG_HXX
#include <tools/debug.hxx>
#endif
-#ifndef _VCL_STDTEXT_HXX
+#ifndef _VCL_STDTEXT_HXX
#include <vcl/stdtext.hxx>
#endif
-
+#ifndef _COMPHELPER_TYPES_HXX_
+#include <comphelper/types.hxx>
+#endif
#ifndef _BIB_FRAMECTR_HXX
#include "framectr.hxx"
#endif
@@ -112,7 +114,12 @@
#ifndef _COMPHELPER_PROCESSFACTORY_HXX_
#include <comphelper/processfactory.hxx>
#endif
-
+#ifndef _COM_SUN_STAR_FORM_XCONFIRMDELETELISTENER_HPP_
+#include <com/sun/star/form/XConfirmDeleteListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FORM_XFORMCONTROLLER_HPP_
+#include <com/sun/star/form/XFormController.hpp>
+#endif
#ifndef _COM_SUN_STAR_BEANS_PROPERTYSTATE_HPP_
#include <com/sun/star/beans/PropertyState.hpp>
#endif
@@ -122,10 +129,20 @@
#ifndef _COM_SUN_STAR_UI_DIALOGS_XEXECUTABLEDIALOG_HPP_
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
#endif
+#ifndef _COM_SUN_STAR_SDBCX_PRIVILEGE_HPP_
+#include <com/sun/star/sdbcx/Privilege.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XRESULTSETUPDATE_HPP_
+#include <com/sun/star/sdbc/XResultSetUpdate.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_ROWCHANGEACTION_HPP_
+#include <com/sun/star/sdb/RowChangeAction.hpp>
+#endif
using namespace osl;
using namespace cppu;
using namespace rtl;
+using namespace com::sun::star::sdbc;
using namespace com::sun::star::frame;
using namespace com::sun::star::uno;
using namespace com::sun::star;
@@ -325,6 +342,53 @@ uno::Sequence<uno::Reference< XDispatch > > BibFrameController_Impl::queryDispat
{
return uno::Sequence<uno::Reference< XDispatch > >();
}
+sal_Bool canInsertRecords(const Reference< beans::XPropertySet>& _rxCursorSet)
+{
+ sal_Int32 nPriv = 0;
+ _rxCursorSet->getPropertyValue(C2U("Privileges")) >>= nPriv;
+ return ((_rxCursorSet.is() && (nPriv & sdbcx::Privilege::INSERT) != 0));
+}
+/* -----------------------------08.05.2002 08:58------------------------------
+
+ ---------------------------------------------------------------------------*/
+sal_Bool BibFrameController_Impl::SaveModified(const Reference< form::XFormController>& xController)
+{
+ if (!xController.is())
+ return sal_False;
+ sal_Bool bInserted = sal_False;
+
+ Reference< XResultSetUpdate> _xCursor = Reference< XResultSetUpdate>(xController->getModel(), UNO_QUERY);
+
+ if (!_xCursor.is())
+ return sal_False;
+
+ Reference< beans::XPropertySet> _xSet = Reference< beans::XPropertySet>(_xCursor, UNO_QUERY);
+ if (!_xSet.is())
+ return sal_False;
+
+ // mu gespeichert werden ?
+ sal_Bool bIsNew = ::comphelper::getBOOL(_xSet->getPropertyValue(C2U("IsNew")));
+ sal_Bool bIsModified = ::comphelper::getBOOL(_xSet->getPropertyValue(C2U("IsModified")));
+ sal_Bool bResult = !bIsModified;
+ if (bIsModified)
+ {
+ try
+ {
+ if (bIsNew)
+ _xCursor->insertRow();
+ else
+ _xCursor->updateRow();
+ bResult = sal_True;
+ }
+ catch(Exception&)
+ {
+ DBG_ERROR("SaveModified: Exception occured!");
+ }
+
+ bInserted = bIsNew && bResult;
+ }
+ return bResult;
+}
//class XDispatch
void BibFrameController_Impl::dispatch(const util::URL& aURL, const uno::Sequence< beans::PropertyValue >& aArgs) throw (::com::sun::star::uno::RuntimeException)
@@ -471,6 +535,85 @@ void BibFrameController_Impl::dispatch(const util::URL& aURL, const uno::Sequenc
DisposeHdl ), 0 );
}
+ else if(aCommand.EqualsAscii("Bib/InsertRecord"))
+ {
+ Reference<form::XFormController > xFormCtrl = pDatMan->GetFormController();
+ if(SaveModified(xFormCtrl))
+ {
+ try
+ {
+ Reference< sdbc::XResultSet > xCursor( pDatMan->getForm(), UNO_QUERY );
+ xCursor->last();
+
+ Reference< XResultSetUpdate > xUpdateCursor( pDatMan->getForm(), UNO_QUERY );
+ xUpdateCursor->moveToInsertRow();
+ }
+ catch(Exception&)
+ {
+ DBG_ERROR("Exception in last() or moveToInsertRow()")
+ }
+ }
+ }
+ else if(aCommand.EqualsAscii("Bib/DeleteRecord"))
+ {
+ Reference< ::com::sun::star::sdbc::XResultSet > xCursor(pDatMan->getForm(), UNO_QUERY);
+ Reference< XResultSetUpdate > xUpdateCursor(xCursor, UNO_QUERY);
+ Reference< beans::XPropertySet > xSet(pDatMan->getForm(), UNO_QUERY);
+ sal_Bool bIsNew = ::comphelper::getBOOL(xSet->getPropertyValue(C2U("IsNew")));
+ if(!bIsNew)
+ {
+ sal_uInt32 nCount = 0;
+ xSet->getPropertyValue(C2U("RowCount")) >>= nCount;
+ // naechste position festellen
+ sal_Bool bLeft = xCursor->isLast() && nCount > 1;
+ sal_Bool bRight= !xCursor->isLast();
+ sal_Bool bSuccess = sal_False;
+ try
+ {
+ // ask for confirmation
+ Reference< frame::XController > xCtrl = pImp->pController;
+ Reference< form::XConfirmDeleteListener > xConfirm(pDatMan->GetFormController(),UNO_QUERY);
+ if (xConfirm.is())
+ {
+ sdb::RowChangeEvent aEvent;
+ aEvent.Source = Reference< XInterface > (xCursor, UNO_QUERY);
+ aEvent.Action = sdb::RowChangeAction::DELETE;
+ aEvent.Rows = 1;
+ bSuccess = xConfirm->confirmDelete(aEvent);
+ }
+
+ // das Ding loeschen
+ if (bSuccess)
+ xUpdateCursor->deleteRow();
+ }
+ catch(Exception&)
+ {
+ bSuccess = sal_False;
+ }
+ if (bSuccess)
+ {
+ if (bLeft || bRight)
+ xCursor->relative(bRight ? 1 : -1);
+ else
+ {
+ sal_Bool bCanInsert = canInsertRecords(xSet);
+ // kann noch ein Datensatz eingefuegt weden
+ try
+ {
+ if (bCanInsert)
+ xUpdateCursor->moveToInsertRow();
+ else
+ // Datensatz bewegen um Stati neu zu setzen
+ xCursor->first();
+ }
+ catch(Exception&)
+ {
+ DBG_ERROR("DeleteRecord : exception caught !");
+ }
+ }
+ }
+ }
+ }
}
}
IMPL_STATIC_LINK( BibFrameController_Impl, DisposeHdl, void*, EMPTYARG )
diff --git a/extensions/source/bibliography/framectr.hxx b/extensions/source/bibliography/framectr.hxx
index ffe558a29..dcd0c5f6a 100644
--- a/extensions/source/bibliography/framectr.hxx
+++ b/extensions/source/bibliography/framectr.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: framectr.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: fs $ $Date: 2001-10-22 07:31:41 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:50:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -73,12 +73,12 @@
#ifndef _COM_SUN_STAR_FRAME_XDISPATCH_HPP_
#include <com/sun/star/frame/XDispatch.hpp>
#endif
-#ifndef _COM_SUN_STAR_FORM_XLOADABLE_HPP_
+#ifndef _COM_SUN_STAR_FORM_XLOADABLE_HPP_
#include <com/sun/star/form/XLoadable.hpp>
#endif
#ifndef _CPPUHELPER_IMPLBASE3_HXX_
-#include <cppuhelper/implbase3.hxx> // helper for implementations
+#include <cppuhelper/implbase3.hxx>
#endif
#ifndef _SVARRAY_HXX
@@ -87,7 +87,11 @@
#include "bibmod.hxx"
class BibDataManager;
-
+namespace com{namespace sun{namespace star{
+ namespace form{
+ class XFormController;
+ }
+}}}
class BibStatusDispatch
{
public:
@@ -121,6 +125,7 @@ friend class BibFrameCtrl_Impl;
DECL_STATIC_LINK( BibFrameController_Impl, DisposeHdl, void* );
+ sal_Bool SaveModified(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XFormController>& xController);
public:
BibFrameController_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > & xComponent);
BibFrameController_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > & xComponent,
diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx
index a5b97574f..c8d820f8d 100644
--- a/extensions/source/bibliography/general.cxx
+++ b/extensions/source/bibliography/general.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: general.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: gt $ $Date: 2002-04-25 09:27:20 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:50:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -539,9 +539,7 @@ BibGeneralPage::BibGeneralPage(Window* pParent, BibDataManager* pMan):
uno::Reference< sdbc::XRowSet > xRowSet(pDatMan->getForm(), UNO_QUERY);
if(xRowSet.is())
xRowSet->addRowSetListener(xPosListener);
- xFormCtrl = uno::Reference< form::XFormController > (
- xMgr->createInstance(C2U("com.sun.star.form.controller.FormController")), UNO_QUERY);
- xFormCtrl->setModel(uno::Reference< awt::XTabControllerModel > (pDatMan->getForm(), UNO_QUERY));
+ uno::Reference< form::XFormController > xFormCtrl = pDatMan->GetFormController();
xFormCtrl->setContainer(xCtrlContnr);
xFormCtrl->activateTabOrder();
@@ -578,6 +576,7 @@ BibGeneralPage::~BibGeneralPage()
---------------------------------------------------------------------------*/
void BibGeneralPage::CommitActiveControl()
{
+ uno::Reference< form::XFormController > xFormCtrl = pDatMan->GetFormController();
uno::Reference< awt::XControl > xCurr = xFormCtrl->getCurrentControl();
if(xCurr.is())
{
diff --git a/extensions/source/bibliography/general.hxx b/extensions/source/bibliography/general.hxx
index 6cdc998e5..57b3b72f3 100644
--- a/extensions/source/bibliography/general.hxx
+++ b/extensions/source/bibliography/general.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: general.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: gt $ $Date: 2002-04-25 09:27:20 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:50:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,9 +74,6 @@
#ifndef _COM_SUN_STAR_FORM_XBOUNDCOMPONENT_HPP_
#include <com/sun/star/form/XBoundComponent.hpp>
#endif
-#ifndef _COM_SUN_STAR_FORM_XFORMCONTROLLER_HPP_
-#include <com/sun/star/form/XFormController.hpp>
-#endif
#ifndef _COM_SUN_STAR_SDBC_XROWSETLISTENER_HPP_
#include <com/sun/star/sdbc/XRowSetListener.hpp>
#endif
@@ -176,9 +173,6 @@ class BibGeneralPage: public BibGeneralPageBaseClass, public TabPage
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >
xCtrlContnr;
- ::com::sun::star::uno::Reference< ::com::sun::star::form::XFormController >
- xFormCtrl;
-
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >
xMgr;
diff --git a/extensions/source/bibliography/menu.src b/extensions/source/bibliography/menu.src
index ad2ed0616..86ada705b 100644
--- a/extensions/source/bibliography/menu.src
+++ b/extensions/source/bibliography/menu.src
@@ -2,9 +2,9 @@
*
* $RCSfile: menu.src,v $
*
- * $Revision: 1.24 $
+ * $Revision: 1.25 $
*
- * last change: $Author: rt $ $Date: 2001-11-16 22:44:42 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:55:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -76,6 +76,7 @@
#define MN_EDIT 20
#define MN_VIEW 21
#define MN_EXTRA 22
+#define MN_INSERT 23
#define MN_WIN 30
#define MN_HELP 31
@@ -180,14 +181,15 @@ Menu RID_MAIN_MENU
Text[ polish ] = "Przyporzdkowanie kolumn...";
Text[ portuguese_brazilian ] = "~Column assignment...";
Text[ japanese ] = "列の分類(~C)...";
- Text[ korean ] = "열 배정(~C)...";
+ Text[ korean ] = "열 지정(~C)...";
Text[ chinese_simplified ] = "编排列(~C)...";
Text[ chinese_traditional ] = "編排欄(~C)...";
Text[ arabic ] = " ...";
Text[ turkish ] = "~Stun dzeni...";
Text[ language_user1 ] = " ";
- Text[ catalan ] = "~Asignacin de columnas...";
+ Text[ catalan ] = "Disposici de les ~columnes...";
Text[ finnish ] = "~Sarakejrjestys";
+ Text[ thai ] = "จัดเรียง~คอลัมน์...";
};
MenuItem
{
@@ -209,17 +211,27 @@ Menu RID_MAIN_MENU
Text[ swedish ] = "~Dataklla...";
Text[ polish ] = "rdo danych...";
Text[ portuguese_brazilian ] = "~Data source...";
- Text[ japanese ] = "データソース(~D)...";
+ Text[ japanese ] = "データソース(~D)...";
Text[ korean ] = "데이터 소스(~D)...";
Text[ chinese_simplified ] = "数据源(~D)...";
Text[ chinese_traditional ] = "資料源(~D)...";
Text[ arabic ] = " ...";
Text[ turkish ] = "~Veri kayna...";
Text[ language_user1 ] = " ";
- Text[ catalan ] = "~Fuente de datos...";
+ Text[ catalan ] = "Font de les ~dades...";
Text[ finnish ] = "~Tietolhde";
- };
- };
+ Text[ thai ] = "แหล่ง~ข้อมูล...";
+ };
+ MenuItem
+ {
+ HelpId = HID_BIB_DELETE_RECORD;
+ Command = ".uno:Bib/DeleteRecord" ;
+ Identifier = RID_MAIN_DELETE_RECORD;
+ Checkable=TRUE;
+ Text = "~Datensatz lschen" ;
+ Text[ english_us ] = "Delete ~Record";
+ };
+ };
};
Text[ russian ] = "~";
Text[ polish ] = "~Edytuj";
@@ -231,7 +243,8 @@ Menu RID_MAIN_MENU
Text[ korean ] = "편집(~E)";
Text[ turkish ] = "~Dzenle";
Text[ language_user1 ] = " ";
- Text[ catalan ] = "~Editar";
+ Text[ catalan ] = "~Edita";
+ Text[ thai ] = "แ~ก้ไข";
};
MenuItem
{
@@ -267,7 +280,31 @@ Menu RID_MAIN_MENU
Text[ arabic ] = "~";
Text[ turkish ] = "Grnm";
Text[ language_user1 ] = " ";
- Text[ catalan ] = "~Ver";
+ Text[ catalan ] = "~Visualitza";
+ Text[ thai ] = "~มุมมอง";
+ };
+ MenuItem
+ {
+ Identifier = MN_INSERT;
+ HelpID = MN_INSERT ;
+ Text = "~Einfgen" ;
+ Text [ English ] = "~Insert" ;
+ SubMenu = Menu
+ {
+ ItemList =
+ {
+ MenuItem
+ {
+ HelpId = HID_BIB_INSERT_RECORD;
+ Command = ".uno:Bib/InsertRecord" ;
+ Identifier = RID_MAIN_INSERT_RECORD;
+ Checkable=TRUE;
+ Text = "~Datensatz" ;
+ Text[ English ] = "~Record" ;
+ };
+
+ };
+ };
};
MenuItem
{
@@ -308,15 +345,16 @@ Menu RID_MAIN_MENU
Text[ swedish ] = "~Filtrera...";
Text[ polish ] = "Filtruj...";
Text[ portuguese_brazilian ] = "Filter...";
- Text[ japanese ] = "フィルタ(~F)...";
+ Text[ japanese ] = "フィルタ(~F)...";
Text[ korean ] = "필터링(~F)...";
Text[ chinese_simplified ] = "筛选(~F)...";
Text[ chinese_traditional ] = "篩選(~F)...";
Text[ arabic ] = "...";
Text[ turkish ] = "~Filtrele...";
Text[ language_user1 ] = " ";
- Text[ catalan ] = "~Filter...";
+ Text[ catalan ] = "~Filtre...";
Text[ finnish ] = "~Suodatin";
+ Text[ thai ] = "~ตัวกรอง...";
};
MenuItem
{
@@ -332,29 +370,18 @@ Menu RID_MAIN_MENU
Text[ russian ] = "~";
Text[ greek ] = "~";
Text[ polish ] = "~Narzdzia";
- Text[ japanese ] = "ツール(~T)";
+ Text[ japanese ] = "ツール(~T)";
Text[ korean ] = "도구(~T)";
Text[ chinese_simplified ] = "工具(~T)";
Text[ chinese_traditional ] = "工具(~T)";
Text[ arabic ] = "~";
Text[ turkish ] = "~Aralar";
Text[ language_user1 ] = " ";
- Text[ catalan ] = "~Herramientas";
+ Text[ catalan ] = "E~ines";
+ Text[ thai ] = "เ~ครื่องมือ";
};
ITEM_WINDOW_MENU
ITEM_HELP_MENU
};
};
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/extensions/util/hidother.src b/extensions/util/hidother.src
index dc69ad6e4..3112a30f0 100644
--- a/extensions/util/hidother.src
+++ b/extensions/util/hidother.src
@@ -2,9 +2,9 @@
*
* $RCSfile: hidother.src,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: fs $ $Date: 2001-10-12 12:26:35 $
+ * last change: $Author: os $ $Date: 2002-05-08 08:53:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -137,3 +137,6 @@ hidspecial UID_ABSPILOT_HELP { HelpId = UID_ABSPILOT_HELP; }
hidspecial HID_DBIWIZARD { HelpId = HID_DBIWIZARD; }
hidspecial UID_DBIWIZARD_HELP { HelpId = UID_DBIWIZARD_HELP; }
hidspecial HID_DBIWIZARD_FILESELECTION { HelpId = HID_DBIWIZARD_FILESELECTION; }
+
+hidspecial HID_BIB_DELETE_RECORD { HelpId = HID_BIB_DELETE_RECORD; }
+hidspecial HID_BIB_INSERT_RECORD { HelpId = HID_BIB_INSERT_RECORD; }