Commit Graph

869 Commits

Author SHA1 Message Date
f50a367738 convert MSG_COMCORE_ASKSEARCH with custom buttons to .ui
Change-Id: I5066c850a22a9dcf0778878a160bbedee6fba81d
2014-08-25 16:45:28 +01:00
30ae83c268 fdo#82577: Handle KeyCode
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11
KeyCode typedef.

Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-23 22:33:30 +03:00
0a1256a9d7 fdo#72695: avoid double-free race condition for SwXBookmark/SwXFieldmark
Change-Id: I92838d75f5573e4b626b94ef446f464be1b39b67
2014-08-20 16:40:11 +02:00
17ccc09ec2 fix crash on loading ooo83574-1.doc
Change-Id: Ia959dde8bac2d663cf1a5bec0358ee89dcaf42ed
2014-08-20 10:04:32 +01:00
d33db207e2 Fix input field tab handling
When searching for the current field in the field list to find the
previous or next one, we check the field start and compare it with
the cursor position.
But with the new input fields, the cursor can actually be anywhere
in the field, so we actually have to search for the start position
of the input field at the cursor position.

Change-Id: I26526524eccfdbea41c6bf69a460fa64248f50ca
Reviewed-on: https://gerrit.libreoffice.org/10837
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-17 16:25:12 -05:00
5494954b26 Refactored IDocumentLayoutAccess out of SwDoc.
Into the new class DocumentLayoutManager.

Change-Id: I02d0cfcc63633d0bdab380508b2ef563187fd269
2014-08-12 23:26:38 +02:00
64e13a1456 Refactored IDocumentState out of SwDoc.
Into the new class DocumentStateManager.

Change-Id: I91c9097b091ff6118d58fd15fff2a4cefe0171fd
2014-08-12 23:26:38 +02:00
69e5f335ab Refactored IDocumentFieldsAccess out of SwDoc.
Into the new class DocumentFieldsManager.
Removed SwDoc::_MakeFldList because it is not defined anywhere.
Also moved a few non interface methods that belong to the manager.

Change-Id: Icefd7ca7adcbb05a18d6fae0529fc54150b862fd
2014-08-12 23:26:36 +02:00
274f1811b9 Refactored IDocumentRedlineAccess out of SwDoc.
Into the new class DocumentRedlineManager.
Added an non const version of GetRedlineTbl to the interface.
Also Moved SetAutoFmtRedlineComment which is not part of interface.

Change-Id: I600d5821d5d5831557f5fc5375fb1203fe67a295
2014-08-12 23:26:36 +02:00
3dafed2ede -Werror,-Wundefined-bool-conversion
Change-Id: Iff8db4c82abeeed0789d7012223a846f1058c353
2014-08-12 12:19:43 +02:00
262bde9b3e simplify SfxItemPool::GetPresentation
drop the ePresentation parameter, since all 4 of the callsites use
SFX_ITEM_PRESENTATION_COMPLETE as the parameter value,
and just inline the value into the method.

Change-Id: I42c8eae82837c9f9d4edc886d7c760f57b129125
2014-07-23 13:26:17 +02:00
05dda9a913 SwpHintsArray/SwpHints and related: sal_uInt16 to size_t
Change-Id: I9a7674109b05683287e12cbce6bc417b40ca5084
2014-07-22 23:50:42 +02:00
f634ec520f Refactored IDocumentContentOperations out of SwDoc.
Into the new class DocumentContentOperationsManager.

Made SwNodes in sw/inc/ndarr.hxx friend class to
DocumentContentOperationsManager so it can call DelNodes at end of
DocumentContentOperationsManager::DeleteSection .

Added DeleteAutoCorrExceptWord to SwDoc, its needed in the Manager.

Added a non const version of SwDoc::GetDfltGrfFmtColl() to SwDoc
because its needed in the Manager.

Made SwDoc a friend class to DocumentContentOperationsManager so it
can call SwDoc::checkRedlining and SwDocL::_MakeFlySection.

Moved SwDoc::CopyImpl_ , SwDoc::CopyWithFlyInFly and
SwDoc::CopyFlyInFlyImpl into the Manager.

Moved "struct ParaRstFmt" and "lcl_RstTxtAttr" from docfmt.cxx
in DocumentContentOperationsManager.hxx .

