[Libreoffice-commits] core.git: svx/source sw/source

Eike Rathke erack at redhat.com
Tue Dec 13 22:13:37 UTC 2016


 svx/source/dialog/numberingtype.src            |    1 +
 svx/source/dialog/pagenumberlistbox.cxx        |    2 ++
 sw/source/uibase/fldui/fldmgr.cxx              |    3 ++-
 sw/source/uibase/misc/numberingtypelistbox.cxx |    5 +++++
 4 files changed, 10 insertions(+), 1 deletion(-)

New commits:
commit 3b4712c3969c705edcfc756492da6db7c0d2e018
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Dec 13 23:11:35 2016 +0100

    add "Linked graphics" to RID_SVXSTRARY_NUMBERINGTYPE
    
    ... and exclude it at the relevant places that load this resource.
    In preparation of eliminating another duplicated UI string definition
    instance.
    
    Change-Id: Ia500fffe5c044a76bce2d72e6ea22ff71bb1dfb1

diff --git a/svx/source/dialog/numberingtype.src b/svx/source/dialog/numberingtype.src
index f0702d84..4953411 100644
--- a/svx/source/dialog/numberingtype.src
+++ b/svx/source/dialog/numberingtype.src
@@ -26,6 +26,7 @@ StringArray RID_SVXSTRARY_NUMBERINGTYPE
         < "None" ;                                  5/*SVX_NUM_NUMBER_NONE         */; > ;
         < "Bullet" ;                                6/*SVX_NUM_CHAR_SPECIAL        */; > ;
         < "Graphics" ;                              8/*SVX_NUM_BITMAP              */; > ;
+        < "Linked graphics" ;                     136/*SVX_NUM_BITMAP|0x80         */; > ;
         < "1, 2, 3, ..." ;                          4/*SVX_NUM_ARABIC              */; > ;
         < "A, B, C, ..." ;                          0/*SVX_NUM_CHARS_UPPER_LETTER  */; > ;
         < "a, b, c, ..." ;                          1/*SVX_NUM_CHARS_LOWER_LETTER  */; > ;
diff --git a/svx/source/dialog/pagenumberlistbox.cxx b/svx/source/dialog/pagenumberlistbox.cxx
index 2e333b3..9a68592 100644
--- a/svx/source/dialog/pagenumberlistbox.cxx
+++ b/svx/source/dialog/pagenumberlistbox.cxx
@@ -19,6 +19,7 @@
 #include <svx/dialogs.hrc>
 #include <svx/dialmgr.hxx>
 #include <svx/pagenumberlistbox.hxx>
+#include <editeng/numitem.hxx>
 #include <tools/resary.hxx>
 #include <vcl/builderfactory.hxx>
 #include <com/sun/star/style/NumberingType.hpp>
@@ -38,6 +39,7 @@ PageNumberListBox::PageNumberListBox(vcl::Window* pParent)
             // for Bullet and Graphics, ignore those here.
             case css::style::NumberingType::CHAR_SPECIAL:
             case css::style::NumberingType::BITMAP:
+            case css::style::NumberingType::BITMAP | LINK_TOKEN:
             break;
             default:
                 {
diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx
index 38e8f16..f8b17da 100644
--- a/sw/source/uibase/fldui/fldmgr.cxx
+++ b/sw/source/uibase/fldui/fldmgr.cxx
@@ -603,7 +603,8 @@ OUString SwFieldMgr::GetFormatStr(sal_uInt16 nTypeId, sal_uLong nFormatId) const
             for(sal_Int32 nType = 0; nType < aTypes.getLength(); nType++)
             {
                 sal_Int16 nCurrent = pTypes[nType];
-                if(nCurrent > NumberingType::CHARS_LOWER_LETTER_N)
+                if(nCurrent > NumberingType::CHARS_LOWER_LETTER_N &&
+                        (nCurrent != (NumberingType::BITMAP | LINK_TOKEN)))
                 {
                     if(nValidEntry == ((sal_Int32)nFormatId) - nOffset)
                     {
diff --git a/sw/source/uibase/misc/numberingtypelistbox.cxx b/sw/source/uibase/misc/numberingtypelistbox.cxx
index b8a4114..81e5ad5 100644
--- a/sw/source/uibase/misc/numberingtypelistbox.cxx
+++ b/sw/source/uibase/misc/numberingtypelistbox.cxx
@@ -26,6 +26,7 @@
 #include <comphelper/processfactory.hxx>
 #include <com/sun/star/text/XNumberingTypeInfo.hpp>
 #include <vcl/builderfactory.hxx>
+#include <editeng/numitem.hxx>
 #include <svx/dialmgr.hxx>
 #include <svx/dialogs.hrc>
 
@@ -114,6 +115,10 @@ void SwNumberingTypeListBox::Reload(SwInsertNumTypes nTypeFlags)
                 bInsert = bool(nTypeFlags & SwInsertNumTypes::Bitmap );
 
                 break;
+            case  style::NumberingType::BITMAP | LINK_TOKEN:
+                bInsert = false;
+
+                break;
             default:
                 if (nValue >  style::NumberingType::CHARS_LOWER_LETTER_N)
                 {


More information about the Libreoffice-commits mailing list