Commit Graph

1737 Commits

Author SHA1 Message Date
Thomas Arnhold
59c8cfffa7 Remove some more PCH traces
Change-Id: Iafca82ac728feba97fb68523dcb032b0e17e5a3c
2012-06-29 09:25:09 +02:00
Thomas Arnhold
ee1c5c4768 Reduce newline bloat at eof
Change-Id: I494ceee07d6825f9466cab810742d7f85291fe14
2012-06-27 13:32:28 +02:00
Michael Meeks
46b8dbda43 re-base on ALv2 code. 2012-06-26 21:48:59 +01:00
Thomas Arnhold
66cd9eeb90 Remove various commented out defines
Most of them in hrc files.

Change-Id: I3944f6ed9befd2b498385f61b851790362221a4f
2012-06-25 14:12:57 +02:00
Takeshi Abe
eeb5bea1d4 removed unused forward declarations of class
Change-Id: Iee1b78242e210466375376da3e4dbbaec609cc03
2012-06-20 00:50:59 +09:00
Thomas Arnhold
e06d6e3956 hrc cleanup: Remove completely unused RIDs
These RID definitions aren't used at any other point. So remove
them. Unused START and END definitions were commented out for
documentation purpose.

All definitions in basctl/source/basicide/tbxctl.hrc were unused,
so I removed this file.

Change-Id: I4713188a12b9da912b2a91b85ea4e54ca1aeb994
2012-06-15 08:22:09 +02:00
Michael Meeks
39669162e0 re-base on ALv2 code. 2012-06-12 17:03:23 +01:00
Caolán McNamara
8f5629fd5a remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
2012-06-11 14:46:46 +01:00
Thomas Arnhold
3770bbbdba Remove superfluous empty lines on top
More than two lines are removed for readability.

Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
2012-06-09 04:57:58 +02:00
Noel Grandin
d08578912f fdo#46808, Adapt UNO services to new style, Part 7, updating ::create
Update calls to factories to use new SimpleFileAccess::create method

Change-Id: Ie5b0696fe2228a9033b19969245a53c21a61aa14
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-06 10:01:22 +02:00
Stephan Bergmann
683312377a Removed unused SfxMedium::bDirect
See the TODO comment in sfx2/inc/sfx2/docfile.hxx about a temporary SfxMedium
ctor overload to find not yet adapted uses of another overload, to be removed
again in due time.

Change-Id: Ie22c33c32f8870ce6ebf6d500abc7a4e33d97183
2012-05-24 11:38:12 +02:00
Caolán McNamara
8a0685d49f make ResId::toString a non-static member
Change-Id: I756c0a19bea7b1cc0e290d9f382a04d655819bfb
2012-04-30 11:22:09 +01:00
Tor Lillqvist
aa155d9307 WaE: equality comparison with extraneous parentheses 2012-04-24 12:22:12 +03:00
Takeshi Abe
ac7f7b0462 removed unused defines 2012-04-20 01:57:32 +09:00
Takeshi Abe
3f7c262363 removed unused const/static data 2012-04-20 01:57:32 +09:00
Michael Stahl
d85b7f1548 move tools/table.hxx to binfilter 2012-04-18 17:55:06 +02:00
Takeshi Abe
b1bee56af9 calling GetChar() only once suffices 2012-04-18 00:24:17 +09:00
Takeshi Abe
f00d60997e replaced String by rtl::OUString 2012-04-18 00:24:17 +09:00
Takeshi Abe
0432c53149 removed useless static data 2012-04-17 05:15:07 +09:00
Takeshi Abe
f4137c8e45 removed unused defines 2012-04-17 05:15:06 +09:00
Julien Nabet
8bfee2c0eb Resolves: fdo#48368 CRASH closing IDE 2012-04-16 21:16:47 +02:00
Caolán McNamara
41e055112e String::CreateFromInt32->rtl::OUString::valueOf 2012-04-11 12:06:23 +01:00
Julien Nabet
39ba666f80 Fix "Same expression..." reported by cppcheck 2012-04-08 22:20:20 +02:00
Szabolcs Dezsi
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
Szabolcs Dezsi
8a01ee6243 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 14:30:05 +02:00
Noel Grandin
9ef0b8e3aa Convert tools/table.hxx to std::set in EditorWindow class in basctl module 2012-04-02 23:18:19 +02:00
Noel Grandin
e5a916eeee Convert tools/table.hxx usage to std::set in Calendar class in svtools module
Also change the API slightly, removing GetSelectedData(int index) and replacing
it with GetLastSelectedDate(), since the only usage of GetSelectedData in
the codebase only needed to get the last date.
2012-04-02 23:15:20 +02:00
Markus Mohrhard
da2c7a91ad add missing tools/table.hxx include 2012-03-29 21:22:00 +02:00
Caolán McNamara
e443216ce2 readUnicodeString can just return the string
seeing as no-one checks the return value, we don't need
the intermediate temporary string
2012-03-26 12:18:09 +01:00
Fridrich Štrba
0a8596dd8e Revert "fix debug build"
This reverts commit 0589dd3fb5.

Given the find above, this assert will never be triggered anyway
2012-03-22 14:47:06 +01:00
Fridrich Štrba
0589dd3fb5 fix debug build 2012-03-22 09:23:15 +01:00
Stephan Bergmann
a603634f35 Fixed previous commit for --enable-dbgutil mode 2012-03-22 08:12:08 +01:00
Noel Grandin
000bb6af72 Convert tools/table.hxx usage to std::map in Basic IDE module 2012-03-22 06:39:52 +01:00
Caolán McNamara
8550b42a1d remove extra string casts 2012-03-20 12:57:31 +00:00
Stephan Bergmann
6e67c03dc0 Enable -Wnon-virtual-dtor for GCC 4.6
...which has the necessary features to support it.

