Commit Graph

14427 Commits

Author SHA1 Message Date
348d7f6170 sd: enable insert graphic when UNO command has URL file argument
When LOOL requires to insert a graphic, it uses UNO command ".uno:InsertGraphic", 
and the corresponding URL file image argument.

However Impress, ignores URL file image argument, and by default
pop up a dialog, so no image is inserted in LOOL.

Change-Id: If1939247f5df0bb4e7daf8816a2306e34419ae2f
Reviewed-on: https://gerrit.libreoffice.org/20747
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2015-12-17 14:08:39 +00:00
3d3e95d685 impress's AnnotationWindow is the only user of WB_NEEDSFOCUS
Here it is creating a toplevel floating system window which needs special
hackery to function.

Instead convert it to a non-system window which means that it is in reality
only a vcl construct. The small downside is that it is now unable to leave the
confines of the toplevel system window in which it lives. Upside is that
all the special hackery related to it which generally doesn't work half the time
in various window managers and now in wayland can go away.

Change-Id: I7ad7c35091086f7671ff4a178c7fa04202c20e09
Reviewed-on: https://gerrit.libreoffice.org/20745
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-17 09:10:46 +00:00
7dd77a1271 Remove unused ToolPanel (aka TaskPane)
Superseded by the Sidebar

Change-Id: I54970d71cd9d42de4f47b223e50dd9474b40632a
Reviewed-on: https://gerrit.libreoffice.org/20724
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-12-17 08:27:55 +00:00
5b44a9733a sw, sd, sc: clean up no longer necessary isTiledRendering() member functions
Change-Id: I508a29fd261865771d780b1c241841d9abfeb6ed
2015-12-17 09:16:28 +01:00
291f55edf3 assert that no ODF import happens without a BaseURL
Change-Id: I4520a9d0350349cb083ed627a19264a3a97e090f
2015-12-16 20:37:39 +01:00
d0cf72f253 sfx2: clean up no longer needed SfxObjectShell::isTiledRendering()
Change-Id: Ia4fb0b489509364c641f8e1e695353bbdb036b59
2015-12-16 09:14:31 +01:00
6381fe554a tdf#96206: Avoid scaling objects while copying to clipboard
... to prevent duplicating masters on slide copy-paste.
Also fixed a 10-year copy-paste error (pRefPage wasn't replaced
with pNPage).
Fixed argument evaluation order issue (aStream.GetEndOfData()
depends on Flush() but doesn't call it, so will return incorrect
result if called before aStream.GetBuffer()).
Replaced compare of hashes with results of stringify(),
because it removes useless overhead (hashes are calculated from
stringify() anyway, and are not cached anywhere).
Removed Flush() called from SvMemoryStream::GetBuffer(), because
it calls GetData(), which calls Flush() itself.

Thanks to Andras Timar for unit test framework.

Change-Id: Ia46d4e9a017fc628d424949a9d229045a249a4ca
Reviewed-on: https://gerrit.libreoffice.org/20367
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-12-14 09:05:21 +00:00
e67a834c5d Resolves: tdf#93994 flush API objects at load time
When importing SdrObjCustomShape for each an Outliner and a
VirtualDevice as RefDevice are created and held. On 32bit systems this
breaks the import with many such objects (in the bugdoc around 4300). On
64bit it works, but more memory as necessary is used. To avoid this,
flush the UNO API implementations at these objects after one page is
imported.  Do not do this for each single object, that will break the
connector import which does some processing later.

Change-Id: I7296edd40f01c1a40258808d78bf39e6d4fe29bf
Reviewed-on: https://gerrit.libreoffice.org/19990
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-12-11 17:10:14 +00:00
f1df105639 Revert "Impress/Draw: Open Navigator in the Sidebar"
This breaks starting a slideshow with Navigator visible.
Also leads to problems like tdf#96286
Needs more thought & design.

This reverts commit 6f493f9e379af1e005b85606c6aab515726be993.

Change-Id: Ia796de5a8ef0be61f36517bc0aa896c66a95c1e8
2015-12-11 12:56:47 +01:00
58d8d8ac67 tdf#69977: uno::Sequence is expensive
when used as a mutable data-structure. Plain std::vector halves the time
taken to display the chart dialog

