Kaydet (Commit) 70c4355f authored tarafından Jan Holesovsky's avatar Jan Holesovsky

sw: Prefix SwInsertFld_Data member variables.

Change-Id: I2c07a57e60f8eaf1b9d570f4d42dd2955574a85b
üst 2feddc10
...@@ -127,7 +127,7 @@ bool SwFldPage::InsertFld(sal_uInt16 nTypeId, sal_uInt16 nSubType, const OUStrin ...@@ -127,7 +127,7 @@ bool SwFldPage::InsertFld(sal_uInt16 nTypeId, sal_uInt16 nSubType, const OUStrin
{ {
SwInsertFld_Data aData(nTypeId, nSubType, rPar1, rPar2, nFormatId, 0, cSeparator, bIsAutomaticLanguage ); SwInsertFld_Data aData(nTypeId, nSubType, rPar1, rPar2, nFormatId, 0, cSeparator, bIsAutomaticLanguage );
//#i26566# provide parent for SwWrtShell::StartInputFldDlg //#i26566# provide parent for SwWrtShell::StartInputFldDlg
aData.pParent = &GetTabDialog()->GetOKButton(); aData.m_pParent = &GetTabDialog()->GetOKButton();
bRet = m_aMgr.InsertFld( aData ); bRet = m_aMgr.InsertFld( aData );
uno::Reference< frame::XDispatchRecorder > xRecorder = uno::Reference< frame::XDispatchRecorder > xRecorder =
......
...@@ -65,36 +65,35 @@ struct SwFldGroupRgn ...@@ -65,36 +65,35 @@ struct SwFldGroupRgn
// with command strings // with command strings
struct SwInsertFld_Data struct SwInsertFld_Data
{ {
sal_uInt16 nTypeId; sal_uInt16 m_nTypeId;
sal_uInt16 nSubType; sal_uInt16 m_nSubType;
const OUString sPar1; const OUString m_sPar1;
const OUString sPar2; const OUString m_sPar2;
sal_uLong nFormatId; sal_uLong m_nFormatId;
SwWrtShell* pSh; SwWrtShell* m_pSh;
sal_Unicode cSeparator; sal_Unicode m_cSeparator;
bool bIsAutomaticLanguage; bool m_bIsAutomaticLanguage;
::com::sun::star::uno::Any aDBDataSource; ::com::sun::star::uno::Any m_aDBDataSource;
::com::sun::star::uno::Any aDBConnection; ::com::sun::star::uno::Any m_aDBConnection;
::com::sun::star::uno::Any aDBColumn; ::com::sun::star::uno::Any m_aDBColumn;
VclPtr<vcl::Window> pParent; // parent dialog used for SwWrtShell::StartInputFldDlg() VclPtr<vcl::Window> m_pParent; // parent dialog used for SwWrtShell::StartInputFldDlg()
SwInsertFld_Data(sal_uInt16 nType, sal_uInt16 nSub, const OUString& rPar1, const OUString& rPar2, SwInsertFld_Data(sal_uInt16 nType, sal_uInt16 nSub, const OUString& rPar1, const OUString& rPar2,
sal_uLong nFmtId, SwWrtShell* pShell = NULL, sal_Unicode cSep = ' ', bool bIsAutoLanguage = true) : sal_uLong nFmtId, SwWrtShell* pShell = NULL, sal_Unicode cSep = ' ', bool bIsAutoLanguage = true) :
nTypeId(nType), m_nTypeId(nType),
nSubType(nSub), m_nSubType(nSub),
sPar1(rPar1), m_sPar1(rPar1),
sPar2(rPar2), m_sPar2(rPar2),
nFormatId(nFmtId), m_nFormatId(nFmtId),
pSh(pShell), m_pSh(pShell),
cSeparator(cSep), m_cSeparator(cSep),
bIsAutomaticLanguage(bIsAutoLanguage), m_bIsAutomaticLanguage(bIsAutoLanguage),
pParent(0) {} m_pParent(0) {}
SwInsertFld_Data() : SwInsertFld_Data() :
pSh(0), m_pSh(0),
cSeparator(' '), m_cSeparator(' '),
bIsAutomaticLanguage(true){} m_bIsAutomaticLanguage(true){}
}; };
class SW_DLLPUBLIC SwFldMgr class SW_DLLPUBLIC SwFldMgr
......
...@@ -208,9 +208,9 @@ void SwTextShell::ExecDB(SfxRequest &rReq) ...@@ -208,9 +208,9 @@ void SwTextShell::ExecDB(SfxRequest &rReq)
SwFldMgr aFldMgr(GetShellPtr()); SwFldMgr aFldMgr(GetShellPtr());
SwInsertFld_Data aData(TYP_DBFLD, 0, sDBName, OUString(), 0); SwInsertFld_Data aData(TYP_DBFLD, 0, sDBName, OUString(), 0);
if(pConnectionItem) if(pConnectionItem)
aData.aDBConnection = static_cast<const SfxUsrAnyItem*>(pConnectionItem)->GetValue(); aData.m_aDBConnection = static_cast<const SfxUsrAnyItem*>(pConnectionItem)->GetValue();
if(pColumnItem) if(pColumnItem)
aData.aDBColumn = static_cast<const SfxUsrAnyItem*>(pColumnItem)->GetValue(); aData.m_aDBColumn = static_cast<const SfxUsrAnyItem*>(pColumnItem)->GetValue();
aFldMgr.InsertFld(aData); aFldMgr.InsertFld(aData);
SfxViewFrame* pViewFrame = GetView().GetViewFrame(); SfxViewFrame* pViewFrame = GetView().GetViewFrame();
uno::Reference< XDispatchRecorder > xRecorder = uno::Reference< XDispatchRecorder > xRecorder =
......
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