Advertisement
Guest User

libro

a guest
Mar 11th, 2014
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. REM ***** BASIC *****
  2.  
  3. Sub Main
  4.  
  5. End Sub
  6.  
  7.  
  8. sub testaccents
  9. rem ----------------------------------------------------------------------
  10. rem define variables
  11. dim document as object
  12. dim dispatcher as object
  13. rem ----------------------------------------------------------------------
  14. rem get access to the document
  15. document = ThisComponent.CurrentController.Frame
  16. dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
  17.  
  18. rem ----------------------------------------------------------------------
  19. dim args1(17) as new com.sun.star.beans.PropertyValue
  20. args1(0).Name = "SearchItem.StyleFamily"
  21. args1(0).Value = 2
  22. args1(1).Name = "SearchItem.CellType"
  23. args1(1).Value = 0
  24. args1(2).Name = "SearchItem.RowDirection"
  25. args1(2).Value = true
  26. args1(3).Name = "SearchItem.AllTables"
  27. args1(3).Value = false
  28. args1(4).Name = "SearchItem.Backward"
  29. args1(4).Value = false
  30. args1(5).Name = "SearchItem.Pattern"
  31. args1(5).Value = false
  32. args1(6).Name = "SearchItem.Content"
  33. args1(6).Value = false
  34. args1(7).Name = "SearchItem.AsianOptions"
  35. args1(7).Value = false
  36. args1(8).Name = "SearchItem.AlgorithmType"
  37. args1(8).Value = 0
  38. args1(9).Name = "SearchItem.SearchFlags"
  39. args1(9).Value = 71680
  40. args1(10).Name = "SearchItem.SearchString"
  41. args1(10).Value = "é"
  42. args1(11).Name = "SearchItem.ReplaceString"
  43. args1(11).Value = "e"
  44. args1(12).Name = "SearchItem.Locale"
  45. args1(12).Value = 255
  46. args1(13).Name = "SearchItem.ChangedChars"
  47. args1(13).Value = 2
  48. args1(14).Name = "SearchItem.DeletedChars"
  49. args1(14).Value = 2
  50. args1(15).Name = "SearchItem.InsertedChars"
  51. args1(15).Value = 2
  52. args1(16).Name = "SearchItem.TransliterateFlags"
  53. args1(16).Value = 1280
  54. args1(17).Name = "SearchItem.Command"
  55. args1(17).Value = 3
  56.  
  57. dispatcher.executeDispatch(document, ".uno:ExecuteSearch", "", 0, args1())
  58.  
  59. rem ----------------------------------------------------------------------
  60. dim args2(17) as new com.sun.star.beans.PropertyValue
  61. args2(0).Name = "SearchItem.StyleFamily"
  62. args2(0).Value = 2
  63. args2(1).Name = "SearchItem.CellType"
  64. args2(1).Value = 0
  65. args2(2).Name = "SearchItem.RowDirection"
  66. args2(2).Value = true
  67. args2(3).Name = "SearchItem.AllTables"
  68. args2(3).Value = false
  69. args2(4).Name = "SearchItem.Backward"
  70. args2(4).Value = false
  71. args2(5).Name = "SearchItem.Pattern"
  72. args2(5).Value = false
  73. args2(6).Name = "SearchItem.Content"
  74. args2(6).Value = false
  75. args2(7).Name = "SearchItem.AsianOptions"
  76. args2(7).Value = false
  77. args2(8).Name = "SearchItem.AlgorithmType"
  78. args2(8).Value = 0
  79. args2(9).Name = "SearchItem.SearchFlags"
  80. args2(9).Value = 71680
  81. args2(10).Name = "SearchItem.SearchString"
  82. args2(10).Value = "è"
  83. args2(11).Name = "SearchItem.ReplaceString"
  84. args2(11).Value = "e"
  85. args2(12).Name = "SearchItem.Locale"
  86. args2(12).Value = 255
  87. args2(13).Name = "SearchItem.ChangedChars"
  88. args2(13).Value = 2
  89. args2(14).Name = "SearchItem.DeletedChars"
  90. args2(14).Value = 2
  91. args2(15).Name = "SearchItem.InsertedChars"
  92. args2(15).Value = 2
  93. args2(16).Name = "SearchItem.TransliterateFlags"
  94. args2(16).Value = 1280
  95. args2(17).Name = "SearchItem.Command"
  96. args2(17).Value = 3
  97.  
  98. dispatcher.executeDispatch(document, ".uno:ExecuteSearch", "", 0, args2())
  99.  
  100. rem ----------------------------------------------------------------------
  101. dim args3(17) as new com.sun.star.beans.PropertyValue
  102. args3(0).Name = "SearchItem.StyleFamily"
  103. args3(0).Value = 2
  104. args3(1).Name = "SearchItem.CellType"
  105. args3(1).Value = 0
  106. args3(2).Name = "SearchItem.RowDirection"
  107. args3(2).Value = true
  108. args3(3).Name = "SearchItem.AllTables"
  109. args3(3).Value = false
  110. args3(4).Name = "SearchItem.Backward"
  111. args3(4).Value = false
  112. args3(5).Name = "SearchItem.Pattern"
  113. args3(5).Value = false
  114. args3(6).Name = "SearchItem.Content"
  115. args3(6).Value = false
  116. args3(7).Name = "SearchItem.AsianOptions"
  117. args3(7).Value = false
  118. args3(8).Name = "SearchItem.AlgorithmType"
  119. args3(8).Value = 0
  120. args3(9).Name = "SearchItem.SearchFlags"
  121. args3(9).Value = 71680
  122. args3(10).Name = "SearchItem.SearchString"
  123. args3(10).Value = "ä"
  124. args3(11).Name = "SearchItem.ReplaceString"
  125. args3(11).Value = "a"
  126. args3(12).Name = "SearchItem.Locale"
  127. args3(12).Value = 255
  128. args3(13).Name = "SearchItem.ChangedChars"
  129. args3(13).Value = 2
  130. args3(14).Name = "SearchItem.DeletedChars"
  131. args3(14).Value = 2
  132. args3(15).Name = "SearchItem.InsertedChars"
  133. args3(15).Value = 2
  134. args3(16).Name = "SearchItem.TransliterateFlags"
  135. args3(16).Value = 1280
  136. args3(17).Name = "SearchItem.Command"
  137. args3(17).Value = 3
  138.  
  139. dispatcher.executeDispatch(document, ".uno:ExecuteSearch", "", 0, args3())
  140.  
  141.  
  142. end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement