summaryrefslogtreecommitdiff
path: root/sw/source/ui/frmdlg
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-12-10 13:14:11 +0000
committerOliver Specht <os@openoffice.org>2002-12-10 13:14:11 +0000
commit7d81022b8112d49dafaa72c29d6f2a7d28476426 (patch)
tree7a40ef54a6ca26b84a9e11afb25368bb2e275b2a /sw/source/ui/frmdlg
parent9a01060133b6faab9ce51253b36f17974ac790d5 (diff)
#103825# enable text direction ListBox in HTML
Diffstat (limited to 'sw/source/ui/frmdlg')
-rw-r--r--sw/source/ui/frmdlg/frmpage.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx
index 4f93c9f1d4da..c2917c493995 100644
--- a/sw/source/ui/frmdlg/frmpage.cxx
+++ b/sw/source/ui/frmdlg/frmpage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: frmpage.cxx,v $
*
- * $Revision: 1.32 $
+ * $Revision: 1.33 $
*
- * last change: $Author: os $ $Date: 2002-10-25 10:07:01 $
+ * last change: $Author: os $ $Date: 2002-12-10 14:14:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2977,13 +2977,20 @@ void SwFrmAddPage::Reset(const SfxItemSet &rSet )
// textflow
SfxItemState eState;
- if( DLG_FRM_GRF != nDlgType && DLG_FRM_OLE != nDlgType &&
+ if( (!bHtmlMode || (0 != (nHtmlMode&HTMLMODE_SOME_STYLES)))
+ && DLG_FRM_GRF != nDlgType && DLG_FRM_OLE != nDlgType &&
SFX_ITEM_UNKNOWN != ( eState = rSet.GetItemState(
RES_FRAMEDIR, TRUE )) )
{
aTextFlowFT.Show();
aTextFlowLB.Show();
+ //vertical text flow is not possible in HTML
+ if(bHtmlMode)
+ {
+ ULONG nData = FRMDIR_VERT_TOP_RIGHT;
+ aTextFlowLB.RemoveEntry(aTextFlowLB.GetEntryPos((void*)nData));
+ }
sal_uInt16 nPos, nVal = ((SvxFrameDirectionItem&)rSet.Get(RES_FRAMEDIR)).GetValue();
for( nPos = aTextFlowLB.GetEntryCount(); nPos; )
if( (sal_uInt16)(long)aTextFlowLB.GetEntryData( --nPos ) == nVal )