summaryrefslogtreecommitdiff
path: root/sd/source
AgeCommit message (Collapse)AuthorFilesLines
2013-02-22Avoid infinite recursionTor Lillqvist1-1/+1
(cherry picked from commit 0d05957cf0c38abab45030ba172025e4ef318f43) Change-Id: I3085b82a80228211951b5230b7e8d3bcf535e052 Reviewed-on: https://gerrit.libreoffice.org/2269 Reviewed-by: Eike Rathke <erack@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-02-19Surely we want closesocket() on WindowsTor Lillqvist1-0/+4
(cherry picked from commit 49db90342f193f31500b2717cc27bdf2f25e2d95) Change-Id: I91461ae31c9934e6b3176402e2772ba7371f0fdb Reviewed-on: https://gerrit.libreoffice.org/2263 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2013-02-19Fix crashes in sdremote after suspend/resume cycles.Thorsten Behrens2-4/+5
Change-Id: I0f64820887919386f266290ae8b7c53f8a0a5458 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-02-19sdremote: fix linux conditional.Michael Meeks1-1/+1
Change-Id: I911863f07b08e771d78a4a98d9a4f82c93a7d55e (cherry picked from commit da8cf16796b916552e4aa0ab294359f91a9b8c0e) Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-19sdremote: listening to dynamic changes to adapters.Michael Meeks7-34/+124
Allows LibreOffice to start with no bluetooth, and for it to appear and disappear dynamically at run-time, cleaning up stale bluetooth sockets, and re-binding successfully each time. Change-Id: Ifa04c8cc1859c98adca94ac0e57c7ebd85f2f31f (cherry picked from commit 93abe8688a4700c04b5ab045eb296298e1b49031) Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-19sdremote: re-work discoverable property get/set to use libdbus.Michael Meeks2-198/+248
Change-Id: I5e11a0fcfd8db648a40c738cbc8181889cb36136 (cherry picked from commit 618fe83d6e8aeabc309540fae998aeb78465bb4d) Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-19sdremote: switch to a non-blocking socket, and polling glib mainloop.Michael Meeks2-20/+77
Conflicts: sd/source/ui/remotecontrol/BluetoothServer.cxx Change-Id: I84c0a522fe16fbc8fc86a8e4bccb84aec0a1acd1 (cherry picked from commit 0d89d814055d5c267a2cc57e302a23e9f0b521e3) Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-19sdremote: re-write SDP registration to use raw dbus-1 not dbus-glib.Michael Meeks1-84/+161
Conflicts: sd/source/ui/remotecontrol/BluetoothServer.cxx Change-Id: I65ff5e603b6719df69b3c2aef7ff438ad54d23e2 (cherry picked from commit 5a90716b802d281c111e1f4f43f3fefded2c1f81) Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-19improve bluetooth discoverability toggling API.Michael Meeks6-40/+52
Change-Id: I289d43fcb173b64b01183a41f780bc74d2ba0abe (cherry picked from commit 21979643e47e503a20113b1e8e98814717c71ac5) Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-19Merge in Bluetooth code for the Impress Remote for OS XTor Lillqvist13-23/+481
Thirteen commits from master squashed into one commit. Original commit messages in order below, so note that claims are in many cases overridden by later commits. === This is the 1st commit message: Work in progress. It sets up the SDP service record and registers it, and that seems to work. Does not do anything with it yet. I wonder if the current approach to use the standard SerialPort service class will work for Macs, as they by default have one SerialPort service running, "Bluetooth-PDA-Sync", whatever that is. There is no code in the Android app to handle the case of there being several Serial Port services on the computer it wants to connect to, so what happens then when there are two will be interesting to see. (I can't find in the Android API any way to enumerate services that use the same service class. If there was, the app could choose the correct one based on its name.) So probably we should pretty soon switch to using a dedicated service class UUID instead of using the standard serial port one. As we already have the app out in the wild it will probably have to be modified to look for both Serial Port and our own service then? Sigh. === This is the 2nd commit message: Add this single-line file === This is the 3rd commit message: Fix build against Mac OS X SDK 10.4 === This is the 4th commit message: More work on the Impress Remote Control Bluetooth code for OS X Mostly the work of Thorsten, from December, adapted to compile against the current remote control code, and with one or two crucial things added. Plus lots of SAL_INFO calls added; once it works well many of them can be dropped. Does not work properly yet, do not cherry-pick just this to 4.0. === This is the 5th commit message: Nothing in the C standard about sockets === This is the 6th commit message: Fix compilation for Linux and hopefully Windows, too === This is the 7th commit message: Blind fix for WaE: class does not fully implement protocol The Xcode 3 compiler warns: class 'ChannelDelegate' does not fully implement the 'IOBluetoothRFCOMMChannelDelegate' protocol. === This is the 8th commit message: pragma GCC diagnostic is not available for 4.0.1 === This is the 9th commit message: std::vector::data() is C++11 === This is the 10th commit message: WaE: comparison is always true due to limited range of data type === This is the 11th commit message: Be specific in the logging as multiple threads involved Sure, each SAL_INFO output line includes the thread ID, but still, good to avoid confusion from where this line is coming. === This is the 12th commit message: Plug autorelease leak === This is the 13th commit message: Handle gracefully the remote end closing the RFCOMM channel Avoids a crash if one presses the "back" key on the Android remote control. (cherry picked from commit 100ac0876f1038aea7e7ef56f95d008ecc6aea3d) (cherry picked from commit c30e94a9cfc05ca8882fe78749b41207611910fb) (cherry picked from commit bc96a84370fb167ab2c63582c10535992f31768c) (cherry picked from commit f9685dc555cc79fe3a52caf9da39df37da750cd4) (cherry picked from commit dca5d2b1677ebffd1a4ff791c47b33a6252210b2) (cherry picked from commit bd6201ee4df1b7f54b1e768167a88ea5faa38fcc) (cherry picked from commit 05dbe2dda095aee2b595a29b95b5952acbe55e67) (cherry picked from commit c21916ad8a315a9dd7f23bf9aef0576975470a5a) (cherry picked from commit 730cff74c04dc6ec2cfc9cf9dcec172392f50616) (cherry picked from commit 21bec368ad670e368d4b5cadae1c07962710f115) (cherry picked from commit da3d37b968a79ff59fcc4103174b5b6bc3ec74c0) (cherry picked from commit b008101fd754b6b81c4f31e3079f01a21434601d) (cherry picked from commit 6ce04df28c8b5d6043340efe6fdc229b51dd8c36) Change-Id: Ic72b432b2174e2ad31225a1b5fa97c1a79330e48 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-02-15sdremote: hide TCP/IP server selection dialog menu itemMichael Meeks1-8/+18
Now shown only in experimental mode (ie. when TCP/IP is enabled) to reduce user-confusion. Said dialog is not needed for bluetooth. (cherry picked from commit 13cb088a2d8902822e3eb5607ba4cac81ad4d2f2) Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-14fix buildLuboš Luňák1-0/+8
Caused by 185e1be6cd1954b8cc5a302c879384f2549cd060, fix is more or less d0d07cd2975c1fb783d0f8591dd3a4931d1c5be5. Change-Id: Ia7d228139126b3e60370b85c106bc970f4e68cce Signed-off-by: Kohei Yoshida <kohei.yoshida@gmail.com>
2013-02-13Use the remote control same service name on Windows, tooTor Lillqvist1-1/+1
Change-Id: I45ecc4a745722cc6bf1f5017429a3e532200bf03 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-02-13Use a more descriptive name for the Impress Remote Control Bluetooth serviceTor Lillqvist1-3/+3
No point in using a generic "Serial Port" name, or describe it as a "COM Port" (eek). The remote control app doesn't check what the service name is anyway. (It probably should?) Change-Id: I6098110e8c4f62e20c38cf7e6b2071f00dd00515 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-02-13sdremote - fully annotate bluetooth SDP record.Michael Meeks1-8/+15
Change-Id: I3ddfb3e3f93782556ec7fd7a16afbb294d17c013 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-02-13sdremote - cleanup and annotate bluetooth SDP record.Michael Meeks2-8/+77
Conflicts: sd/source/ui/remotecontrol/BluetoothServer.cxx Change-Id: Ie6c3d12387cececce4e169482659cbcbbcfd0975 Signed-off-by: Tor Lillqvist <tml@iki.fi>
2013-02-13ugly workaround for msvc+ccache problem with gbuild MSC defineLuboš Luňák1-1/+3
and squash remove no longer needed hack Conflicts: sd/source/ui/remotecontrol/BluetoothServer.cxx Change-Id: I06ab10df77e2b3598f7268173206429596a50217 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-02-08sdremote - disable the menu item if it is not compiled in.Michael Meeks1-0/+2
(cherry picked from commit 155e27cc4fffb647d116b02e0062d8ce3f8d0ef3) Conflicts: sd/source/ui/view/drviews7.cxx Change-Id: Id054eb611fe86fdaaf1bba8d1e85342a3cc0e146 Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-08sdremote: Disable Impress Remote in the menu also when not allowed in Options.Jan Holesovsky2-4/+15
Conflicts: sd/source/ui/view/drviews7.cxx Change-Id: Ida8a3847a54c5415e1802a6688e110202bac35c1
2013-02-08sdremote: More logging.Jan Holesovsky2-0/+10
Change-Id: I5fe792ddfe1fac5166865c51014d87309d48bab2 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-02-06fdo#58699 - sdremote - fix it so it closes even with no bluetooth.Michael Meeks1-3/+4
Change-Id: I09588f4e4b22466843f855d99c06f616c04518ac Signed-off-by: Jan Holesovsky <kendy@suse.cz>
2013-02-06WaE: private field 'mPreviouslyDiscoverable' is not usedTor Lillqvist1-2/+2
Change-Id: Ib3f16646035fe29aa64608a17f1a3063f9ebde95 Signed-off-by: Jan Holesovsky <kendy@suse.cz>
2013-02-05fdo#59426: Don't try to repair package during flat detection phase.Kohei Yoshida1-0/+7
Change-Id: I35968241a79db0aabe06e25c0efac2aa3d1c5b84 Reviewed-on: https://gerrit.libreoffice.org/1984 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-01-28remove stray SAL_CALL that breaks windows buildLuboš Luňák1-1/+1
Change-Id: Ia3e6f37460e96f463952072ffbf3e76386edb10d (cherry picked from commit 668bec99efb4a15ca0fe364fa3c217baba8a6f27) Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-01-28fdo#59881 - sdremote: give up on threaded / UNO usage.Michael Meeks6-33/+55
Process incoming commands in the main thread in a Timeout, build thumbnail / previews there too - to avoid the deadlocks mentioned in the bug. (cherry picked from commit 58b05ce98e72fe47bdca02d2dabea20c36a494bf) Change-Id: I5f5e8d6fbc2e059d4194f72f3e086e1aa87ab2cc Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-01-28fdo#51232: i#119987# fix Impress crash when pasting text under Outline viewHerbert Dürr1-0/+1
Patch by: Wang Zhe Testing by: Yan Ji Review by: hdu (cherry picked from commit 484621239c7f743f44579d2b199b0347dc4734cd) Change-Id: I340de4f1b626defa52ecc48938c63ec4d1ce5c1d Signed-off-by: Tor Lillqvist <tml@iki.fi> Reviewed-on: https://gerrit.libreoffice.org/1897 Reviewed-by: Joren De Cuyper <joren.libreoffice@telenet.be> Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2013-01-28sdremote: kill memory corruption / mis-matched alloc/free's.Michael Meeks1-3/+3
(cherry picked from commit e99b540d8985b87247519c951e6ef65a01b1f5c9) Change-Id: I253f28d7c83371282adde86c8eaadd6f25beff5a Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
2013-01-23rhbz#760765 copy custom styles on copy & pasteDavid Tardon3-9/+74
Change-Id: Icaacf3bc1a02a017692432aec36aba06d3f5dde5 Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-01-17Resolves: fdo#55974 segfault while closing an Impress fileCaolán McNamara1-0/+7
regression since aa1927dc257b52edf96de220cc3797e02c83a0ae mpViewShell(pViewShell), +mpSlideSorterViewShell( ::boost::dynamic_pointer_cast< ::sd::slidesorter::SlideSorterViewShell >( pViewShell )), both are boost::shared_ptr potentially to the same thing then, given that we reset mpViewShell in ::disposing we presumably have to do the same thing to mpSlideSorterViewShell. add unset check on mpSlideSorterViewShell usages while I'm at it Change-Id: I35f51977c40f946a49789abd9405a4ef84aea0e8 (cherry picked from commit a0d852b2ade42289af1e9b066a48c97aedeff3b1) Reviewed-on: https://gerrit.libreoffice.org/1718 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-01-08Make LO buildable again after the GraphicFilter move.Jan Holesovsky12-14/+14
Conflicts: svtools/Library_svt.mk q# Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c Signed-off-by: Cor Nouws <oolst@nouenoff.nl> Signed-off-by: Olivier Hallot <olivier.hallot@documentfoundation.org> Signed-off-by: Adolfo Jayme Barrientos <fitoschido@ubuntu.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2012-12-21Templates Manager: removed the old dialogs and menu entriesCédric Bosdonnat2-6/+0
Conflicts: basctl/uiconfig/basicide/menubar/menubar.xml extensions/source/bibliography/uiconfig/sbibliography/menubar/menubar.xml framework/uiconfig/startmodule/menubar/menubar.xml sc/uiconfig/scalc/menubar/menubar.xml sd/uiconfig/sdraw/menubar/menubar.xml sd/uiconfig/simpress/menubar/menubar.xml sfx2/inc/docvor.hxx sfx2/inc/orgmgr.hxx sfx2/source/doc/docvor.cxx sfx2/source/view/orgmgr.cxx sw/uiconfig/sglobal/menubar/menubar.xml sw/uiconfig/sweb/menubar/menubar.xml sw/uiconfig/swform/menubar/menubar.xml sw/uiconfig/swreport/menubar/menubar.xml sw/uiconfig/swriter/menubar/menubar.xml sw/uiconfig/swxform/menubar/menubar.xml Change-Id: I5aa9dd8c0bfb95c26bca14962f60041e892ea2ea
2012-12-19fdo#58129 fix ppt export of paragraphsDavid Tardon2-3/+3
Change-Id: I8784c7a84e7f1d3173b6e134377e9232906d77ba (cherry picked from commit 2395a3fb74a90cc3166dbe4722250376eff58547) Signed-off-by: David Tardon <dtardon@redhat.com>
2012-12-18fdo#49277 use correct default tab sizeDavid Tardon1-1/+10
Change-Id: If8e1936b897bfe0f3ae0d791c573267df3381954 Signed-off-by: David Tardon <dtardon@redhat.com>
2012-12-16Compress graphics dialog converted to new widget layout.Tomaž Vajngerl1-16/+11
Change-Id: Ibcf6338f33c40fbe6682a843b4771d51ea5a6845
2012-12-04added Change picture menu item to graphic shape popupRadek Doulik2-0/+2
Change-Id: I6e4927b847ca6990990be1075c8371404736e27e
2012-12-04changed behavior of insert pictureRadek Doulik1-2/+3
- when single graphic object shape is selected, replace the graphic with inserted picture - otherwise proceed as before Change-Id: I767c3ab81abf26c34b612d6aac1f282aa0a53f6c
2012-12-04refactored GetEmptyPresentationObject, added GetSelectedSingleObjectRadek Doulik2-37/+57
- also extracted part of GetEmptyPresentationObject into new GetPage() method Change-Id: I3002c3fae8236db1e443f0f454158e7298b56d70
2012-12-04fdo#56877 CRASH when profile contains invalid RecentlyUsedMasterpagesRob Snelders4-7/+19
Change-Id: Ia875d6b04b5ce6a026a57aaef2c17fc02a503ae9 Reviewed-on: https://gerrit.libreoffice.org/1224 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2012-12-04Styles & Formatting: added Show menu item on hidden stylesCédric Bosdonnat3-1/+7
The command to show hidden styles again was missing. Change-Id: Ic25b0cfc4d021d949124b8c4ef4016d6dba7e39f
2012-12-03fixes for where fast string operator+ is not perfectly source compatibleLuboš Luňák6-32/+28
Change-Id: I80af0399037e4f68113338139e7f2ad2400e65ab
2012-12-03API CHANGE: roll back the XStyle changes to add a new Hidden property on StyleCédric Bosdonnat1-16/+13
Change-Id: If6d23925567fb184cd8fc4e00fc72fe4d216e756
2012-12-03API CHANGE: remove com.sun.star.util.XArchiverMichael Stahl2-2/+0
This interface has been deprecated since OpenOffice.org initial CVS import, and there does not appear to have been an implementation of it, though strangely there was client code using it until 2007. EXISTENCE: published key "/UCR/com/sun/star/util/XArchiver" exists only in registry 1 Change-Id: I8efa29a3d375d7c5c77ae47592b23bec4072d7a0
2012-12-01WaE : declaration of ‘bHidden’ shadows a member of 'this'Julien Nabet1-2/+2
Change-Id: I524691b2f27ac1d57a1a1704b12aed44fb326c16
2012-12-01sd: hide 'enable remote control' checkbox when built without bluetoothMiklos Vajna1-0/+3
Change-Id: I3ee70bdf59abf71228a708f05dba07fd2a873128
2012-11-30API CHANGE: Added XStyle::isHidden() and XStyle::setHidden()Cédric Bosdonnat1-0/+16
Change-Id: I44770c05d51104b45d94145db8263187205daa84
2012-11-30Styles & Formatting: added SFXSTYLEBIT_ALL_VISIBLE and show hidden stylesCédric Bosdonnat1-2/+4
Change-Id: Ie74ec3c15ba270afd0a6864bd5824a5bc0e3ea8b
2012-11-30Allow to hide styles in the "Styles & Formating" dialogCédric Bosdonnat3-2/+13
In its current state, the feature only hides the styles. Things to sort out are: + Add some automatic filter to show hidden styles + Make the visibility persist in the file format Change-Id: I5904f41bb567add7b6bf501c6c5297f9f149a915
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens53-110/+0
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-29Remove unused method & remove header include by using forward declaration.Kohei Yoshida1-0/+1
Also, SvViewDataEntry has lost one friend. Change-Id: Icf6d4127de38fed485cd260edae97748b1f78ede
2012-11-29Pass pointer to view data entry to Paint() instead of its raw flag value.Kohei Yoshida1-5/+9
We need to hide these flags away. Change-Id: I112003a88a92174f5012b3356ba261a039eeccc1