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](http://api.libreoffice.org/) and [here](http://wiki.services.openoffice.org/wiki/Documentation/DevGuide). 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: Module | Description ----------|------------------------------------------------- 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 framework | UNO 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 Module | Description ----------|------------------------------------------------- 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: Module | Description ----------|------------------------------------------------- basebmp/ | enables a VCL compatible rendering API to render to bitmaps, as used for LibreOffice Online, Android, iOS, etc. 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. -4.4'>distro/collabora/cp-4.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/scripting
AgeCommit message (Expand)Author
2023-09-02no need to use UNO_QUERY_THROW hereNoel Grandin
2023-08-25Revert "use more Reference::query instead of UNO_QUERY_THROW"Noel Grandin
2023-08-19loplugin: new global analysis locking2Noel Grandin
2023-08-18use more Reference::query instead of UNO_QUERY_THROWNoel Grandin
2023-07-30Log SSL default verification path for mailmerge debugThorsten Behrens
2023-07-29follow python recommendation and pass SSL contextsCaolán McNamara
2023-04-30Use getXWeak in scriptingMike Kaganski
2023-04-18Avoid NullPointerExceptionStephan Bergmann
2023-03-23rtl::Static to thread-safe-staticNoel Grandin
2023-03-20Fix some errors in the scripting module's XInputStreamImpl:Damjan Jovanovic
2023-02-13Fix/simplify some vnd.sun.star.expand: handlingMike Kaganski
2023-02-12tdf#153571: properly unquote (URL-decode) vnd.sun.star.expand payloadMike Kaganski
2022-12-16check SfxObjectShell::Current()Caolán McNamara
2022-11-22loplugin:unusedfieldsNoel Grandin
2022-10-22use more TempFileFastService in scriptingNoel Grandin
2022-10-17use more string_viewNoel Grandin
2022-10-07tdf#151076 Create callable Python script using InsertTextRafael Lima
2022-08-18Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxxStephan Bergmann
2022-06-23clang-tidy modernize-pass-by-value in scriptingNoel Grandin
2022-06-10LanguageTool Grammar Checker implementationMert Tumer
2022-06-10new loplugin:moveitNoel Grandin
2022-05-31tdf#145527 Revert "Related tdf#116767: Call URLClassLoader.close"Stephan Bergmann
2022-05-20new loplugin:unnecessary lockingNoel Grandin
2022-05-12speed up simple use of NamedValueCollectionNoel Grandin
2022-05-11in SetGlobalUNOConstant, only retrieve old value if we need itNoel Grandin
2022-05-04Just use Any ctor instead of makeAny in scriptingStephan Bergmann
2022-04-29use more string_view in INetURLObjectNoel Grandin
2022-04-17loplugin:stringviewparam convert methods using copy()Noel Grandin
2022-04-02loplugin:stringviewparam convert methods using compareToNoel Grandin
2022-03-20Remove special-casing Windows stderr handlingMike Kaganski
2022-02-14Recheck modules s[a-c]* with IWYUGabor Kelemen
2022-02-03tdf#146742 - Move the initialization code of a method to SbMethod::CallAndreas Heinisch
2022-01-14make comphelper::OInterfaceContainerHelper4 more threadsafeNoel Grandin
2022-01-04osl::Mutex->std::mutex in StringResourceImplNoel Grandin
2021-12-22tdf#143582: Avoid error on clearing leftover return value of a methodMike Kaganski
2021-12-18use more cppu::BaseMutexNoel Grandin
2021-12-10Generally determine Rdb content from gb_*_set_componentfile callsStephan Bergmann
2021-12-03Fix --disable-scripting for DESKTOP buildJan-Marek Glogowski
2021-11-28use more OInterfaceContainerHelper2 in scriptingNoel Grandin
2021-11-24Fix typos and translationsAndrea Gelmini
2021-11-23Add more beanshell samplesSamuel Mehrbrodt
2021-11-08use more OUStringLiteral in MediaDescriptorNoel Grandin
2021-11-07Typo: implemnented->implementedJulien Nabet
2021-10-30Prepare for removal of non-const operator[] from Sequence in scriptingMike Kaganski
2021-10-18Revert incompatible ScriptEditor changeStephan Bergmann
2021-10-15Remove non-const Sequence::begin()/end() in internal codeMike Kaganski
2021-10-14Avoid COW overhead using css::uno::SequenceMike Kaganski
2021-10-01loplugin:constmethodNoel Grandin
2021-08-20New loplugin:unusedcapturedefaultStephan Bergmann
2021-08-20Make some scripts more portableIlmari Lauhakangas