Create a class to represent the std::vector we are going to be passing
around, and move some of the utility methods into it to make the code
prettier.
Also create an optimised append(&&) method for the common case of
appending small temporaries.

Change-Id: I7f5b43fb4a8a84e40e6a52fcb7e9f974091b4485
2015-12-11 10:11:23 +02:00
fb8a3fac5d loplugin:nullptr: More NULL -> nullptr automatic rewrite
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d
2015-12-10 08:06:06 +01:00
4754afddc3 Use unique_ptr out-arg to in SfxBindings::QueryState to avoid mem leaks
Change-Id: I35df02de675068478a36ef05266ffc2d3054b07f
Reviewed-on: https://gerrit.libreoffice.org/20477
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-12-09 07:16:34 +00:00
1a18c92a52 consolidate MSO format ClassID magic numbers in msfilter/classids.hxx
Change-Id: I673eeaa4168f769cb002995c43d986ee5f2030b2
2015-12-08 22:11:43 +01:00
6f9bb9bd76 Remove image color conversion menu from Impress
In impress there is (or was) a submenu "Mode" for images that
containted color transforms for images to various bitdepths and
palettes. The action is destructable - which means the original
is replaced by a new image. This also has little use today as I
don't think many people want to shrink image (byte) size this way.
The only useful transform is to 8-bit indexed for certain types
of images to save space without a bigger color degradation, but it
makes more sense to add this option to "compress image dialog".

Change-Id: I7450b2ec3507fb5d180cbd1ec879cb5560a2dd22
2015-12-04 18:23:50 +01:00
9ec0e6d9cb sd: replace embedded mDNSResponder code with proper external tarball
The diff against the 379.37 release is 2500 lines, one of which
actually does anything at runtime (missing va_end()).

Change-Id: I1824e61fd4ac6c3ce28084913a2661134a03fd51
Reviewed-on: https://gerrit.libreoffice.org/20248
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-11-30 13:11:10 +00:00
7dcbc5708a silence mouse release warning
Change-Id: Ie3c6da36f1c462080f78e8713e9e5dcd228fbacf
2015-11-30 10:34:34 +00:00
ec3f724158 loplugin:unusedfields
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864
2015-11-30 10:34:38 +02:00
c098227ca3 -Werror,-Wwritable-strings
Change-Id: I01f63a28651c05cf1bba244daa6bd066cc4c04ac
2015-11-28 14:00:07 +01:00
77838efb07 Use proper return type for DNSServiceRefSockFD
...which is e.g. unsigned long long for Windows 64-bit (and declaring the
function in dns_sd.h is not necessary, and the dnssd_sock_t typedef is not known
there)

Change-Id: Iaa0eb03a83b76200204ba905313bcc27b5007b39
2015-11-28 14:00:07 +01:00
49a32f4b2f replace a MessBox with a MessageDialog
Change-Id: Icf8cf2288f8d7000d885f8f63d39c294a0fc596b
2015-11-27 15:13:45 +00:00
a508f639a0 mark UNO structs as SAL_WARN_UNUSED, where possible
Change-Id: Ie3de518f60c9f1313c68df54dbdc1fb2804f1f0d
2015-11-26 13:26:25 +02:00
3c100a9c61 coverity#1340228 try and silence Resource leak
Change-Id: I654fc22bbab2301e74cf200577f934e56f77fb58
2015-11-25 15:45:58 +00:00
378f500bf6 coverity#1340222 Logically dead code
This is (worrying) fall-out from

commit 229fc164dc1773484b74eca016863cf68860e81b
Author: Philippe Jung <phil.jung@free.fr>
Date:   Fri Jul 10 17:02:44 2015 +0200

    Impress: Rework the way the display modes are presented.

