Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. Skip fGetSelectedObjects(Module in_mod)
  2. {
  3. Skip skpObjects = create() // Return KEY and DATA both 'Object'
  4. if (null in_mod) return(skpObjects)
  5. Object oCurr = current,
  6. o
  7. for o in entire (in_mod) do
  8. { if (isSelected(o) or
  9. o == oCurr) put(skpObjects, o, o)
  10. }
  11. return(skpObjects)
  12. } // end fGetSelectedObjects()
  13. Skip skpObjects = fGetSelectedObjects(current Module)
  14. Object o
  15.  
  16. for o in skpObjects do
  17. { // deal with the selected o
  18. string s = o."Object text"
  19. // I don't know the way to activate the object text attribute instead of manual click. Thus it loops through selection and pastes the clipboard contents.
  20.  
  21. pasteToEditbox
  22.  
  23. //For Single Indentation use 360 points, double indentation 720 points and so on...
  24.  
  25. o."Object text" = richText (applyTextFormattingToParagraph(richText s,false,360,0))
  26.  
  27. }
  28. delete(skpObjects)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement