summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2012-10-10drop unused #includeDavid Tardon
Change-Id: I45d565fb800627cbb33ffc45c45e8f9b8e60e2a6
2012-10-10sal_Bool to boolTakeshi Abe
Change-Id: I2549e597bc11d0a4b4bcdc42c77914dda01a1c5f
2012-10-09sw: add odf and ww8 regression tests for first page header/footerMiklos Vajna
Change-Id: Ic002f3cba79b6758475cf9d3153ae3063eb640a3
2012-10-09add editeng::ConvertBorderWidthFromWord:Michael Stahl
Replace the 2 duplicate implementations of this in ww8 and writerfilter with a common one. Differences were: 2) ww8 doubles the with, writerfilter does not 13) unsupported, mapped to THINTHICK_SMALLGAP vs. THICKTHIN_SMALLGAP 22) unsupported, mapped to DASHED vs. SOLID 26) INSET not supported in writerfilter 27) OUTSET not supported in writerfilter Change-Id: I533b77394388e736f38d70284a6a11061d81e813
2012-10-09fdo#54648: WW8 export: test that FlyFrm actually has layout frmMichael Stahl
The bugdoc has 2 "hidden" drawing objects that are invisible. Change-Id: I58179f2e620348db5357b38f834e1edca1f20ae2
2012-10-09Do the de-duplication of pSwResMgr a bit differentlyTor Lillqvist
Let the code stay as-is for the normal (not DISABLE_DYNLOADING) case. This partially reverts commit f5ba1a09408be65e6c5831c2b61bc94133d7ad13. Change-Id: I040e05844f9438ace39cf419a9a9e757002f9719
2012-10-09De-duplicate aEmptyStr and pSwResMgrTor Lillqvist
Change-Id: I129754d1180ea15d815b2b4d2533f911f10116c3
2012-10-09Make lcl functions staticTor Lillqvist
Change-Id: Ia8439fda69324a48660e6b6c5b954c6d3eb14bc9
2012-10-09De-duplicate AbstractSfxDialog_ImplTor Lillqvist
Change-Id: Iddf2222aa75b21dd60472fa8dc979ddbdc18dcba
2012-10-08SwXTextDocument::getFlatParagraphIterator: fix crash:Michael Stahl
Check if the document is still valid. Crash in idle handler grammar checker observed on libreoffice-3-5 branch. Change-Id: I3cae1c6726bb9ad5be11f59bc33f8550bbbe1883
2012-10-08DocxAttributeOutput: drop unused includesMiklos Vajna
Change-Id: If6546c920064f0c7ddebec79afee079ab1e417fc
2012-10-08Tweak hyphen as a togglable option after allCaolán McNamara
In a65f48f375d218b592ba7c17752f9ca86e14bd65 I wondered why hyphenation was set to be a toggle able feature when it opens a non-modal dialog. Looking closer, it *is* a toggable feature on/off for draw/impress, but this isn't the case for writer. Reverted it for calc too, although apparently not toggable there. Change-Id: If02568d58253c380e6d668a728f9c3ae6acf1128
2012-10-08Fix fdo#47669: also check if we started the tag before ending itKorrawit Pruegsanusak
The problem is we created imbalance end tag </w:hyperlink> which shouldn't be there. So, place a check before inserting end tag should help. Inspired by (read: copied from) c1c2688912e769dfd7654e11e87dae380a8ce1eb ;) Change-Id: Ic933f6da44c788cba48bb2fe6fa29658985310b6
2012-10-08cppcheck: clarifyCalculationjailletc36
Use () to clarify the order of the operator + minor formatting Change-Id: I3dfa6566758d30bd76bed478089a0937ade24f89
2012-10-08Deduplicate CTB, TBC and CTBWrapper (for disable-dynloading)Tor Lillqvist
Change-Id: I0e9895ca59fa75958107df2cbf4348214df52664
2012-10-07fdo#55567: add findbar.xml back to makefileIvan Timofeev
regression from e125d95ba4a4905fa36ba8f4bed0c2dafd37ce13 Change-Id: I0deeb042c60d3f7d556286a0956bb4866e1c203b
2012-10-07add cppuhelper to sw testsPeter Foley
Change-Id: Ie50c7adf5bd4ba1b18a8deb3e708bcf83a2777af
2012-10-07fix sw build with VC2012Peter Foley
Change-Id: I1ba38baa26de2082a21d681efff2f5881092fad7
2012-10-07Handle lack of module loading/unloading API when DISABLE_DYNLOADINGTor Lillqvist
There are basicically two classes of cases: 1) Where the code is for obscure historical reasons or what I see as misguided "optimization" split into a more libraries than necessary, and these then are loaded at run-time. Instead, just use direct linking. 2) Where dynamic loading is part of the functionality offered to some upper (scripting etc) layer, or where some system-specific non-LO library is loaded dynamically, as it is not necessarily present on end-user machines. Can't have such in the DISABLE_DYNLOADING case. Change-Id: I9eceac5fb635245def2f4f3320821447bb7cd8c0
2012-10-07sal_Bool to boolTakeshi Abe
Change-Id: Ieeebcd89ae2728c6314f28413759bbb353c327bf
2012-10-06Bin unused leftover "dummy" fieldsTor Lillqvist
Change-Id: If16fcbb58234a9f1b7e07718f77909273f1fbbd4
2012-10-05SwHeaderFooterWin: check if we are on the first pageMiklos Vajna
Change-Id: Ib61effb43c2b029c92886319d3a96612b9732878
2012-10-05SwFrm::OnFirstPage: if there are no previous pages, we are on the first pageMiklos Vajna
Change-Id: I9e3a77bfeb314eb48f2a4185b8751e370357c7e0
2012-10-05ItemSetToPageDesc: don't call SwPageDesc::ChgFirstShare twiceMiklos Vajna
Change-Id: I241858b0d8920187e21dcdb9fd4aac9e4d9054ba
2012-10-05ItemSetToPageDesc / PageDescToItemSet: handle first page footersMiklos Vajna
Change-Id: Id480c0e81b79ec48b3ceba566219089d9a408c22
2012-10-05SwUndoPageDesc: take care of SwPageDesc::aFirstMiklos Vajna
Change-Id: I05621cc1bf6d4201120c8757d5c2886723d7d18c
2012-10-05I can't see why the hyphenate cmds have toggle entriesCaolán McNamara
because the dialogs are modal ones so no different than most commands. (Probably cut and paste and few notice using themes where empty toggles have no frame and are indistinguisable from non-toggle) Change-Id: If82b59e7cebb71bc834a48970283b2cf68e5fdf9
2012-10-04sal_Bool->bool in svl::SfxStyleSheetBaseNoel Grandin
Change-Id: Id506fa56d07be56d63715703e354625715275933
2012-10-04rhbz#820283, fdo#55462: sw: better fix for DOCX table import crash:Michael Stahl
The fix in 6d2e09db4a677068095b0bebd08fbbb96620d60c is completely bogus. Only vertically merged boxes result in dummy boxes with negative span, while horizontally merged boxes result in different numbers of boxes per line. So instead of inserting boxes, adjust the width of the last box in rows that are missing boxes, such that all lines have the same width. Change-Id: I4e90e852b314bf6f7885bde7b450dab7c668469e
2012-10-04fdo#46808, Adapt xml::sax::XParser UNO service to new styleNoel Grandin
The xml.sax.Parser service already existed, it just did not have a new-style service to create it. Change-Id: I6f145a7504ff9e149c802f723991954a2801cbc9
2012-10-04Fixes/improvements on previous commitStephan Bergmann
* UUIInteractionHandler still needs to implement XInitialization. * Moved ambiguating InteractionHandler typedef out of the way. * Removed InteractionHandler.createDefault, as it was originally stated that "it is strongly recommended that [the "Parent"] property is supplied." * Added back documentation about Parent and Context. * Simplified some call-sites to directly use XInteractionHandler2. Change-Id: I1029b8f3cf079171c75920cafaaa44b5bbada883
2012-10-04fdo#46808, Adapt task::InteractionHandler UNO service to new styleNoel Grandin
Since we don't need to expose XInitialisation, we can make the new-style service implement XInteractionHandler2. Change-Id: Ib27beed1c12df17592c6472d6f58c233d2c41558
2012-10-04Use MenuButton for non-editable GtkComboBoxText instead of ComboBoxCaolán McNamara
its more similar for the non-editable list. Requires some love to MenuButton to reflect the selected entry and resize appropiately Change-Id: I4b37931e35a5f326d6fd4e445eb741bece6b55a6
2012-10-04sw: proper fallback for first page in InsertNewPage()Miklos Vajna
For left/right share, the fallback is easy: the left page always falls back to the right page, if there is a fallback. In case of first page, the situation is more complicated, as there are multiple fallbacks (left/right). Since commit 9ff68a2, first page fallback was decided during registering part of the SwPageDesc to SwPageFrm, which is bad, as without a document export/import, a changed IsFirstShared() didn't have any effect: the LeftFmt/RightFmt was in use, so FirstFmt had no SwClients -> nobody was notified when that setting changed. This commit changes first pages to always use FirstFmt, and (if a fallback is needed) sets FirstFmt to point to LeftFmt/RightFmt as necessary. Change-Id: I4654baf293d72070fcf7e9eea408a43a31079e60
2012-10-04sal_Bool to boolTakeshi Abe
Change-Id: I6a4c4f4c8129100770ca976d508ca3a98e67a846
2012-10-03testShadow: test shadow width to be non-0 to avoid precision errorsCédric Bosdonnat
Change-Id: I956f2c7f55d7e4966971bc310858967298d2933d
2012-10-03SwFrm::dumpAsXmlAttributes: dump Fmt pointerMiklos Vajna
Change-Id: Id9030f5a260fbfce88b6b238e075a7358993b355
2012-10-02Remove dead codeTakeshi Abe
SW_CRSR_TIMER was undefined Change-Id: Ib851170ea61547e0ceaa6721c0b2fb90fecaecd3 Reviewed-on: https://gerrit.libreoffice.org/747 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-10-02various rather mad uses of GetParent()->GetParent()Caolán McNamara
Change-Id: I0f0d5771d82c7a577ef86ce5ab1ca10a0aaeb89a
2012-10-02GetParent()->GetParent() does't take into account containersCaolán McNamara
The assumption was that the page is directly a child of the parent dialog => ka-boom Change-Id: Ia0e7f33273d7a3c6b726c74371b8ee8a809ee5bb
2012-10-02Fix build.Jan Holesovsky
Change-Id: I291cb5422f5338d64e6d8973c8dc863f4fb982f5
2012-10-02initialize various fields in constructor.Michael Meeks
Change-Id: Ib2165121786353062a52e6dd65cca6dab8584e60
2012-10-02Resolves: fdo#55524 convert insert break dialog fullyCaolán McNamara
Change-Id: Id25bde8db310a83b52ebda7d47d0b1dcda79ed45
2012-10-02SwXPageStyle: make sure SHARED_FIRST is added to both HEADER and FOOTER setsMiklos Vajna
It makes no sense to alter only the header set, as this property affects both. Change-Id: I7a34f97d144f877f808506e6ed961745994bb9a1
2012-10-02fdo#52673 fix for layout problems with version 3.6 and upWinfried Donkers
Change-Id: I626ec5bce931005dccbc8f4d235e8208ae98f9a5
2012-10-02docx export: always write tblInd attribute (even when equal to 0)Pierre-Eric Pelloux-Prayer
Otherwise when opening the docx in Office table may get misplaced. Change-Id: Ic1df8d941c72a224d2db189ededfc5e134e5683a Reviewed-on: https://gerrit.libreoffice.org/718 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-10-02docx export: add unit test for 9751056Pierre-Eric Pelloux-Prayer
Change-Id: I25aa07d3e1811fdf4ab0124e14794e70d7de82ec
2012-10-02docx export: export default table cell margins, based on 1st cellPierre-Eric Pelloux-Prayer
Change-Id: I1a697c2a60c7979774242fb6c9b0f66baa3bb72e Reviewed-on: https://gerrit.libreoffice.org/716 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-10-02docx import: add table position unit testPierre-Eric Pelloux-Prayer
Change-Id: I21aa721e20be4b7f9984bf6910a94a7b7bf09c7a Reviewed-on: https://gerrit.libreoffice.org/715 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-10-02docx import: set table above/bottom spacing to 0Pierre-Eric Pelloux-Prayer
Conflicts: sw/qa/extras/ooxmlimport/ooxmlimport.cxx Change-Id: I3e0397dd3d5d14f1e584ac7bc3d22d4638393b06