Revision: 27177
          http://sourceforge.net/p/bibdesk/svn/27177
Author:   hofman
Date:     2021-12-10 13:59:08 +0000 (Fri, 10 Dec 2021)
Log Message:
-----------
Simplify text suite. Make rich text component classes inherit from rich text. 
Add file property to atachment class.

Modified Paths:
--------------
    trunk/bibdesk/Scripting/BibDesk.sdef

Modified: trunk/bibdesk/Scripting/BibDesk.sdef
===================================================================
--- trunk/bibdesk/Scripting/BibDesk.sdef        2021-12-10 07:30:28 UTC (rev 
27176)
+++ trunk/bibdesk/Scripting/BibDesk.sdef        2021-12-10 13:59:08 UTC (rev 
27177)
@@ -303,121 +303,41 @@
                        <element type="attachment"/>
                </class>
 
-               <class name="character" code="cha "
+               <class name="character" code="cha " inherits="rich text"
                        description="This subdivides the text into characters.">
                        <cocoa class="NSTextStorage"/>
                        <type type="text"/>
-                       <property name="color" code="colr" type="RGBA color"
-                               description="The color of the first character.">
-                               <cocoa key="foregroundColor"/>
-                       </property>
-                       <property name="font" code="font" type="text"
-                               description="The name of the font of the first 
character.">
-                               <cocoa key="fontName"/>
-                       </property>
-                       <property name="size" code="ptsz" type="integer"
-                               description="The size in points of the first 
character.">
-                               <cocoa key="fontSize"/>
-                       </property>
-            <property name="RTF" code="RTF " type="RTF"
-                description="The raw RTF data.">
-                <cocoa key="scriptingRTF"/>
-            </property>
-                       <element type="character"/>
-                       <element type="paragraph"/>
-                       <element type="word"/>
-                       <element type="attribute run"/>
-                       <element type="attachment"/>
                </class>
 
-               <class name="paragraph" code="cpar"
+               <class name="paragraph" code="cpar" inherits="rich text"
                        description="This subdivides the text into paragraphs.">
                        <cocoa class="NSTextStorage"/>
                        <type type="text"/>
-                       <property name="color" code="colr" type="RGBA color"
-                               description="The color of the first character.">
-                               <cocoa key="foregroundColor"/>
-                       </property>
-                       <property name="font" code="font" type="text"
-                               description="The name of the font of the first 
character.">
-                               <cocoa key="fontName"/>
-                       </property>
-                       <property name="size" code="ptsz" type="integer"
-                               description="The size in points of the first 
character.">
-                               <cocoa key="fontSize"/>
-                       </property>
-            <property name="RTF" code="RTF " type="RTF"
-                description="The raw RTF data.">
-                <cocoa key="scriptingRTF"/>
-            </property>
-                       <element type="character"/>
-                       <element type="paragraph"/>
-                       <element type="word"/>
-                       <element type="attribute run"/>
-                       <element type="attachment"/>
                </class>
 
-               <class name="word" code="cwor"
+               <class name="word" code="cwor" inherits="rich text"
                        description="This subdivides the text into words.">
                        <cocoa class="NSTextStorage"/>
                        <type type="text"/>
-                       <property name="color" code="colr" type="RGBA color"
-                               description="The color of the first character.">
-                               <cocoa key="foregroundColor"/>
-                       </property>
-                       <property name="font" code="font" type="text"
-                               description="The name of the font of the first 
character.">
-                               <cocoa key="fontName"/>
-                       </property>
-                       <property name="size" code="ptsz" type="integer"
-                               description="The size in points of the first 
character.">
-                               <cocoa key="fontSize"/>
-                       </property>
-            <property name="RTF" code="RTF " type="RTF"
-                description="The raw RTF data.">
-                <cocoa key="scriptingRTF"/>
-            </property>
-                       <element type="character"/>
-                       <element type="paragraph"/>
-                       <element type="word"/>
-                       <element type="attribute run"/>
-                       <element type="attachment"/>
                </class>
 
-               <class name="attribute run" code="catr"
+               <class name="attribute run" code="catr" inherits="rich text"
                        description="This subdivides the text into chunks that 
all have the same attributes.">
                        <cocoa class="NSTextStorage"/>
                        <type type="text"/>
-                       <property name="color" code="colr" type="RGBA color"
-                               description="The color of the first character.">
-                               <cocoa key="foregroundColor"/>
-                       </property>
-                       <property name="font" code="font" type="text"
-                               description="The name of the font of the first 
character.">
-                               <cocoa key="fontName"/>
-                       </property>
-                       <property name="size" code="ptsz" type="integer"
-                               description="The size in points of the first 
character.">
-                               <cocoa key="fontSize"/>
-                       </property>
-            <property name="RTF" code="RTF " type="RTF"
-                description="The raw RTF data.">
-                <cocoa key="scriptingRTF"/>
-            </property>
-                       <element type="character"/>
-                       <element type="paragraph"/>
-                       <element type="word"/>
-                       <element type="attribute run"/>
-                       <element type="attachment"/>
                </class>
 
                <class name="attachment" code="atts" inherits="rich text"
                        description="Represents an inline text attachment. This 
class is used mainly for make commands.">
                        <cocoa class="NSAttachmentTextStorage"/>
-                       <property name="file name" code="atfn" type="text"
-                               description="The path to the file for the 
attachment">
-                               <cocoa key="filename"/>
-                       </property>
+            <property name="file" code="file" type="file"
+                description="The file for the attachment">
+                <cocoa key="url"/>
+            </property>
+            <property name="file name" code="atfn" type="text"
+                description="The path to the file for the attachment">
+                <cocoa key="filename"/>
+            </property>
                </class>
 
         <class name="rich text format" plural="rich text formats" code="RTFt" 
hidden="yes"

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to