Change a lot of classes to either contain a protected non-virtual dtor
(which is backwards compatible, so even works for cppumaker-generated
UNO headers) or a public virtual one.

cppuhelper/propertysetmixin.hxx still needs to disable the warning, as
the relevant class has a non-virtual dtor but friends, which would still
cause GCC to warn.

Includes a patch for libcmis, intended to be upstreamed.
2012-03-14 13:32:02 +01:00
Luboš Luňák
3f765e5bb2 replace usage of OUString::replace*AsciiL() with string literal overloads 2012-03-12 13:35:57 +01:00
Tomcsik Bence
0e8eb19a53 Object Catalog pane in Basic IDE
Object Catalog was a floating window. It has been converted to a fixed
pane on the right hand side of the editor window. While it is a
BasicDockingWindow, at the moment it is not possible to undock, move,
or resize it. Also, the Object Catalog toolbar button does not show
the visibility status of the pane, ideally it should look pressed, when
the Object Catalog pane is visible. Another missing feature is that
the Object Catalog pane cannot be switched on together with the
dialog editor.
2012-03-11 21:49:13 +01:00
Stephan Bergmann
bd205223ec New IMPL_LINK_NOARG to work around SAL_UNUSED_PARAMETER problem
...see ebe26f72e9 "WaE: 'unused' attribute ignored when parsing type"
for the problem.
2012-03-01 18:00:32 +01:00
Tomcsik Bence
491592015b implement scrolling with mouse in Object Catalog dialog
I edited out the ObjectTreeListBox class because BasicTreeListBox
contains the scroll function and all the other functions that the
ObjectTreeListBox uses.
2012-03-01 13:35:11 +01:00
Tomcsik Bence
4022a834b5 Object Catalog button now toggles display of the dialog
TODO: implement a toggle toolbar button that shows the toggle state
2012-03-01 13:35:10 +01:00
Tomcsik Bence
efd4db1e6b make button label and dialog title consistent (Object Catalog) 2012-03-01 13:35:10 +01:00
Takeshi Abe
03591233c1 Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
2012-02-18 23:19:41 +09:00
Stephan Bergmann
9ab0b38e95 Various string function clean up
Added:
* rtl::OString::matchL
* rtl::OString::endsWith
* rtl::OString::endsWithL
* rtl::OString::indexOfL
* rtl::OString::replaceFirst
* rtl::OString::replaceAll
* rtl::OString::getToken
* rtl::OUString::endsWith
* rtl::OUString::replaceFirst
* rtl::OUString::replaceFirstAsciiL
* rtl::OUString::replaceFirstAsciiLAsciiL
* rtl::OUString::replaceAll
* rtl::OUString::replaceAllAsciiL
* rtl::OUString::replaceAllAsciiLAsciiL
* rtl::OUString::getToken
plus underlying C functions where necessary

Deprecated:
* comphelper::string::remove
* comphelper::string::getToken

Removed:
* comphelper::string::searchAndReplaceAsciiL
* comphelper::string::searchAndReplaceAllAsciiWithAscii
* comphelper::string::searchAndReplaceAsciiI
* comphelper::string::replace
* comphelper::string::matchL
* comphelper::string::matchIgnoreAsciiCaseL
* comphelper::string::indexOfL

Also fixed some apparent misuses of RTL_CONSTASCII_USTRINGPARAM ->
RTL_CONSTASCII_STRINGPARAM.
2012-02-15 15:41:09 +01:00
Tomcsik Bence
1f0784d2b8 Wrong size of 'Remove watch' button at Basic IDE. fdo#44237
This patch resize the nVirtToolBoxHeight in WatchWindow::WatchWindow if
the aRemoveWatchButton plus some space is higher than nVirtToolBoxHeight. So
the aRemoveWatchButton doesn't go into aHeaderBar.
2012-02-13 22:52:43 +01:00
Takeshi Abe
254f372b01 Use defined utility BASIC_DLL()/BASIC_MOD() 2012-02-07 00:31:29 +09:00
Takeshi Abe
baf5ffc7c0 Removed dead code 2012-02-07 00:31:28 +09:00
Stephan Bergmann
6fca59d9c2 Simplify code by making getProcessComponentContext() implicit. 2012-01-31 17:26:57 +01:00
Korrawit Pruegsanusak
a1275f841a use SAL_CALL - fix bulid in msvc 2012-01-30 11:41:52 +00:00
Stephan Bergmann
e8bb827571 Fixed cppheader.xsl nillable treatment.
* cppheader.xsl had initially been written under the false assumption that a
missing oor:nillable attribute defaults to "false" instead of "true".  That has
been fixed.
* As a result, many places that use the new simplified officecfg/*.hxx headers
broke as they did not expect value types to be wrapped boost::optional.  To keep
the code simple, I decided to change all occurrences in
officecfg/registry/schema/ of properties that specify a default <value> and do
not explicitly specify oor:nillable="true" to oor:nillable="false".  Strictly
speaking, this is an incompatible change, but in many cases it should be what
was intended, anyway.
* Some places that use the new simplified officecfg/*.hxx headers still had to
be adapted to boost::optional wrapping.
* This showed that unotools/configuration.hxx did not yet work for those wrapped
properties and needed fixing, too.
2012-01-30 12:27:47 +01:00
Takeshi Abe
bb51e8e72b Deleting a null pointer is safe 2012-01-26 03:03:08 +09:00