diff options
author | Oliver Specht <os@openoffice.org> | 2002-09-05 11:57:14 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2002-09-05 11:57:14 +0000 |
commit | d03e5ecc11e50bef478dc84a0dca3dac73583ef8 (patch) | |
tree | 6d51d17233462572749f3fcbeff8a06d723f0ca8 /sw/source/ui/misc | |
parent | b47c2b5846345eb40d7c1649ddaffe21fbf5b65f (diff) |
#101156# insert the 'none' numbering type at the first position
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r-- | sw/source/ui/misc/numberingtypelistbox.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sw/source/ui/misc/numberingtypelistbox.cxx b/sw/source/ui/misc/numberingtypelistbox.cxx index b7f73b4f110f..e6a47911e516 100644 --- a/sw/source/ui/misc/numberingtypelistbox.cxx +++ b/sw/source/ui/misc/numberingtypelistbox.cxx @@ -2,9 +2,9 @@ * * $RCSfile: numberingtypelistbox.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: os $ $Date: 2001-07-10 07:08:32 $ + * last change: $Author: os $ $Date: 2002-09-05 12:57:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -139,16 +139,20 @@ void SwNumberingTypeListBox::Reload(USHORT nTypeFlags) { long nValue = rNames.GetValue(i); sal_Bool bInsert = sal_True; + USHORT nPos = LISTBOX_APPEND; switch(nValue) { - case NumberingType::NUMBER_NONE: bInsert = 0 != (nTypeFlags&INSERT_NUM_TYPE_NO_NUMBERING); break; + case NumberingType::NUMBER_NONE: + bInsert = 0 != (nTypeFlags&INSERT_NUM_TYPE_NO_NUMBERING); + nPos = 0; + break; case NumberingType::CHAR_SPECIAL: bInsert = 0 != (nTypeFlags&INSERT_NUM_TYPE_BULLET); break; case NumberingType::PAGE_DESCRIPTOR:bInsert = 0 != (nTypeFlags&INSERT_NUM_TYPE_PAGE_STYLE_NUMBERING); break; case NumberingType::BITMAP:bInsert = 0 != (nTypeFlags&INSERT_NUM_TYPE_BITMAP ); break; } if(bInsert) { - USHORT nEntry = InsertEntry(rNames.GetString(i)); + USHORT nEntry = InsertEntry(rNames.GetString(i), nPos); SetEntryData( nEntry, (void*)nValue ); } } |