diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-10-12 16:35:27 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-28 13:28:24 -0500 |
commit | cbc00f54a062d7ab94c6a751f170274f673fa461 (patch) | |
tree | 1d1820992232f3275e586b83c70af83b79998a82 /sc/source/ui/xmlsource | |
parent | 3aab0b5fad67d157a659d661f6b3b6ab10583ddc (diff) |
Use param structure to consolidate parameters for loadXMLStructure() call.
Change-Id: I3e5895cd6b2bae4fd18aa13ebf88321f32a95f8d
Diffstat (limited to 'sc/source/ui/xmlsource')
-rw-r--r-- | sc/source/ui/xmlsource/xmlsourcedlg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx index 5f244f278018..6c3369a8accf 100644 --- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx +++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx @@ -42,15 +42,16 @@ ScXMLSourceDlg::ScXMLSourceDlg( maLbTree(this, ScResId(LB_SOURCE_TREE)), maBtnCancel(this, ScResId(BTN_CANCEL)), maImgFileOpen(ScResId(IMG_FILE_OPEN)), - maImgElemDefault(ScResId(IMG_ELEMENT_DEFAULT)), - maImgElemRepeat(ScResId(IMG_ELEMENT_REPEAT)), - maImgElemAttribute(ScResId(IMG_ELEMENT_ATTRIBUTE)), maStrCellLink(ScResId(STR_CELL_LINK).toString()), maStrRangeLink(ScResId(STR_RANGE_LINK).toString()), mpDoc(pDoc), mpActiveEdit(&maEdit), mbDlgLostFocus(false) { + maXMLParam.maImgElementDefault = Image(ScResId(IMG_ELEMENT_DEFAULT)); + maXMLParam.maImgElementRepeat = Image(ScResId(IMG_ELEMENT_REPEAT)); + maXMLParam.maImgAttribute = Image(ScResId(IMG_ELEMENT_ATTRIBUTE)); + maBtnSelectSource.SetModeImage(maImgFileOpen); FreeResource(); @@ -164,8 +165,7 @@ void ScXMLSourceDlg::LoadSourceFileStructure(const OUString& rPath) if (!pOrcus) return; - pOrcus->loadXMLStructure( - maLbTree, rPath, maImgElemDefault, maImgElemRepeat, maImgElemAttribute); + pOrcus->loadXMLStructure(maLbTree, rPath, maXMLParam); } void ScXMLSourceDlg::HandleGetFocus(Control* pCtrl) |