Commit Graph

88 Commits

Author SHA1 Message Date
95c0d568fd use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.

Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
2013-06-05 08:13:23 +02:00
2af1f5691e resolved fdo#35756 import more than 64k HTML table cells
Enhanced EditEngine to be able to hold more than 64k paragraphs. Used
also in RTF import Calc and Writer, so that could benefit as well.

* changed all EditEngine,Outliner,... related paragraph index/count
  variables from sal_uInt16 to sal_Int32
  * sal_Int32 instead of sal_uInt32 to match accessibility API
  * matched some Outliner methods' paragraph parameters from sal_uLong
    to sal_Int32
  * containers capable to hold size_t nevertheless are limited to a
    maximum of sal_Int32
* changed definition of EE_PARA_NOT_FOUND and EE_PARA_ALL to
  SAL_MAX_INT32
+ added EE_PARA_MAX_COUNT and EE_TEXTPOS_MAX_COUNT to initialize
  ESelection with what previously were hard coded 0xFFFF all over the
  place
+ for similar reason added EE_TEXTPOS_ALL corresponding to EE_PARA_ALL
  to initialize an ESelection spanning all available text like
  aSel(0,0,EE_PARA_ALL,EE_TEXTPOS_ALL)

Change-Id: I62d1b9c399cd709a4f93dbac31b219a61c46ec00
Reviewed-on: https://gerrit.libreoffice.org/3838
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-05-10 14:01:38 +00:00
26bda9f4a8 convert message box return types to an enum
Change-Id: I20889dc94aac1119c1ee9da873ce911887c1c335
2013-05-01 14:42:04 +01:00
9830fd36db date/time IDL datatypes incompatible change
- nanosecond precision
 - signed (allowed negative) year

Also: assorted improvements / bugfixes in date/time handling code.
Some factorisation of copy/pasted code.

Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18 21:34:46 +02:00
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
79894c1de0 Prefer prefix ++/-- operators for non-primitive types
Change-Id: I0471261e01ed5fb45cb470abd5bc1e809f2873be
2013-04-01 19:02:44 +02:00
092bf2fb00 fix fdo#62050: for impress
Impress is also affected by fdo#62050.
In RTL UI, comment window is RTL and editbox’s (editeng) default
writing direction is LTR.
I suspect, bug is result of this RTL & LTR mix-up.

Change-Id: I188ce05350f721081378509915158d4ec4e5f8cf
Reviewed-on: https://gerrit.libreoffice.org/2922
Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
2013-03-23 07:07:56 +00:00
a0296296fb fdo#60691 add modelines to *.src and *.hrc files
use solenv/bin/add-modulelines script for the task
and remove all UTF bom from *.src and *.hrc files

svx/source/dialog/hdft.src

Change-Id: I745d4f0fe9b05436a142a03f8512970f91c41bd4
2013-03-08 21:02:26 +00:00
1aaf9a9b36 Renamed hard-to-remember 8-char headers in editeng.
Change-Id: If255802082890e1b1b4c5197a791fa79a011773e
2013-02-12 15:15:06 -05:00
8bb976bae4 Fix format
Change-Id: I2a7c8e88b689f913f8e37ecc3cfdda43ba60aea3
2013-01-11 10:30:07 +01:00
ca82817213 Avoid unnecessary operations on an OUString
Change-Id: I1820711664a6aa18587e1e4a3d74a8e4cbfcc07e
Reviewed-on: https://gerrit.libreoffice.org/1537
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-03 17:35:08 +00:00
95fc4bdb8e Remove unneeded 'else' and fix 'else if' style
Change-Id: I774af9ca0631e931ddc8c5025981dabca557e325
2013-01-03 11:01:49 +01:00
66a175834c c++ API: use css alias in generated headers, adds global css decl
This changes all generated API headers (.hpp and .hdl) to use a
namespace alias 'css' instead of the pointlessly long com::sun::star

Makes the change in cppumaker & associated tools, adds a global
namespace alias definition in sal/types.h, and removes a kiloton
of local, now pointless-to-harmful versions of that alias from all
over the code.

Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30 14:36:36 +01:00
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
53ad646f54 Enforce use of accessors on gen.hxx structures
Change-Id: Icd1b2937fdeaba6de1877258731f53ddf996002e
Reviewed-on: https://gerrit.libreoffice.org/936
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2012-11-20 19:32:43 +00:00
2f002e3a49 having two SetPosSizePixel is a blasted nuisance
Lets rename the multiargument SetPosSizePixel to
setPosSizePixel drop the various using Window::SetPosSizePixel
and work towards de-virtualizing SetPosSizePixel/SetPosPixel and
SetSizePixel and doing the work in a virtual setPosSizePixel