Change-Id: Icaab57f4a8c158a85e549ecb4aacc752bc95bbc9
2014-07-15 15:44:04 +02:00
54ca3a6efa Refactored IDocumentLinksAdministration out of SwDoc.
To the new class DocumentLinksAdministrationManager.
Additional to the Interface methods SwDoc::SelectServerObj was also moved
and sw/source/core/doc/docdde.cxx was deleted as it became empty.
Also fixed OUString usage in IDocumentLinksAdministration.hxx .

Change-Id: I1f2bf0881a7d4add9c657b6441851ae14ad8d161
2014-07-15 15:44:03 +02:00
dac4ca5f68 new loplugin: externalandnotdefined
Find "missing headers," where a function is declared directly in the
.cxx (as extern) and not defined, and should arguably instead be declared
in an include file.

Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-07-11 14:12:25 +02:00
ee42c38400 coverity#1213080 Explicit null dereferenced
Change-Id: I8f696307164c30d1fd2b1214171982da426cf9b8
2014-07-07 10:48:25 +01:00
e2080e70fe new compilerplugin returnbyref
Find places where we are returning a pointer to something, where we can
be returning a reference.
e.g.
   class A {
     struct X x;
     public X* getX() { return &x; }
   }
which can be:
     public X& getX() { return x; }

Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-06-24 11:34:21 +02:00
3da32e1fd2 Fix some warnings
Change-Id: Ib661af2ab2ad2e95890edb1edf979a82e67a9443
2014-06-24 08:54:18 +02:00
7e88182f67 Avoid "must return a value" warnings
Change-Id: I2b8ac2204ec4f47dcce033da18e31b8bb5285552
2014-06-12 16:20:01 +02:00
3070914cf4 avoid undefined null-reference in CrossRefBookmark::GetOtherMarkPos()
CrossRefBookmark::GetOtherMarkPos() is apparently not supposed to be
called, so just replace the undefined null-reference with a call to
abort().

Change-Id: Ie8e141d661b870573092d20bd85fa1ae04506421
2014-06-11 16:08:34 +02:00
2da8a60702 Revert "Change sw::mark::IMark::GetOtherMarkPos return type from ref
... to pointer"

CrossRefBookmark::GetOtherMarkPos() is apparently not supposed to be
called, so just replace the undefined null-reference with a call to
abort().

This reverts commit dcf0ac048ce745774f401ada72b051757298c559.

Change-Id: I55b4accb4f42031df5671e8a30897e3aff9b56f9
2014-06-11 16:08:34 +02:00
dcf0ac048c Change sw::mark::IMark::GetOtherMarkPos return type from ref to pointer
...so CrossRefBookmark::GetOtherMarkPos can legitimately return a null pointer

Change-Id: I88774cf0d139d017d67d6727ee01214997a73636
2014-06-10 19:44:04 +02:00
44202fed1f coverity#1213246 Dereference null return value
Change-Id: I682a1e912728d6e52df258c7528e358f2883b323
2014-06-05 21:14:22 +01:00
690c6787b4 Resolves: #i125024# remove code regarding table selection...
as it is not used any more.

(cherry picked from commit 65f39887f41e701b699fd2e51da803d116766eb8)

Conflicts:
	sw/source/core/crsr/viscrs.cxx
	sw/source/core/inc/rootfrm.hxx
	sw/source/core/layout/trvlfrm.cxx

Change-Id: Ia37e73a515a8f5d0218e4e4144e75f18449599c9
2014-06-05 16:39:29 +01:00
6f77ce5870 Removed DocumentSettingManager methods from SwDoc.
And moved all calls to those methods to GetDocumentSettingManager().

