summaryrefslogtreecommitdiff
path: root/cui/source/options/optgdlg.cxx
diff options
context:
space:
mode:
authorJoel Madero <jmadero.dev@gmail.com>2012-09-04 07:03:03 -0700
committerCaolán McNamara <caolanm@redhat.com>2012-09-07 14:03:09 +0100
commit818d269971e3119047a3bcc78995f4067d9d9ddd (patch)
tree7982423c3f0f7dcb02cf65d48e7e314aeae59a88 /cui/source/options/optgdlg.cxx
parent063966ee0e8b98231cb622311eb2131d19531926 (diff)
Moving experimental section to java, changing section name
First of a few patches to move measurements to the general section in the LibreOffice main tree. This patch moves experimental section to "Java" and then changes the name "Java" to "Advanced". The space which was cleared by moving experimental section will be used for measurements in the future. modified: cui/source/options/optgdlg.cxx modified: cui/source/options/optgdlg.hrc modified: cui/source/options/optgdlg.hxx modified: cui/source/options/optgdlg.src modified: cui/source/options/optjava.cxx modified: cui/source/options/optjava.hrc modified: cui/source/options/optjava.hxx modified: cui/source/options/optjava.src modified: cui/source/options/treeopt.src Change-Id: I20073296ce81aace4b041ef5cb27e4313637a58d
Diffstat (limited to 'cui/source/options/optgdlg.cxx')
-rw-r--r--cui/source/options/optgdlg.cxx29
1 files changed, 4 insertions, 25 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 5f7015bdbd37..3ff3b3c15396 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -212,10 +212,7 @@ OfaMiscTabPage::OfaMiscTabPage(Window* pParent, const SfxItemSet& rSet ) :
aTwoFigureFL ( this, CUI_RES( FL_TWOFIGURE ) ),
aInterpretFT ( this, CUI_RES( FT_INTERPRET ) ),
aYearValueField ( this, CUI_RES( NF_YEARVALUE ) ),
- aToYearFT ( this, CUI_RES( FT_TOYEAR ) ),
- aExperimentalFL ( this, CUI_RES( FL_EXPERIMENTAL ) ),
- aExperimentalCB ( this, CUI_RES( CB_EXPERIMENTAL ) ),
- aMacroRecorderCB ( this, CUI_RES( CB_MACRORECORDER ) )
+ aToYearFT ( this, CUI_RES( FT_TOYEAR ) )
{
FreeResource();
@@ -245,7 +242,7 @@ OfaMiscTabPage::OfaMiscTabPage(Window* pParent, const SfxItemSet& rSet ) :
Window* pWins[] =
{
&aPrintDlgFL, &aPrintDlgCB, &aDocStatusFL, &aDocStatusCB, &aSaveAlwaysCB,
- &aTwoFigureFL, &aInterpretFT, &aYearValueField, &aToYearFT, &aExperimentalFL, &aExperimentalCB, &aMacroRecorderCB
+ &aTwoFigureFL, &aInterpretFT, &aYearValueField, &aToYearFT
};
Window** pCurrent = pWins;
const sal_Int32 nCount = SAL_N_ELEMENTS( pWins );
@@ -266,7 +263,7 @@ OfaMiscTabPage::OfaMiscTabPage(Window* pParent, const SfxItemSet& rSet ) :
Window* pWins[] =
{
&aPrintDlgFL, &aPrintDlgCB, &aDocStatusFL, &aDocStatusCB, &aSaveAlwaysCB,
- &aTwoFigureFL, &aInterpretFT, &aYearValueField, &aToYearFT, &aExperimentalFL, &aExperimentalCB, &aMacroRecorderCB
+ &aTwoFigureFL, &aInterpretFT, &aYearValueField, &aToYearFT
};
Window** pCurrent = pWins;
const sal_Int32 nCount = SAL_N_ELEMENTS( pWins );
@@ -292,7 +289,7 @@ OfaMiscTabPage::OfaMiscTabPage(Window* pParent, const SfxItemSet& rSet ) :
Window* pWins[] =
{
&aDocStatusFL, &aDocStatusCB, &aSaveAlwaysCB, &aTwoFigureFL,
- &aInterpretFT, &aYearValueField, &aToYearFT, &aExperimentalFL, &aExperimentalCB, &aMacroRecorderCB
+ &aInterpretFT, &aYearValueField, &aToYearFT
};
Window** pCurrent = pWins;
const sal_Int32 nCount = SAL_N_ELEMENTS( pWins );
@@ -403,20 +400,6 @@ sal_Bool OfaMiscTabPage::FillItemSet( SfxItemSet& rSet )
bModified = sal_True;
}
- if ( aExperimentalCB.IsChecked() != aExperimentalCB.GetSavedValue() )
- {
- SvtMiscOptions aMiscOpt;
- aMiscOpt.SetExperimentalMode( aExperimentalCB.IsChecked() );
- bModified = sal_True;
- }
-
- if ( aMacroRecorderCB.IsChecked() != aMacroRecorderCB.GetSavedValue() )
- {
- SvtMiscOptions aMiscOpt;
- aMiscOpt.SetMacroRecorderMode( aMacroRecorderCB.IsChecked() );
- bModified = sal_True;
- }
-
const SfxUInt16Item* pUInt16Item =
PTR_CAST( SfxUInt16Item, GetOldItem( rSet, SID_ATTR_YEAR2000 ) );
sal_uInt16 nNum = (sal_uInt16)aYearValueField.GetText().ToInt32();
@@ -450,10 +433,6 @@ void OfaMiscTabPage::Reset( const SfxItemSet& rSet )
aPrintDlgCB.SaveValue();
aSaveAlwaysCB.Check( aMiscOpt.IsSaveAlwaysAllowed() );
aSaveAlwaysCB.SaveValue();
- aExperimentalCB.Check( aMiscOpt.IsExperimentalMode() );
- aExperimentalCB.SaveValue();
- aMacroRecorderCB.Check( aMiscOpt.IsMacroRecorderMode() );
- aMacroRecorderCB.SaveValue();
aODMADlgCB.Check( aMiscOpt.TryODMADialog() );
aODMADlgCB.SaveValue();