Kaydet (Commit) 2a2a180d authored tarafından Jan Holesovsky's avatar Jan Holesovsky

sw: Hopefully the last round of renames.

Change-Id: I85eb5e9ca018afa25a06947eed5af1ab529dd65d
üst 2bb4d6ca
...@@ -295,9 +295,9 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox) ...@@ -295,9 +295,9 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox)
return 0; return 0;
} }
void SwCondCollPage::SetCollection( SwFmt* pFormat, bool bNew ) void SwCondCollPage::SetCollection(SwFmt* pNewFormat, bool bNew)
{ {
pFmt = pFormat; pFmt = pNewFormat;
bNewTemplate = bNew; bNewTemplate = bNew;
} }
......
...@@ -1024,14 +1024,14 @@ IMPL_LINK_TYPED( SwFldVarPage, TBClickHdl, ToolBox *, pBox, void ) ...@@ -1024,14 +1024,14 @@ IMPL_LINK_TYPED( SwFldVarPage, TBClickHdl, ToolBox *, pBox, void )
{ {
if (nNumFormatPos != LISTBOX_ENTRY_NOTFOUND) if (nNumFormatPos != LISTBOX_ENTRY_NOTFOUND)
{ {
sal_uLong nFmt = nNumFormatPos == 0 ? 0 : m_pNumFormatLB->GetFormat(); sal_uLong nNumberFormat = nNumFormatPos == 0 ? 0 : m_pNumFormatLB->GetFormat();
if (nFmt) if (nNumberFormat)
{ // Switch language to office-language because Kalkulator expects { // Switch language to office-language because Kalkulator expects
// String in office format and it should be fed into dialog like // String in office format and it should be fed into dialog like
// that // that
nFmt = SwValueField::GetSystemFormat(pSh->GetNumberFormatter(), nFmt); nNumberFormat = SwValueField::GetSystemFormat(pSh->GetNumberFormatter(), nNumberFormat);
} }
static_cast<SwUserFieldType*>(pType)->SetContent(m_pValueED->GetText(), nFmt); static_cast<SwUserFieldType*>(pType)->SetContent(m_pValueED->GetText(), nNumberFormat);
static_cast<SwUserFieldType*>(pType)->SetType( static_cast<SwUserFieldType*>(pType)->SetType(
nNumFormatPos == 0 ? nsSwGetSetExpType::GSE_STRING : nsSwGetSetExpType::GSE_EXPR ); nNumFormatPos == 0 ? nsSwGetSetExpType::GSE_STRING : nsSwGetSetExpType::GSE_EXPR );
} }
......
...@@ -2358,10 +2358,10 @@ void SwFrmPage::Init(const SfxItemSet& rSet, bool bReset) ...@@ -2358,10 +2358,10 @@ void SwFrmPage::Init(const SfxItemSet& rSet, bool bReset)
m_pRelHeightRelationLB->SelectEntryPos(0); m_pRelHeightRelationLB->SelectEntryPos(0);
} }
void SwFrmPage::SetFormatUsed(bool bFmt) void SwFrmPage::SetFormatUsed(bool bFormatUsed)
{ {
bFormat = bFmt; bFormat = bFormatUsed;
if(bFormat) if (bFormat)
{ {
m_pAnchorFrame->Hide(); m_pAnchorFrame->Hide();
} }
...@@ -3210,9 +3210,9 @@ IMPL_LINK_NOARG(SwFrmAddPage, EditModifyHdl) ...@@ -3210,9 +3210,9 @@ IMPL_LINK_NOARG(SwFrmAddPage, EditModifyHdl)
return 0; return 0;
} }
void SwFrmAddPage::SetFormatUsed(bool bFmt) void SwFrmAddPage::SetFormatUsed(bool bFormatUsed)
{ {
bFormat = bFmt; bFormat = bFormatUsed;
if (bFormat) if (bFormat)
{ {
pNameFrame->Hide(); pNameFrame->Hide();
......
...@@ -984,7 +984,7 @@ void SwTableColumnPage::ModifyHdl( MetricField* pField ) ...@@ -984,7 +984,7 @@ void SwTableColumnPage::ModifyHdl( MetricField* pField )
UpdateCols( aValueTbl[i] ); UpdateCols( aValueTbl[i] );
} }
void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos )
{ {
SwTwips nSum = 0; SwTwips nSum = 0;
...@@ -994,10 +994,10 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) ...@@ -994,10 +994,10 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos )
} }
SwTwips nDiff = nSum - nTableWidth; SwTwips nDiff = nSum - nTableWidth;
bool bModifyTable = m_pModifyTableCB->IsChecked(); bool bModifyTableChecked = m_pModifyTableCB->IsChecked();
bool bProp = m_pProportionalCB->IsChecked(); bool bProp = m_pProportionalCB->IsChecked();
if(!bModifyTable && !bProp ) if (!bModifyTableChecked && !bProp)
{ {
//The table width is constant, the difference is balanced with the other columns //The table width is constant, the difference is balanced with the other columns
sal_uInt16 nLoopCount = 0; sal_uInt16 nLoopCount = 0;
...@@ -1037,7 +1037,7 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) ...@@ -1037,7 +1037,7 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos )
} }
} }
} }
else if(bModifyTable && !bProp) else if (bModifyTableChecked && !bProp)
{ {
//Difference is balanced by the width of the table, //Difference is balanced by the width of the table,
//other columns remain unchanged. //other columns remain unchanged.
...@@ -1053,7 +1053,7 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) ...@@ -1053,7 +1053,7 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos )
nTableWidth += nDiff; nTableWidth += nDiff;
} }
} }
else if(bModifyTable && bProp) else if (bModifyTableChecked && bProp)
{ {
//All columns will be changed proportionally with, //All columns will be changed proportionally with,
//the table width is adjusted accordingly. //the table width is adjusted accordingly.
......
...@@ -145,7 +145,7 @@ void SwStringInputDlg::dispose() ...@@ -145,7 +145,7 @@ void SwStringInputDlg::dispose()
// AutoFormat-Dialogue: // AutoFormat-Dialogue:
SwAutoFormatDlg::SwAutoFormatDlg( vcl::Window* pParent, SwWrtShell* pWrtShell, SwAutoFormatDlg::SwAutoFormatDlg( vcl::Window* pParent, SwWrtShell* pWrtShell,
bool bSetAutoFormat, const SwTableAutoFmt* pSelFmt ) bool bAutoFormat, const SwTableAutoFmt* pSelFmt )
: SfxModalDialog(pParent, "AutoFormatTableDialog", "modules/swriter/ui/autoformattable.ui") : SfxModalDialog(pParent, "AutoFormatTableDialog", "modules/swriter/ui/autoformattable.ui")
, aStrTitle(SW_RES(STR_ADD_AUTOFORMAT_TITLE)) , aStrTitle(SW_RES(STR_ADD_AUTOFORMAT_TITLE))
, aStrLabel(SW_RES(STR_ADD_AUTOFORMAT_LABEL)) , aStrLabel(SW_RES(STR_ADD_AUTOFORMAT_LABEL))
...@@ -158,7 +158,7 @@ SwAutoFormatDlg::SwAutoFormatDlg( vcl::Window* pParent, SwWrtShell* pWrtShell, ...@@ -158,7 +158,7 @@ SwAutoFormatDlg::SwAutoFormatDlg( vcl::Window* pParent, SwWrtShell* pWrtShell,
, nIndex(0) , nIndex(0)
, nDfltStylePos(0) , nDfltStylePos(0)
, bCoreDataChanged(false) , bCoreDataChanged(false)
, bSetAutoFmt(bSetAutoFormat) , bSetAutoFmt(bAutoFormat)
{ {
get(m_pLbFormat, "formatlb"); get(m_pLbFormat, "formatlb");
get(m_pFormatting, "formatting"); get(m_pFormatting, "formatting");
......
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