[Libreoffice-commits] core.git: cui/source

Olivier Hallot olivier.hallot at edx.srv.br
Mon Aug 12 00:42:12 PDT 2013


 cui/source/inc/cuires.hrc        |    1 -
 cui/source/tabpages/strings.src  |    4 ----
 cui/source/tabpages/tpbitmap.cxx |   11 +++++------
 3 files changed, 5 insertions(+), 11 deletions(-)

New commits:
commit e3ed1be22214b7ec4039f485c6d2abd4bf5f5ad0
Author: Olivier Hallot <olivier.hallot at edx.srv.br>
Date:   Sun Aug 11 21:46:48 2013 -0300

    Replace read data error dialog with new UI
    
    Change-Id: I1466730309351371943073548403bf7a24cc8b76
    Reviewed-on: https://gerrit.libreoffice.org/5354
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc
index cc1eec8..dacb276 100644
--- a/cui/source/inc/cuires.hrc
+++ b/cui/source/inc/cuires.hrc
@@ -97,7 +97,6 @@
 #define RID_SVXSTR_ASK_CHANGE_COLOR         (RID_SVX_START + 218)
 #define RID_SVXSTR_TABLE                    (RID_SVX_START + 220)
 
-#define RID_SVXSTR_READ_DATA_ERROR          (RID_SVX_START + 230)
 #define RID_SVXSTR_WARN_TABLE_OVERWRITE     (RID_SVX_START + 231)
 #define RID_SVXSTR_WARN_NAME_DUPLICATE      (RID_SVX_START + 236)
 #define RID_SVXSTR_CHARNAME_TRANSPARENT     (RID_SVX_START + 237)
diff --git a/cui/source/tabpages/strings.src b/cui/source/tabpages/strings.src
index c027c06..4ef7c13 100644
--- a/cui/source/tabpages/strings.src
+++ b/cui/source/tabpages/strings.src
@@ -91,10 +91,6 @@ String RID_SVXSTR_TABLE
 {
     Text [ en-US ] = "Table" ;
 };
-String RID_SVXSTR_READ_DATA_ERROR
-{
-    Text [ en-US ] = "The file could not be loaded!" ;
-};
 String RID_SVXSTR_WARN_TABLE_OVERWRITE
 {
     Text [ en-US ] = "The list was modified without saving. Would you like to save the list now?" ;
diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx
index d5de830..d918b59 100644
--- a/cui/source/tabpages/tpbitmap.cxx
+++ b/cui/source/tabpages/tpbitmap.cxx
@@ -468,7 +468,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickAddHdl_Impl)
     {
         aName  = aNewName;
         aName += sal_Unicode(' ');
-        aName += OUString::valueOf( j++ );
+        aName += OUString::number( j++ );
         bDifferent = sal_True;
 
         for( long i = 0; i < nCount && bDifferent; i++ )
@@ -641,9 +641,9 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickImportHdl_Impl)
         }
         else
             // graphic couldn't be loaded
-            ErrorBox( GetParentDialog(),
-                      WinBits( WB_OK ),
-                      String( ResId( RID_SVXSTR_READ_DATA_ERROR, rMgr ) ) ).Execute();
+            MessageDialog( GetParentDialog()
+                          ,"NoLoadedFileDialog"
+                          ,"cui/ui/querynoloadedfiledialog.ui").Execute();
     }
 
     return 0L;
@@ -841,8 +841,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickLoadHdl_Impl)
 
 IMPL_LINK_NOARG(SvxBitmapTabPage, ClickSaveHdl_Impl)
 {
-       ::sfx2::FileDialogHelper aDlg(
-        com::sun::star::ui::dialogs::TemplateDescription::FILESAVE_SIMPLE, 0 );
+       ::sfx2::FileDialogHelper aDlg( com::sun::star::ui::dialogs::TemplateDescription::FILESAVE_SIMPLE, 0 );
     String aStrFilterType( "*.sob" );
     aDlg.AddFilter( aStrFilterType, aStrFilterType );
 


More information about the Libreoffice-commits mailing list