Kaydet (Commit) e7df508e authored tarafından Rafael Dominguez's avatar Rafael Dominguez Kaydeden (comit) Joseph Powers

Remove deprecated List in SwInsertGrfRulerDlg.

üst 7efc8161
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
************************************************************************/ ************************************************************************/
#ifndef _INSRULE_HXX #ifndef _INSRULE_HXX
#define _INSRULE_HXX #define _INSRULE_HXX
#include <vector>
#include "num.hxx" #include "num.hxx"
class SwRulerValueSet; class SwRulerValueSet;
...@@ -39,7 +42,7 @@ class SwInsertGrfRulerDlg : public SfxModalDialog ...@@ -39,7 +42,7 @@ class SwInsertGrfRulerDlg : public SfxModalDialog
CancelButton aCancelPB; CancelButton aCancelPB;
HelpButton aHelpPB; HelpButton aHelpPB;
List aGrfNames; std::vector<String> aGrfNames;
String sSimple; String sSimple;
String sRulers; String sRulers;
sal_uInt16 nSelPos; sal_uInt16 nSelPos;
...@@ -56,7 +59,7 @@ public: ...@@ -56,7 +59,7 @@ public:
String GetGraphicName(); String GetGraphicName();
sal_Bool IsSimpleLine() {return nSelPos == 1;} sal_Bool IsSimpleLine() {return nSelPos == 1;}
sal_Bool HasImages() const {return 0 != aGrfNames.Count();} sal_Bool HasImages() const {return !aGrfNames.empty();}
}; };
#endif #endif
......
...@@ -76,10 +76,10 @@ SwInsertGrfRulerDlg::SwInsertGrfRulerDlg( Window* pParent ) : ...@@ -76,10 +76,10 @@ SwInsertGrfRulerDlg::SwInsertGrfRulerDlg( Window* pParent ) :
pExampleVS->InsertItem( 1, 1); pExampleVS->InsertItem( 1, 1);
pExampleVS->SetItemText( 1, sSimple); pExampleVS->SetItemText( 1, sSimple);
for(sal_uInt16 i = 1; i <= aGrfNames.Count(); i++) for(sal_uInt16 i = 1; i <= aGrfNames.size(); i++)
{ {
pExampleVS->InsertItem( i + 1, i); pExampleVS->InsertItem( i + 1, i);
pExampleVS->SetItemText( i + 1, *((String*)aGrfNames.GetObject(i-1))); pExampleVS->SetItemText( i + 1, aGrfNames[i-1]);
} }
pExampleVS->Show(); pExampleVS->Show();
...@@ -95,9 +95,9 @@ String SwInsertGrfRulerDlg::GetGraphicName() ...@@ -95,9 +95,9 @@ String SwInsertGrfRulerDlg::GetGraphicName()
{ {
String sRet; String sRet;
sal_uInt16 nSel = nSelPos - 2; //align selection position with ValueSet index sal_uInt16 nSel = nSelPos - 2; //align selection position with ValueSet index
if(nSel < aGrfNames.Count()) if(nSel < aGrfNames.size())
sRet = URIHelper::SmartRel2Abs( sRet = URIHelper::SmartRel2Abs(
INetURLObject(), *(String*) aGrfNames.GetObject(nSel), INetURLObject(), aGrfNames[nSel],
URIHelper::GetMaybeFileHdl()); URIHelper::GetMaybeFileHdl());
return sRet; return sRet;
} }
......
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