Commit Graph

273 Commits

Author SHA1 Message Date
b248624126 fdo#46808, Convert frame::Frame to new style
Change-Id: I74427d1e0059808f04960c648b93245b06c20f7f
2013-04-08 13:53:04 +02:00
08b91c6313 remove unused GetCurDocViewWin
Change-Id: I7fe825cd1fb9e988eb8037e1f5dca7252c192f33
2013-04-01 13:20:10 +02: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
5b04c9063c remove unused and commented out code
This code gets never called.

Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
2013-03-04 11:34:07 +00:00
c12ab867f2 Remove unused methods
GetOptimalSizePixel and GetHCtrlWidth are never called

Change-Id: Ib2ce1445447e85de66683f8b0fdf4fc8aa464084
2013-02-09 11:29:37 +01:00
56d3de7360 Bin pointless _SOLAR__PRIVATE which was always 1 anyway
Change-Id: I98f35920f02d4ee71787a9968158b220af69bde6
2012-11-20 15:01:31 +02:00
d2f6a87ac7 fdo#46808, use service constructor for i18n::NumberFormatMapper
Also create a utility constructor for LocaleDataWrapper, which
simplifies many of the calling sites.

Change-Id: Ic8510b51c4201fa17fc0620e18d3e258e43636ba
2012-11-15 08:28:44 +01:00
b596ce9bb1 OUString cleanup finished in basctl
Change-Id: I6d18f5cde7866828ca95ccff702eb86d2e40c58d
Reviewed-on: https://gerrit.libreoffice.org/925
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2012-10-27 15:48:27 +00:00
fe6913b968 OUString cleanup and some identation
Change-Id: Id222047750b7527e35977b73213ceeb12a53b57a
Reviewed-on: https://gerrit.libreoffice.org/924
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-10-27 15:42:31 +00:00
bb414e9eee rtl::OUString to OUString in basctl
Change-Id: Iaa56c5f8a15032c3102ad58011c80e3c86fe287c
2012-10-09 20:00:24 +05:30
6cb080ff91 ::rtl::OUString to OUString in basctl
Change-Id: I7be699102eab9cbf7184a5777a4b161db885adec
Reviewed-on: https://gerrit.libreoffice.org/711
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2012-09-28 10:47:07 +00:00
1a42e2458b ::rtl::OUString cleanup in basctl
Change-Id: Icb6f04d6ad22f1652abbb399beb08645daf8b9c9
Reviewed-on: https://gerrit.libreoffice.org/705
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2012-09-27 12:53:49 +00:00
2d67eb7244 -Werror,-Wmismatched-tags
Change-Id: Idc0830c4b893f55f56e0d322e87b4eff4a60d995
2012-09-07 11:58:09 +02:00
70d1b98a53 basctl: int -> long for Point and Size
To be consequent, because Point and Size use long.

Change-Id: I776a1839ee5d2cbdbcedad2b2922cb33b94c7b37
2012-09-07 11:55:31 +02:00
19e7696b0f Basic IDE: Filling space of non-docking windows
Now if we make e.g. the stack window floating, then the watch window
will occupy the whole width of the line (and vice versa, also for the
Dialog Editor with object catalog and property browser). If we put it
back again, than we get back the previous state of the strip.

Change-Id: I634614ff2e9d5f790ad759656a79a38d49c4afc4
2012-09-07 11:55:30 +02:00
81f72a3c3a Cleanup in basctl (raw pointers)
Lots of raw pointers have been converted to boost::scoped_ptr to reduce
the number of 'delete's and the possibility of memory leaks.
Some pointers have been converted to references, to reduce the needless
checking for nullptrs, and so simplifying the code.
Also some #define-s have been converted to C++ constants or enumerations.

Change-Id: Ifbeb78f744bac7a96c8a446ff4db90dedf85fe26
2012-09-07 11:20:48 +02:00
5764c51f2c Fix for docking property browser
This fixes the crash of 'Basic IDE: Docking property browser under
object catalog' commit. The aPropertyBrowser data member was replaced by
a new-allocated pointer. We need this because toolkit releases it by
delete.
When the property browser is closed in the floating state, it tells
DialogWindowLayout to null the pointer. If the user clicks the 'property
browser' button on the toolbar, it is created again.

Change-Id: Ie842a72fe37dfdd2ed5921ffa2f1f41d3f2c51c6
Reviewed-on: https://gerrit.libreoffice.org/568
Tested-by: Noel Power <noel.power@suse.com>
Reviewed-by: Noel Power <noel.power@suse.com>
2012-09-07 09:14:12 +00:00
7d5911e408 Basic IDE: Docking property browser under object catalog
Now the property browser can be docked in the same way as all other
dialogs in the Basic IDE and the Dialog Editor.
The property browser (PropBrw, for which PropertyBrowser would be a
better and easier-to-remember name IMO) is derived from
basctl::DockingWindow instead of SfxDockingWindow. PropBrwMgr was
removed (it seemed to be only a wrapper), and PropBrw is now a data
member of DialogWindowLayout (aPropertyBrowser).

Change-Id: I06737a5cbc985888432630714cb919d1bbbcbb49
Reviewed-on: https://gerrit.libreoffice.org/518
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2012-09-07 09:13:03 +00:00
dddb0429ae -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I6166876b069ac98cf7747eb313f4d3af78ec98dd
2012-08-31 09:04:14 +02:00
c20f15c1eb Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
  LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
  e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...

Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-29 20:48:28 +00:00
e03553ab75 followup changes to 44861f2435a0c487d4fb5b196f7e4fe7f9569396
a) got rid of defaulted params in virtual base class methods
b) made some no-op virtual methods in the base class pure thus making the base
class abstract
c) made LayoutManager no longer inherit utl::ConfigurationListener as it wasn't
actually listening or acting on any configuration changes

Change-Id: Iab1783f6b5a35b130287a2aedbd1dc8413793182
2012-08-17 13:10:45 +01:00
44861f2435 Object Catalog in Dialog Editor
Change-Id: Ia74faa1452a4200c28fbd7c63130700df0a70b24

Object Catalog in Dialog Editor

Change-Id: I97f2e0497b0e87cf630bba16dd98f9f7d0bb86e7
2012-08-17 13:10:15 +01:00
369da987d3 Bin BasicDockingWindow( Window* pParent, const ResId& rResId )
Change-Id: I84f4929eb923bc3d05bdf04a8958cb58b5bfb921
2012-08-10 20:59:49 +02:00
f24cd7aadc make property browser dockable in basic IDE
very basic support for this, basicially you can dock the browser anywhere now
hence lots of behaviour niggles remain, e.g
1) it probably doesn't make sense to be able to dock the browser into top or bottom quadrants ( we need to implement the Docking ( maybe PrepareToggleFloating mode ) method(s) in PropBrw ( propbrw.cxx )
2) open floating or not ( if propertybrowswer is open )
3) should we leave the 'properties' context menu when selecting shapes in place or not
4) switching between Module and Dialog tabs, we probably should 'remember' docked position and state

Change-Id: Ibea4be3397eeac613642934662c3a9868fdf783b
2012-08-08 09:50:36 +01:00
51bb488ac1 IDE: PTR_CAST, ISA to dynamic_cast
Convert the obsolete PTR_CAST and ISA macros (from tools/rtti.hxx) to
C++ dynamic_cast is basctl.

Change-Id: I45530d1d34d132904f812e238ee3b59b1a4f227b
2012-08-07 16:00:14 +03:00
69a70bf028 Remove forwards of non-existing structs
Change-Id: Ie1d7ed56c69539587df5310c0a1ea0476abd5542
2012-08-07 13:45:27 +02:00
d1ba5419cf Remove non-existing forward declarations
Those classes don't exist. So remove friend class operators too.

