summaryrefslogtreecommitdiff
path: root/cui/source/options
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-18 13:37:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-02-18 14:16:27 +0000
commit8d4e51a599a02f2342f066dba4f2e700b4950c6a (patch)
tree6730186ad241e4128435a3bc8502e63263b98d15 /cui/source/options
parent7bf7d96a65dc1e14029db42c05230dc091a55da0 (diff)
move General options page to cui and adapt code
Change-Id: I724db9d199ad15d31f8daf2329ceb9cd46fdefda
Diffstat (limited to 'cui/source/options')
-rw-r--r--cui/source/options/optgdlg.cxx208
-rw-r--r--cui/source/options/optgdlg.hrc15
-rw-r--r--cui/source/options/optgdlg.hxx31
-rw-r--r--cui/source/options/optgdlg.src127
4 files changed, 83 insertions, 298 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index a41c945e0aee..d4dc3f692876 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -182,112 +182,47 @@ namespace
// -----------------------------------------------------------------------
-OfaMiscTabPage::OfaMiscTabPage(Window* pParent, const SfxItemSet& rSet ) :
-
- SfxTabPage( pParent, CUI_RES( OFA_TP_MISC ), rSet ),
-
- aHelpFL ( this, CUI_RES( FL_HELP ) ),
- aToolTipsCB ( this, CUI_RES( CB_TOOLTIP ) ),
- aExtHelpCB ( this, CUI_RES( CB_EXTHELP ) ),
- aHelpAgentCB ( this, CUI_RES( CB_HELPAGENT ) ),
- aHelpAgentResetBtn ( this, CUI_RES( PB_HELPAGENT_RESET ) ),
- aFileDlgFL ( this, CUI_RES( FL_FILEDLG ) ),
- aFileDlgROImage ( this, CUI_RES( FI_FILEDLG_RO ) ),
- aFileDlgCB ( this, CUI_RES( CB_FILEDLG ) ),
- aPrintDlgFL ( this, CUI_RES( FL_PRINTDLG ) ),
- aPrintDlgCB ( this, CUI_RES( CB_PRINTDLG ) ),
- aDocStatusFL ( this, CUI_RES( FL_DOCSTATUS ) ),
- aDocStatusCB ( this, CUI_RES( CB_DOCSTATUS ) ),
- aSaveAlwaysCB ( this, CUI_RES( CB_SAVE_ALWAYS ) ),
- aTwoFigureFL ( this, CUI_RES( FL_TWOFIGURE ) ),
- aInterpretFT ( this, CUI_RES( FT_INTERPRET ) ),
- aYearValueField ( this, CUI_RES( NF_YEARVALUE ) ),
- aToYearFT ( this, CUI_RES( FT_TOYEAR ) )
+OfaMiscTabPage::OfaMiscTabPage(Window* pParent, const SfxItemSet& rSet)
+ : SfxTabPage(pParent, "OptGeneralPage", "cui/ui/optgeneralpage.ui", rSet)
{
- FreeResource();
-
+ get(m_pToolTipsCB, "tooltips");
+ get(m_pExtHelpCB, "exthelp");
+ get(m_pHelpAgentCB, "helpagent");
+ get(m_pHelpAgentResetBtn, "resethelpagent");
if (!lcl_HasSystemFilePicker())
- {
- aFileDlgFL.Hide();
- aFileDlgCB.Hide();
- }
-
+ get<VclContainer>("filedlgframe")->Hide();
#if !defined(MACOSX) && !defined(ENABLE_GTK)
- aPrintDlgFL.Hide();
- aPrintDlgCB.Hide();
+ get<VclContainer>("printdlgframe")->Hide();
#endif
+ get(m_pFileDlgCB, "filedlg");
+ get(m_pPrintDlgCB, "printdlg");
+ get(m_pDocStatusCB, "docstatus");
+ get(m_pSaveAlwaysCB, "savealways");
+ get(m_pYearFrame, "yearframe");
+ get(m_pYearValueField, "year");
+ get(m_pToYearFT, "toyear");
- if ( !aFileDlgCB.IsVisible() )
- {
- // rearrange the following controls
- Point aNewPos = aPrintDlgFL.GetPosPixel();
- long nDelta = aNewPos.Y() - aFileDlgFL.GetPosPixel().Y();
-
- Window* pWins[] =
- {
- &aPrintDlgFL, &aPrintDlgCB, &aDocStatusFL, &aDocStatusCB, &aSaveAlwaysCB,
- &aTwoFigureFL, &aInterpretFT, &aYearValueField, &aToYearFT
- };
- Window** pCurrent = pWins;
- const sal_Int32 nCount = SAL_N_ELEMENTS( pWins );
- for ( sal_Int32 i = 0; i < nCount; ++i, ++pCurrent )
- {
- aNewPos = (*pCurrent)->GetPosPixel();
- aNewPos.Y() -= nDelta;
- (*pCurrent)->SetPosPixel( aNewPos );
- }
- }
- else if ( SvtMiscOptions().IsUseSystemFileDialogReadOnly() )
- {
- aFileDlgROImage.Show();
- aFileDlgCB.Disable();
- }
-
- if ( !aPrintDlgCB.IsVisible() )
- {
- // rearrange the following controls
- Point aNewPos = aDocStatusFL.GetPosPixel();
- long nDelta = aNewPos.Y() - aPrintDlgFL.GetPosPixel().Y();
-
- Window* pWins[] =
- {
- &aDocStatusFL, &aDocStatusCB, &aSaveAlwaysCB, &aTwoFigureFL,
- &aInterpretFT, &aYearValueField, &aToYearFT
- };
- Window** pCurrent = pWins;
- const sal_Int32 nCount = SAL_N_ELEMENTS( pWins );
- for ( sal_Int32 i = 0; i < nCount; ++i, ++pCurrent )
- {
- aNewPos = (*pCurrent)->GetPosPixel();
- aNewPos.Y() -= nDelta;
- (*pCurrent)->SetPosPixel( aNewPos );
- }
- }
-
- // at least the button is as wide as its text
- long nTxtWidth = aHelpAgentResetBtn.GetTextWidth( aHelpAgentResetBtn.GetText() );
- Size aBtnSz = aHelpAgentResetBtn.GetSizePixel();
- if ( aBtnSz.Width() < nTxtWidth )
+ if (m_pFileDlgCB->IsVisible() && SvtMiscOptions().IsUseSystemFileDialogReadOnly())
{
- aBtnSz.Width() = nTxtWidth;
- aHelpAgentResetBtn.SetSizePixel( aBtnSz );
+ m_pFileDlgROImage->Show();
+ m_pFileDlgCB->Disable();
}
- aStrDateInfo = aToYearFT.GetText();
- aYearValueField.SetModifyHdl( LINK( this, OfaMiscTabPage, TwoFigureHdl ) );
+ m_aStrDateInfo = m_pToYearFT->GetText();
+ m_pYearValueField->SetModifyHdl( LINK( this, OfaMiscTabPage, TwoFigureHdl ) );
Link aLink = LINK( this, OfaMiscTabPage, TwoFigureConfigHdl );
- aYearValueField.SetDownHdl( aLink );
- aYearValueField.SetUpHdl( aLink );
- aYearValueField.SetLoseFocusHdl( aLink );
- aYearValueField.SetFirstHdl( aLink );
- TwoFigureConfigHdl( &aYearValueField );
+ m_pYearValueField->SetDownHdl( aLink );
+ m_pYearValueField->SetUpHdl( aLink );
+ m_pYearValueField->SetLoseFocusHdl( aLink );
+ m_pYearValueField->SetFirstHdl( aLink );
+ TwoFigureConfigHdl(m_pYearValueField);
SetExchangeSupport();
aLink = LINK( this, OfaMiscTabPage, HelpCheckHdl_Impl );
- aToolTipsCB.SetClickHdl( aLink );
- aHelpAgentCB.SetClickHdl( aLink );
- aHelpAgentResetBtn.SetClickHdl( LINK( this, OfaMiscTabPage, HelpAgentResetHdl_Impl ) );
+ m_pToolTipsCB->SetClickHdl( aLink );
+ m_pHelpAgentCB->SetClickHdl( aLink );
+ m_pHelpAgentResetBtn->SetClickHdl( LINK( this, OfaMiscTabPage, HelpAgentResetHdl_Impl ) );
}
// -----------------------------------------------------------------------
@@ -310,47 +245,47 @@ sal_Bool OfaMiscTabPage::FillItemSet( SfxItemSet& rSet )
sal_Bool bModified = sal_False;
SvtHelpOptions aHelpOptions;
- sal_Bool bChecked = aToolTipsCB.IsChecked();
- if ( bChecked != aToolTipsCB.GetSavedValue() )
+ sal_Bool bChecked = m_pToolTipsCB->IsChecked();
+ if ( bChecked != m_pToolTipsCB->GetSavedValue() )
aHelpOptions.SetHelpTips( bChecked );
- bChecked = ( aExtHelpCB.IsChecked() && aToolTipsCB.IsChecked() );
- if ( bChecked != aExtHelpCB.GetSavedValue() )
+ bChecked = ( m_pExtHelpCB->IsChecked() && m_pToolTipsCB->IsChecked() );
+ if ( bChecked != m_pExtHelpCB->GetSavedValue() )
aHelpOptions.SetExtendedHelp( bChecked );
- bChecked = aHelpAgentCB.IsChecked();
- if ( bChecked != aHelpAgentCB.GetSavedValue() )
+ bChecked = m_pHelpAgentCB->IsChecked();
+ if ( bChecked != m_pHelpAgentCB->GetSavedValue() )
aHelpOptions.SetHelpAgentAutoStartMode( bChecked );
- if ( aFileDlgCB.IsChecked() != aFileDlgCB.GetSavedValue() )
+ if ( m_pFileDlgCB->IsChecked() != m_pFileDlgCB->GetSavedValue() )
{
SvtMiscOptions aMiscOpt;
- aMiscOpt.SetUseSystemFileDialog( !aFileDlgCB.IsChecked() );
+ aMiscOpt.SetUseSystemFileDialog( !m_pFileDlgCB->IsChecked() );
bModified = sal_True;
}
- if ( aPrintDlgCB.IsChecked() != aPrintDlgCB.GetSavedValue() )
+ if ( m_pPrintDlgCB->IsChecked() != m_pPrintDlgCB->GetSavedValue() )
{
SvtMiscOptions aMiscOpt;
- aMiscOpt.SetUseSystemPrintDialog( !aPrintDlgCB.IsChecked() );
+ aMiscOpt.SetUseSystemPrintDialog( !m_pPrintDlgCB->IsChecked() );
bModified = sal_True;
}
- if ( aDocStatusCB.IsChecked() != aDocStatusCB.GetSavedValue() )
+ if ( m_pDocStatusCB->IsChecked() != m_pDocStatusCB->GetSavedValue() )
{
SvtPrintWarningOptions aPrintOptions;
- aPrintOptions.SetModifyDocumentOnPrintingAllowed( aDocStatusCB.IsChecked() );
+ aPrintOptions.SetModifyDocumentOnPrintingAllowed( m_pDocStatusCB->IsChecked() );
bModified = sal_True;
}
- if ( aSaveAlwaysCB.IsChecked() != aSaveAlwaysCB.GetSavedValue() )
+ if ( m_pSaveAlwaysCB->IsChecked() != m_pSaveAlwaysCB->GetSavedValue() )
{
SvtMiscOptions aMiscOpt;
- aMiscOpt.SetSaveAlwaysAllowed( aSaveAlwaysCB.IsChecked() );
+ aMiscOpt.SetSaveAlwaysAllowed( m_pSaveAlwaysCB->IsChecked() );
bModified = sal_True;
}
const SfxUInt16Item* pUInt16Item =
PTR_CAST( SfxUInt16Item, GetOldItem( rSet, SID_ATTR_YEAR2000 ) );
- sal_uInt16 nNum = (sal_uInt16)aYearValueField.GetText().toInt32();
+ sal_uInt16 nNum = (sal_uInt16)m_pYearValueField->GetText().toInt32();
if ( pUInt16Item && pUInt16Item->GetValue() != nNum )
{
bModified = sal_True;
@@ -365,39 +300,36 @@ sal_Bool OfaMiscTabPage::FillItemSet( SfxItemSet& rSet )
void OfaMiscTabPage::Reset( const SfxItemSet& rSet )
{
SvtHelpOptions aHelpOptions;
- aToolTipsCB.Check( aHelpOptions.IsHelpTips() );
- aExtHelpCB.Check( aHelpOptions.IsHelpTips() && aHelpOptions.IsExtendedHelp() );
- aHelpAgentCB.Check( aHelpOptions.IsHelpAgentAutoStartMode() );
+ m_pToolTipsCB->Check( aHelpOptions.IsHelpTips() );
+ m_pExtHelpCB->Check( aHelpOptions.IsHelpTips() && aHelpOptions.IsExtendedHelp() );
+ m_pHelpAgentCB->Check( aHelpOptions.IsHelpAgentAutoStartMode() );
- aToolTipsCB.SaveValue();
- aExtHelpCB.SaveValue();
- aHelpAgentCB.SaveValue();
- HelpCheckHdl_Impl( &aHelpAgentCB );
+ m_pToolTipsCB->SaveValue();
+ m_pExtHelpCB->SaveValue();
+ m_pHelpAgentCB->SaveValue();
+ HelpCheckHdl_Impl(m_pHelpAgentCB);
SvtMiscOptions aMiscOpt;
- aFileDlgCB.Check( !aMiscOpt.UseSystemFileDialog() );
- aFileDlgCB.SaveValue();
- aPrintDlgCB.Check( !aMiscOpt.UseSystemPrintDialog() );
- aPrintDlgCB.SaveValue();
- aSaveAlwaysCB.Check( aMiscOpt.IsSaveAlwaysAllowed() );
- aSaveAlwaysCB.SaveValue();
+ m_pFileDlgCB->Check( !aMiscOpt.UseSystemFileDialog() );
+ m_pFileDlgCB->SaveValue();
+ m_pPrintDlgCB->Check( !aMiscOpt.UseSystemPrintDialog() );
+ m_pPrintDlgCB->SaveValue();
+ m_pSaveAlwaysCB->Check( aMiscOpt.IsSaveAlwaysAllowed() );
+ m_pSaveAlwaysCB->SaveValue();
SvtPrintWarningOptions aPrintOptions;
- aDocStatusCB.Check(aPrintOptions.IsModifyDocumentOnPrintingAllowed());
- aDocStatusCB.SaveValue();
+ m_pDocStatusCB->Check(aPrintOptions.IsModifyDocumentOnPrintingAllowed());
+ m_pDocStatusCB->SaveValue();
const SfxPoolItem* pItem = NULL;
if ( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_YEAR2000, sal_False, &pItem ) )
{
- aYearValueField.SetValue( ((SfxUInt16Item*)pItem)->GetValue() );
- TwoFigureConfigHdl( &aYearValueField );
+ m_pYearValueField->SetValue( ((SfxUInt16Item*)pItem)->GetValue() );
+ TwoFigureConfigHdl(m_pYearValueField);
}
else
{
- aYearValueField.Enable(sal_False);
- aTwoFigureFL.Enable(sal_False);
- aInterpretFT.Enable(sal_False);
- aToYearFT.Enable(sal_False);
+ m_pYearFrame->Enable(sal_False);
}
}
@@ -407,21 +339,21 @@ IMPL_LINK( OfaMiscTabPage, TwoFigureHdl, NumericField*, pEd )
{
(void)pEd;
- OUString aOutput( aStrDateInfo );
- OUString aStr( aYearValueField.GetText() );
+ OUString aOutput( m_aStrDateInfo );
+ OUString aStr( m_pYearValueField->GetText() );
OUString sSep( SvtSysLocale().GetLocaleData().getNumThousandSep() );
sal_Int32 nIndex = 0;
while ((nIndex = aStr.indexOf( sSep, nIndex)) != -1)
aStr = aStr.replaceAt( nIndex, sSep.getLength(), "");
sal_Int32 nNum = aStr.toInt32();
- if ( aStr.getLength() != 4 || nNum < aYearValueField.GetMin() || nNum > aYearValueField.GetMax() )
+ if ( aStr.getLength() != 4 || nNum < m_pYearValueField->GetMin() || nNum > m_pYearValueField->GetMax() )
aOutput += "????";
else
{
nNum += 99;
aOutput += OUString::number( nNum );
}
- aToYearFT.SetText( aOutput );
+ m_pToYearFT->SetText( aOutput );
return 0;
}
@@ -429,10 +361,10 @@ IMPL_LINK( OfaMiscTabPage, TwoFigureHdl, NumericField*, pEd )
IMPL_LINK( OfaMiscTabPage, TwoFigureConfigHdl, NumericField*, pEd )
{
- sal_Int64 nNum = aYearValueField.GetValue();
+ sal_Int64 nNum = m_pYearValueField->GetValue();
rtl::OUString aOutput(rtl::OUString::number(nNum));
- aYearValueField.SetText(aOutput);
- aYearValueField.SetSelection( Selection( 0, aOutput.getLength() ) );
+ m_pYearValueField->SetText(aOutput);
+ m_pYearValueField->SetSelection( Selection( 0, aOutput.getLength() ) );
TwoFigureHdl( pEd );
return 0;
}
@@ -441,8 +373,8 @@ IMPL_LINK( OfaMiscTabPage, TwoFigureConfigHdl, NumericField*, pEd )
IMPL_LINK_NOARG(OfaMiscTabPage, HelpCheckHdl_Impl)
{
- aExtHelpCB.Enable( aToolTipsCB.IsChecked() );
- aHelpAgentResetBtn.Enable( aHelpAgentCB.IsChecked() );
+ m_pExtHelpCB->Enable( m_pToolTipsCB->IsChecked() );
+ m_pHelpAgentResetBtn->Enable( m_pHelpAgentCB->IsChecked() );
return 0;
}
diff --git a/cui/source/options/optgdlg.hrc b/cui/source/options/optgdlg.hrc
index fbf3c32086c0..bb7a7a500d24 100644
--- a/cui/source/options/optgdlg.hrc
+++ b/cui/source/options/optgdlg.hrc
@@ -87,21 +87,6 @@
#define ROW_FL_SELECTION (ROW_LB_MOUSEMIDDLE + RSC_CD_DROPDOWN_HEIGHT + RSC_SP_FLGR_SPACE_X)
#define ROW_CB_SELECTION (ROW_FL_SELECTION + RSC_CD_FIXEDLINE_HEIGHT + ROWSPACE)
-// tabpage general -------------------------------------------------------
-
-#define FL_HELP 10
-#define CB_TOOLTIP 11
-#define CB_EXTHELP 12
-#define CB_HELPAGENT 13
-#define PB_HELPAGENT_RESET 14
-
-#define FL_TWOFIGURE 40
-#define FT_INTERPRET 41
-#define NF_YEARVALUE 42
-#define FT_TOYEAR 43
-#define FL_PRINTDLG 44
-#define CB_PRINTDLG 45
-
// tabpage view ----------------------------------------------------------
// #i95644# 10 .. 14 freed, may be reused
diff --git a/cui/source/options/optgdlg.hxx b/cui/source/options/optgdlg.hxx
index 718344ba45b3..70cfc7fcf2be 100644
--- a/cui/source/options/optgdlg.hxx
+++ b/cui/source/options/optgdlg.hxx
@@ -36,29 +36,24 @@ class OfaMiscTabPage : public SfxTabPage
{
using TabPage::DeactivatePage;
private:
- FixedLine aHelpFL;
- CheckBox aToolTipsCB;
- CheckBox aExtHelpCB;
- CheckBox aHelpAgentCB;
- PushButton aHelpAgentResetBtn;
+ CheckBox* m_pToolTipsCB;
+ CheckBox* m_pExtHelpCB;
+ CheckBox* m_pHelpAgentCB;
+ PushButton* m_pHelpAgentResetBtn;
- FixedLine aFileDlgFL;
- ReadOnlyImage aFileDlgROImage;
- CheckBox aFileDlgCB;
+ FixedImage* m_pFileDlgROImage;
+ CheckBox* m_pFileDlgCB;
- FixedLine aPrintDlgFL;
- CheckBox aPrintDlgCB;
+ CheckBox* m_pPrintDlgCB;
- FixedLine aDocStatusFL;
- CheckBox aDocStatusCB;
- CheckBox aSaveAlwaysCB;
+ CheckBox* m_pDocStatusCB;
+ CheckBox* m_pSaveAlwaysCB;
- FixedLine aTwoFigureFL;
- FixedText aInterpretFT;
- NumericField aYearValueField;
- FixedText aToYearFT;
+ VclContainer* m_pYearFrame;
+ NumericField* m_pYearValueField;
+ FixedText* m_pToYearFT;
- String aStrDateInfo;
+ OUString m_aStrDateInfo;
DECL_LINK( TwoFigureHdl, NumericField* );
DECL_LINK( TwoFigureConfigHdl, NumericField* );
diff --git a/cui/source/options/optgdlg.src b/cui/source/options/optgdlg.src
index 9ed740d09332..374a32b655fd 100644
--- a/cui/source/options/optgdlg.src
+++ b/cui/source/options/optgdlg.src
@@ -22,133 +22,6 @@
//****************************************************************************
//
- // TabPage Sonstiges
- //
- //****************************************************************************
-
-TabPage OFA_TP_MISC
-{
- HelpID = HID_OFA_TP_MISC ;
- SVLook = TRUE ;
- Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
- Hide = TRUE ;
- FixedLine FL_HELP
- {
- Pos = MAP_APPFONT( COL0, ROW0 );
- Size = MAP_APPFONT( WHOLE_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
- Text [ en-US ] = "Help";
- };
- CheckBox CB_TOOLTIP
- {
- HelpID = "cui:CheckBox:OFA_TP_MISC:CB_TOOLTIP";
- Pos = MAP_APPFONT( COL1, ROW1 );
- Size = MAP_APPFONT( COL3 - COL1, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "~Tips";
- };
- CheckBox CB_EXTHELP
- {
- HelpID = "cui:CheckBox:OFA_TP_MISC:CB_EXTHELP";
- Pos = MAP_APPFONT( COL3, ROW1 );
- Size = MAP_APPFONT( WHOLE_WIDTH - COL3, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "~Extended tips";
- };
- CheckBox CB_HELPAGENT
- {
- HelpID = "cui:CheckBox:OFA_TP_MISC:CB_HELPAGENT";
- Pos = MAP_APPFONT( COL1, ROW3 );
- Size = MAP_APPFONT( COL3 - COL1, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "~Help Agent";
- };
- PushButton PB_HELPAGENT_RESET
- {
- HelpID = "cui:PushButton:OFA_TP_MISC:PB_HELPAGENT_RESET";
- Pos = MAP_APPFONT( COL3, ROW3 );
- Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH + 20, RSC_CD_PUSHBUTTON_HEIGHT );
- Text [ en-US ] = "~Reset Help Agent";
- };
- FixedLine FL_FILEDLG
- {
- Pos = MAP_APPFONT( COL0, ROW4 );
- Size = MAP_APPFONT( WHOLE_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
- Text [ en-US ] = "Open/Save dialogs";
- };
- FixedImage FI_FILEDLG_RO
- {
- Pos = MAP_APPFONT( COL1 - 7, ROW5 + 2 );
- Size = MAP_APPFONT( 6, 6 );
- Hide = TRUE;
- };
- CheckBox CB_FILEDLG
- {
- HelpID = "cui:CheckBox:OFA_TP_MISC:CB_FILEDLG";
- Pos = MAP_APPFONT( COL1, ROW5 );
- Size = MAP_APPFONT( WHOLE_WIDTH, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "~Use %PRODUCTNAME dialogs";
- };
- FixedLine FL_PRINTDLG
- {
- Pos = MAP_APPFONT( COL0, ROW6 );
- Size = MAP_APPFONT( WHOLE_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
- Text [ en-US ] = "Print dialogs";
- };
- CheckBox CB_PRINTDLG
- {
- Pos = MAP_APPFONT( COL1, ROW7 );
- Size = MAP_APPFONT( WHOLE_WIDTH - COL1, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "Use %PRODUCTNAME ~dialogs";
- };
- FixedLine FL_DOCSTATUS
- {
- Pos = MAP_APPFONT( COL0, ROW8 );
- Size = MAP_APPFONT( WHOLE_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
- Text [ en-US ] = "Document status";
- };
- CheckBox CB_DOCSTATUS
- {
- HelpID = "cui:CheckBox:OFA_TP_MISC:CB_DOCSTATUS";
- Pos = MAP_APPFONT( COL1, ROW9 );
- Size = MAP_APPFONT( WHOLE_WIDTH - COL1, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "~Printing sets \"document modified\" status";
- };
- CheckBox CB_SAVE_ALWAYS
- {
- Pos = MAP_APPFONT( COL1, ROW10 );
- Size = MAP_APPFONT( WHOLE_WIDTH - COL1, RSC_CD_CHECKBOX_HEIGHT );
- Text [ en-US ] = "Allow to save document even when the document is not modified";
- };
- FixedLine FL_TWOFIGURE
- {
- Pos = MAP_APPFONT( COL0, ROW11 );
- Size = MAP_APPFONT( WHOLE_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
- Text [ en-US ] = "Year (two digits)" ;
- };
- FixedText FT_INTERPRET
- {
- Pos = MAP_APPFONT( COL1, OFFS_TEXTBOX_FIXEDTEXT(ROW12) );
- Size = MAP_APPFONT( DIFF( COL1, COL3), RSC_CD_FIXEDTEXT_HEIGHT );
- Text [ en-US ] = "Interpret as years between";
- };
- NumericField NF_YEARVALUE
- {
- HelpID = "cui:NumericField:OFA_TP_MISC:NF_YEARVALUE";
- Border = TRUE ;
- Pos = MAP_APPFONT( COL4, ROW12 );
- Size = MAP_APPFONT( EDIT_WIDTH, RSC_CD_TEXTBOX_HEIGHT );
- Minimum = 1583 ;
- Maximum = 9857 ;
- Spin = TRUE ;
- Repeat = TRUE ;
- };
- FixedText FT_TOYEAR
- {
- Pos = MAP_APPFONT( COL6, OFFS_TEXTBOX_FIXEDTEXT(ROW12) );
- Size = MAP_APPFONT( WHOLE_WIDTH - COL6, RSC_CD_FIXEDTEXT_HEIGHT );
- Text [ en-US ] = "and " ;
- };
-};
-
- //****************************************************************************
- //
// TabPage Ansicht
//
//****************************************************************************