Commit 819cd484 authored by Constantin Jucovschi's avatar Constantin Jucovschi

adds replace and restructuring messages

parent 8334f6fd
...@@ -7,23 +7,27 @@ var _info_kwarc_sally_comm_mathhubdocument_factory = function () { ...@@ -7,23 +7,27 @@ var _info_kwarc_sally_comm_mathhubdocument_factory = function () {
localName: 'SelectText', localName: 'SelectText',
propertyInfos: [{ propertyInfos: [{
type: 'element', type: 'element',
name: 'startrow', name: 'startPos',
elementName: 'startrow', elementName: 'startPos',
typeInfo: 'Int' typeInfo: 'info_kwarc_sally_comm_mathhubdocument.TextPosition'
}, { }, {
type: 'element', type: 'element',
name: 'endrow', name: 'endPos',
elementName: 'endrow', elementName: 'endPos',
typeInfo: 'Int' typeInfo: 'info_kwarc_sally_comm_mathhubdocument.TextPosition'
}, { }]
}, {
type: 'classInfo',
localName: 'TextPosition',
propertyInfos: [{
type: 'element', type: 'element',
name: 'startcolumn', name: 'row',
elementName: 'startcolumn', elementName: 'row',
typeInfo: 'Int' typeInfo: 'Int'
}, { }, {
type: 'element', type: 'element',
name: 'endcolumn', name: 'col',
elementName: 'endcolumn', elementName: 'col',
typeInfo: 'Int' typeInfo: 'Int'
}] }]
}, { }, {
...@@ -96,38 +100,42 @@ var _info_kwarc_sally_comm_mathhubdocument_factory = function () { ...@@ -96,38 +100,42 @@ var _info_kwarc_sally_comm_mathhubdocument_factory = function () {
typeInfo: 'String' typeInfo: 'String'
}, { }, {
type: 'element', type: 'element',
name: 'col', name: 'pos',
elementName: 'col', elementName: 'pos',
typeInfo: 'Int' typeInfo: 'info_kwarc_sally_comm_mathhubdocument.TextPosition'
}, {
type: 'element',
name: 'line',
elementName: 'line',
typeInfo: 'Int'
}] }]
}, { }, {
type: 'classInfo', type: 'classInfo',
localName: 'GetCurrentSelectionResponse', localName: 'ReplaceText',
propertyInfos: [{ propertyInfos: [{
type: 'element', type: 'element',
name: 'startrow', name: 'startPos',
elementName: 'startrow', elementName: 'startPos',
typeInfo: 'Int' typeInfo: 'info_kwarc_sally_comm_mathhubdocument.TextPosition'
}, { }, {
type: 'element', type: 'element',
name: 'endrow', name: 'endPos',
elementName: 'endrow', elementName: 'endPos',
typeInfo: 'Int' typeInfo: 'info_kwarc_sally_comm_mathhubdocument.TextPosition'
}, { }, {
type: 'element', type: 'element',
name: 'startcolumn', name: 'text',
elementName: 'startcolumn', elementName: 'text',
typeInfo: 'Int' typeInfo: 'String'
}]
}, {
type: 'classInfo',
localName: 'GetCurrentSelectionResponse',
propertyInfos: [{
type: 'element',
name: 'startPos',
elementName: 'startPos',
typeInfo: 'info_kwarc_sally_comm_mathhubdocument.TextPosition'
}, { }, {
type: 'element', type: 'element',
name: 'endcolumn', name: 'endPos',
elementName: 'endcolumn', elementName: 'endPos',
typeInfo: 'Int' typeInfo: 'info_kwarc_sally_comm_mathhubdocument.TextPosition'
}] }]
}, { }, {
type: 'classInfo', type: 'classInfo',
...@@ -160,6 +168,9 @@ var _info_kwarc_sally_comm_mathhubdocument_factory = function () { ...@@ -160,6 +168,9 @@ var _info_kwarc_sally_comm_mathhubdocument_factory = function () {
}, { }, {
elementName: 'AutocompleteRequest', elementName: 'AutocompleteRequest',
typeInfo: 'info_kwarc_sally_comm_mathhubdocument.AutocompleteRequest' typeInfo: 'info_kwarc_sally_comm_mathhubdocument.AutocompleteRequest'
}, {
elementName: 'ReplaceText',
typeInfo: 'info_kwarc_sally_comm_mathhubdocument.ReplaceText'
}, { }, {
elementName: 'GetCurrentSelectionResponse', elementName: 'GetCurrentSelectionResponse',
typeInfo: 'info_kwarc_sally_comm_mathhubdocument.GetCurrentSelectionResponse' typeInfo: 'info_kwarc_sally_comm_mathhubdocument.GetCurrentSelectionResponse'
......
...@@ -5,9 +5,10 @@ ...@@ -5,9 +5,10 @@
<parent> <parent>
<groupId>info.kwarc.sally4.comm</groupId> <groupId>info.kwarc.sally4.comm</groupId>
<artifactId>comm-parent</artifactId> <artifactId>comm-parent</artifactId>
<version>0.0.7</version> <version>0.0.8</version>
<relativePath>../comm-parent</relativePath> <relativePath>../comm-parent</relativePath>
</parent> </parent>
<version>1.0.1-SNAPSHOT</version>
<groupId>info.kwarc.sally4.mhw.comm</groupId> <groupId>info.kwarc.sally4.mhw.comm</groupId>
<artifactId>comm-mathhubdocument</artifactId> <artifactId>comm-mathhubdocument</artifactId>
...@@ -17,5 +18,4 @@ ...@@ -17,5 +18,4 @@
<bundle.export-package>info.kwarc.sally*;</bundle.export-package> <bundle.export-package>info.kwarc.sally*;</bundle.export-package>
<bundle.comm-package>mathhubdocument</bundle.comm-package> <bundle.comm-package>mathhubdocument</bundle.comm-package>
</properties> </properties>
<version>1.0.0-SNAPSHOT</version>
</project> </project>
<?xml version="1.0"?> <?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mhdoc="http://kwarc.info/sally/comm/mathhubdocument"
targetNamespace="http://kwarc.info/sally/comm/mathhubdocument" targetNamespace="http://kwarc.info/sally/comm/mathhubdocument"
elementFormDefault="qualified"> elementFormDefault="qualified">
...@@ -32,6 +33,13 @@ ...@@ -32,6 +33,13 @@
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:complexType name="TextPosition">
<xs:sequence>
<xs:element name="row" type="xs:int"></xs:element>
<xs:element name="col" type="xs:int"></xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="GetCurrentSelection"> <xs:element name="GetCurrentSelection">
<xs:complexType> <xs:complexType>
</xs:complexType> </xs:complexType>
...@@ -40,10 +48,8 @@ ...@@ -40,10 +48,8 @@
<xs:element name="GetCurrentSelectionResponse"> <xs:element name="GetCurrentSelectionResponse">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="startrow" type="xs:int"></xs:element> <xs:element name="startPos" type="mhdoc:TextPosition"></xs:element>
<xs:element name="endrow" type="xs:int"></xs:element> <xs:element name="endPos" type="mhdoc:TextPosition"></xs:element>
<xs:element name="startcolumn" type="xs:int"></xs:element>
<xs:element name="endcolumn" type="xs:int"></xs:element>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
...@@ -51,10 +57,18 @@ ...@@ -51,10 +57,18 @@
<xs:element name="SelectText"> <xs:element name="SelectText">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="startrow" type="xs:int"></xs:element> <xs:element name="startPos" type="mhdoc:TextPosition"></xs:element>
<xs:element name="endrow" type="xs:int"></xs:element> <xs:element name="endPos" type="mhdoc:TextPosition"></xs:element>
<xs:element name="startcolumn" type="xs:int"></xs:element> </xs:sequence>
<xs:element name="endcolumn" type="xs:int"></xs:element> </xs:complexType>
</xs:element>
<xs:element name="ReplaceText">
<xs:complexType>
<xs:sequence>
<xs:element name="startPos" type="mhdoc:TextPosition"></xs:element>
<xs:element name="endPos" type="mhdoc:TextPosition"></xs:element>
<xs:element name="text" type="xs:string"></xs:element>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
...@@ -65,8 +79,7 @@ ...@@ -65,8 +79,7 @@
<xs:element type="xs:string" name="path"></xs:element> <xs:element type="xs:string" name="path"></xs:element>
<xs:element type="xs:string" name="text"></xs:element> <xs:element type="xs:string" name="text"></xs:element>
<xs:element type="xs:string" name="prefix"></xs:element> <xs:element type="xs:string" name="prefix"></xs:element>
<xs:element type="xs:int" name="col"></xs:element> <xs:element name="pos" type="mhdoc:TextPosition"></xs:element>
<xs:element type="xs:int" name="line"></xs:element>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment