Commit Graph

95 Commits

Author SHA1 Message Date
Armin Le Grand
5c75cd9517 Resolves: #i123922# Refactored D&D and insert picture from file...
in all apps for all object types to work the same

(cherry picked from commit 080a23dfb836bac49d9496fa1460b9dda9138f65)

Conflicts:
	sc/source/ui/drawfunc/fuins1.cxx
	sc/source/ui/inc/drawview.hxx
	sc/source/ui/inc/viewfunc.hxx
	sc/source/ui/view/drawview.cxx
	sc/source/ui/view/viewfun3.cxx
	sc/source/ui/view/viewfun7.cxx
	sd/source/ui/func/fuinsert.cxx
	sd/source/ui/view/sdview4.cxx
	sw/source/core/frmedt/fecopy.cxx
	sw/source/ui/dochdl/swdtflvr.cxx
	sw/source/ui/inc/view.hxx
	sw/source/ui/inc/wrtsh.hxx
	sw/source/ui/shells/drawsh.cxx
	sw/source/ui/uiview/view2.cxx
	sw/source/ui/wrtsh/wrtsh1.cxx

Change-Id: I7f77d8c0812278ad434fe1c503a03d9747ea0b00
2014-02-07 12:24:46 +00:00
Stephan Bergmann
608953c425 bool improvements
Change-Id: Icac34936bdb551ad517170fd497212513719d2aa
2014-01-28 20:26:23 +01:00
Stephan Bergmann
5668e73beb avmedia: Implement "block untrusted referer links" feature
See f0a9ca24fd "rhbz#887420 Implement 'block
untrusted referer links' feature" for details.  This adds some further /*TODO?*/
comments, and one known problem (marked /*TODO!*/) is that movies/sounds are not
blocked during a slideshow presentation.

Change-Id: Ib2d0c7e4f7b02c4bdec0d8a90cee5e7e1bee8325
2013-11-20 14:44:27 +01:00
Stephan Bergmann
f0a9ca24fd rhbz#887420 Implement "block untrusted referer links" feature
For now, this checks for a trusted referer (if the BlockUntrustedRefererLinks
configuration prop is set) in utl::MediaDescriptor::impl_openStreamWithURL and
SvxBrushItem::GetGraphicObject.  Checking in additional places will probably be
necessary to block /all/ unwanted communication.  Also, some places marked
/*TODO?*/ currently pass in an empty referer (which is always considered
trusted) and will probably need to be adapted.

Ideally, Referer URIs would never be empty (and consistently use something like
<private:user> for cases where access is explicitly initiated by the user and
should never be blocked), but that's a very daunting task, so start small by
identifying the places that potentially need blocking and adding appropriate
Referer URIs there.  Also, Referer information should always be computed as
freshly as possible from the context in which an access attempt is made, but,
again, always carrying the information from the context all the way to the
relevant functions is a very daunting task, so for now store the information
upon object instantiation in some cases (SvxBrushItem, SdrGrafObj, ...).

The Referer URI (css.document.MediaDescriptor property; SID_REFERER) was already
used to track macro execution, and there is one place in
SfxApplication::OpenDocExec_Impl where opening of hyperlinks (explicitly clicked
by the user) is done that needs the current document's URI as Referer to check
execution of macro URIs but needs an empty (or <private:user>, see above)
Referer to not block non-macro URIs.  Special code has been added there to
handle that.

Change-Id: Iafbdc07a9fe925d9ee580d4f5778448f18f2ebd9
2013-11-14 11:13:25 +01:00
Stephan Bergmann
1d3661cf91 Unwind FunctionReference typedef
Change-Id: Iaf1b041adf2220d6b0220a86d8ac0db38b3b8ebc
2013-10-25 15:42:11 +02:00
Ivan Timofeev
4d688beb2b String->OUString
Change-Id: I43ab520187375d75009da43a2f75a541021fdbfb
2013-08-24 22:23:19 +04:00
Armin Le Grand
7c486ba257 Resolves: #i121334# Changed default for charts background to be none...
(from white) to allow fill settings in the various apps to have an
effect

(cherry picked from commit 0050a8e4eace17ed1b55c7ec919edaa0daadc3a7)

Conflicts:
	chart2/source/model/main/PageBackground.cxx
	sc/source/ui/drawfunc/fuins2.cxx
	sd/source/ui/view/viewshe2.cxx

Related: #i121334# turned back chart non-fill defaults...

done the non-fill using tooling when creating new chart modules

(cherry picked from commit af9220c24c9d80e5415d9d7d8f273b28d0d27cdb)

Conflicts:
	chart2/source/model/main/PageBackground.cxx
	sc/source/filter/starcalc/scfobj.cxx
	sd/source/ui/view/viewshe2.cxx
	svx/inc/svx/charthelper.hxx
	svx/source/svdraw/charthelper.cxx
	sw/source/ui/table/tablemgr.cxx

Related: #i121334# deactivated setting chart OLE background to transparent...

for better UI experience and better back-compatibility to other OpenOffice
derivates

(cherry picked from commit 5fa621198a981ea994d9903298e8a1d884ee686b)

Unname unused arguments to prevent compiler warnings.

(cherry picked from commit c3c4df7647d8d4ab1425bb3c7f38932c4adcbe74)

Change-Id: I1b4579aca701a4d637d21d7963b87f637458d0a5
01855cc3d4ec3c321109f924f6de4cdfbec4cd5d
18757f64ae84a415dc781929db4b76f571172ab1
de9879c2e1c249c0d957e4e46723b167ae1a8e90
2013-06-06 17:24:43 +01:00
Michael Dunphy
8546c324ff Remove pass-through header file sot/inc/sot/clsids.hxx
Change-Id: I122669d4ffaf72fb1d5f6fccc98e8a648f31aa23
Reviewed-on: https://gerrit.libreoffice.org/3490
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-20 14:55:56 +00:00
Michael Dunphy
3af6366dee Remove pass-through header files sd/inc/eetext.hxx and sd/inc/app.hxx
Change-Id: Iaccc7c9d81b55ef3a039cb90c4e089ebfc7fe337
Reviewed-on: https://gerrit.libreoffice.org/3487
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-20 12:45:37 +00:00
Armin Le Grand
0a29c5bedd Resolves: #i119287# exchanged hard attributes for OLE and GraphicObject
...with new default StyleSheet for these objects

(cherry picked from commit 2868ea34151cfb623a6a8bf41862d430205d9784)

Conflicts:
	sd/source/core/drawdoc4.cxx
	svx/source/sdr/contact/viewcontactofgraphic.cxx

Change-Id: I4849101de2ac1da83c8fb0f2d68316774982d197

Resolves: #i119287# Adapted to get the needed style as default style
for all SdrGrafObj and SDrOle2Objs. Checked various scenarios, works
well.

(cherry picked from commit bc85939149f7ae5b65343d7f27bf302a8e31d4b1)

Conflicts:
	sd/source/core/drawdoc.cxx
	sd/source/ui/func/fuinsert.cxx
	sd/source/ui/view/sdview4.cxx

Change-Id: I40a17216f5c11ebca073026f62f1e9ab9ddfd119
2013-04-11 11:20:23 +01:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Urs Fässler
c4054a89e6 translation and cleanup of comments in sd/source/ui/func/
Change-Id: Id2603c4d3340a220708272b4b8f73e2a59f36f5b
2013-03-12 20:32:51 +01:00
Luboš Luňák
59074c09b8 remove use of #pragma optimize
All these are years old, guessing from some comments as old
as Windows 9x support. These workarounds do not seem to be needed now.

Change-Id: If67baa5cdefcec33b28696c764b1ed96143b7ccd
2013-01-01 22:39:15 +01:00
Radek Doulik
869031d702 changed behavior of insert picture
- when single graphic object shape is selected, replace the graphic with inserted picture
 - otherwise proceed as before

Change-Id: I767c3ab81abf26c34b612d6aac1f282aa0a53f6c
2012-12-04 16:00:44 +01:00
Michael Meeks
837e2808f7 re-base on ALv2 code. Includes:
Patches contributed by Armin Le-Grand
    #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles...
    http://svn.apache.org/viewvc?view=revision&revision=1293316
    #118485# - Styles for OLEs are not saved.
    http://svn.apache.org/viewvc?view=revision&revision=1182166

    Patches contributed by Andre Fischer
    http://svn.apache.org/viewvc?view=revision&revision=1172128
    http://svn.apache.org/viewvc?view=revision&revision=1172133

    Patch contributed by Ariel Constenla-Haile
    i#118505# - Remove MN_OLE_OBJECT menu item from Draw/Impress
    contextmenu  - CWS contextmenu1
    http://svn.apache.org/viewvc?view=revision&revision=1182915

    Patch contributed by Zhang Jian Fang
    #118876#, Add check if the OutlinerParaObject is created successfully
    http://svn.apache.org/viewvc?view=revision&revision=1243381

restore a re-based rdbedit.
2012-11-28 12:48:36 +00:00
Olivier Hallot
4b641686eb More RTL_CONSTASCII_USTRINGPARAM removals 2012-04-13 20:47:56 -03:00
Olivier Hallot
db08c1ac5e Fix for fdo43460 Part XXXI getLength() to isEmpty()
Part XXXI
Modules
sd
2012-01-10 23:08:01 -02:00
Michael Stahl
e8a54ef88d add avmedia::EmbedMedia
This new function is used by sc,sd,sw to embed media in the document storage.
2011-12-03 00:48:15 +01:00
Michael Stahl
18ab7abaa9 MediaWindow::executeMediaURLDialog: add link button 2011-12-03 00:48:14 +01:00
Norbert Thiebaud
2a71139535 remove include of pch header from sd 2011-11-27 13:20:56 -06:00
Caolán McNamara
bca3c46249 adjust for return by ref instead of pointer 2011-05-20 15:22:48 +01:00
Bjoern Michaelsen
c61cd1a5a2 Merge commit 'ooo/DEV300_m101' into integration/dev300_m101 2011-03-12 20:06:58 +01:00
Thomas Arnhold
310a174012 Remove unused misc.hxx and its references 2011-03-01 23:33:43 +01:00
Guillaume Poussel
cd4a86b717 Remove all bogus comments in impress. 2011-02-08 19:09:12 +01:00
Carsten Driesner
3d6bed44c8 removetooltypes01: #i112600# Remove tools types from sd 2011-01-17 11:41:00 +01:00
Takeshi Abe
4ef564882d Remove dead codes from sd 2010-12-05 17:11:00 +00:00
Gert Faller
1645ea4b42 RTL_CONSTASCII_USTRINGPARAM macro 2010-11-02 21:10:06 +00:00
Sebastian Spaeth
80b0861510 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-13 10:57:43 +02:00
Petr Mladek
8e7505f5f5 remove include guards using fixguard.py 2010-10-05 18:20:54 +02:00
Thorsten Behrens
dd5adf0cd9 linkwarn-dlg-in-apps.diff: Wire up link warning dlg in applications.
n#348149
2010-08-25 22:59:10 +02:00
Mathias Bauer
de0d3255d1 CWS changehid: resync to m84 2010-07-13 14:38:37 +02:00
Mathias Bauer
e2280d56bf CWS changehid: #i111874#: change code to support HelpIds as byte strings 2010-07-10 18:21:24 +02:00
Christian Lippka
a7df737242 fixed unix warnings 2010-04-13 12:10:03 +02:00
Christian Lippka
1c858f73a9 renaissance2: merge to m73 2010-03-12 20:13:16 +01:00
Christian Lippka
55525d4462 more fixes for new presentation layout shapes 2010-02-25 18:04:05 +01:00
Christian Lippka
8ebd9d44d4 unix build fixes 2010-02-24 13:01:59 +01:00
Christian Lippka
1294294cc6 presentation placeholder rework 2010-02-23 00:23:09 +01:00
Vladimir Glazunov
bcdb702df7 CWS-TOOLING: integrate CWS changefileheader2 2010-02-17 10:32:35 +01:00
Jens-Heiner Rechtien
9e19ff00c7 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Christian Lippka
65bbc166f9 fixing tables&diagram as placeholders 2010-02-09 18:14:49 +01:00
Mathias Bauer
beef7ed3c1 #i107450#: move more code out of svx 2010-01-13 22:25:07 +01:00
Mathias Bauer
7244b6bb5d #i107450#: build all other modules with new editeng lib 2010-01-08 18:32:51 +01:00
Christian Lippka
b71823a291 merge to m68 2010-01-04 15:43:22 +01:00
Christian Lippka
1be43c60fb renaissance01: #i107213# further layout work, initial support for new layout toolbox control 2009-12-03 18:53:41 +01:00
Mathias Bauer
0cc66aaf75 #i103496#: split svtools; improve ConfitItems 2009-10-16 00:05:16 +02:00
Mathias Bauer
aaa5507815 #103496#: move VCL free ConfigItems to unotools 2009-10-06 07:38:24 +02:00
Oliver Bolte
98bd0fd01c CWS-TOOLING: integrate CWS impress166
2009-01-27 11:42:29 +0100 af  r266972 : #i98508# Handle non DrawViewShell view shells correctly.
2009-01-21 10:41:32 +0100 af  r266635 : #i98069# Do not call PreModelChange() for every ModelLock.
2009-01-20 15:25:41 +0100 af  r266588 : #i98069# Added friend declaration that became necessary on Solaris after recent changes.
2009-01-19 13:48:47 +0100 af  r266493 : #i97478# Prevent SID_PARASPACE_(DE|IN)CREASE from crashing when style sheet is missing.
2009-01-16 11:52:37 +0100 af  r266411 : #i97338# Check the dispatcher before using it to show a context menu.
2009-01-15 14:33:55 +0100 sj  r266373 : #153716# taking care of font-independent line spacing (editmode and hittest)
2009-01-15 14:29:46 +0100 sj  r266372 : #153716# taking care of font-independent line spacing also in presentation styles
2009-01-14 14:04:16 +0100 af  r266301 : #i97634# Do view change synchronously.  Use shared pointers for view shells.
2009-01-14 14:01:27 +0100 af  r266300 : #i97634# Added non-API methods that update the configuration synchronously.
2009-01-14 13:34:40 +0100 af  r266295 : #i98069# Be more carefull with handling model updates to avoid assertion regarding number of selected pages.
2009-01-14 11:34:57 +0100 cl  r266270 : #i97261# force outliner para oibject after text edit
2009-01-14 10:49:08 +0100 cl  r266269 : #i97413# dispose cell undo action if shape dies
2009-01-13 18:50:05 +0100 cl  r266247 : #i97347# fixed cell undo crash
2009-01-12 14:16:56 +0100 af  r266156 : #i97296# Using is() method to check WeakReference for validity.
2009-01-12 13:52:00 +0100 af  r266155 : #i97190# Turned static_cast to dynamic_cast in CreateChildList.
2009-01-12 13:06:57 +0100 af  r266153 : #i97552# Catching Exceptions caught while accessing OLE-Object that is to be inserted.
2009-01-12 13:06:37 +0100 cl  r266152 : #i96164# applied patch to fix ambiguous operation
2009-02-12 12:44:26 +00:00
Rüdiger Timm
9e4af741b7 INTEGRATION: CWS changefileheader (1.47.130); FILE MERGED
2008/04/01 15:34:35 thb 1.47.130.3: #i85898# Stripping all external header guards
2008/04/01 12:38:54 thb 1.47.130.2: #i85898# Stripping all external header guards
2008/03/31 13:58:05 rt 1.47.130.1: #i87441# Change license header to LPGL v3.
2008-04-10 19:20:15 +00:00
Kurt Zenker
5ac6d191c0 INTEGRATION: CWS mingwport06 (1.46.78); FILE MERGED
2007/08/24 13:11:35 vg 1.46.78.1: #i75499# pragma is for MSVC
2007-09-06 12:55:56 +00:00
Oliver Bolte
2ff1088577 INTEGRATION: CWS chart05 (1.45.12); FILE MERGED
2007/05/30 08:17:19 bm 1.45.12.1: #i77917# consolidate setting defaults for charts in one method of the view shell, also set the border to none (changed default)
2007-06-11 13:53:54 +00:00