summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2012-11-15fdo#46808, use service constructor for i18n::NumberFormatMapperNoel Grandin10-37/+21
Also create a utility constructor for LocaleDataWrapper, which simplifies many of the calling sites. Change-Id: Ic8510b51c4201fa17fc0620e18d3e258e43636ba
2012-11-15fdo#46808, use service constructor for ucb::SimpleFileAccessNoel Grandin2-3/+2
I upgraded the service to return XSimpleFileAccess3, since it already implemented that interface, and it's backwards compatible. Change-Id: I40001a46048bd21a23b6a2f58a95376f06fc634b
2012-11-15fdo#46808, use service constructor for i18n::TextConversionNoel Grandin3-6/+6
Modify the service to return XExtendedTextConversion, since that is backwards compatible and the service implements it. Change-Id: I2923969135c396d643c501ed56e0528c0bd7c14a
2012-11-14Turn some memmove into memcpy when it is safe to do so.jailletc361-1/+1
Most of the changes are related to newly allocated memory, so we are sure it can not overlap with the source of the copy. Change-Id: Ie6ccf1bbb07b792fb18601a38dfaa55755d14b7d Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr> Reviewed-on: https://gerrit.libreoffice.org/1033 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2012-11-14Fix fdo#51121 OWA misbehaviour with uncompressed meta.xmlThorsten Behrens2-15/+6
Change Writer and Math to save ODF with compressed meta.xml as well, since there's no reason not to. Change-Id: Idde0dc9eafb03f0c84e52353289d857615aa3748
2012-11-14add asian/non-asian word count to UI when CJK mode is enabledCaolán McNamara3-1/+71
Change-Id: Ia54ba045a862d17e6967cee0f3f6f7409632233b
2012-11-15sal_Bool to boolTakeshi Abe20-75/+75
Change-Id: I95a8effcc90a9651e30dc43f8db6edeaa7ace5ef
2012-11-14The additional methods of SO2_*_REF over SV_*_REF are now unusedCaolán McNamara3-6/+6
so they can now be replaced by SV_*_REF now Change-Id: I2207d6582cab5f41851064f3d0c773e9421c0078
2012-11-14fdo#55525 import RTF_TRLEFTMiklos Vajna2-0/+27
Additionally: 1) Make sure cell margins are zero when they are not defined. 2) Handle cellx values in case of a negative left margin. Change-Id: I9b8fb700b6459e622396c98e4344aba79f62c96e
2012-11-13fdo#56954: fix Ignore menu item of grammar mistakesLászló Németh2-1/+18
Change-Id: I5cec602c686d5199b516a7e5135ababeb0751444 Reviewed-on: https://gerrit.libreoffice.org/1024 Reviewed-by: Németh László <nemeth@numbertext.org> Tested-by: Németh László <nemeth@numbertext.org>
2012-11-13convert extension dialog to .uiCaolán McNamara1-1/+1
Change-Id: I4d938be9e960f421398dd40bbcf1b3cadc643de1
2012-11-13sal_Bool to boolTakeshi Abe7-121/+121
Change-Id: I392709e11df3b2babfaa2cf4f90caf7ef29b10aa
2012-11-13Drop unused functionsTakeshi Abe1-3/+0
Change-Id: Iff3dc8149cbe6dbf3827fa6817676777a528e93b
2012-11-12cppCheck: clarifyConditionjailletc361-2/+2
Remove some warnings about: Boolean result is used in bitwise operation Suspicious condition (assignment + comparison) Also reduce scope of a variable. Change-Id: I553e5a09ed1d6276be61efbbb2c28d165a69af39 Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr> Reviewed-on: https://gerrit.libreoffice.org/1031 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2012-11-12fdo#36324 fdo#42929 - option to ingore system input language changesJeremy Brown1-0/+12
Created a new checkbox on the Langauges options page: [] Ignore system input language This is unchecked by default so that the current behavior remains the default, i.e. newly entered text will be flagged as whatever the current system input language is. When checked however, this instructs LibreOffice to ignore the system language (on Windows for example, the language from the Language Bar) when determining the language for newly entered text. This is handled in the lcl_isNonDefaultLanguage method of sw/source/ui/docvw/edtwin.cxx. The option is also saved in registrymodifications.xcu There are two main use cases: 1. This allows someone to use a single "international" keyboard on Windows to type in multiple languages, (e.g. English, French, Spanish) without changing the system keyboard. The person is then responsible for setting the language for each word or run of text themselves in LibreOffice. This seems to be the preferred workflow for some translators and some educators developing language materials. 2. This allows someone writing in a minority language that is not represented in one of Windows' locale options to still be able to type in LibreOffice in their language using a keyboard tagged for another language. Once they set the language in LibreOffice (e.g. to Teke-Eboo [ebo_CG]), they can type with a keyboard as being for "Swahili" but still succeed in entering new text in their language. This allows spell-checking to work properly without them having to select each new word they enter and reset the language of that word to Teke-Eboo (as is currently the case). Change-Id: I86248f5865b69048eb1f3e427a8c03b093138796 Reviewed-on: https://gerrit.libreoffice.org/1029 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2012-11-10DocxAttributeOutput::FlyFrameGraphic: add assert to avoid misuse of the APIMiklos Vajna1-0/+2
Change-Id: I5d09e297294439fafad94177d8e87ccdf829b18d
2012-11-10cppCheck: remove dead assignmentjailletc361-3/+2
Change-Id: Iea8388c16de3399853dc384e7df6bfcc92170ea2 Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr> Reviewed-on: https://gerrit.libreoffice.org/1018 Reviewed-by: Ivan Timofeev <timofeev.i.s@gmail.com> Tested-by: Ivan Timofeev <timofeev.i.s@gmail.com>
2012-11-09center these buttons vertically, rather than fill the rowCaolán McNamara1-0/+2
Change-Id: I9acf8198ac19c3e448bb7d65116e408ac179993e
2012-11-09fdo#51550 fix DOCX export dataloss on non-math/chart OLE exportMiklos Vajna4-22/+44
This is still not complete, but having the replacement graphic only is far better than having nothing. Change-Id: I141a3de1a449f4261c7086e10f2c141b3f6cdb10
2012-11-08missing braceCaolán McNamara1-0/+1
Change-Id: Ib54dd8fe55f7c527e4f163e7ae559e9c3483407b
2012-11-08testcase for a recent bnc#773061 fixLuboš Luňák2-0/+13
Change-Id: I60874c6ad8ccb9767961ed0064b9a15bfc1b07d5
2012-11-08fdo#35427: repair Tools > Options > Writer > View - Show Scroll Slider optionsIvan Timofeev7-9/+69
Change-Id: I2bacd52a182a2dba3dbe6c6d63861470e87b6066
2012-11-08sal_Bool to boolTakeshi Abe17-73/+73
Change-Id: Idfbc33106b20b06c5247c50d099972305f016a51
2012-11-07cppCheck: Various clean-upjailletc366-11/+2
mailconfigpapge: shouldn't it be a logical AND instead of a bit-wise operation ? HeaderFooterWin, drwtxtsh, formatclipboard, wview: redundant assignment fldref: unused variable Change-Id: I5016c12527a8811676ff10f07f7be9e855c66814 Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr> Reviewed-on: https://gerrit.libreoffice.org/996 Reviewed-by: Radek Doulík <rodo@novell.com> Tested-by: Radek Doulík <rodo@novell.com>
2012-11-07Documenting results from src code archeology.Thorsten Behrens1-0/+4
Kudos to mst for remembering the Writer core comments from Juergen Pingel.
2012-11-07Remove unnecessary #includeMatteo Casalin1-1/+0
Change-Id: I3c33ce1eecad649c3d23719b51d51057d41d9a2e Reviewed-on: https://gerrit.libreoffice.org/980 Reviewed-by: Radek Doulík <rodo@novell.com> Tested-by: Radek Doulík <rodo@novell.com>
2012-11-07remove label-less frame parentCaolán McNamara1-197/+186
Change-Id: Ic75fe1e53a411b6d1357b8117a88697f493d3c9d
2012-11-07basic: String -> OUStringNorbert Thiebaud2-7/+10
Change-Id: I42479b4bade5111e38d69f04c889c166f340d5ba
2012-11-07sal_Bool to boolTakeshi Abe35-76/+75
Change-Id: Ia1001ff0f4778bdf5e22bf2800f533dfba80c048
2012-11-06New Layout for Word Count DialogSamuel Mehrbrodt1-93/+37
Change-Id: I653b0546fc677bf8cfceac38cb0f98a1b106d0e2 Reviewed-on: https://gerrit.libreoffice.org/995 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-11-06Fix some file modesStephan Bergmann1-0/+0
Change-Id: Ib1746fff848a4f5cc7dd1baec68d9acdc4f7ac1e
2012-11-06docx import: round float value to int when computing cells widthPierre-Eric Pelloux-Prayer1-2/+2
Previously, truncating float to int was introducing accumulating rounding errors, which lead to visible change in column widths. Change-Id: I4557c716fba48dfd9a6c1c4d2cd0d0aa7aeae865
2012-11-06Don't play dirty tricks for const objectsMatteo Casalin2-17/+12
Change-Id: I92c2362b71cf3614b091c893c0fdb3248edb3ddd Reviewed-on: https://gerrit.libreoffice.org/973 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2012-11-06cppCheck: Various clean-upjailletc362-3/+2
xfdrawstyle.cxx: correct a copy/paste typo in constructor number.cxx: remove an unused variable inftxt.hxx: redundant assignment (pWrongList is assigned twice) Change-Id: I148e23272ffa169ef16052c475e5f24a87383e5b Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr> Reviewed-on: https://gerrit.libreoffice.org/983 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-11-06re-base on ALv2 code. Includes (at least) relevant parts of:Michael Meeks14-365/+467
linecap: Reintegrating finished LineCap feature Patch contributed by Regina Henschel http://svn.apache.org/viewvc?view=revision&revision=1232507 Patches contributed by Sven Jacobi impress212: #i81610# fixed animation export http://svn.apache.org/viewvc?view=revision&revision=1167620 impress212: drawinglayer gbuild environment changes http://svn.apache.org/viewvc?view=revision&revision=1167627 http://svn.apache.org/viewvc?view=revision&revision=1167628 impress212: DffPropSet -> minor code improvements, removing table http://svn.apache.org/viewvc?view=revision&revision=1167634 impress212: #158494# fixed excel import (text rotation) http://svn.apache.org/viewvc?view=revision&revision=1167638 Patches contributed by Armin Le Grand Svg: Reintegrated Svg replacement from /branches/alg/svgreplavement http://svn.apache.org/viewvc?view=revision&revision=1220836 #118728# changed indentifying definitions for Svg file detection http://svn.apache.org/viewvc?view=revision&revision=1229961 #118838# LineGeometry creation for complicated cases optimized to create single Polygons http://svn.apache.org/viewvc?view=revision&revision=1236232 #119176# corrected file type detection for SVG for svg files without xml header http://svn.apache.org/viewvc?view=revision&revision=1309445 #118728# Extended Svg file detection http://svn.apache.org/viewvc?view=revision&revision=1230531 #118529# solve break converters and convert commands for OLEs and images http://svn.apache.org/viewvc?view=revision&revision=1186168 svg: added WaE changes from branch svgreplacement to trunc http://svn.apache.org/viewvc?view=revision&revision=1222974 svg: corrected missing member initialization http://svn.apache.org/viewvc?view=revision&revision=1226134 fix for #118525#: Using primitives for chart sub-geometry visualisation http://svn.apache.org/viewvc?view=revision&revision=1226879 #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles to bitmapEx ... http://svn.apache.org/viewvc?view=revision&revision=1293316 fix for #118525#: removed no longer used variable maOriginalMapMode, one more exception eliminated http://svn.apache.org/viewvc?view=revision&revision=1227097 #16758# Added buffering to the VDev usages of the VclProcessor2D derivates... http://svn.apache.org/viewvc?view=revision&revision=1229521 #116758# Secured VDev buffer device to Vcl deinit http://svn.apache.org/viewvc?view=revision&revision=1230574 #116758# added remembering allocated VDevs for VDevBuffer to be able to also delete these when vcl goes down; it should never happen, but You never know http://svn.apache.org/viewvc?view=revision&revision=1230927 #118730# Changed SvgClipPathNode to use MaskPrimitive2D for primitive representation instead of TransparencePrimitive2D http://svn.apache.org/viewvc?view=revision&revision=1231198 #118822# secured 3D geometry creation (slices) by subdividing the 2D source polyPolygon early http://svn.apache.org/viewvc?view=revision&revision=1234749 #118829# enhanced Svg gradient quality, obstacles avoided http://svn.apache.org/viewvc?view=revision&revision=1235361 #118834# Unified usage of TextBreakupHelper as single tooling class for i18n text primitive breakup http://svn.apache.org/viewvc?view=revision&revision=1236110 #118853# added square pixel size limit to conversion of TransparencePrimitive2D to Metafile action http://svn.apache.org/viewvc?view=revision&revision=1237656 #118824# coreccted mirroring and boundrect when the graphicmanager is used for bitmap output http://svn.apache.org/viewvc?view=revision&revision=1240097 #115092# Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for various optimization scenarios http://svn.apache.org/viewvc?view=revision&revision=1241434 #118783# Corrected errors in ID strings, corrected Svg line/fill export, corrected polygon close state http://svn.apache.org/viewvc?view=revision&revision=1232006 #118796# corrected null-pointer usage in SVG text exporter http://svn.apache.org/viewvc?view=revision&revision=1240262 #118729# Use GraphicStreamUrl and GraphicUrl to allow multi image import with linked graphics, too http://svn.apache.org/viewvc?view=revision&revision=1229962 #118898# corrected error in GDIMetaFile::GetBoundRect in handling MetaFloatTransparentAction http://svn.apache.org/viewvc?view=revision&revision=1293349 #118855# Corrected handling of possibly created empty clipRegions after PolyPolygon clipping http://svn.apache.org/viewvc?view=revision&revision=1237725 #115962# Better (but not yet optimal, see comments in task) handling of MetaFloatTransparentAction in PDF export http://svn.apache.org/viewvc?view=revision&revision=1241078 IP clearance: #118466# This patch removes librsvg, libcroco, libgsf, ... http://svn.apache.org/viewvc?view=revision&revision=1200879 118779# Added svg content streaming in/out to ImpGraphic stream operators http://svn.apache.org/viewvc?view=revision&revision=1231908 linecap: correctons for WaE and mac drawing http://svn.apache.org/viewvc?view=revision&revision=1232793 svg: uses current system Dpi for Svg replacement image creation http://svn.apache.org/viewvc?view=revision&revision=1233948 Patches contributed by Mathias Bauer (and others) gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 http://svn.apache.org/viewvc?view=revision&revision=1394326 Remove duplicate header includes. cws mba34issues01: #i117720#: convert assertion into warning http://svn.apache.org/viewvc?view=revision&revision=1172352 118485 - Styles for OLEs are not saved. Submitted by Armin Le Grand. http://svn.apache.org/viewvc?view=revision&revision=1182166 cws mba34issues01: #i117714#: remove assertion http://svn.apache.org/viewvc?view=revision&revision=1172357 Patch contributed by Jurgen Schmidt add some additional checks to ensure proper reading operations http://svn.apache.org/viewvc?view=revision&revision=1209022 mostly prefer our stream / bounds checking work. Patches contributed by Herbert Duerr #i118816# add clarifying comment regarding Font::*Color*() methods http://svn.apache.org/viewvc?view=revision&revision=1233833 extend macro->string handling for empty strings http://svn.apache.org/viewvc?view=revision&revision=1175801 avoid magic constants for SALCOLOR_NONE http://svn.apache.org/viewvc?view=revision&revision=1177543 initialize slant properly in ImplFontMetricData constructor (author=iorsh) http://svn.apache.org/viewvc?view=revision&revision=1177551 #i118675# make check for extension updates more stable http://svn.apache.org/viewvc?view=revision&revision=1214797 #a118617# remove VBasicEventListener.dll binary There are no known users depending on its CLSID http://svn.apache.org/viewvc?view=revision&revision=1203697 Patches contributed by Ariel Constenla-Haile Fix build breaker on Linux/gcc http://svn.apache.org/viewvc?view=revision&revision=1221104 Fix crash when trying to instantiate css.graphic.GraphicRasterizer_RSVG http://svn.apache.org/viewvc?view=revision&revision=1215559 Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117962# - method <SwFlyFrm::IsPaint(..)> - consider instances of <SwFlyDrawObj> http://svn.apache.org/viewvc?view=revision&revision=1172120 sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 gnumake4 work variously from Hans-Joachim Lankenau http://svn.apache.org/viewvc?view=revision&revision=1397315 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1396782 http://svn.apache.org/viewvc?view=revision&revision=1394707 plus some amount of re-splitting of legacy headers. Patch contributed by Pavel Janik WaE: Remove unused variables. http://svn.apache.org/viewvc?view=revision&revision=1230697 Patches contributed by Takashi Ono mingwport35: i#117795: MinGW port fix for vcl2gnumake http://svn.apache.org/viewvc?view=revision&revision=1172091 mingwport35: i#117795: MinGW port fix for vcl2gnumake http://svn.apache.org/viewvc?view=revision&revision=1172091 Patch contributed by Christian Lippka impress212: #i98044# re enable Text menu for outline and title shapes http://svn.apache.org/viewvc?view=revision&revision=1167639 Patch contributed by Andre Fischer 118674: Made category B code optional and disabled by default. http://svn.apache.org/viewvc?view=revision&revision=1215131 118881: Ignore empty paragraphs after bullets. http://svn.apache.org/viewvc?view=revision&revision=1296205 Patches contributed by Philipp Lohmann ooo340fixes: #i117780# use rtl allocator http://svn.apache.org/viewvc?view=revision&revision=1172087 ooo34gsl02: #i117807# fix an off by one error (index actually inside the pfb section header) http://svn.apache.org/viewvc?view=revision&revision=1167576 various cleanups, related compilation fixes, warning cleanups, re-working of obsolete stl template pieces to use boost instead, changed string classes, re-adapt KDE about data, about dialog, fixing warnings, and other fixes & improvements. Disable svg import / render for about/ branding code-paths for now. Restore full icon theme set. Remove OS/2 conditionals and sources. Remove conflicting gtk/full-screen monitors support. Retain existing svg rasterizer files - temporarily disabled. Standardize stringificaiton and fixup dllpostfix issues. Rename SvgGradientHelper::== to equalTo to avoid overloading issues. Use the flat GdiPlus API for LineCaps calls.
2012-11-06Resolves: fdo#56554 hyphen in RTL date field split RTL processingCaolán McNamara1-2/+12
If we split a range into complex and non-complex, and then decide that the non-complex range is RTL after all, then extend the original complex range to cover the additional RTL sequence. Which keeps the full chunk together to be processed correctly Change-Id: I66a5d585cb22fdb5b6c1de2a8665a9c2c9134f88
2012-11-06fdo#48442 fix default hori/vert frame anchor during RTF importMiklos Vajna2-0/+21
We used to send nothing when we got nothing, but this is not correct: \pvmrg and \phmrg is the default in RTF, but not in Writer. Change-Id: I9f69e282e68f0828c8b5ba98657cad1dd0715eb3
2012-11-06sal_Bool to boolTakeshi Abe16-75/+75
Change-Id: I3e8b7db8422680b865c10c7ead4ad782e2d5c5e1
2012-11-05fdo#46808, use service constructor for i18n::CharacterClassificationNoel Grandin2-3/+3
Change-Id: I0499ad7de27b1539e97f01ab8aa0ef2d6713ae76
2012-11-05fdo#52989 ignore provided size of JPEG files during RTF importMiklos Vajna2-0/+23
See commit 66fa759b for rationale, this fix just does the same for JPEG files as well. Change-Id: I6a9ead5f4b4b9c4661cae99501bd7c14a2a79409
2012-11-05fdo#46808, Adapt i18n::Transliteration UNO service to new styleNoel Grandin3-4/+4
Simply make the service implement XExtendedTransliteration, since all of the implementatins already do that. Change-Id: If03bf56a8d33931ad0230743a4603e2ae9b104ac
2012-11-05fdo#46808,remove unnecessary MSF field from ucbhelper::ContentIdentifierNoel Grandin1-7/+2
...which has lots of nice knock-on effects. Change-Id: Icc93fdb70f24903b08702654db4e1105eb1d438e
2012-11-05Related: fdo#56554 fix multi-script html field exportCaolán McNamara1-2/+3
Change-Id: I05257bed8161e0a63814c9a563d79e5750f626ff
2012-11-05sal_Bool to boolMatteo Casalin2-16/+16
Change-Id: I8a4890c6b0e466417387a09259e32dff57c640d6 Reviewed-on: https://gerrit.libreoffice.org/979 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-11-04Remove unused local variableMatteo Casalin1-1/+0
Change-Id: Ib8dc3b5b37c8777acca3f16ece81f4e1c01c582d
2012-11-04Fix fdo#56603 by NULL pointer checking in SwDrawTextShell::ExecuteArnaud Versini1-2/+5
Change-Id: I2dffbac1450682e4d116f10ca86a2837514f70a4 Reviewed-on: https://gerrit.libreoffice.org/984 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-11-04sal_Bool to boolTakeshi Abe10-162/+162
Change-Id: I51b096bab5f5c12a9c4c6633aa3150c50e9ffa47
2012-11-03basic: String -> OUString in basicmanagerNorbert Thiebaud1-3/+4
Change-Id: I6607bfe8b6bf4d29ffd01cd88a19af5e53d616b5
2012-11-03Remove unused method and also remove not build testMarcos Paulo de Souza2-296/+0
These tests are not in the main build, so remove it all. Change-Id: Ia0e13c984fe11b543a66d3150082cbdd7f34296a Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/977 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-11-03msvc can't handle #if inside macro argumentsLuboš Luňák1-3/+1
Change-Id: I4a4ae336c46dc44afb5259ca5d094a9590d39017