Change-Id: I8e3b32db933dea7cbab86015f0c926df967511f6
2012-08-07 13:45:26 +02:00
13b9c05133 IDE: sal_Bool to bool
Convert all occurences of sal_Bool, sal_True and sal_False in basctl
to bool, true and false -- except in prototypes of virtual function
overrides. (The virtual functions that are internal to basctl can be
and was converted.) Note that since sal_Bool and bool are implicitly
convertible to each other, for functions that take a sal_Bool (by
value), true and false can be given too.

Change-Id: Ie44740fa87f89e9fedd913840ca2b38e95e6b957
2012-08-07 11:01:01 +03:00
b0f2d55fe5 Basic IDE Object Catalog improvements
Change-Id: I4c3bbf721428e93cdfa8f062f37c5911faba0fa4
2012-08-07 09:14:22 +02:00
621145a777 sal_Bool -> bool
Change-Id: I49749f327d6a9c3661ef9bd684647e0a45b9203a
2012-08-03 10:29:31 +09:00
d73ef723a2 sal_Bool -> bool
Change-Id: Id2addfc6e0c4e0b30281c9f3d22ec0624a61dab1
2012-08-02 10:25:28 +09:00
088915c36b sal_Bool -> bool
Change-Id: I82157e89d04eda35525c5a540504e6a8d18bc86c
2012-08-01 10:06:16 +09:00
6e6564e606 sal_Bool -> bool
Change-Id: Ic982c4da144ecdf7198b84b98d672ced8f1f70b6
2012-07-31 10:18:38 +09:00
321216ea83 Remove strange DummyType
I can see no purpose to DummyType

Change-Id: I25d9d3b321df28f8c2bcb4bf915eb176a14fdaf8
2012-07-29 23:09:38 +01:00
992e5296d7 sal_Bool -> bool
Change-Id: I97618ffb138f292665edb634a29c39ab5a332ab1
2012-07-27 10:38:11 +09:00
9e65cab1e7 sal_Bool -> bool
Change-Id: I32f56e8577264eb9d125dbe3fcba2af7a4361713
2012-07-26 10:07:45 +09:00
264ff0e6e4 sal_Bool -> bool
Change-Id: I009a55e1e399198aef8e5ad3f43230b0aea0b6fe
2012-07-25 16:05:22 +09:00
c55a4639d2 fdo#52223 fix Object Catalog in Basic IDE when resizing
Change-Id: I96861bfcf7c0da6dd94c50acd673dedb14d15204
2012-07-24 10:42:23 +04:00
390fc89057 sal_Bool -> bool
Change-Id: I5b334344a0ead5fde083c952e625d74978f1a927
2012-07-20 07:03:02 +09:00
c064aad68b Remove unused header guards and options
Change-Id: I391358363a9d30e089b249d894b7abea5a2d1434
2012-06-29 09:25:13 +02:00
57154616f0 Remove UNO includes comments
Change-Id: I48e193322967fb75e93eaf81e9e2110d3056f92a
2012-06-29 09:25:09 +02:00
66cd9eeb90 Remove various commented out defines
Most of them in hrc files.

Change-Id: I3944f6ed9befd2b498385f61b851790362221a4f
2012-06-25 14:12:57 +02:00
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
39669162e0 re-base on ALv2 code. 2012-06-12 17:03:23 +01:00
8a0685d49f make ResId::toString a non-static member
Change-Id: I756c0a19bea7b1cc0e290d9f382a04d655819bfb
2012-04-30 11:22:09 +01:00
000bb6af72 Convert tools/table.hxx usage to std::map in Basic IDE module 2012-03-22 06:39:52 +01:00
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
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
90e983df7b Use a smart pointer here instead 2012-01-20 20:47:54 -05:00
90939a7b3d String->OUString 2011-12-10 15:23:25 -05:00