Kaydet (Commit) 083b54c7 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

sw: More renaming.

Change-Id: I7f8d0d7285a95899484ec972ae38bdb8543ae2e1
üst 2b999dd6
...@@ -95,10 +95,10 @@ class SwPostItContent : public SwContent ...@@ -95,10 +95,10 @@ class SwPostItContent : public SwContent
public: public:
SwPostItContent( const SwContentType* pCnt, SwPostItContent( const SwContentType* pCnt,
const OUString& rName, const OUString& rName,
const SwFmtFld* pField, const SwFmtFld* pFormatField,
long nYPos ) long nYPos )
: SwContent(pCnt, rName, nYPos) : SwContent(pCnt, rName, nYPos)
, pFld(pField) , pFld(pFormatField)
, pRedline(NULL) , pRedline(NULL)
, mbPostIt(true) , mbPostIt(true)
{} {}
......
...@@ -52,7 +52,7 @@ using namespace ::com::sun::star::lang; ...@@ -52,7 +52,7 @@ using namespace ::com::sun::star::lang;
/** /**
* Description: * Description:
* nFormatType: Display the formats of this Type * nFormatType: Display the formats of this Type
* nDefFmt: Select this format and possibly insert it * nDefaultFormat: Select this format and possibly insert it
*/ */
NumFormatListBox::NumFormatListBox(vcl::Window* pWin, WinBits nStyle) : NumFormatListBox::NumFormatListBox(vcl::Window* pWin, WinBits nStyle) :
...@@ -270,11 +270,11 @@ void NumFormatListBox::SetFormatType(const short nFormatType) ...@@ -270,11 +270,11 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
} }
} }
void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt) void NumFormatListBox::SetDefFormat(const sal_uLong nDefaultFormat)
{ {
if (nDefFmt == ULONG_MAX) if (nDefaultFormat == ULONG_MAX)
{ {
nDefFormat = nDefFmt; nDefFormat = nDefaultFormat;
return; return;
} }
...@@ -291,11 +291,11 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt) ...@@ -291,11 +291,11 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
pFormatter = rSh.GetNumberFormatter(); pFormatter = rSh.GetNumberFormatter();
} }
short nType = pFormatter->GetType(nDefFmt); short nType = pFormatter->GetType(nDefaultFormat);
SetFormatType(nType); SetFormatType(nType);
sal_uLong nFormat = pFormatter->GetFormatForLanguageIfBuiltIn(nDefFmt, eCurLanguage); sal_uLong nFormat = pFormatter->GetFormatForLanguageIfBuiltIn(nDefaultFormat, eCurLanguage);
for (sal_Int32 i = 0; i < GetEntryCount(); i++) for (sal_Int32 i = 0; i < GetEntryCount(); i++)
{ {
...@@ -315,11 +315,11 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt) ...@@ -315,11 +315,11 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
if (nType == css::util::NumberFormat::TEXT) if (nType == css::util::NumberFormat::TEXT)
{ {
pFormatter->GetOutputString("\"ABC\"", nDefFmt, sValue, &pCol); pFormatter->GetOutputString("\"ABC\"", nDefaultFormat, sValue, &pCol);
} }
else else
{ {
pFormatter->GetOutputString(fValue, nDefFmt, sValue, &pCol); pFormatter->GetOutputString(fValue, nDefaultFormat, sValue, &pCol);
} }
sal_Int32 nPos = 0; sal_Int32 nPos = 0;
...@@ -337,15 +337,15 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt) ...@@ -337,15 +337,15 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
sal_uLong nLongDateFormatForLanguage = pFormatter->GetFormatForLanguageIfBuiltIn(nSysLongDateFmt, LANGUAGE_SYSTEM ); sal_uLong nLongDateFormatForLanguage = pFormatter->GetFormatForLanguageIfBuiltIn(nSysLongDateFmt, LANGUAGE_SYSTEM );
if ( if (
nDefFmt == nSysNumFmt || nDefaultFormat == nSysNumFmt ||
nDefFmt == nSysShortDateFmt || nDefaultFormat == nSysShortDateFmt ||
nDefFmt == nSysLongDateFmt || nDefaultFormat == nSysLongDateFmt ||
( (
bSysLang && bSysLang &&
( (
nDefFmt == nNumFormatForLanguage || nDefaultFormat == nNumFormatForLanguage ||
nDefFmt == nShortDateFormatForLanguage || nDefaultFormat == nShortDateFormatForLanguage ||
nDefFmt == nLongDateFormatForLanguage nDefaultFormat == nLongDateFormatForLanguage
) )
) )
) )
...@@ -354,7 +354,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt) ...@@ -354,7 +354,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
} }
nPos = InsertEntry(sValue, nPos); // Insert as first numeric entry nPos = InsertEntry(sValue, nPos); // Insert as first numeric entry
SetEntryData(nPos, reinterpret_cast<void*>(nDefFmt)); SetEntryData(nPos, reinterpret_cast<void*>(nDefaultFormat));
SelectEntryPos(nPos); SelectEntryPos(nPos);
nDefFormat = GetFormat(); nDefFormat = GetFormat();
} }
......
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