Change-Id: I00d19b2d3cec4d505d17ba4031f6763c86395f74
2015-11-25 15:45:58 +00:00
f4ac785494 coverity#1340227 Missing break in switch
Change-Id: I30ea6cea81ae1b4f344e253c7a51cfef4d844128
2015-11-25 15:45:58 +00:00
c5bfac3f26 coverity#1340226 Missing break in switch
Change-Id: Ibd1c15ce65501d4dc6d0cea8c8e5f4e683d1b7a4
2015-11-25 15:45:58 +00:00
1f86864e97 loplugin:unusedfields various
Change-Id: I59d9f7f73677358b4ae57efda965d43718bdf0d5
2015-11-25 13:57:29 +02:00
85c758a461 loplugin:unusedfields in include/sfx2/
Change-Id: I3eb27ed10e82ee56b33866ac576c1b1f8c9756b9
2015-11-25 08:25:09 +02:00
5468446041 -Werror,-Wunused-private-field
Change-Id: I592db0524cb1d028e7dd3c3d49457f4a4038d5be
2015-11-24 13:01:10 +01:00
70b09d9322 cppcheck: noExplicitConstructor
Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
2015-11-24 10:35:44 +00:00
b639fe60ea VirtualDevices either match another device depth, or are 1 bit
cairo can therefore always render to a svp virtual device with
need for a fallback

Change-Id: I5d03ae541820389e26f7448444444be009fb28a4
2015-11-23 14:25:59 +00:00
c43a3a5867 establish that Virtual Devices either match Physical Device depth or ...
are 1 or (rarely) 8 bit and lock that down.

Change-Id: I3d946ebef34ffb71c5adea7aa420af50e9584e05
2015-11-23 14:25:59 +00:00
980fe3f791 loplugin:unusedfields in sd/
Change-Id: Id6da990828ece02132032285116f3a20de423519
2015-11-23 13:30:53 +02:00
1fdddad68a Remove superfluous line in license header
Change-Id: Ife858b771ecee5cc84a5ad185b8a74b69ec00655
2015-11-22 15:30:15 +02:00
9cd20bc273 cppcheck: fix 1 memleak (fusel.cxx)
Change-Id: I6201d926e6987f231ce11ab6d3a502e8034b4818
Reviewed-on: https://gerrit.libreoffice.org/20114
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-11-22 09:57:44 +00:00
b388be4ec8 cppcheck: fix 1 memleak
Change-Id: Ic738033bc9a10df4ddc26c4538a6969d389dc631
2015-11-22 10:01:11 +01:00
6f493f9e37 Impress/Draw: Open Navigator in the Sidebar
Change-Id: I9a4ba3fd9c3909ccc5dfc459478a7b9b59fdc70e
Reviewed-on: https://gerrit.libreoffice.org/20050
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-20 06:56:53 +00:00
b0339005b8 loplugin:sallogareas
Change-Id: I2220ab194384fb397716bf3227d38716ba54f537
2015-11-19 16:05:35 +01:00
db7959eeac Let's see if this fixes Jenkins build
Change-Id: I007bc7b30c6f1c52ce2d69c63a43cbe4a11e809c
2015-11-19 10:57:50 +02:00
cfaa269832 Further cleanup of 229fc164dc1773484b74eca016863cf68860e81b
Change-Id: Iaafc02f7c925c82b6bd7f98dd875028880b8788d
2015-11-19 10:48:40 +02:00
2554efabb6 use comphelper::containerToSequence
in chart2, we remove a local equivalent of the method

Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
2015-11-19 09:33:29 +02:00
db5358764f Code cleanup for gerrit change 16723
Simple code clean-up taking into account Maxim Monastirsky remarks.

