[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.2' - cui/source

2014-12-18 Thread Jan Holesovsky
 cui/source/dialogs/SpellDialog.cxx |   14 +-
 1 file changed, 9 insertions(+), 5 deletions(-)

New commits:
commit 7d526bd5b97ce6c627f1e0d6ec540d9acb820621
Author: Jan Holesovsky ke...@collabora.com
Date:   Thu Dec 18 21:42:13 2014 +0100

spell dialog: Make [Close] work in protected documents with editable fields.

We have to call ToggleChildWindow directly; calling SfxDispatcher's 
Execute()
does not work here when we are in a document with protected section - in 
that
case, the cursor can move from the editable field to the protected area, and
the slots get disabled because of SW_DISABLE_ON_PROTECTED_CURSOR (see
FN_SPELL_GRAMMAR_DIALOG in .sdi).

(cherry picked from commit 08e0a79aeba6fd41cbb51de3be48659619f27206)

Conflicts:
cui/source/dialogs/SpellDialog.cxx

Change-Id: I1c310c028aaaf774431d0b1e6bba10e901a8166d

diff --git a/cui/source/dialogs/SpellDialog.cxx 
b/cui/source/dialogs/SpellDialog.cxx
index 5eb92a3..0602223 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -736,16 +736,20 @@ IMPL_LINK_NOARG(SpellDialog, IgnoreHdl)
 return 1;
 }
 
-// ---
+
 
 sal_Bool SpellDialog::Close()
 {
-GetBindings().GetDispatcher()-
-Execute(rParent.GetType(),
-SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD);
+// We have to call ToggleChildWindow directly; calling SfxDispatcher's
+// Execute() does not work here when we are in a document with protected
+// section - in that case, the cursor can move from the editable field to
+// the protected area, and the slots get disabled because of
+// SW_DISABLE_ON_PROTECTED_CURSOR (see FN_SPELL_GRAMMAR_DIALOG in .sdi).
+SfxViewFrame::Current()-ToggleChildWindow(rParent.GetType());
+
 return sal_True;
 }
-// ---
+
 
 void SpellDialog::SetSelectedLang_Impl( LanguageType nLang )
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.2' - cui/source

2014-11-23 Thread Noel Grandin
 cui/source/customize/cfg.cxx |1 +
 1 file changed, 1 insertion(+)

New commits:
commit f97025d1c6db6fb0bde601d48005399a9422e7c9
Author: Noel Grandin n...@peralex.com
Date:   Mon Nov 10 12:16:41 2014 +0200

fdo#76658 fix bad conversion of old-style UNO service..

in my commit 0394cb37a2d378511f265004b285fd93df37e5ca
fdo#46808, Convert ui::ImageManager to new style

Change-Id: I77d3189723403221e7388969b1eb892a244b90af
Signed-off-by: Stephan Bergmann sberg...@redhat.com
(cherry picked from commit 00ddedcb477ed09b5649e816b629234d5689b861)
Reviewed-on: https://gerrit.libreoffice.org/13069
Reviewed-by: Maxim Monastirsky momonas...@gmail.com
Tested-by: Maxim Monastirsky momonas...@gmail.com

diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index c646ec6..9c4e1e8 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -5015,6 +5015,7 @@ SvxIconSelectorDialog::SvxIconSelectorDialog( Window 
*pWindow,
 aProp[ 1 ] = aPropValue;
 
 m_xImportedImageManager = css::ui::ImageManager::create( xComponentContext 
);
+m_xImportedImageManager-initialize(aProp);
 
 ImageInfo mImageInfo;
 uno::Sequence OUString  names;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits