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
public:
SwPostItContent( const SwContentType* pCnt,
const OUString& rName,
const SwFmtFld* pField,
const SwFmtFld* pFormatField,
long nYPos )
: SwContent(pCnt, rName, nYPos)
, pFld(pField)
, pFld(pFormatField)
, pRedline(NULL)
, mbPostIt(true)
{}
......
......@@ -52,7 +52,7 @@ using namespace ::com::sun::star::lang;
/**
* Description:
* 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) :
......@@ -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;
}
......@@ -291,11 +291,11 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
pFormatter = rSh.GetNumberFormatter();
}
short nType = pFormatter->GetType(nDefFmt);
short nType = pFormatter->GetType(nDefaultFormat);
SetFormatType(nType);
sal_uLong nFormat = pFormatter->GetFormatForLanguageIfBuiltIn(nDefFmt, eCurLanguage);
sal_uLong nFormat = pFormatter->GetFormatForLanguageIfBuiltIn(nDefaultFormat, eCurLanguage);
for (sal_Int32 i = 0; i < GetEntryCount(); i++)
{
......@@ -315,11 +315,11 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
if (nType == css::util::NumberFormat::TEXT)
{
pFormatter->GetOutputString("\"ABC\"", nDefFmt, sValue, &pCol);
pFormatter->GetOutputString("\"ABC\"", nDefaultFormat, sValue, &pCol);
}
else
{
pFormatter->GetOutputString(fValue, nDefFmt, sValue, &pCol);
pFormatter->GetOutputString(fValue, nDefaultFormat, sValue, &pCol);
}
sal_Int32 nPos = 0;
......@@ -337,15 +337,15 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
sal_uLong nLongDateFormatForLanguage = pFormatter->GetFormatForLanguageIfBuiltIn(nSysLongDateFmt, LANGUAGE_SYSTEM );
if (
nDefFmt == nSysNumFmt ||
nDefFmt == nSysShortDateFmt ||
nDefFmt == nSysLongDateFmt ||
nDefaultFormat == nSysNumFmt ||
nDefaultFormat == nSysShortDateFmt ||
nDefaultFormat == nSysLongDateFmt ||
(
bSysLang &&
(
nDefFmt == nNumFormatForLanguage ||
nDefFmt == nShortDateFormatForLanguage ||
nDefFmt == nLongDateFormatForLanguage
nDefaultFormat == nNumFormatForLanguage ||
nDefaultFormat == nShortDateFormatForLanguage ||
nDefaultFormat == nLongDateFormatForLanguage
)
)
)
......@@ -354,7 +354,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
}
nPos = InsertEntry(sValue, nPos); // Insert as first numeric entry
SetEntryData(nPos, reinterpret_cast<void*>(nDefFmt));
SetEntryData(nPos, reinterpret_cast<void*>(nDefaultFormat));
SelectEntryPos(nPos);
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