Change-Id: If6393851c3eb6fd8a460ef95ef88ccf3aed82e3e
Reviewed-on: https://gerrit.libreoffice.org/20047
Reviewed-by: Philippe Jung <phil.jung@free.fr>
Tested-by: Philippe Jung <phil.jung@free.fr>
2015-11-18 23:36:25 +00:00
59095c7978 pptx: import/export of honeycomb slide transition
Change-Id: I3edb77d5b046691e64d600d61dcd44e892c31301
2015-11-18 18:28:04 +01:00
57924b617e loplugin:nullptr
Change-Id: I57ac7deb1c997adfa656aa0a3c9a1ae82b66cf15
2015-11-18 18:15:03 +01:00
e8642a0217 loplugin:nullptr
Change-Id: Ia908a67106afee5c9f67c0eb4fb3e9b073329bf8
2015-11-18 17:59:46 +01:00
479325dec8 vcl::ITiledRenderable::initializeForTiledRendering: support init. arguments
Change-Id: I9a6a75457078dc6383673f4c1a2012b69b5cefdd
2015-11-18 16:39:18 +01:00
5da5076871 Unify menu-based toolbar controllers
The new GenericPopupToolbarController takes by default
the popup menu controller that registered for the same
.uno:Something command, and sets ToolBoxItemBits to
ToolBoxItemBits::DROPDOWNONLY. If a different command
specified using the "Value" property - takes the popup
menu controller that registered for this command, and
sets bits to ToolBoxItemBits::DROPDOWN.

Change-Id: I75c5300bd27fcc9f618f2ee0df2aa6aefd088239
Reviewed-on: https://gerrit.libreoffice.org/20040
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-11-18 15:16:58 +00:00
229fc164dc Impress: Rework the way the display modes are presented.
TODO: take into account remarks from Gerrit

New combo to select display mode among:
 - Slide edition (Normal)
 - Outline
 - Notes
 - Slide sorter
 - Slide master
 - Notes master
 - Handout (master, as we are designing the template used to generate
   the handout)

The combo is based on uno command .uno:DisplayMode

Center pane tabs are hidden by default. A new uno dispatch
command (.uno:ToggleTabBarVisibility) is available to show/hide
this tab bar.

Modified uno dispatch commands:

No uno name has been modified.

.uno:DiaMode :
SID_DIAMODE renamed SID_SLIDER_SORTER_MODE

.uno:OutlineMode
SID_OUTLINEMODE renamed SID_OUTLINE_MODE

.uno:NotesMode
No change

.uno:HandoutMode
SID_HANDOUT_MODE renamed SID_HANDOUT_MASTER_MODE
All internal code also considers the edit mode as master

.uno:SlideMasterPage
SID_SLIDE_MASTERPAGE renamed SID_SLIDE_MASTER_MODE
If the input parameter SfxBoolItem Isactive is true or not provided,
activates Slide Master mode. If parameter is false, activates the
"Normal" (slide editing) mode.

.uno:NotesMasterPage
SID_NOTES_MASTERPAGE renamed SID_NOTES_MASTER_MODE
If the input parameter SfxBoolItem Isactive is true or not provided,
activates Notes Master mode. If parameter is false, activates the
"Notes" mode.

Modified behaviours: Now only one mode can be chosen. It is possible to
navigate from a mode to any other mode.
Previous behaviour: the following navigation
     Normal -> Slide Master -> Notes -> Normal
was displaying slide master. It was required to activate Normal once more
to get back to normal.
Now the same commands will display the requested mode.

Still to come (at least):
- Fix reopen the last display mode.
- Center pane tabs are now presenting all buttons for all modes (TODO).

Change-Id: I11ab59d2f3caa9149260c5e55d44d598d0ce3390
Reviewed-on: https://gerrit.libreoffice.org/16723
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2015-11-18 14:09:27 +00:00
53f16c39f5 remove unused typedefs and inline use-once typedefs
and improve the script a little

Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84
Reviewed-on: https://gerrit.libreoffice.org/20033
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-18 10:38:08 +00:00
d30a44aff1 Removal of SID_TITLE_MASTER related code
i35731 fixed a bug by deprecating SID_TITLE_MASTER
dispatch command in 2004.
So the feature can not be called anymore since 2004.
Ten years after, this changeset removes the code that could be
considered as dead code.

Change-Id: Ie212baf7ece2897578d2494030d790bcadd16f5f
Reviewed-on: https://gerrit.libreoffice.org/16933
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-18 08:44:39 +00:00
6d47aa90fc use unique_ptr for pImpl in sd/
Change-Id: I7098c1dd51fe27e424d612b2503fa842ced77639
2015-11-18 08:35:34 +02:00