tdf#96275 RTF import: fix anchor of shapes inside tables

Table text is buffered, so buffer the shape import as well, otherwise
the anchor will precede the buffered text -> incorrect anchor position.

Change-Id: I527b898e2cd5fafaf122a20e11df66ba8d3185cf
Reviewed-on: https://gerrit.libreoffice.org/24822
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
4 files changed
tree: eee92115bd9040e1916a27f6e16aaf43c745e731
  1. .git-hooks/
  2. accessibility/
  3. android/
  4. animations/
  5. apple_remote/
  6. avmedia/
  7. basctl/
  8. basegfx/
  9. basic/
  10. bean/
  11. bin/
  12. binaryurp/
  13. bridges/
  14. canvas/
  15. chart2/
  16. cli_ure/
  17. codemaker/
  18. comphelper/
  19. compilerplugins/
  20. config_host/
  21. configmgr/
  22. connectivity/
  23. cppcanvas/
  24. cppu/
  25. cppuhelper/
  26. cpputools/
  27. cui/
  28. dbaccess/
  29. desktop/
  30. distro-configs/
  31. drawinglayer/
  32. dtrans/
  33. editeng/
  34. embeddedobj/
  35. embedserv/
  36. eventattacher/
  37. extensions/
  38. external/
  39. extras/
  40. filter/
  41. forms/
  42. formula/
  43. fpicker/
  44. framework/
  45. helpcompiler/
  46. hwpfilter/
  47. i18nlangtag/
  48. i18npool/
  49. i18nutil/
  50. icon-themes/
  51. idl/
  52. idlc/
  53. include/
  54. instsetoo_native/
  55. io/
  56. ios/
  57. javaunohelper/
  58. jurt/
  59. jvmaccess/
  60. jvmfwk/
  61. l10ntools/
  62. librelogo/
  63. libreofficekit/
  64. lingucomponent/
  65. linguistic/
  66. lotuswordpro/
  67. m4/
  68. mysqlc/
  69. nlpsolver/
  70. o3tl/
  71. odk/
  72. offapi/
  73. officecfg/
  74. onlineupdate/
  75. oovbaapi/
  76. oox/
  77. opencl/
  78. osx/
  79. package/
  80. postprocess/
  81. pyuno/
  82. qadevOOo/
  83. readlicense_oo/
  84. registry/
  85. remotebridges/
  86. reportbuilder/
  87. reportdesign/
  88. ridljar/
  89. rsc/
  90. sal/
  91. salhelper/
  92. sax/
  93. sc/
  94. scaddins/
  95. sccomp/
  96. scp2/
  97. scripting/
  98. sd/
  99. sdext/
  100. setup_native/
  101. sfx2/
  102. shell/
  103. slideshow/
  104. smoketest/
  105. solenv/
  106. soltools/
  107. sot/
  108. starmath/
  109. stoc/
  110. store/
  111. svgio/
  112. svl/
  113. svtools/
  114. svx/
  115. sw/
  116. swext/
  117. sysui/
  118. test/
  119. testtools/
  120. toolkit/
  121. tools/
  122. tubes/
  123. ucb/
  124. ucbhelper/
  125. udkapi/
  126. UnoControls/
  127. unodevtools/
  128. unoidl/
  129. unoil/
  130. unotest/
  131. unotools/
  132. unoxml/
  133. ure/
  134. uui/
  135. vbahelper/
  136. vcl/
  137. winaccessibility/
  138. windows/
  139. wizards/
  140. writerfilter/
  141. writerperfect/
  142. xmerge/
  143. xmlhelp/
  144. xmloff/
  145. xmlreader/
  146. xmlscript/
  147. xmlsecurity/
  148. .buckconfig
  149. .buckversion
  150. .gitattributes
  151. .gitignore
  152. .gitmodules
  153. .gitreview
  154. autogen.sh
  155. BUCK
  156. config.guess
  157. config.sub
  158. config_host.mk.in
  159. config_host_lang.mk.in
  160. configure.ac
  161. COPYING
  162. COPYING.LGPL
  163. COPYING.MPL
  164. download.lst
  165. g
  166. install-sh
  167. leak-suppress.txt
  168. Library_merged.mk
  169. lo.xcent.in
  170. logerrit
  171. Makefile.fetch
  172. Makefile.gbuild
  173. Makefile.in
  174. README.cross
  175. README.md
  176. README.Solaris
  177. Repository.mk
  178. RepositoryExternal.mk
  179. RepositoryFixes.mk
  180. RepositoryModule_build.mk
  181. RepositoryModule_host.mk
  182. sanitize-ubsan-blacklist
  183. TEMPLATE.SOURCECODE.HEADER
  184. unusedcode.easy
  185. unusedcode.exclude
  186. unusedcode.README
README.md

LibreOffice

Coverity Scan Build Status

LibreOffice is an integrated office suite based on copyleft licenses and compatible with most document formats and standards. Libreoffice is backed by The Document Foundation, which represents a large independent community of enterprises, developers and other volunteers moved by the common goal of bringing to the market the best software for personal productivity. LibreOffice is open source, and free to download, use and distribute.

A quick overview of the LibreOffice code structure.

Overview

You can develop for LibreOffice in one of two ways, one recommended and one much less so. First the somewhat less recommended way: it is possible to use the SDK to develop an extension, for which you can read the API docs here and here. This re-uses the (extremely generic) UNO APIs that are also used by macro scripting in StarBasic.

The best way to add a generally useful feature to LibreOffice is to work on the code base however. Overall this way makes it easier to compile and build your code, it avoids any arbitrary limitations of our scripting APIs, and in general is far more simple and intuitive - if you are a reasonably able C++ programmer.

The important bits of code

Each module should have a README file inside it which has some degree of documentation for that module; patches are most welcome to improve those. We have those turned into a web page here:

http://docs.libreoffice.org/

However, there are two hundred modules, many of them of only peripheral interest for a specialist audience. So - where is the good stuff, the code that is most useful. Here is a quick overview of the most important ones:

ModuleDescription
sal/this provides a simple System Abstraction Layer
tools/this provides basic internal types: 'Rectangle', 'Color' etc.
vcl/this is the widget toolkit library and one rendering abstraction
frameworkUNO framework, responsible for building toolbars, menus, status bars, and the chrome around the document using widgets from VCL, and XML descriptions from /uiconfig/ files
sfx2/legacy core framework used by Writer/Calc/Draw: document model / load/save / signals for actions etc.
svx/drawing model related helper code, including much of Draw/Impress

Then applications

ModuleDescription
desktop/this is where the 'main' for the application lives, init / bootstrap. the name dates back to an ancient StarOffice that also drew a desktop
sw/Writer
sc/Calc
sd/Draw / Impress

There are several other libraries that are helpful from a graphical perspective:

ModuleDescription
basegfx/algorithms and data-types for graphics as used in the canvas
canvas/new (UNO) canvas rendering model with various backends
cppcanvas/C++ helper classes for using the UNO canvas
drawinglayer/View code to render drawable objects and break them down into primitives we can render more easily.

Finding out more

Beyond this, you can read the README files, send us patches, ask on the mailing list libreoffice@lists.freedesktop.org (no subscription required) or poke people on IRC #libreoffice-dev on irc.freenode.net - we're a friendly and generally helpful mob. We know the code can be hard to get into at first, and so there are no silly questions.