Kaydet (Commit) 7a3bfca5 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Broadcast and re-paint when the XML import is complete.

Change-Id: I8bf7a3331a24d39ce327264cd43ccb5910ce1251
üst 78ac5e85
......@@ -15,10 +15,12 @@
#include "orcusfilters.hxx"
#include "filter.hxx"
#include "reffact.hxx"
#include "tabvwsh.hxx"
#include "unotools/pathoptions.hxx"
#include "tools/urlobj.hxx"
#include "svtools/svlbitm.hxx"
#include "sfx2/objsh.hxx"
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/ui/dialogs/XFilePicker.hpp>
......@@ -485,12 +487,22 @@ void ScXMLSourceDlg::OkPressed()
}
}
// Now do the import.
ScOrcusFilters* pOrcus = ScFormatFilter::Get().GetOrcusFilters();
if (!pOrcus)
return;
pOrcus->importXML(*mpDoc, maSrcPath, aParam);
// Don't forget to broadcast the change.
SfxObjectShell* pShell = mpDoc->GetDocumentShell();
pShell->Broadcast(SfxSimpleHint(FID_DATACHANGED));
// Repaint the grid to force repaint the cell values.
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
if (pViewShell)
pViewShell->PaintGrid();
Close();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment