Commit graph

10173 commits

Author SHA1 Message Date
Caolán McNamara
75b8d8f597 expose m_pActionArea so subclasses can add buttons to the right place
Change-Id: If0169cc12dc7b2b70996a5798b8c59b2e6e2edae
2012-10-18 14:47:28 +01:00
Kohei Yoshida
4b313fd566 Merge SvListEntry and SvLBoxEntry into SvTreeListEntry.
Change-Id: I89cfc8c1288c00674fe64e791c149743d377d5ee
2012-10-19 11:45:36 +02:00
Caolán McNamara
8274df85df make use of ability to use bold in labels
Change-Id: I3989d552ef286ba2e63cbd2a9fee32a8358ca74c
2012-10-17 16:06:29 +01:00
Caolán McNamara
22a550690b Related: fdo#47250 catch harder
Change-Id: Ie6b26670a6809fc07b344660111be44cb3e6a011
2012-10-14 14:35:43 +01:00
Caolán McNamara
581438a0c6 lcl_createTemplate declared but not defined
Change-Id: I755853c326c5e3dbeae18e3fdb9f7b5607aac874
2012-10-12 13:03:42 +01:00
Luboš Luňák
190334febe mark lcl_ functions static or rename them if they are not local at all
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html

Change-Id: I1a0e436051d48e7f6224d6f0fc602347df2d4df1
2012-10-12 13:34:48 +02:00
Kohei Yoshida
ac7acb0ab1 Merged SvTreeListBox and SvLBox.
There is no reason to keep SvLBox separate.

Change-Id: I0b34aa8f8ca539d4f4f0f9cea9fa9b8faec241e8
2012-10-11 23:35:15 -04:00
Cédric Bosdonnat
c767f82403 CMIS: Implemented the CheckOut button of the InfoBar
Implementing it needed:
 + Adding XCmisDocument::checkOut method and implement it in SfxBaseModel
 + Moving the CMIS properties loading into a SfxBaseModel private method to
factorize code.
 + Adding the SfxInfoBarContainerChild registration in all modules

Change-Id: I35bcb53cd2feff354aa5d9245897d0631cc924a0
2012-10-11 17:31:18 +02:00
Cédric Bosdonnat
9d9eb583f5 CMIS: Show an infobar when the document isn't checked out
Telling the user that the document isn't checked out is pretty important
as it may cause troubles for the Save operation later (depending on the
server policy)

Change-Id: Ia101d37cc6266170914ae2cbd90accea1f377f60
2012-10-11 17:31:17 +02:00
Cédric Bosdonnat
f5a84d8c1a CMIS: Provide the CMIS properties in the UNO API of documents
Change-Id: Ieb48f615a80e1fa2d49b4efada1f8f9fc4349c29
2012-10-11 17:31:17 +02:00
Cédric Bosdonnat
97aa108f2b InfoBars: first implementation
Change-Id: I4b18f19f5cf13d648a8d10cc31c63bb330a86b6f
2012-10-11 17:31:17 +02:00
Caolán McNamara
1a3a787766 import password echo char setting
Change-Id: I36a82a8bb915e72a191787a2e44f9bd814271ea1
2012-10-11 11:15:41 +01:00
Tor Lillqvist
b62bead21d Revert "More clash avoidance for DISABLE_DYNLOADING in general, not just iOS"
Not needed after all, at least for DISABLE_DYNLOADING on Android,
instead let's use the weak attribute for the problematic data.

This reverts commit 769f3957c5c72f2952d6b8d0d1d811a6b19226ad.
2012-10-11 10:07:05 +03:00
Tor Lillqvist
3851616b3f More clash avoidance for DISABLE_DYNLOADING in general, not just iOS
Change-Id: I1995d68a654a7eb56a46241ffa8946ce1e52761a
2012-10-11 10:07:04 +03:00
Caolán McNamara
bf59cceafd fix blank dialogs: now need to explicitly call show on containers
Change-Id: I803f808e7049777ec5a46dc2fce00a3943321ffa
2012-10-09 22:03:14 +01:00
Julien Nabet
1f79b55bca Some cppcheck cleaning
Change-Id: I9ce4af18d1cdbf694093309a026fd6c738590b82
2012-10-07 17:09:36 +02:00
Tor Lillqvist
5c02bb0f02 DISABLE_DYNLOADING fixes and minor cleanup
Change-Id: I08ce3523f259b1ace7c2a1a58b091b43a44a7d92
2012-10-07 11:54:14 +03:00
Peter Foley
1cf215b16f add needed libraries to sfx2_metadatatable
Change-Id: I83aaa7170f59f89e4f1e7715295edceca3a9bef4
2012-10-07 10:42:26 +02:00
Tor Lillqvist
97593ae24a Handle lack of module loading/unloading API when DISABLE_DYNLOADING
There are basicically two classes of cases:

1) Where the code is for obscure historical reasons or what I see as
misguided "optimization" split into a more libraries than necessary,
and these then are loaded at run-time. Instead, just use direct
linking.

