Commit Graph

733 Commits

Author SHA1 Message Date
Kohei Yoshida
29e7777de5 EdtAutoCorrDoc no longer a friend of ImpEditEngine. 2012-04-16 17:13:36 -04:00
Kohei Yoshida
e1520a9d6a Let's use boost::scoped_ptr for this. 2012-04-16 17:13:35 -04:00
Kohei Yoshida
09cc69d099 EditHTMLParser is no loger a friend of ImpEditEngine. 2012-04-16 17:13:35 -04:00
Kohei Yoshida
a4bc804627 Use boost::scoped_ptr for this. 2012-04-16 17:13:35 -04:00
Kohei Yoshida
d4126868a3 EditRTFParser no longer a friend of ImpEditEngine. 2012-04-16 17:13:35 -04:00
Caolán McNamara
437c4984db upgrade GetValueTextByPos family to rtl::OUString 2012-04-16 15:21:36 +01:00
Stephan Bergmann
25de2a561b Corret size_t format specifier 2012-04-16 15:52:46 +02:00
Julien Nabet
95cc5de63b Resolves: fdo#48683 nice crash when hitting DEL 2012-04-14 18:06:08 +02:00
Julien Nabet
daae05ccf5 WaE fix 2012-04-14 10:05:34 +02:00
Kohei Yoshida
89de9dfe27 Really fix the build. 2012-04-14 02:03:46 -04:00
Kohei Yoshida
5d66587d79 Keep tinderbox happy. 2012-04-14 01:12:42 -04:00
Kohei Yoshida
70d27eddd2 This must be const. 2012-04-14 00:42:50 -04:00
Kohei Yoshida
7b74902db2 Export this to get it to build in forms. 2012-04-14 00:19:51 -04:00
Kohei Yoshida
b447f763f2 EE_APPEND now has to be the max value of size_t. 2012-04-13 23:35:51 -04:00
Kohei Yoshida
f75df5e338 Another svarray to kill. 2012-04-13 23:35:51 -04:00
Kohei Yoshida
515f74385b ImpEditView no longer a friend of ImpEditEngine.
Be careful whom you befriend with...
2012-04-13 23:35:51 -04:00
Kohei Yoshida
e95eb1b221 EditView is no longer a friend of ImpEditEngine. 2012-04-13 23:35:50 -04:00
Kohei Yoshida
ff887e8821 SafeGetObject() no longer needed since GetObject() does the same thing. 2012-04-13 23:35:50 -04:00
Kohei Yoshida
cd967bdb95 UniString to rtl::OUString. 2012-04-13 23:35:50 -04:00
Caolán McNamara
8d7e8a0a3b setup/teardown default component context once before/after all tests
avoids the problems of dangling uno singletons invalidated after the first
dispose and the chain of other singletons that don't expect to need to
re-initialize, etc.

reenable editeng cppunit test

inherit i18npool cppunit test from unotest base

drop LibreOfficeProtector, do "throwable" work in setUp/tearDown not
in ctors/dtors
2012-04-13 13:15:25 +01:00
Caolán McNamara
43aabb908e partially revert the editeng singleton stuff to get build to complete 2012-04-12 13:28:06 +01:00
Thomas Arnhold
30fb54aca3 remove formfeeds 2012-04-12 12:35:48 +02:00
Kohei Yoshida
5b14929dd4 Handle the correct deletion order of EditDLL in the base class.
Turns out that this change affected all cppunit runs.
2012-04-12 00:53:55 -04:00
Kohei Yoshida
c0de63a858 Remove the TODO comment that's no longer relevant. 2012-04-11 23:42:19 -04:00
Kohei Yoshida
b5800fac1d We need to delete EditDLL before de-initialize vcl to avoid crash.
Without manually releasing the EditDLL singleton instance, it gets
deleted *after* the cppunit does its cleanup, which de-initializes VCL.
The problem is, when the EditDLL instance is destroyed, its member
GlobalEditData instance deletes the OutputDevice instance that it owns,
which in turn accesses font caches in VCL.  But by the time we reach
that point, VCL is already de-initialized, hence the problem.
2012-04-11 23:41:51 -04:00
Kohei Yoshida
a9448bd1b7 Avoid duplicate symbols & use setUp() and tearDown() for the item pool. 2012-04-11 21:53:33 -04:00
Kohei Yoshida
1bcd2c9493 Just use the internal item pool already written for the edit engine. 2012-04-11 21:27:34 -04:00
Kohei Yoshida
e487d2fbf6 You *are* fixed. 2012-04-11 20:47:58 -04:00
Kohei Yoshida
8b216a7aa3 Set default items to the item pool, do this and that, and now the test passes. 2012-04-11 20:46:45 -04:00
Caolán McNamara
6089be1a7a needs ure and base-class setUp does necessary stuff 2012-04-11 21:22:55 +01:00
Kohei Yoshida
a78a7ee9f7 Do this special case search only when the array is large enough.
Otherwise the normal linear search should be sufficient.  Eventually
we need to use a better algorithm here than this special case handling...
2012-04-11 15:36:00 -04:00
Kohei Yoshida
e981a10233 Add the right license header here... 2012-04-11 14:55:58 -04:00
Kohei Yoshida
d241251638 Attempt to add general-purpose unit test for editeng.
But instantiating EditEngine causes segfault.  The line is commented
out for now.
2012-04-11 14:30:58 -04:00
Kohei Yoshida
5d2b0f25f1 Killed Another instance of svarray. 2012-04-09 11:06:10 -04:00
Kohei Yoshida
6cb65d8db3 Bool changes. 2012-04-09 11:06:10 -04:00
David Tardon
6de7392829 add package deps for resources 2012-04-09 10:09:23 +02:00
Szabolcs Dezsi
e4fb171d3a Replaced a few equal calls with == 2012-04-08 19:24:00 +02:00
Michael Stahl
4c50f23f87 LinkTarget.mk: remove gb_LinkTarget_add_package_headers 2012-04-08 01:05:53 +02:00
Michael Stahl
c923f7d2c2 gbuild: "use" vs. "add":
Naming convention for gbuild methods:
- "add" is used for stuff that is logically a part of the target
  (i.e. not registered at the Module, but defined in the target's makefile)
- "use" is used for stuff that is logically a different target
  (i.e. it is registered at the Module, has it's own makefile, may be
  in a different module than the target)
2012-04-08 01:05:52 +02:00
Julien Nabet
a160601163 Fix Prefer prefix ++/-- operators 2012-04-08 01:01:31 +02:00
Luboš Luňák
837aa67861 reduce overzealous naming 2012-04-06 20:10:51 +02:00
Szabolcs Dezsi
743f22045c Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 15:07:41 +02:00
Szabolcs Dezsi
f770c5d6bc Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)return \([^()]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *);/\1return \2 == \3;/' \{\} \;
2012-04-06 12:48:32 +02:00
Caolán McNamara
53600134ec no use is made of FmFormObj::m_nType 2012-04-05 13:59:06 +01:00
Caolán McNamara
c8ec810324 pure virtual with unused baseclass impl 2012-04-05 13:57:22 +01:00
Kohei Yoshida
c770d2c847 Method declared but not implemented. Removing... 2012-04-04 16:40:54 -04:00
Kohei Yoshida
e0fd2c61e4 dbgutil fix. 2012-04-04 16:22:52 -04:00
Kohei Yoshida
0e355da592 De-coupled ContentNode from XubString inheritance. 2012-04-04 15:09:23 -04:00
Kohei Yoshida
35c1747717 Merge EditAttrib into EditCharAttrib.
This separation makes no sense.
2012-04-04 15:09:23 -04:00
Takeshi Abe
b905ac19da removed unused defines 2012-04-05 00:01:10 +09:00