Change-Id: I7057654168001b67becee1791e97f9e9dc01f7b8
2012-09-28 08:48:39 +01:00
78b55ad113 Convert documents to follow the doxygen standard (fdo#44502, fdo#39468)
Change-Id: I58c73f74d53b5dc2eb462fb03664be65d4500170
Reviewed-by: Philipp Riemer <ruderphilipp@gmail.com>
2012-08-06 00:18:59 +02:00
739e20ac58 Decrease header files dependencies
Change-Id: I654e71e56d60bf629625df09eb93b21c9ef670e8
2012-07-11 11:12:15 +05:30
892bb81d17 hrc cleanup: Remove unused defines
Change-Id: Iaa7da7745fc01544d9a503b313479b2450810524
2012-07-02 17:46:25 +02:00
bf5115328e removed unnecessary forward declarations of class
except
* sd::ViewTabBar moved to ViewShellBase.hxx
* sd::TemplateEntry moved to AllMasterPageSelector.hxx

Change-Id: I802cdc0b77027bbe0843fbb259ce1a5a46354fc3
2012-06-29 22:47:10 +09:00
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
b6db3e3acc re-base on ALv2 code.
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21 13:11:06 +01:00
5fcecf9b88 hrc cleanup: Remove unused defines
All of those defines (should) not be used at any point in the code.
False positives may exist, because some macro names are getting
generated by some template/macro foo. This is the version which
compiled fine for me.

Also there are many commented out lines removed.

Change-Id: I6394024682e4ab3691eb72707a9363d41ba31df8
2012-06-21 11:54:18 +02:00
6d78c490b0 Get rid of GRADIENT_* defines, they conflict with Windows GDI types.
Change-Id: Ia0bc37f81b7213b20fc5093beb46d7a05b1ac931
2012-06-12 16:31:43 +02:00
2ac4d8bf32 nuke dead code
Change-Id: I666791b2a2bb817d59625868d5e2df1a9341b2ff
2012-06-10 00:56:06 +09:00
24c260a271 Unify ODF extended vs. ODF1.2 handling
Make "export extended ODF" consistently mean "version > ODF1.2".
Future ODF versions need manual review anyway, of the various
changes/additions we ship.

Change-Id: I0f6c1646b306e18f0abcdd1a1802fece821b2e93
2012-06-05 05:10:57 +02:00
2c4fd87a5a targetted reversion of minor SAL_N_ELEMENTS tweak
Change-Id: I4f907aecd72f55091184aa1509506a46010f1061
2012-06-01 14:47:01 +01:00
ae167f81e6 convert GetSurroundingText family to OUString
Change-Id: Ifbb21fc26eedfde4afe2e3faf637346554f63d94
2012-05-22 12:48:27 +01:00
2db3ba987f More RTL_CONSTASCII_USTRINGPARAM removals 2012-04-13 20:47:56 -03:00
120786aea2 Remove some A2S and C2U macros in sd 2012-04-13 20:47:55 -03:00
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
193581a7cc removed duplicate includes in sd 2012-03-25 07:15:03 +09:00
131e5d35a4 Resolves: fdo#46728 reference count the overlay managers 2012-03-13 15:15:11 +00:00
bd205223ec New IMPL_LINK_NOARG to work around SAL_UNUSED_PARAMETER problem
...see ebe26f72e90337da2d14f3029de148904e3e30b6 "WaE: 'unused' attribute ignored when parsing type"
for the problem.
2012-03-01 18:00:32 +01:00
db08c1ac5e Fix for fdo43460 Part XXXI getLength() to isEmpty()
Part XXXI
Modules
sd
2012-01-10 23:08:01 -02:00
79646372a0 Removed unnecessary tools includes.
Hello lo-devs,

this patch series removes a lot of unnecessary includes for the various
tools header. The patches without suffix should be applied to the core
repository, the .binfilter.patch suffix should be applied to the
binfilter repository. I've tested the build with the configuration
--enable-binfilter --enable-dbgutil --enable-debug, is this sufficient
or did I miss another important configuration, that enables some
conditional compiled code? I've only build this on linux-x86_64, but the
patch also touches some of the mac specific code like
fpicker/source/aqua/SalAquaFilePicker.mm so it would be maybe a good
idea to test this patch.

regards Marcel Metz
2012-01-05 15:31:29 +01:00
bacfd2dc4c add a comphelper::string::getTokenCount
suitable for conversion from [Byte]String::GetTokenCount
converted low-hanging variants to rtl::O[UString]::getToken loops
added unit test
2012-01-05 09:18:19 +00:00
8cc98837d3 catch exception by constant reference 2011-12-25 15:09:58 +09:00
73a395cdc7 Make merges of impress210 build. 2011-12-06 09:39:16 +01:00
909bf6e983 impress210: #i106378# use datetime to get current date
# HG changeset patch
# User Ocke.Janssen@oracle.com
# Date 1297761051 -3600
# Node ID 3df655ccd7e3966c5c22df761981dde35b5e0059
# Parent  227bb8fe599b58e849c1f19f2233d2c1b0b767ad

impress210: #i106378# use datetime to get current date
2011-12-06 09:39:10 +01:00
86adb5cacb get rid of class Date and Time default ctor with system time penalty 2011-12-01 21:04:29 +01:00
dca69d5bb2 renamed Date::IsValid() to IsValidAndGregorian() to prevent misassumptions
Once smaller than 1582-10-15 decrementing a Date will not produce a valid date.
2011-11-30 02:05:22 +01:00
2a71139535 remove include of pch header from sd 2011-11-27 13:20:56 -06:00
d3a0593ee1 Some cppcheck cleaning 2011-05-08 10:47:35 +02:00
3f8677fc6f gbuildize sd 2011-04-21 20:56:05 +02:00
f7ccecc999 Easy Hack remove dead code and uncompiled code in 'sd' module 2011-04-14 11:36:04 +02:00
fafdd0a6fd drop bogus executable flag from [ch]xx/bas/asm files 2011-03-29 21:40:16 +01:00
c61cd1a5a2 Merge commit 'ooo/DEV300_m101' into integration/dev300_m101 2011-03-12 20:06:58 +01:00
f4aaa487d7 Move DBG_ERROR to OSL_FAIL 2011-03-02 15:03:01 +01:00
2785e67bbc CWS gnumake3: pull in cws removetooltypes01 2011-02-08 11:49:29 +01:00