2) Where dynamic loading is part of the functionality offered to some
upper (scripting etc) layer, or where some system-specific non-LO
library is loaded dynamically, as it is not necessarily present on
end-user machines. Can't have such in the DISABLE_DYNLOADING case.

Change-Id: I9eceac5fb635245def2f4f3320821447bb7cd8c0
2012-10-07 07:59:15 +03:00
Caolán McNamara
06e3724d1c convert password dialog to .ui
Change-Id: Ib2e9c5a72239fc0fa3a54ac3717d90fe1b779d63
2012-10-05 14:37:49 +01:00
Stephan Bergmann
9db74c6133 fdo#46071: Do not hide windows based on nil "Visible" property
This appears to be messy:  The /org.openoffice.Office.Views/WindowType
configuration group template has both a nilable bool "Visible" property and a
UserData/Data string property that encodes various things like geometry---but
also visibility---in a string.

Now, likely due to the problem that has meanwhile been fixed through
f3f79cc9e6 "Resolves fdo#46074: Fix
Partial::contains for paths that go past a leaf node," some
registrymodification.xcu files in the wild contain such WindowType entries in
"default" state, without a UserData/Data string and with a nil "Visible"
property.

The way SfxChildWindow::InitializeChildWinFactory_Impl and
SvtViewOptions::IsVisible are implemented, they will always lead to an invisible
window for such broken registrymodification.xcu data (as IsVisible unhelpfully
returns false for a nil value, and InitializeChildWinFactory_Impl uses that
value when there is no UserData/Data string).

For the Math formula editor window (ID 30378) this means that it can disappear
from the UI completely, as there appears to be no UI trigger for the user to
show it in case it is hidden.

The fix is to introdue SvtViewOptions::HasVisible (which only returns true if
the property is not nil) and change InitializeChidlWinFactory_Impl to only use
the value of IsVisible() if HasVisible() returns true.  This makes the code even
more baroque, but this is a rather central, generic piece of code for all sorts
of windows, so I do not want to break any other uses by e.g. changing IsVisible
to return true for a nil property.

Change-Id: Iae40075a7116a8aabd2d25aa9334709522e23d8f
2012-10-05 15:19:05 +02:00
Noel Grandin
a20f9a410f fdo#46808, Adapt xml::sax::XParser UNO service to new style
The xml.sax.Parser service already existed, it just did not have
a new-style service to create it.

Change-Id: I6f145a7504ff9e149c802f723991954a2801cbc9
2012-10-04 16:29:53 +02:00
Stephan Bergmann
dd11a1e57a Fixes/improvements on previous commit
* UUIInteractionHandler still needs to implement XInitialization.

* Moved ambiguating InteractionHandler typedef out of the way.

* Removed InteractionHandler.createDefault, as it was originally stated that "it
  is strongly recommended that [the "Parent"] property is supplied."

* Added back documentation about Parent and Context.

* Simplified some call-sites to directly use XInteractionHandler2.

Change-Id: I1029b8f3cf079171c75920cafaaa44b5bbada883
2012-10-04 14:42:52 +02:00
Noel Grandin
c25cb8a641 fdo#46808, Adapt task::InteractionHandler UNO service to new style
Since we don't need to expose XInitialisation, we can make the new-style
service implement XInteractionHandler2.

Change-Id: Ib27beed1c12df17592c6472d6f58c233d2c41558
2012-10-04 14:42:52 +02:00
Andras Timar
55c2619f68 rename THIRDPARTYLICENSEREADME.html to LICENSE.html
Change-Id: Idff5f43190f75f4ac8fee8fa989948ca35ca6095
2012-10-03 16:59:30 +02:00
Cédric Bosdonnat
02394b10d3 n#782597: Allow adding external templates
Change-Id: I56d5a716795b7303a77194964a612c550f25eeec
2012-10-03 15:43:45 +02:00
Caolán McNamara
857a26eb17 XubString->OUString
Change-Id: I49d2d41ad4d5ee4ececf5a57eae070898e33075f
2012-10-02 12:45:13 +01:00
Caolán McNamara
d67dff5719 XubString->OUString
Change-Id: Id64cdd70c2877ff71c5bc90286fab6b3d8ab7ad4
2012-10-02 00:05:57 +01:00
Arnaud Versini
36a2db3722 Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01 18:48:05 +00:00
Stephan Bergmann
c2ca6fabd1 Use comphelper::getComponentContext
...and some further clean up.

Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-29 18:18:28 +02:00
Michael Stahl
5032dc0fc3 gbuild: invert handling of standard system libraries:
Always link in gb_STDLIBS, except when the library explicitly opts out
with gb_LinkTarget_disable_standard_system_libs.

Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
2012-09-28 16:49:08 +02:00
Michael Stahl
dc397aae70 gbuild: gb_Library_PLAINLIBS_NONE cleanup for WNT:
add a new gb_LinkTarget_use_system_win32_libs to abstract different
linker options on MSVC and GCC.

