summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-18 22:16:30 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-18 22:16:30 +0100
commit10e580c57b907420e8c6d816325445a40a720e4a (patch)
tree1037bbab931cd2164cbc6d1d8f594f85b7a872de /qadevOOo
parentf081f1be7ead2beff742eccf9955ebd9437203f8 (diff)
Revert "offapi: remove obsolete XInplaceLayout"
This reverts commit 5ca858c01cb2e2aa93c8aca65fd271a900785e3f. This change implicates some more changes in layoutmanager.hxx see ::cppu::WeakImplHelper8. So keep it...
Diffstat (limited to 'qadevOOo')
-rwxr-xr-xqadevOOo/objdsc/fwk/com.sun.star.comp.framework.LayoutManager.csv2
-rw-r--r--qadevOOo/tests/java/ifc/frame/_XInplaceLayout.java48
2 files changed, 50 insertions, 0 deletions
diff --git a/qadevOOo/objdsc/fwk/com.sun.star.comp.framework.LayoutManager.csv b/qadevOOo/objdsc/fwk/com.sun.star.comp.framework.LayoutManager.csv
index f45c6bcc32d6..af47fcb9f0dd 100755
--- a/qadevOOo/objdsc/fwk/com.sun.star.comp.framework.LayoutManager.csv
+++ b/qadevOOo/objdsc/fwk/com.sun.star.comp.framework.LayoutManager.csv
@@ -1,4 +1,6 @@
"LayoutManager";"com::sun::star::lang::XEventListener";"disposing()"
+"LayoutManager";"com::sun::star::frame::XInplaceLayout#optional";"setInplaceMenuBar()"
+"LayoutManager";"com::sun::star::frame::XInplaceLayout#optional";"resetInplaceMenuBar()"
"LayoutManager";"com::sun::star::frame::XLayoutManager";"attachFrame()"
"LayoutManager";"com::sun::star::frame::XLayoutManager";"reset()"
"LayoutManager";"com::sun::star::frame::XLayoutManager";"getCurrentDockingArea()"
diff --git a/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.java b/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.java
new file mode 100644
index 000000000000..2d644d2b2391
--- /dev/null
+++ b/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.java
@@ -0,0 +1,48 @@
+/*************************************************************************
+ *
+ * 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.
+ *
+ ************************************************************************/
+
+package ifc.frame;
+
+import com.sun.star.frame.XInplaceLayout;
+import lib.MultiMethodTest;
+
+public class _XInplaceLayout extends MultiMethodTest {
+ public XInplaceLayout oObj = null;
+
+ public void _setInplaceMenuBar() {
+ log.print("This method exists for inplace editing with own modules. ");
+ log.println("It makes no sense to call it from Java.");
+// oObj.setInplaceMenuBar(l);
+ tRes.tested("setInplaceMenuBar()", true);
+ }
+
+ public void _resetInplaceMenuBar() {
+ requiredMethod("setInplaceMenuBar()");
+ oObj.resetInplaceMenuBar();
+ tRes.tested("resetInplaceMenuBar()", true);
+ }
+}