summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-09-26 21:12:11 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-11-28 13:28:21 -0500
commit54a7c1b258f5e12126b263ab6f442f5862896f59 (patch)
tree087e0d07f8bfd13ea5ea0d2fc06da73981b9aa0e
parent23b7be340e94bae597e63ca5bd7fb51f5a436788 (diff)
Use the resource file correctly.
Change-Id: I40af0beaf0de25347e8241c08e3be5f92ac16f93
-rw-r--r--sc/AllLangResTarget_sc.mk1
-rw-r--r--sc/source/ui/src/xmlsourcedlg.src2
-rw-r--r--sc/source/ui/xmlsource/xmlsourcedlg.cxx5
3 files changed, 6 insertions, 2 deletions
diff --git a/sc/AllLangResTarget_sc.mk b/sc/AllLangResTarget_sc.mk
index 50fbd82bc091..766d51da2741 100644
--- a/sc/AllLangResTarget_sc.mk
+++ b/sc/AllLangResTarget_sc.mk
@@ -83,6 +83,7 @@ $(eval $(call gb_SrsTarget_add_files,sc/res,\
sc/source/ui/src/colorformat.src \
sc/source/ui/src/condformatdlg.src \
sc/source/ui/src/condformatmgr.src \
+ sc/source/ui/src/xmlsourcedlg.src \
sc/source/ui/cctrl/checklistmenu.src \
sc/source/ui/navipi/navipi.src \
sc/source/ui/docshell/tpstat.src \
diff --git a/sc/source/ui/src/xmlsourcedlg.src b/sc/source/ui/src/xmlsourcedlg.src
index 7d67abe9da1b..ba80a996bcbc 100644
--- a/sc/source/ui/src/xmlsourcedlg.src
+++ b/sc/source/ui/src/xmlsourcedlg.src
@@ -1,4 +1,3 @@
-
/*
* This file is part of the LibreOffice project.
*
@@ -17,3 +16,4 @@ ModalDialog RID_SCDLG_XML_SOURCE
Moveable = TRUE ;
Closeable = TRUE ;
};
+
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
index 01a09dd4f059..58f764e384f7 100644
--- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx
+++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
@@ -10,9 +10,12 @@
#include "xmlsourcedlg.hxx"
#include "xmlsourcedlg.hrc"
+#include "scresid.hxx"
+
ScXMLSourceDlg::ScXMLSourceDlg(Window* pParent) :
- ModalDialog(pParent, RID_SCDLG_XML_SOURCE)
+ ModalDialog(pParent, ScResId(RID_SCDLG_XML_SOURCE))
{
+ FreeResource();
}
ScXMLSourceDlg::~ScXMLSourceDlg()