diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-20 11:55:54 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-20 12:10:32 +0200 |
commit | f6644e9a446773a5cb4f528d891a44a76c561dec (patch) | |
tree | d26784f481f424a50d72d839dcc5661e8ee302b9 | |
parent | 9107bb354bdeb5496c4bf61e3068ff80f5fd009b (diff) |
sw: prefix WW8FormulaControl members
Change-Id: Idf747fb895c15e8df96a6ced06cf9f0df5d35e39
-rw-r--r-- | sw/source/filter/ww8/ww8par.hxx | 46 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 104 |
2 files changed, 75 insertions, 75 deletions
diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx index 0a34059fe03b..10421900018a 100644 --- a/sw/source/filter/ww8/ww8par.hxx +++ b/sw/source/filter/ww8/ww8par.hxx @@ -646,34 +646,34 @@ enum SwWw8ControlType class WW8FormulaControl : private ::boost::noncopyable { protected: - SwWW8ImplReader &rRdr; + SwWW8ImplReader &mrRdr; public: - WW8FormulaControl(const OUString& rN, SwWW8ImplReader &rR) - : rRdr(rR), fUnknown(0), fDropdownIndex(0), - fToolTip(0), fNoMark(0), fUseSize(0), fNumbersOnly(0), fDateOnly(0), - fUnused(0), nSize(0), hpsCheckBox(20), nChecked(0), mnMaxLen(0), sName( rN ) + WW8FormulaControl(const OUString& rN, SwWW8ImplReader &rRdr) + : mrRdr(rRdr), mfUnknown(0), mfDropdownIndex(0), + mfToolTip(0), mfNoMark(0), mfUseSize(0), mfNumbersOnly(0), mfDateOnly(0), + mfUnused(0), mnSize(0), mhpsCheckBox(20), mnChecked(0), mnMaxLen(0), msName( rN ) { } - sal_uInt8 fUnknown:2; - sal_uInt8 fDropdownIndex:6; - sal_uInt8 fToolTip:1; - sal_uInt8 fNoMark:1; - sal_uInt8 fUseSize:1; - sal_uInt8 fNumbersOnly:1; - sal_uInt8 fDateOnly:1; - sal_uInt8 fUnused:3; - sal_uInt16 nSize; - - sal_uInt16 hpsCheckBox; - sal_uInt16 nChecked; + sal_uInt8 mfUnknown:2; + sal_uInt8 mfDropdownIndex:6; + sal_uInt8 mfToolTip:1; + sal_uInt8 mfNoMark:1; + sal_uInt8 mfUseSize:1; + sal_uInt8 mfNumbersOnly:1; + sal_uInt8 mfDateOnly:1; + sal_uInt8 mfUnused:3; + sal_uInt16 mnSize; + + sal_uInt16 mhpsCheckBox; + sal_uInt16 mnChecked; /// FFData.cch in the spec: maximum length, in characters, of the value of the textbox. sal_uInt16 mnMaxLen; - OUString sTitle; - OUString sDefault; - OUString sFormatting; - OUString sHelp; - OUString sToolTip; + OUString msTitle; + OUString msDefault; + OUString msFormatting; + OUString msHelp; + OUString msToolTip; std::vector<OUString> maListEntries; virtual ~WW8FormulaControl() {} void FormulaRead(SwWw8ControlType nWhich,SvStream *pD); @@ -682,7 +682,7 @@ public: com::sun::star::uno::Reference < com::sun::star::form::XFormComponent> &rFComp, com::sun::star::awt::Size &rSz) = 0; - OUString sName; + OUString msName; }; class WW8FormulaCheckBox : public WW8FormulaControl diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index 96c4181e55a6..5bb17c9a2b9f 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -124,16 +124,16 @@ eF_ResT SwWW8ImplReader::Read_F_FormTextBox( WW8FieldDesc* pF, OUString& rStr ) if (!bUseEnhFields) { - aFormula.sDefault = GetFieldResult(pF); + aFormula.msDefault = GetFieldResult(pF); SwInputField aFld( static_cast<SwInputFieldType*>(rDoc.getIDocumentFieldsAccess().GetSysFldType( RES_INPUTFLD )), - aFormula.sDefault, - aFormula.sTitle, + aFormula.msDefault, + aFormula.msTitle, INP_TXT, 0 ); - aFld.SetHelp(aFormula.sHelp); - aFld.SetToolTip(aFormula.sToolTip); + aFld.SetHelp(aFormula.msHelp); + aFld.SetToolTip(aFormula.msToolTip); rDoc.getIDocumentContentOperations().InsertPoolItem(*pPaM, SwFmtFld(aFld)); return FLD_OK; @@ -158,14 +158,14 @@ eF_ResT SwWW8ImplReader::Read_F_FormTextBox( WW8FieldDesc* pF, OUString& rStr ) } if (pB!=NULL && aBookmarkName.isEmpty()) { - aBookmarkName=pB->GetUniqueBookmarkName(aFormula.sTitle); + aBookmarkName=pB->GetUniqueBookmarkName(aFormula.msTitle); } if (!aBookmarkName.isEmpty()) { maFieldStack.back().SetBookmarkName(aBookmarkName); maFieldStack.back().SetBookmarkType(ODF_FORMTEXT); - maFieldStack.back().getParameters()["Description"] = uno::makeAny(OUString(aFormula.sToolTip)); - maFieldStack.back().getParameters()["Name"] = uno::makeAny(OUString(aFormula.sTitle)); + maFieldStack.back().getParameters()["Description"] = uno::makeAny(OUString(aFormula.msToolTip)); + maFieldStack.back().getParameters()["Name"] = uno::makeAny(OUString(aFormula.msTitle)); if (aFormula.mnMaxLen) maFieldStack.back().getParameters()["MaxLength"] = uno::makeAny(OUString::number(aFormula.mnMaxLen)); } @@ -209,7 +209,7 @@ eF_ResT SwWW8ImplReader::Read_F_FormCheckBox( WW8FieldDesc* pF, OUString& rStr ) } if (pB!=NULL && aBookmarkName.isEmpty()) { - aBookmarkName=pB->GetUniqueBookmarkName(aFormula.sTitle); + aBookmarkName=pB->GetUniqueBookmarkName(aFormula.msTitle); } if (!aBookmarkName.isEmpty()) @@ -221,11 +221,11 @@ eF_ResT SwWW8ImplReader::Read_F_FormCheckBox( WW8FieldDesc* pF, OUString& rStr ) if (pFieldmark!=NULL) { IFieldmark::parameter_map_t* const pParameters = pFieldmark->GetParameters(); ICheckboxFieldmark* pCheckboxFm = dynamic_cast<ICheckboxFieldmark*>(pFieldmark); - (*pParameters)[ODF_FORMCHECKBOX_NAME] = uno::makeAny(OUString(aFormula.sTitle)); - (*pParameters)[ODF_FORMCHECKBOX_HELPTEXT] = uno::makeAny(OUString(aFormula.sToolTip)); + (*pParameters)[ODF_FORMCHECKBOX_NAME] = uno::makeAny(OUString(aFormula.msTitle)); + (*pParameters)[ODF_FORMCHECKBOX_HELPTEXT] = uno::makeAny(OUString(aFormula.msToolTip)); if(pCheckboxFm) - pCheckboxFm->SetChecked(aFormula.nChecked); + pCheckboxFm->SetChecked(aFormula.mnChecked); // set field data here... } } @@ -246,14 +246,14 @@ eF_ResT SwWW8ImplReader::Read_F_FormListBox( WW8FieldDesc* pF, OUString& rStr) { SwDropDownField aFld(static_cast<SwDropDownFieldType*>(rDoc.getIDocumentFieldsAccess().GetSysFldType(RES_DROPDOWN))); - aFld.SetName(aFormula.sTitle); - aFld.SetHelp(aFormula.sHelp); - aFld.SetToolTip(aFormula.sToolTip); + aFld.SetName(aFormula.msTitle); + aFld.SetHelp(aFormula.msHelp); + aFld.SetToolTip(aFormula.msToolTip); if (!aFormula.maListEntries.empty()) { aFld.SetItems(aFormula.maListEntries); - int nIndex = aFormula.fDropdownIndex < aFormula.maListEntries.size() ? aFormula.fDropdownIndex : 0; + int nIndex = aFormula.mfDropdownIndex < aFormula.maListEntries.size() ? aFormula.mfDropdownIndex : 0; aFld.SetSelectedItem(aFormula.maListEntries[nIndex]); } @@ -282,7 +282,7 @@ eF_ResT SwWW8ImplReader::Read_F_FormListBox( WW8FieldDesc* pF, OUString& rStr) } if (pB!=NULL && aBookmarkName.isEmpty()) - aBookmarkName=pB->GetUniqueBookmarkName(aFormula.sTitle); + aBookmarkName=pB->GetUniqueBookmarkName(aFormula.msTitle); if (!aBookmarkName.isEmpty()) { @@ -295,7 +295,7 @@ eF_ResT SwWW8ImplReader::Read_F_FormListBox( WW8FieldDesc* pF, OUString& rStr) uno::Sequence< OUString > vListEntries(aFormula.maListEntries.size()); ::std::copy(aFormula.maListEntries.begin(), aFormula.maListEntries.end(), vListEntries.begin()); (*pFieldmark->GetParameters())[ODF_FORMDROPDOWN_LISTENTRY] = uno::makeAny(vListEntries); - sal_Int32 nIndex = aFormula.fDropdownIndex < aFormula.maListEntries.size() ? aFormula.fDropdownIndex : 0; + sal_Int32 nIndex = aFormula.mfDropdownIndex < aFormula.maListEntries.size() ? aFormula.mfDropdownIndex : 0; (*pFieldmark->GetParameters())[ODF_FORMDROPDOWN_RESULT] = uno::makeAny(nIndex); // set field data here... } @@ -2205,33 +2205,33 @@ void WW8FormulaControl::FormulaRead(SwWw8ControlType nWhich, pDataStream->ReadUInt16( hps ); // xstzName - sTitle = read_uInt16_BeltAndBracesString(*pDataStream); + msTitle = read_uInt16_BeltAndBracesString(*pDataStream); if (nWhich == WW8_CT_EDIT) { // Field is a textbox // Default text // xstzTextDef - sDefault = read_uInt16_BeltAndBracesString(*pDataStream); + msDefault = read_uInt16_BeltAndBracesString(*pDataStream); } else { // CheckBox or ComboBox sal_uInt16 wDef = 0; pDataStream->ReadUInt16( wDef ); - nChecked = wDef; // default + mnChecked = wDef; // default if (nWhich == WW8_CT_CHECKBOX) { if ( iRes != 25 ) - nChecked = iRes; - sDefault = ( wDef == 0 ) ? OUString( "0" ) : OUString( "1" ); + mnChecked = iRes; + msDefault = ( wDef == 0 ) ? OUString( "0" ) : OUString( "1" ); } } // xstzTextFormat - sFormatting = read_uInt16_BeltAndBracesString(*pDataStream); + msFormatting = read_uInt16_BeltAndBracesString(*pDataStream); // xstzHelpText - sHelp = read_uInt16_BeltAndBracesString(*pDataStream); + msHelp = read_uInt16_BeltAndBracesString(*pDataStream); // xstzStatText - sToolTip = read_uInt16_BeltAndBracesString(*pDataStream); + msToolTip = read_uInt16_BeltAndBracesString(*pDataStream); /*String sEntryMacro =*/ read_uInt16_BeltAndBracesString(*pDataStream); /*String sExitMcr =*/ read_uInt16_BeltAndBracesString(*pDataStream); @@ -2273,15 +2273,15 @@ void WW8FormulaControl::FormulaRead(SwWw8ControlType nWhich, maListEntries.push_back(sEntry); } } - fDropdownIndex = iRes; + mfDropdownIndex = iRes; nField = bits2; - fToolTip = nField & 0x01; - fNoMark = (nField & 0x02)>>1; - fUseSize = (nField & 0x04)>>2; - fNumbersOnly= (nField & 0x08)>>3; - fDateOnly = (nField & 0x10)>>4; - fUnused = (nField & 0xE0)>>5; + mfToolTip = nField & 0x01; + mfNoMark = (nField & 0x02)>>1; + mfUseSize = (nField & 0x04)>>2; + mfNumbersOnly= (nField & 0x08)>>3; + mfDateOnly = (nField & 0x10)>>4; + mfUnused = (nField & 0xE0)>>5; } WW8FormulaListBox::WW8FormulaListBox(SwWW8ImplReader &rR) @@ -2443,15 +2443,15 @@ bool WW8FormulaListBox::Import(const uno::Reference < uno::Reference<beans::XPropertySet> xPropSet(xCreate, uno::UNO_QUERY); uno::Any aTmp; - if (!sTitle.isEmpty()) - aTmp <<= sTitle; + if (!msTitle.isEmpty()) + aTmp <<= msTitle; else - aTmp <<= sName; + aTmp <<= msName; xPropSet->setPropertyValue("Name", aTmp ); - if (!sToolTip.isEmpty()) + if (!msToolTip.isEmpty()) { - aTmp <<= sToolTip; + aTmp <<= msToolTip; xPropSet->setPropertyValue("HelpText", aTmp ); } @@ -2467,9 +2467,9 @@ bool WW8FormulaListBox::Import(const uno::Reference < aTmp <<= aListSource; xPropSet->setPropertyValue("StringItemList", aTmp ); - if (fDropdownIndex < nLen) + if (mfDropdownIndex < nLen) { - aTmp <<= aListSource[fDropdownIndex]; + aTmp <<= aListSource[mfDropdownIndex]; } else { @@ -2478,7 +2478,7 @@ bool WW8FormulaListBox::Import(const uno::Reference < xPropSet->setPropertyValue("DefaultText", aTmp ); - rSz = rRdr.MiserableDropDownFormHack(maListEntries[0], xPropSet); + rSz = mrRdr.MiserableDropDownFormHack(maListEntries[0], xPropSet); } else { @@ -2486,7 +2486,7 @@ bool WW8FormulaListBox::Import(const uno::Reference < { 0x2002,0x2002,0x2002,0x2002,0x2002 }; - rSz = rRdr.MiserableDropDownFormHack(OUString(aBlank, SAL_N_ELEMENTS(aBlank)), xPropSet); + rSz = mrRdr.MiserableDropDownFormHack(OUString(aBlank, SAL_N_ELEMENTS(aBlank)), xPropSet); } return true; @@ -2534,24 +2534,24 @@ bool WW8FormulaCheckBox::Import(const uno::Reference < uno::Reference< beans::XPropertySet > xPropSet( xCreate, uno::UNO_QUERY ); - rSz.Width = 16 * hpsCheckBox; - rSz.Height = 16 * hpsCheckBox; + rSz.Width = 16 * mhpsCheckBox; + rSz.Height = 16 * mhpsCheckBox; uno::Any aTmp; - if (!sTitle.isEmpty()) - aTmp <<= sTitle; + if (!msTitle.isEmpty()) + aTmp <<= msTitle; else - aTmp <<= sName; + aTmp <<= msName; xPropSet->setPropertyValue("Name", aTmp ); - aTmp <<= (sal_Int16)nChecked; + aTmp <<= (sal_Int16)mnChecked; xPropSet->setPropertyValue("DefaultState", aTmp); - if (!sToolTip.isEmpty()) - lcl_AddToPropertyContainer(xPropSet, "HelpText", sToolTip); + if (!msToolTip.isEmpty()) + lcl_AddToPropertyContainer(xPropSet, "HelpText", msToolTip); - if (!sHelp.isEmpty()) - lcl_AddToPropertyContainer(xPropSet, "HelpF1Text", sHelp); + if (!msHelp.isEmpty()) + lcl_AddToPropertyContainer(xPropSet, "HelpF1Text", msHelp); return true; |