summaryrefslogtreecommitdiffstats
path: root/sd/source/ui/view/drviews4.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/view/drviews4.cxx
parent#101752#: prepare formatting by screen (diff)
downloadcore-0882b3c236df0241024affdb01a39fe755500e7d.tar.gz
core-0882b3c236df0241024affdb01a39fe755500e7d.zip
#101743# Pass outliner language to popup menu
Diffstat (limited to 'sd/source/ui/view/drviews4.cxx')
-rw-r--r--sd/source/ui/view/drviews4.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx
index 93db3da94091..c51be6720d75 100644
--- a/sd/source/ui/view/drviews4.cxx
+++ b/sd/source/ui/view/drviews4.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: drviews4.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: aw $ $Date: 2002-03-14 17:44:36 $
+ * last change: $Author: thb $ $Date: 2002-07-26 09:50:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -613,7 +613,16 @@ void SdDrawViewShell::Command(const CommandEvent& rCEvt, SdWindow* pWin)
pFldItem->GetField()->ISA( SvxExtFileField ) ||
pFldItem->GetField()->ISA( SvxAuthorField ) ) )
{
- SdFieldPopup aFieldPopup( pFldItem->GetField() );
+ LanguageType eLanguage( LANGUAGE_SYSTEM );
+
+ // #101743# Format popup with outliner language, if possible
+ if( pOLV->GetOutliner() )
+ {
+ ESelection aSelection( pOLV->GetSelection() );
+ eLanguage = pOLV->GetOutliner()->GetLanguage( aSelection.nStartPara, aSelection.nStartPos );
+ }
+
+ SdFieldPopup aFieldPopup( pFldItem->GetField(), eLanguage );
if ( rCEvt.IsMouseEvent() )
aMPos = rCEvt.GetMousePosPixel();