Change-Id: I9b6cc8c3aa9b57bbc0c39f39499dfb4f5f254ad9
2014-06-03 19:12:02 +02:00
0a3fe4c281 Remove ASCII art and useless comments from sw module
Change-Id: I3ba4ac78fd4810e006b1034bbe7c28b1803895d2
Reviewed-on: https://gerrit.libreoffice.org/9494
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-27 01:46:44 -05:00
df184a5352 coverity#705484 Dereference null return value
Change-Id: I8bdce34356b50e3b0add4ddedd26bb47d67114ad
2014-05-23 14:16:12 +01:00
3c1e30b77d Correct common misspellings, and remove some ASCII art along the way.
Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c
Reviewed-on: https://gerrit.libreoffice.org/9356
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2014-05-17 12:38:38 +00:00
6093787ceb coverity#705484 Dereference null return value
Change-Id: I8ba236e64994c6e37e1a782cc911df57cb902f86
2014-05-15 10:21:24 +01:00
3507190c9b coverity#704855 Unchecked dynamic_cast
Change-Id: I25f3d1f53451cd16f6fd05b1084af79fea56b803
2014-05-06 21:58:47 +02:00
ea7a9c06d2 coverity#704854 Unchecked dynamic_cast
Change-Id: I6d7f6e035bb0dcc86f8aebfdfa4b7f9521bc8820
2014-05-05 21:11:41 +02:00
4a9b8cf5f4 coverity#704849 Unchecked dynamic_cast
Change-Id: If22324ea65a45ac93f6c4b9cbaf9cfb11ef91195
2014-05-05 21:11:40 +02:00
4f9b21248f simplify ternary conditions "xxx ? yyy : false"
Look for code like:
   xxx ? yyy : false;
Which can be simplified to:
   xxx && yyy

Change-Id: Ia33c0e452aa28af3f0658a5382895aaad0246b4d
2014-05-05 12:47:48 +02:00
f99f4dc93f Fix d0b3832bedf65d
Turns out, my logic was wrong in any case. Remove errant not.

Change-Id: I735ee1b4364060aa1476160777e196878a5a208e
2014-05-02 03:34:44 +10:00
d0b3832bed Fix 6b431b1f0d397067504b5300d49e10e232936836
Pushed wrong branch. Oops, sorry.

Change-Id: I592cf16c7af3c5e37a03eee79e5822dcc0b39225
2014-05-02 03:19:44 +10:00
6b431b1f0d coverity#708922 Use after free
Change-Id: I54c098ca4744d33d2f8e1a7799ba6bd5620ed987
2014-05-02 02:01:24 +10:00
6aa35db393 sw: sal_Bool->bool
Change-Id: I324a0ffde2ddcca105451c19e7aadcfad15211d8
2014-04-30 08:44:42 +02:00
371046c6a3 add missing modelines to cxx and hxx files
some of them have no copyright header

Change-Id: I9c2c0c859dabe231cb29af29290847e7b4aa46a3
2014-04-24 11:58:15 +02:00
97a5ba4a71 remove comments why a file gets included
also remove some commented out code

Change-Id: Ia80c5c57d8d2a74418032de50eee95642cc0969d
2014-04-21 18:08:28 +02:00
e9f918cefc fixincludeguards.sh: sw
Change-Id: I2b0625453ddc1c4cc2fa1626efff07beda17caf6
2014-04-19 11:10:12 +02:00
7bda5f04a6 coverity#1202822 Dereference null return value
Change-Id: I8630bfa0c4c557ab14c3b7448b6281072eebec8a
2014-04-17 08:58:57 +01:00
2afe4c170d Clean up function declarations and some unused functions
Change-Id: I58c425ab9d2c01f8844226aff820dd56d88ec09c
2014-04-15 13:56:21 +02:00
618a0f8c03 whitespace for include statements
Change-Id: I76bd0ef07a2fa134e948724cecdf539ffe6ccb8a
2014-04-15 13:43:13 +02:00
92b2215786 typo: hilight -> highlight 2014-04-14 12:33:06 +02:00
503edef6b2 typo: updateing -> updating 2014-04-14 12:33:05 +02:00
314d0088be typo: pretent -> pretend 2014-04-14 12:33:05 +02:00
29368617fa typo: curosr -> cursor 2014-04-14 12:33:04 +02:00
228f921bea typo: obsolet -> obsolete 2014-04-14 12:33:03 +02:00
471a444f27 typo: exspected -> expected 2014-04-14 12:33:02 +02:00
290f7986a9 coverity#738883 Uninitialized scalar field
Change-Id: Ica1335690e9204a5e9b445ad9583da739dce5bff

and coverity#738882 Uninitialized scalar field

Change-Id: Ief58f36c70e16eabe8b4e3ccbc82fc9ca3309d94
2014-04-08 12:18:52 +01:00