diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-07-16 06:55:35 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-07-16 06:55:35 +0000 |
commit | 0861aa80142cfe7f575391b9ca413d697b6d2dab (patch) | |
tree | 83cd63d42c6cf7320669320700cf8c6a194c40aa /dbaccess/source/ui/tabledesign/TableDesignView.cxx | |
parent | c5e3e02943a330138f07946bc224a201687b183f (diff) |
#89657# check if copy is allowed
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TableDesignView.cxx')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableDesignView.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableDesignView.cxx b/dbaccess/source/ui/tabledesign/TableDesignView.cxx index ae257a8fb860..9084bb04b376 100644 --- a/dbaccess/source/ui/tabledesign/TableDesignView.cxx +++ b/dbaccess/source/ui/tabledesign/TableDesignView.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TableDesignView.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: oj $ $Date: 2001-04-24 14:32:28 $ + * last change: $Author: oj $ $Date: 2001-07-16 07:55:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -339,6 +339,21 @@ long OTableDesignView::PreNotify( NotifyEvent& rNEvt ) return ODataView::PreNotify(rNEvt); } // ----------------------------------------------------------------------------- +sal_Bool OTableDesignView::isCopyAllowed() +{ + sal_Bool bAllowed = sal_False; + switch(m_eChildFocus) + { + case DESCRIPTION: + bAllowed = GetDescWin()->isCopyAllowed(); + break; + case EDITOR: + bAllowed = GetEditorCtrl()->IsCopyAllowed(); + break; + } + return bAllowed; +} +// ----------------------------------------------------------------------------- sal_Bool OTableDesignView::isCutAllowed() { sal_Bool bAllowed = sal_False; |