summaryrefslogtreecommitdiff
path: root/sd/source/ui/app/sdpopup.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <thb@openoffice.org>2002-07-26 08:50:47 +0000
committerThorsten Behrens <thb@openoffice.org>2002-07-26 08:50:47 +0000
commit0882b3c236df0241024affdb01a39fe755500e7d (patch)
tree99b5e37eeae57e02d2677e043bc43a8e965c7fc5 /sd/source/ui/app/sdpopup.cxx
parent98978996f61ea759d897cc23c91f9795046d34cd (diff)
#101743# Pass outliner language to popup menu
Diffstat (limited to 'sd/source/ui/app/sdpopup.cxx')
-rw-r--r--sd/source/ui/app/sdpopup.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/sd/source/ui/app/sdpopup.cxx b/sd/source/ui/app/sdpopup.cxx
index 344d3c34d09b..be46f64d1bf4 100644
--- a/sd/source/ui/app/sdpopup.cxx
+++ b/sd/source/ui/app/sdpopup.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sdpopup.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: thb $ $Date: 2001-09-03 15:22:28 $
+ * last change: $Author: thb $ $Date: 2002-07-26 09:48:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -94,11 +94,11 @@
|*
\************************************************************************/
-SdFieldPopup::SdFieldPopup( const SvxFieldData* pInField ) :
+SdFieldPopup::SdFieldPopup( const SvxFieldData* pInField, LanguageType eLanguage ) :
PopupMenu (),
pField ( pInField )
{
- Fill();
+ Fill( eLanguage );
}
/*************************************************************************
@@ -117,7 +117,7 @@ SdFieldPopup::~SdFieldPopup()
|*
\************************************************************************/
-void SdFieldPopup::Fill()
+void SdFieldPopup::Fill( LanguageType eLanguage )
{
USHORT nID = 1;
USHORT nStyle = MIB_RADIOCHECK | MIB_AUTOCHECK;
@@ -142,18 +142,18 @@ void SdFieldPopup::Fill()
SvNumberFormatter* pNumberFormatter = SD_MOD()->GetNumberFormatter();
aDateField.SetFormat( SVXDATEFORMAT_A ); // 13.02.96
- InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
aDateField.SetFormat( SVXDATEFORMAT_B ); // 13.02.1996
- InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
aDateField.SetFormat( SVXDATEFORMAT_C ); // 13.Feb 1996
- InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
aDateField.SetFormat( SVXDATEFORMAT_D ); // 13.Februar 1996
- InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
aDateField.SetFormat( SVXDATEFORMAT_E ); // Die, 13.Februar 1996
- InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
aDateField.SetFormat( SVXDATEFORMAT_F ); // Dienstag, 13.Februar 1996
- InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
CheckItem( (USHORT) ( pDateField->GetFormat() ) + 1 ); // - 2 + 3 !
}
@@ -173,18 +173,18 @@ void SdFieldPopup::Fill()
SvNumberFormatter* pNumberFormatter = SD_MOD()->GetNumberFormatter();
aTimeField.SetFormat( SVXTIMEFORMAT_24_HM ); // 13:49
- InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
aTimeField.SetFormat( SVXTIMEFORMAT_24_HMS ); // 13:49:38
- InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
aTimeField.SetFormat( SVXTIMEFORMAT_24_HMSH ); // 13:49:38.78
- InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
aTimeField.SetFormat( SVXTIMEFORMAT_12_HM ); // 01:49
- InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
aTimeField.SetFormat( SVXTIMEFORMAT_12_HMS ); // 01:49:38
- InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
aTimeField.SetFormat( SVXTIMEFORMAT_12_HMSH ); // 01:49:38.78
- InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, LANGUAGE_SYSTEM ), nStyle );
+ InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle );
//SVXTIMEFORMAT_AM_HM, // 01:49 PM
//SVXTIMEFORMAT_AM_HMS, // 01:49:38 PM
//SVXTIMEFORMAT_AM_HMSH // 01:49:38.78 PM