Commit Graph
13 Commits
Author SHA1 Message Date
Noel Grandin 18f2020116 loplugin:constparams
Change-Id: Ic7410f836e584df45101e78e345c8b3c8d355e09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120680
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-08-18 21:18:29 +02:00
Noel a7cf7da8d2 loplugin:unnecessaryvirtual
Change-Id: Ic414b72299b5c5c19e5b37156ac6dec4bedadf65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113038
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-03-24 20:01:06 +01:00
Tomaž Vajngerl 36b9475e7b devtools: don't store locally the object as XIndexAccess
This doesn't correctly read the IndexAccess if we remember it into
a member variable, because we can't rely that the input object is
cast to XIndexAccess, but use a getMainObject method to get a
different object and cast that to XIndexAccess. So the instance
of the object can change (object can be removed or and a new one
added) and we have no way of knowing what the implementation does.

It is possible to cache the XIndexAccess object into a member
variable (if done carefully), but it is prone to the described
problems so let's not remember any intermediate objects for
all DocumentModelTreeEntry subclasses unless we actually have a
performance problem.

Change-Id: I9d9d30d2b43846d473d118d419d407e34d0b1666
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112836
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-03-21 15:57:44 +01:00
Tomaž Vajngerl b24409fce6 devtools: wrongly plural STR_SHEETS, it should write "Sheet %1"
STR_SHEETS value "Sheets %1" was used to name one particular sheet
and souldn't be plural. This changes it to STR_SHEET and the value
to "Sheet %1".

Change-Id: I29390fa19b0d6e1edaea76c6f3fe60ee25ba50f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112835
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-03-21 14:10:10 +01:00
Tomaž Vajngerl dd49d1985d devtools: add some more comments
Change-Id: I12e0154b0286967283bf0157bb29249472159185
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112640
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-03-21 09:19:29 +01:00
Tomaž Vajngerl a873ef6153 devtools: add refresh button for the DocumentObjectTreeView
Change-Id: I4fea7dd2a12bc04649ff62e0d04e3058cf09c884
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112579
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-03-17 00:27:11 +01:00
Tomaž Vajngerl 8ba384f47a devtools: change DocumentModelTreeEntry to do expanding and name
This changes DocumentModelTreeEntry and its subclasses to handle
when to show the expander on the tree view and when not, and to
hold the string of the tree view node, which is passed as a
input parameter. This simplifies the code and makes it easier
to handle. Most of the ideas are from ObjectInspectorNodeInterface
and it subclasses, where this works really good.

Change-Id: I076f80a7c64abd0eb67af7ac0144082611d10076
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112578
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-03-17 00:26:49 +01:00
Tomaž Vajngerl 5b84eae0c1 devtools: add strings for translation in DocumentModelTreeHandler
Change-Id: If2a09e969a5b27a67f977ec931d6eeef1712ce5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112546
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-03-16 03:40:53 +01:00
Andrea Gelmini 24b1067502 Fix typos
Change-Id: Ied3445430ffefbf27674f103c879a606909c9b3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112478
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2021-03-14 22:44:16 +01:00
Tomaž Vajngerl 9932cd89ae devtools: document classes and method, remove unneeded methods
This documents DevTools classes and methods. In addition it also
removes some methods that aren't needed anymore.

Change-Id: I550e2ce197d1565b4f770eb7dd59b2195f2230a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112379
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-03-13 16:30:28 +01:00
Tomaž Vajngerl 9f36bc3a42 devtools: add text portions for paragraphs to DOM tree view
Change-Id: I224ffb230abf1142087b5f2c4a3bd94a11075213
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112107
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-03-11 12:45:54 +01:00
Tomaž Vajngerl 5a3b9b4b34 devtools: move constructors implementation into cxx
Change-Id: Ic1b0b88bebe076e99107f6ae0eb379bb2d2db09f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110735
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-11 15:43:21 +01:00
Tomaž Vajngerl a1ca311061 devtools: move devtools from svx to sfx2
It's a better suited location for devtools as we can access the
classes when we handle the .uno:DevelopmentToolsDockingWindow
event.

Change-Id: I753ca56808804c9cf6713920f92cd7d313f1f156
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110733
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-02-11 12:54:10 +01:00