Change-Id: Ic9bf2545f59bf7871e6fc06b290c486ddfbec03d
2012-09-28 16:49:08 +02:00
Michael Stahl
cee32aae39 gbuild: clean up Mac OS X framework handling:
There are currently 3 different mechanisms being used for frameworks,
which is of course intolerable so we invent a 4th one and standardize on
it:  gb_LinkTarget_use_darwin_frameworks

(This doesn't mean using add_libs or externals was wrong, it was just
inconsistent... and i don't see an obvious benefit of using externals here)

Change-Id: I5de9020402c87e7236c6a358c47f02fa56642d3d
2012-09-28 16:49:07 +02:00
Michael Stahl
b85c349783 gbuild: replace direct gb_STDLIBS use with ...
... new gb_LinkTarget_add_standard_system_libs

Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
2012-09-28 16:49:06 +02:00
Michael Stahl
2e677c3981 gbuild: split uwinapi out of gb_STDLIBS
Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
2012-09-28 16:49:05 +02:00
Stephan Bergmann
469780c715 fdo#54744: Fix broken logic of string comparison
d1cc007108 "sal_Bool to bool, String to OUString,
in SfxMedium." changed

  !aLogicName.CompareToAscii( "private:stream", 14 ) == COMPARE_EQUAL     // (a)

where that suspicious ! made it effectively behave as

  aLogicName.CompareToAscii( "private:stream", 14 ) != COMPARE_EQUAL      // (b)

to

  (aLogicName.compareToAscii("private:stream", 14) == 0)                  // (c)

where (c) corresponds to (a), but the intended behavior was apparently (b):
Exporting to hybrid PDF now causes the embedded ODF stream (which is saved to a
private:stream URL) to be empty, as (c) is erroneously satisfied now, causing
the following lines to erroneously clear SID_OUTPUTSTREAM.

Change-Id: Ia2c1a69db7b4da07bfe01f52c3f6759301358a84
2012-09-28 12:55:37 +02:00
Caolán McNamara
478a4a3ca4 adapt ThumbnailView::ImplInitScrollBar
Change-Id: I6b675874fd683f1c9311322c4662f33380f9c113
2012-09-28 08:48:55 +01:00
Caolán McNamara
a390a10269 move layout diagnostics to vcl.layout channel
Change-Id: Ib33d91ea56219036182d30fdd3dc2159ce32a48c
2012-09-28 08:48:51 +01:00
Caolán McNamara
4d173556cf convert hard-coded layout of two-lines tabpage to .ui
Change-Id: I87da59af50420993303111dae0ec4456ae15cc20
2012-09-28 08:48:48 +01:00
Caolán McNamara
87b5cdd5ed convert writer, draw, impress, calc and starmath printer dialogs
to new-style widget layout mostly described in .ui format

Change-Id: I8ead53a246a8ac3e2d446d158f06d7e2e436ce60
2012-09-28 08:48:44 +01:00
Caolán McNamara
2aa2a25157 enable SfxModelessDialog to load from .ui as well
Change-Id: I31c93091778b9fd51521699c955df8834b9168ff
2012-09-28 08:48:41 +01:00
Caolán McNamara
08079bd1df get_by_name -> get and pretty up widget type casting
Like Noel G points out, it's not like there any other way to get
a widget other than "by_name"

Change-Id: Iefe2a16472e2916dbeba1ba3c0c115cc6416ab5b
2012-09-28 08:48:37 +01:00
Caolán McNamara
0296b3a694 ditch over complex property buckets
A fairly small fixed number of properties are needed, so simplify

Change-Id: Iedce02264816666dbac53d7ad3cfb64be8e1c8bb
2012-09-28 08:48:35 +01:00
Caolán McNamara
4b06d11a86 fix merge conflict
Change-Id: I48aedf99459f632e2e94db20be44b0bc5d166805
2012-09-28 08:48:33 +01:00
Caolán McNamara
afdfa760f6 put apply button into button action area 2012-09-28 08:48:31 +01:00
Caolán McNamara
00b4b4123a tweak SfxTabDialog so that it can use VclBuilder provided 'internal' widgets 2012-09-28 08:48:28 +01:00
Caolán McNamara
dc601c038d dynamically create SfxTabDialog widgets
so we can easily implement creating them vs reusing builder-provided
ones.
2012-09-28 08:48:27 +01:00
Caolán McNamara
328bada54e move dialog-contained widget builder into dialog baseclass 2012-09-28 08:48:27 +01:00
Caolán McNamara
3747d670f9 put the cui zoom dialog into the right place 2012-09-28 08:48:21 +01:00
Caolán McNamara
a983689039 Implement conversion scheme for dialogs without changing their code
This supports a scheme where we can change over a dialog to GtkBuilder xml
without touching its code by the presence of a .ui file in the right place e.g.
share/config/soffice.cfg/cui/10000.ui for the zoom dialog
2012-09-28 08:48:20 +01:00