summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2014-08-14sw: initialize SwDoc::mbCopyIsMoveMichael Stahl1-0/+1
(regression from 5494954b269267f6ee3bdd5ac73e7513fa69978f) Change-Id: I8bc2e0e079cbf86449ef0ce9c046eedb624127f2
2014-08-14bnc#865381 DOCX import: handle <w:hideMark> table cell propertyMiklos Vajna2-0/+13
Change-Id: Id0dd34110376168e34df4956869608895b86abfe
2014-08-14fix indentationMiklos Vajna1-3/+1
Change-Id: I93fffff150e76a20decf2dd418f4cbd2b7418735
2014-08-14sw: assert that UnlockExpFlds() isn't called when it's not lockedMichael Stahl1-0/+1
Change-Id: Ibe2394978b776dd4a91a253856040fc45f81c7e9
2014-08-14sw: initialize SwDoc::mbInReadingMichael Stahl1-0/+1
This was causing intermittent failure at least in sw_python test. (regression from 5494954b269267f6ee3bdd5ac73e7513fa69978f) Change-Id: I8452536cfbb7bc5bd07e6405bc255e31a5007185
2014-08-14sw: use less confusing variable names in python testMichael Stahl1-10/+10
Change-Id: Ie07fe4761a634c3ae55e82e1ed70c9424dc33213
2014-08-14java: remove commented out codeNoel Grandin1-12/+0
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
2014-08-14warning C4702: unreachable codeMichael Stahl1-1/+1
that's a real bug in f6e7b94042070241cd1cfb1d7f8610fe1801b4f2 Change-Id: I46b9f6000b4c5e3b4aec44d96100cb41b6a8b41e
2014-08-14spurious warning C4189 local variable initialized but not referencedMichael Stahl1-2/+3
Change-Id: I67ac7757a05dfba5724f8f73856e0a23194adaf8
2014-08-13warning C4245 signed/unsigned mismatchMichael Stahl1-3/+5
Change-Id: If6222d61a6c75996ce5c40b3eae7895982c49b4a
2014-08-13check_table.py: use assertEqual()Thomas Arnhold1-124/+124
To fix DeprecationWarning: Please use assertEqual instead. Change-Id: Iae7cb50dd968d055b106e35baa7eee526a50bf6d
2014-08-13RTF import: fix handling of RTF_SHPFBLWTXTMiklos Vajna2-0/+28
Commit 6cac123a8de8357cf11d9b5f818233889d729939 (fdo#45183 import RTF_SHPFBLWTXT, 2012-12-27) fixed this already once in the past -- fix it again, this time with a testcase. Change-Id: I0cbbfb1ba4eef42b2ee32f6f77065afaad3ddc1b
2014-08-13DOCX export: write qFormat for style names having an STI numberMiklos Vajna2-2/+8
Change-Id: I1f1bf0cf14bbd7b6253489f27753bdb2ec81fe35
2014-08-13java: remove dead methodsNoel Grandin1-1/+0
found by UCDetector Change-Id: I219caa8e680dba5a395541a778df6144841c4dde
2014-08-13warning C4245: 'initializing' : conversion from 'int' to 'sal_uLong'...Thomas Arnhold1-4/+7
...signed/unsigned mismatch In history this was sal_Long and then converted to sal_uLong, but the test never got aligned. Fix it by adding arbitrary element counts starting from 30. old: getCount(): {-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9} (With -5 silently converted to SAL_MAX_UINT32 - 5) new: getCount(): {30,31,32,33,34,0,1,2,3,4,5,6,7,8,9} Change-Id: Ic13678094c7bb4dcd122727f028c910513609cef
2014-08-13warning C4245: '=' : conversion from 'char' to 'sal_Unicode'...Thomas Arnhold1-3/+3
...signed/unsigned mismatch Change-Id: I788877bdd47847cdf23013ef3fd69699e886d468
2014-08-13warning C4365: '=' : conversion from 'int' to 'sal_uInt16', signed/unsigned ↵Thomas Arnhold1-2/+2
mismatch nhAbsLeftSpace and nInhAbsRightSpace are sal_uInt16, no need to cast them... Change-Id: I9cb4b683d0096f6cd0968f4ed510983dc105038c
2014-08-13update_pchThomas Arnhold4-7/+22
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-08-13java: reduce scope, make some methods privateNoel Grandin1-11/+11
found by UCDetector Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
2014-08-13java: reduce scope, make fields privateNoel Grandin2-2/+2
found by UCDetector Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
2014-08-12Refactored IDocumentExternalData out of SwDoc.Valentin Kettner8-22/+109
Into the new class DocumentExternalDataManager. Change-Id: Ib863daec170044c46143b47a91739d4c0940d963
2014-08-12Refactored IDocumentStylePoolAccess out of SwDoc.Valentin Kettner72-2294/+2524
Added non const SwDoc::GetDfltTxtFmtColl and SwDoc::GetTxtFmtColls and SwDoc::GetCharFmts. Had to make the manager friend of SwTxtFmtColl and SwConditionTxtFmtColl Had to make SwDoc::_MakeCharFmt and SwDoc::_MakeFrmFmt public. Change-Id: I19a36d91f92b3781a6c4313ec12eb8f7d4dfacc3
2014-08-12Refactored IDocumentLayoutAccess out of SwDoc.Valentin Kettner114-796/+1053
Into the new class DocumentLayoutManager. Change-Id: I02d0cfcc63633d0bdab380508b2ef563187fd269
2014-08-12Refactored IDocumentState out of SwDoc.Valentin Kettner76-372/+568
Into the new class DocumentStateManager. Change-Id: I91c9097b091ff6118d58fd15fff2a4cefe0171fd
2014-08-12Refactored IDocumentStatistics our of SwDoc.Valentin Kettner24-241/+397
Into the new class DocumentStatisticsManager. Change-Id: I281232dc09dbd79c2faf3c2a78ae49625bbe88ee
2014-08-12Refactored IDocumentLineNumberAccess.Valentin Kettner6-57/+6
This interface is obsolete and was deleted. Change-Id: I56d37814f6e43f083ab3d199237ade06db287e18
2014-08-12Refactored IDocumentFieldsAccess out of SwDoc.Valentin Kettner92-1978/+2223
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-12Refactored IDocumentRedlineAccess out of SwDoc.Valentin Kettner83-3224/+3470
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-12show fly anchored inside selection as selected tooLuboš Luňák3-1/+32
If part (or whole) document is selected and then the selection is e.g. deleted, flys anchored there will be deleted too, so it makes sense to show them as part of the selection. Change-Id: I17bfccebc0cd305c19616159471f0f113c7e71d9
2014-08-12fix deleting an image anchored to last paragraph in documentLuboš Luňák3-6/+19
It only compared nodes instead of SwPositions, thus refusing to delete anything anchored at the last content node. Also, select-all makes rEnd point to the last content node, after its content. So if an anchor-to-char image is anchored at the end of the paragraph, it points to this place, too, so that must be checked. Change-Id: Ie0ba6ed59f47e59492ad88577392884cadb52106
2014-08-12fdo#82165: ODF import: clear all shapes when removing header contentMichael Stahl2-0/+10
Shapes anchored to the first or last paragraph survive setString("") so need to be deleted with some ruse. (regression from b8499fc3dcf474050f026b8d5cd1d9037bbe42b7) Change-Id: I00a8132583c45d1953c207932cc7f02f3065ae77
2014-08-12DOCX export: handle wrap polygon around picturesMiklos Vajna3-0/+41
Change-Id: I83d9d42cd48ba4dcd86c6506c7dbd6493bb4d204
2014-08-12DOC export: factor out wrap polygon handling to to sw::utilMiklos Vajna3-26/+34
So that it'll be possible to reuse it in the DOCX exporter. Change-Id: Ib7371c92c4fd93d7c6f3271ca81311bac8f1a1a7
2014-08-12Remove invalid and unnecessary downcastStephan Bergmann1-1/+1
Change-Id: I2c4daa7057a4faf020b96b587c7a8348adeaeb58
2014-08-12Resolves: fdo#81046 don't crash on compilers that enforce exception specsCaolán McNamara1-5/+13
bit of a hammer here, the offending property is "IsSplitAllowed" if someone wants to attempt a more subtle fix Change-Id: I37ed623a9947473fcb5c9e2b987d7a3dd9147ffa
2014-08-12-Werror,-Wundefined-bool-conversionStephan Bergmann97-244/+244
Change-Id: Iff8db4c82abeeed0789d7012223a846f1058c353
2014-08-12java: add @Override annotation to overriding methodsNoel Grandin1-0/+74
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
2014-08-11Resolves: fdo#81795 open the font tab via More... languagesCaolán McNamara1-0/+7
a) FontDialog doesn't take a Language argument, so drop that b) Give FontDialog a Page argument and set it to "font" when called from the status bar More... menu entry Change-Id: Ibaf4d5e51d47794b8b0e3c3e06a6d8e00a7d2896
2014-08-11DOCX drawingML export: handle ContourPolyPolygon for drawinglayer shapesMiklos Vajna3-1/+60
Change-Id: I04438e4c32d001b989d3d3b8aec882ec57dc28b9
2014-08-11java: remove unused parametersNoel Grandin2-2/+2
Change-Id: I47c618117e079bb2ef90d92c449c8166ea957fa5
2014-08-11callcatcher: update unused codeCaolán McNamara1-5/+0
lots of ResID stuff going away now Change-Id: Iad8524e201cd3072db71da9e5ee1c244ed337967
2014-08-11fdo#82123 : DOCX: Corruption: File was getting corrupt fafter RTPallavi Jadhav3-0/+38
Issue : - In issue file there were two runs(first run=SDT, second run=Image). - These two runs were consecutive(no text/space/tab was there in between two runs). - Due to such scenario, "SdtEndBefore" was not getting set. - Hence at Export EndSdtBlock() was getting called form EndParagraph() Instead EndSdtBlock() should ge called from EndRun() in order to end sdt after first run(as in Original file) Implementation : - Set "SdtEndBefore" on Graphic in DomainMapper_Impl::ImportGraphic() - Retrieved same property at export. - Added export unit test case. Change-Id: Id514b91f1831af371924f94388f0a404d762c042 Reviewed-on: https://gerrit.libreoffice.org/10827 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-08-10fdo#82106 RTF import: fix missing tab after special footnoteMiklos Vajna2-0/+10
Change-Id: I5ea45dbed652231acdcc3632ced728ed8bcb621a
2014-08-09remove now unused tabpage.hrcThomas Arnhold2-4/+0
as TP_WIDTH and TP_HEIGHT are unused now Change-Id: I06ec7af8c2b3386d76e36284eb56ea1ab6b9ec5d
2014-08-09Resolves: #i125391# textbox object's location changes...Steve Yin1-13/+8
after importing the sample file Fixed by Oliver-Rainer Wittmann (cherry picked from commit 700479573567e82f9bd9ae065f18f9ec9d943300) Conflicts: sw/source/filter/ww8/ww8graf.cxx Change-Id: I963689a80dfe4ac1439afb29132015e900886317
2014-08-08DOCX export: handle date SDT on paragraphsMiklos Vajna4-5/+59
Date SDT's are normally imported as form controls, while most other SDT types are just custom properties on regular text portions or paragraphs. However, given that form controls are not supported in headers/footers, in that case even date SDT's are just custom properties. So support such properties on paragraphs in the exporter to properly roundtrip date SDT's in headers/footers. Change-Id: I19eb73a3673e387a7b8780756ce7426a1851e796
2014-08-08fix image dragging inside a documentLuboš Luňák1-5/+1
Testcase is a document with a table and a wrap-through anchored-to-character image below it. Dragging the image up to be anchored to a place in a cell and positioned partially on top of the table does not actually change the image position if the image was below the table before the drag, but changes when the table was above. In the faulty case, SwToCntntAnchoredObjectPosition::CalcPosition() returns prematurely because of paragraph portion information not existing at that point (interestingly, the problem is also fixed simply by commenting out the return). This basically reverts 9b87346bf4a1d32abfa781aa66d4d5b627133edf . I'm unable to check the original problem as the bugreport references a web page that no longer exists. So if that one still exists, it'll need to be handled whenever somebody runs into a way of reproducing it. Change-Id: Id354237dace3179b94768146ec1a599cc3d49146
2014-08-08sw: improve doc model xml dump of SwFmtAnchorMiklos Vajna1-1/+22
Change-Id: Icdfc370c4b525fd43d9d5935ff461534cf535233
2014-08-08fdo#81946 Corrupt : DOCX file getting corrupt after RTPriyankaGaikwad3-0/+15
Decription : DOCX file getting corrupt after RT due to the AlternateContent inside sdtContent block XML Difference : In header.xml Original File <w:sdt> <w:sdtContent> ... </w:sdtContent> </w:sdt> Roundtrip File <w:sdt> <w:sdtContent> <mc:AlternateContent> ......Text Box..... </mc:AlternateContent> </w:sdtContent> </w:sdt> Reviewed on: https://gerrit.libreoffice.org/10805 Change-Id: I32d22f57a52060dd6f0ee784ee0002968d06ac3a
2014-08-08java: remove exceptions from throws clauses that are notNoel Grandin3-8/+2
.. actually thrown Change-Id: Ia326ac7f82e11b948ed0f34e20908a96e7adcd10