Kaydet (Commit) a5c5c71b authored tarafından Caolán McNamara's avatar Caolán McNamara

adjust for return by ref instead of pointer

üst 48388718
...@@ -124,66 +124,66 @@ SfxTabPage* OfaHtmlTabPage::Create( Window* pParent, ...@@ -124,66 +124,66 @@ SfxTabPage* OfaHtmlTabPage::Create( Window* pParent,
sal_Bool OfaHtmlTabPage::FillItemSet( SfxItemSet& ) sal_Bool OfaHtmlTabPage::FillItemSet( SfxItemSet& )
{ {
SvxHtmlOptions* pHtmlOpt = SvxHtmlOptions::Get(); SvxHtmlOptions& rHtmlOpt = SvxHtmlOptions::Get();
if(aSize1NF.GetSavedValue() != aSize1NF.GetText()) if(aSize1NF.GetSavedValue() != aSize1NF.GetText())
pHtmlOpt->SetFontSize(0, (sal_uInt16)aSize1NF.GetValue()); rHtmlOpt.SetFontSize(0, (sal_uInt16)aSize1NF.GetValue());
if(aSize2NF.GetSavedValue() != aSize2NF.GetText()) if(aSize2NF.GetSavedValue() != aSize2NF.GetText())
pHtmlOpt->SetFontSize(1, (sal_uInt16)aSize2NF.GetValue()); rHtmlOpt.SetFontSize(1, (sal_uInt16)aSize2NF.GetValue());
if(aSize3NF.GetSavedValue() != aSize3NF.GetText()) if(aSize3NF.GetSavedValue() != aSize3NF.GetText())
pHtmlOpt->SetFontSize(2, (sal_uInt16)aSize3NF.GetValue()); rHtmlOpt.SetFontSize(2, (sal_uInt16)aSize3NF.GetValue());
if(aSize4NF.GetSavedValue() != aSize4NF.GetText()) if(aSize4NF.GetSavedValue() != aSize4NF.GetText())
pHtmlOpt->SetFontSize(3, (sal_uInt16)aSize4NF.GetValue()); rHtmlOpt.SetFontSize(3, (sal_uInt16)aSize4NF.GetValue());
if(aSize5NF.GetSavedValue() != aSize5NF.GetText()) if(aSize5NF.GetSavedValue() != aSize5NF.GetText())
pHtmlOpt->SetFontSize(4, (sal_uInt16)aSize5NF.GetValue()); rHtmlOpt.SetFontSize(4, (sal_uInt16)aSize5NF.GetValue());
if(aSize6NF.GetSavedValue() != aSize6NF.GetText()) if(aSize6NF.GetSavedValue() != aSize6NF.GetText())
pHtmlOpt->SetFontSize(5, (sal_uInt16)aSize6NF.GetValue()); rHtmlOpt.SetFontSize(5, (sal_uInt16)aSize6NF.GetValue());
if(aSize7NF.GetSavedValue() != aSize7NF.GetText()) if(aSize7NF.GetSavedValue() != aSize7NF.GetText())
pHtmlOpt->SetFontSize(6, (sal_uInt16)aSize7NF.GetValue()); rHtmlOpt.SetFontSize(6, (sal_uInt16)aSize7NF.GetValue());
if(aNumbersEnglishUSCB.IsChecked() != aNumbersEnglishUSCB.GetSavedValue()) if(aNumbersEnglishUSCB.IsChecked() != aNumbersEnglishUSCB.GetSavedValue())
pHtmlOpt->SetNumbersEnglishUS(aNumbersEnglishUSCB.IsChecked()); rHtmlOpt.SetNumbersEnglishUS(aNumbersEnglishUSCB.IsChecked());
if(aUnknownTagCB.IsChecked() != aUnknownTagCB.GetSavedValue()) if(aUnknownTagCB.IsChecked() != aUnknownTagCB.GetSavedValue())
pHtmlOpt->SetImportUnknown(aUnknownTagCB.IsChecked()); rHtmlOpt.SetImportUnknown(aUnknownTagCB.IsChecked());
if(aIgnoreFontNamesCB.IsChecked() != aIgnoreFontNamesCB.GetSavedValue()) if(aIgnoreFontNamesCB.IsChecked() != aIgnoreFontNamesCB.GetSavedValue())
pHtmlOpt->SetIgnoreFontFamily(aIgnoreFontNamesCB.IsChecked()); rHtmlOpt.SetIgnoreFontFamily(aIgnoreFontNamesCB.IsChecked());
if(aExportLB.GetSelectEntryPos() != aExportLB.GetSavedValue()) if(aExportLB.GetSelectEntryPos() != aExportLB.GetSavedValue())
pHtmlOpt->SetExportMode(aPosToExportArr[aExportLB.GetSelectEntryPos()]); rHtmlOpt.SetExportMode(aPosToExportArr[aExportLB.GetSelectEntryPos()]);
if(aStarBasicCB.IsChecked() != aStarBasicCB.GetSavedValue()) if(aStarBasicCB.IsChecked() != aStarBasicCB.GetSavedValue())
pHtmlOpt->SetStarBasic(aStarBasicCB.IsChecked()); rHtmlOpt.SetStarBasic(aStarBasicCB.IsChecked());
if(aStarBasicWarningCB.IsChecked() != aStarBasicWarningCB.GetSavedValue()) if(aStarBasicWarningCB.IsChecked() != aStarBasicWarningCB.GetSavedValue())
pHtmlOpt->SetStarBasicWarning(aStarBasicWarningCB.IsChecked()); rHtmlOpt.SetStarBasicWarning(aStarBasicWarningCB.IsChecked());
if(aSaveGrfLocalCB.IsChecked() != aSaveGrfLocalCB.GetSavedValue()) if(aSaveGrfLocalCB.IsChecked() != aSaveGrfLocalCB.GetSavedValue())
pHtmlOpt->SetSaveGraphicsLocal(aSaveGrfLocalCB.IsChecked()); rHtmlOpt.SetSaveGraphicsLocal(aSaveGrfLocalCB.IsChecked());
if(aPrintExtensionCB.IsChecked() != aPrintExtensionCB.GetSavedValue()) if(aPrintExtensionCB.IsChecked() != aPrintExtensionCB.GetSavedValue())
pHtmlOpt->SetPrintLayoutExtension(aPrintExtensionCB.IsChecked()); rHtmlOpt.SetPrintLayoutExtension(aPrintExtensionCB.IsChecked());
if( aCharSetLB.GetSelectTextEncoding() != pHtmlOpt->GetTextEncoding() ) if( aCharSetLB.GetSelectTextEncoding() != rHtmlOpt.GetTextEncoding() )
pHtmlOpt->SetTextEncoding( aCharSetLB.GetSelectTextEncoding() ); rHtmlOpt.SetTextEncoding( aCharSetLB.GetSelectTextEncoding() );
return sal_False; return sal_False;
} }
void OfaHtmlTabPage::Reset( const SfxItemSet& ) void OfaHtmlTabPage::Reset( const SfxItemSet& )
{ {
SvxHtmlOptions* pHtmlOpt = SvxHtmlOptions::Get(); SvxHtmlOptions& rHtmlOpt = SvxHtmlOptions::Get();
aSize1NF.SetValue(pHtmlOpt->GetFontSize(0)); aSize1NF.SetValue(rHtmlOpt.GetFontSize(0));
aSize2NF.SetValue(pHtmlOpt->GetFontSize(1)); aSize2NF.SetValue(rHtmlOpt.GetFontSize(1));
aSize3NF.SetValue(pHtmlOpt->GetFontSize(2)); aSize3NF.SetValue(rHtmlOpt.GetFontSize(2));
aSize4NF.SetValue(pHtmlOpt->GetFontSize(3)); aSize4NF.SetValue(rHtmlOpt.GetFontSize(3));
aSize5NF.SetValue(pHtmlOpt->GetFontSize(4)); aSize5NF.SetValue(rHtmlOpt.GetFontSize(4));
aSize6NF.SetValue(pHtmlOpt->GetFontSize(5)); aSize6NF.SetValue(rHtmlOpt.GetFontSize(5));
aSize7NF.SetValue(pHtmlOpt->GetFontSize(6)); aSize7NF.SetValue(rHtmlOpt.GetFontSize(6));
aNumbersEnglishUSCB.Check(pHtmlOpt->IsNumbersEnglishUS()); aNumbersEnglishUSCB.Check(rHtmlOpt.IsNumbersEnglishUS());
aUnknownTagCB.Check(pHtmlOpt->IsImportUnknown()); aUnknownTagCB.Check(rHtmlOpt.IsImportUnknown());
aIgnoreFontNamesCB.Check(pHtmlOpt->IsIgnoreFontFamily()); aIgnoreFontNamesCB.Check(rHtmlOpt.IsIgnoreFontFamily());
sal_uInt16 nExport = pHtmlOpt->GetExportMode(); sal_uInt16 nExport = rHtmlOpt.GetExportMode();
if( nExport >= SAL_N_ELEMENTS( aExportToPosArr ) ) if( nExport >= SAL_N_ELEMENTS( aExportToPosArr ) )
nExport = 4; // default for bad config entry is NS 4.0 nExport = 4; // default for bad config entry is NS 4.0
sal_uInt16 nPosArr = aExportToPosArr[ nExport ]; sal_uInt16 nPosArr = aExportToPosArr[ nExport ];
...@@ -194,11 +194,11 @@ void OfaHtmlTabPage::Reset( const SfxItemSet& ) ...@@ -194,11 +194,11 @@ void OfaHtmlTabPage::Reset( const SfxItemSet& )
ExportHdl_Impl(&aExportLB); ExportHdl_Impl(&aExportLB);
aStarBasicCB .Check(pHtmlOpt->IsStarBasic()); aStarBasicCB .Check(rHtmlOpt.IsStarBasic());
aStarBasicWarningCB .Check(pHtmlOpt->IsStarBasicWarning()); aStarBasicWarningCB .Check(rHtmlOpt.IsStarBasicWarning());
aStarBasicWarningCB.Enable(!aStarBasicCB.IsChecked()); aStarBasicWarningCB.Enable(!aStarBasicCB.IsChecked());
aSaveGrfLocalCB.Check(pHtmlOpt->IsSaveGraphicsLocal()); aSaveGrfLocalCB.Check(rHtmlOpt.IsSaveGraphicsLocal());
aPrintExtensionCB.Check(pHtmlOpt->IsPrintLayoutExtension()); aPrintExtensionCB.Check(rHtmlOpt.IsPrintLayoutExtension());
aPrintExtensionCB.SaveValue(); aPrintExtensionCB.SaveValue();
aStarBasicCB .SaveValue(); aStarBasicCB .SaveValue();
...@@ -215,9 +215,9 @@ void OfaHtmlTabPage::Reset( const SfxItemSet& ) ...@@ -215,9 +215,9 @@ void OfaHtmlTabPage::Reset( const SfxItemSet& )
aUnknownTagCB.SaveValue(); aUnknownTagCB.SaveValue();
aIgnoreFontNamesCB.SaveValue(); aIgnoreFontNamesCB.SaveValue();
if( !pHtmlOpt->IsDefaultTextEncoding() && if( !rHtmlOpt.IsDefaultTextEncoding() &&
aCharSetLB.GetSelectTextEncoding() != pHtmlOpt->GetTextEncoding() ) aCharSetLB.GetSelectTextEncoding() != rHtmlOpt.GetTextEncoding() )
aCharSetLB.SelectTextEncoding( pHtmlOpt->GetTextEncoding() ); aCharSetLB.SelectTextEncoding( rHtmlOpt.GetTextEncoding() );
} }
IMPL_LINK(OfaHtmlTabPage, ExportHdl_Impl, ListBox*, pBox) IMPL_LINK(OfaHtmlTabPage, ExportHdl_Impl, ListBox*, pBox)
......
...@@ -117,7 +117,7 @@ OfaAutoCorrDlg::OfaAutoCorrDlg(Window* pParent, const SfxItemSet* _pSet ) : ...@@ -117,7 +117,7 @@ OfaAutoCorrDlg::OfaAutoCorrDlg(Window* pParent, const SfxItemSet* _pSet ) :
else else
{ {
// remove smart tag tab page if no extensions are installed // remove smart tag tab page if no extensions are installed
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags(); SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags();
if ( !pOpt || !pOpt->pSmartTagMgr || 0 == pOpt->pSmartTagMgr->NumberOfRecognizers() ) if ( !pOpt || !pOpt->pSmartTagMgr || 0 == pOpt->pSmartTagMgr->NumberOfRecognizers() )
RemoveTabPage(RID_OFAPAGE_SMARTTAG_OPTIONS); RemoveTabPage(RID_OFAPAGE_SMARTTAG_OPTIONS);
...@@ -230,7 +230,7 @@ SfxTabPage* OfaAutocorrOptionsPage::Create( Window* pParent, ...@@ -230,7 +230,7 @@ SfxTabPage* OfaAutocorrOptionsPage::Create( Window* pParent,
sal_Bool OfaAutocorrOptionsPage::FillItemSet( SfxItemSet& ) sal_Bool OfaAutocorrOptionsPage::FillItemSet( SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
long nFlags = pAutoCorrect->GetFlags(); long nFlags = pAutoCorrect->GetFlags();
sal_uInt16 nPos = 0; sal_uInt16 nPos = 0;
...@@ -246,9 +246,9 @@ sal_Bool OfaAutocorrOptionsPage::FillItemSet( SfxItemSet& ) ...@@ -246,9 +246,9 @@ sal_Bool OfaAutocorrOptionsPage::FillItemSet( SfxItemSet& )
sal_Bool bReturn = nFlags != pAutoCorrect->GetFlags(); sal_Bool bReturn = nFlags != pAutoCorrect->GetFlags();
if(bReturn ) if(bReturn )
{ {
SvxAutoCorrCfg* pCfg = SvxAutoCorrCfg::Get(); SvxAutoCorrCfg& rCfg = SvxAutoCorrCfg::Get();
pCfg->SetModified(); rCfg.SetModified();
pCfg->Commit(); rCfg.Commit();
} }
return bReturn; return bReturn;
} }
...@@ -260,7 +260,7 @@ void OfaAutocorrOptionsPage::ActivatePage( const SfxItemSet& ) ...@@ -260,7 +260,7 @@ void OfaAutocorrOptionsPage::ActivatePage( const SfxItemSet& )
void OfaAutocorrOptionsPage::Reset( const SfxItemSet& ) void OfaAutocorrOptionsPage::Reset( const SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
const long nFlags = pAutoCorrect->GetFlags(); const long nFlags = pAutoCorrect->GetFlags();
aCheckLB.SetUpdateMode(sal_False); aCheckLB.SetUpdateMode(sal_False);
...@@ -545,7 +545,7 @@ SfxTabPage* OfaSwAutoFmtOptionsPage::Create( Window* pParent, ...@@ -545,7 +545,7 @@ SfxTabPage* OfaSwAutoFmtOptionsPage::Create( Window* pParent,
sal_Bool OfaSwAutoFmtOptionsPage::FillItemSet( SfxItemSet& ) sal_Bool OfaSwAutoFmtOptionsPage::FillItemSet( SfxItemSet& )
{ {
sal_Bool bModified = sal_False; sal_Bool bModified = sal_False;
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags(); SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags();
long nFlags = pAutoCorrect->GetFlags(); long nFlags = pAutoCorrect->GetFlags();
...@@ -650,9 +650,9 @@ sal_Bool OfaSwAutoFmtOptionsPage::FillItemSet( SfxItemSet& ) ...@@ -650,9 +650,9 @@ sal_Bool OfaSwAutoFmtOptionsPage::FillItemSet( SfxItemSet& )
if(bModified || nFlags != pAutoCorrect->GetFlags()) if(bModified || nFlags != pAutoCorrect->GetFlags())
{ {
SvxAutoCorrCfg* pCfg = SvxAutoCorrCfg::Get(); SvxAutoCorrCfg& rCfg = SvxAutoCorrCfg::Get();
pCfg->SetModified(); rCfg.SetModified();
pCfg->Commit(); rCfg.Commit();
} }
return sal_True; return sal_True;
...@@ -670,7 +670,7 @@ void OfaSwAutoFmtOptionsPage::ActivatePage( const SfxItemSet& ) ...@@ -670,7 +670,7 @@ void OfaSwAutoFmtOptionsPage::ActivatePage( const SfxItemSet& )
void OfaSwAutoFmtOptionsPage::Reset( const SfxItemSet& ) void OfaSwAutoFmtOptionsPage::Reset( const SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags(); SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags();
const long nFlags = pAutoCorrect->GetFlags(); const long nFlags = pAutoCorrect->GetFlags();
...@@ -1022,7 +1022,7 @@ int OfaAutocorrReplacePage::DeactivatePage( SfxItemSet* ) ...@@ -1022,7 +1022,7 @@ int OfaAutocorrReplacePage::DeactivatePage( SfxItemSet* )
sal_Bool OfaAutocorrReplacePage::FillItemSet( SfxItemSet& ) sal_Bool OfaAutocorrReplacePage::FillItemSet( SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
DoubleStringArrayPtr pDoubleStringArray = aDoubleStringTable.Last(); DoubleStringArrayPtr pDoubleStringArray = aDoubleStringTable.Last();
while(pDoubleStringArray) while(pDoubleStringArray)
{ {
...@@ -1221,7 +1221,7 @@ void OfaAutocorrReplacePage::RefillReplaceBox(sal_Bool bFromReset, ...@@ -1221,7 +1221,7 @@ void OfaAutocorrReplacePage::RefillReplaceBox(sal_Bool bFromReset,
} }
else else
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
SvxAutocorrWordList* pWordList = pAutoCorrect->LoadAutocorrWordList(eLang); SvxAutocorrWordList* pWordList = pAutoCorrect->LoadAutocorrWordList(eLang);
for(sal_uInt16 i = 0; i < pWordList->Count(); i++) for(sal_uInt16 i = 0; i < pWordList->Count(); i++)
...@@ -1571,7 +1571,7 @@ int OfaAutocorrExceptPage::DeactivatePage( SfxItemSet* ) ...@@ -1571,7 +1571,7 @@ int OfaAutocorrExceptPage::DeactivatePage( SfxItemSet* )
sal_Bool OfaAutocorrExceptPage::FillItemSet( SfxItemSet& ) sal_Bool OfaAutocorrExceptPage::FillItemSet( SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
StringsArraysPtr pArrays = aStringsTable.Last(); StringsArraysPtr pArrays = aStringsTable.Last();
while(pArrays) while(pArrays)
{ {
...@@ -1752,7 +1752,7 @@ void OfaAutocorrExceptPage::RefillReplaceBoxes(sal_Bool bFromReset, ...@@ -1752,7 +1752,7 @@ void OfaAutocorrExceptPage::RefillReplaceBoxes(sal_Bool bFromReset,
} }
else else
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
const SvStringsISortDtor* pCplList = pAutoCorrect->GetCplSttExceptList(eLang); const SvStringsISortDtor* pCplList = pAutoCorrect->GetCplSttExceptList(eLang);
const SvStringsISortDtor* pWrdList = pAutoCorrect->GetWrdSttExceptList(eLang); const SvStringsISortDtor* pWrdList = pAutoCorrect->GetWrdSttExceptList(eLang);
sal_uInt16 i; sal_uInt16 i;
...@@ -1769,7 +1769,7 @@ void OfaAutocorrExceptPage::RefillReplaceBoxes(sal_Bool bFromReset, ...@@ -1769,7 +1769,7 @@ void OfaAutocorrExceptPage::RefillReplaceBoxes(sal_Bool bFromReset,
void OfaAutocorrExceptPage::Reset( const SfxItemSet& ) void OfaAutocorrExceptPage::Reset( const SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
RefillReplaceBoxes(sal_True, eLang, eLang); RefillReplaceBoxes(sal_True, eLang, eLang);
aAutoAbbrevCB. Check( pAutoCorrect->IsAutoCorrFlag( SaveWordCplSttLst )); aAutoAbbrevCB. Check( pAutoCorrect->IsAutoCorrFlag( SaveWordCplSttLst ));
aAutoCapsCB. Check( pAutoCorrect->IsAutoCorrFlag( SaveWordWrdSttLst )); aAutoCapsCB. Check( pAutoCorrect->IsAutoCorrFlag( SaveWordWrdSttLst ));
...@@ -2002,7 +2002,7 @@ SfxTabPage* OfaQuoteTabPage::Create( Window* pParent, ...@@ -2002,7 +2002,7 @@ SfxTabPage* OfaQuoteTabPage::Create( Window* pParent,
sal_Bool OfaQuoteTabPage::FillItemSet( SfxItemSet& ) sal_Bool OfaQuoteTabPage::FillItemSet( SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
long nFlags = pAutoCorrect->GetFlags(); long nFlags = pAutoCorrect->GetFlags();
...@@ -2061,9 +2061,9 @@ sal_Bool OfaQuoteTabPage::FillItemSet( SfxItemSet& ) ...@@ -2061,9 +2061,9 @@ sal_Bool OfaQuoteTabPage::FillItemSet( SfxItemSet& )
if( bModified || bReturn ) if( bModified || bReturn )
{ {
SvxAutoCorrCfg* pCfg = SvxAutoCorrCfg::Get(); SvxAutoCorrCfg& rCfg = SvxAutoCorrCfg::Get();
pCfg->SetModified(); rCfg.SetModified();
pCfg->Commit(); rCfg.Commit();
} }
return bReturn; return bReturn;
} }
...@@ -2075,7 +2075,7 @@ void OfaQuoteTabPage::ActivatePage( const SfxItemSet& ) ...@@ -2075,7 +2075,7 @@ void OfaQuoteTabPage::ActivatePage( const SfxItemSet& )
void OfaQuoteTabPage::Reset( const SfxItemSet& ) void OfaQuoteTabPage::Reset( const SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
const long nFlags = pAutoCorrect->GetFlags(); const long nFlags = pAutoCorrect->GetFlags();
// Initialize the Sw options // Initialize the Sw options
...@@ -2151,7 +2151,7 @@ IMPL_LINK( OfaQuoteTabPage, QuoteHdl, PushButton*, pBtn ) ...@@ -2151,7 +2151,7 @@ IMPL_LINK( OfaQuoteTabPage, QuoteHdl, PushButton*, pBtn )
LANGUAGE_ENGLISH_US, DEFAULTFONT_FLAGS_ONLYONE, 0 )); LANGUAGE_ENGLISH_US, DEFAULTFONT_FLAGS_ONLYONE, 0 ));
pMap->SetText(nMode < SGL_END ? sStartQuoteDlg : sEndQuoteDlg ); pMap->SetText(nMode < SGL_END ? sStartQuoteDlg : sEndQuoteDlg );
sal_UCS4 cDlg; sal_UCS4 cDlg;
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
LanguageType eLang = Application::GetSettings().GetLanguage(); LanguageType eLang = Application::GetSettings().GetLanguage();
switch( nMode ) switch( nMode )
{ {
...@@ -2317,7 +2317,7 @@ SfxTabPage* OfaAutoCompleteTabPage::Create( Window* pParent, ...@@ -2317,7 +2317,7 @@ SfxTabPage* OfaAutoCompleteTabPage::Create( Window* pParent,
sal_Bool OfaAutoCompleteTabPage::FillItemSet( SfxItemSet& ) sal_Bool OfaAutoCompleteTabPage::FillItemSet( SfxItemSet& )
{ {
sal_Bool bModified = sal_False, bCheck; sal_Bool bModified = sal_False, bCheck;
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags(); SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags();
sal_uInt16 nVal; sal_uInt16 nVal;
...@@ -2360,16 +2360,16 @@ sal_Bool OfaAutoCompleteTabPage::FillItemSet( SfxItemSet& ) ...@@ -2360,16 +2360,16 @@ sal_Bool OfaAutoCompleteTabPage::FillItemSet( SfxItemSet& )
} }
if( bModified ) if( bModified )
{ {
SvxAutoCorrCfg* pCfg = SvxAutoCorrCfg::Get(); SvxAutoCorrCfg& rCfg = SvxAutoCorrCfg::Get();
pCfg->SetModified(); rCfg.SetModified();
pCfg->Commit(); rCfg.Commit();
} }
return sal_True; return sal_True;
} }
void OfaAutoCompleteTabPage::Reset( const SfxItemSet& ) void OfaAutoCompleteTabPage::Reset( const SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags(); SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags();
aCBActiv.Check( 0 != pOpt->bAutoCompleteWords ); aCBActiv.Check( 0 != pOpt->bAutoCompleteWords );
...@@ -2674,7 +2674,7 @@ IMPL_LINK(OfaSmartTagOptionsTabPage, SelectHdl, SvxCheckListBox*, EMPTYARG) ...@@ -2674,7 +2674,7 @@ IMPL_LINK(OfaSmartTagOptionsTabPage, SelectHdl, SvxCheckListBox*, EMPTYARG)
*/ */
sal_Bool OfaSmartTagOptionsTabPage::FillItemSet( SfxItemSet& ) sal_Bool OfaSmartTagOptionsTabPage::FillItemSet( SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags(); SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags();
SmartTagMgr* pSmartTagMgr = pOpt->pSmartTagMgr; SmartTagMgr* pSmartTagMgr = pOpt->pSmartTagMgr;
...@@ -2717,7 +2717,7 @@ sal_Bool OfaSmartTagOptionsTabPage::FillItemSet( SfxItemSet& ) ...@@ -2717,7 +2717,7 @@ sal_Bool OfaSmartTagOptionsTabPage::FillItemSet( SfxItemSet& )
*/ */
void OfaSmartTagOptionsTabPage::Reset( const SfxItemSet& ) void OfaSmartTagOptionsTabPage::Reset( const SfxItemSet& )
{ {
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get()->GetAutoCorrect(); SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags(); SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags();
const SmartTagMgr* pSmartTagMgr = pOpt->pSmartTagMgr; const SmartTagMgr* pSmartTagMgr = pOpt->pSmartTagMgr;
......
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