idl classes moved
This commit is contained in:
parent
0e4ff7e970
commit
d0fc62a976
12 changed files with 274 additions and 0 deletions
12
idl/org/libreoffice/example/Writer2latex.idl
Normal file
12
idl/org/libreoffice/example/Writer2latex.idl
Normal file
|
@ -0,0 +1,12 @@
|
|||
#ifndef __org_libreoffice_example_writer2latex_idl__
|
||||
#define __org_libreoffice_example_writer2latex_idl__
|
||||
|
||||
#include <org/libreoffice/example/XWriter2latex.idl>
|
||||
module org { module libreoffice { module example {
|
||||
|
||||
service Writer2latex : org::libreoffice::example::XWriter2latex {
|
||||
|
||||
};
|
||||
|
||||
}; }; };
|
||||
#endif
|
11
idl/org/libreoffice/example/XWriter2latex.idl
Normal file
11
idl/org/libreoffice/example/XWriter2latex.idl
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef __org_libreoffice_example_xwriter2latex_idl__
|
||||
#define __org_libreoffice_example_xwriter2latex_idl__
|
||||
|
||||
module org { module libreoffice { module example {
|
||||
|
||||
interface XWriter2latex {
|
||||
|
||||
};
|
||||
|
||||
}; }; };
|
||||
#endif
|
|
@ -0,0 +1,13 @@
|
|||
package org.libreoffice.example;
|
||||
|
||||
|
||||
/**
|
||||
* org/libreoffice/example/XWriter2latex.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from XWriter2latex.idl
|
||||
* Friday, 7 July 2017 12:51:34 o'clock MSK
|
||||
*/
|
||||
|
||||
public interface XWriter2latex extends XWriter2latexOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface XWriter2latex
|
|
@ -0,0 +1,85 @@
|
|||
package org.libreoffice.example;
|
||||
|
||||
|
||||
/**
|
||||
* org/libreoffice/example/XWriter2latexHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from XWriter2latex.idl
|
||||
* Friday, 7 July 2017 12:51:34 o'clock MSK
|
||||
*/
|
||||
|
||||
abstract public class XWriter2latexHelper
|
||||
{
|
||||
private static String _id = "IDL:org/libreoffice/example/XWriter2latex:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.libreoffice.example.XWriter2latex that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.libreoffice.example.XWriter2latex extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.libreoffice.example.XWriter2latexHelper.id (), "XWriter2latex");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.libreoffice.example.XWriter2latex read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_XWriter2latexStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.libreoffice.example.XWriter2latex value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static org.libreoffice.example.XWriter2latex narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.libreoffice.example.XWriter2latex)
|
||||
return (org.libreoffice.example.XWriter2latex)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.libreoffice.example._XWriter2latexStub stub = new org.libreoffice.example._XWriter2latexStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.libreoffice.example.XWriter2latex unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.libreoffice.example.XWriter2latex)
|
||||
return (org.libreoffice.example.XWriter2latex)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.libreoffice.example._XWriter2latexStub stub = new org.libreoffice.example._XWriter2latexStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package org.libreoffice.example;
|
||||
|
||||
/**
|
||||
* org/libreoffice/example/XWriter2latexHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from XWriter2latex.idl
|
||||
* Friday, 7 July 2017 12:51:34 o'clock MSK
|
||||
*/
|
||||
|
||||
public final class XWriter2latexHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.libreoffice.example.XWriter2latex value = null;
|
||||
|
||||
public XWriter2latexHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public XWriter2latexHolder (org.libreoffice.example.XWriter2latex initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.libreoffice.example.XWriter2latexHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.libreoffice.example.XWriter2latexHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.libreoffice.example.XWriter2latexHelper.type ();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package org.libreoffice.example;
|
||||
|
||||
|
||||
/**
|
||||
* org/libreoffice/example/XWriter2latexOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from XWriter2latex.idl
|
||||
* Friday, 7 July 2017 12:51:34 o'clock MSK
|
||||
*/
|
||||
|
||||
public interface XWriter2latexOperations
|
||||
{
|
||||
} // interface XWriter2latexOperations
|
|
@ -0,0 +1,50 @@
|
|||
package org.libreoffice.example;
|
||||
|
||||
|
||||
/**
|
||||
* org/libreoffice/example/_XWriter2latexStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from XWriter2latex.idl
|
||||
* Friday, 7 July 2017 12:51:34 o'clock MSK
|
||||
*/
|
||||
|
||||
public class _XWriter2latexStub extends org.omg.CORBA.portable.ObjectImpl implements org.libreoffice.example.XWriter2latex
|
||||
{
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:org/libreoffice/example/XWriter2latex:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
|
||||
try {
|
||||
org.omg.CORBA.Object obj = orb.string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
} finally {
|
||||
orb.destroy() ;
|
||||
}
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
|
||||
try {
|
||||
String str = orb.object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
} finally {
|
||||
orb.destroy() ;
|
||||
}
|
||||
}
|
||||
} // class _XWriter2latexStub
|
Loading…
Add table
Add a link
Reference in a new issue