Blame SOURCES/0001-Resolves-tdf-49407-enable-CaseMap-property-in-impres.patch

f325b2
From fb65ac2e3028c4fc160a47448bc44d73d282c9f2 Mon Sep 17 00:00:00 2001
f325b2
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
f325b2
Date: Mon, 8 Jun 2015 12:21:01 +0100
f325b2
Subject: [PATCH] Resolves: tdf#49407 enable CaseMap property in impress/draw
f325b2
f325b2
I don't see why this was explicitly disabled, works fine
f325b2
out of the box for me, import/export already hooked up
f325b2
in odf
f325b2
f325b2
Change-Id: I5e6bdbc6a4f3cbcd97330c7d9fb33589489afee2
f325b2
---
f325b2
 cui/source/inc/chardlg.hxx      | 10 ----------
f325b2
 sd/sdi/drtxtob.sdi              |  6 ++++++
f325b2
 sd/source/core/typemap.cxx      |  1 +
f325b2
 sd/source/ui/dlg/dlgchar.cxx    |  1 -
f325b2
 sd/source/ui/dlg/prltempl.cxx   |  1 -
f325b2
 sd/source/ui/dlg/tabtempl.cxx   |  1 -
f325b2
 sd/source/ui/func/fuchar.cxx    |  1 +
f325b2
 sd/source/ui/func/futext.cxx    |  7 ++++---
f325b2
 sd/source/ui/view/drtxtob.cxx   |  3 ++-
f325b2
 sd/source/ui/view/drviews2.cxx  | 11 +++++++++++
f325b2
 sd/source/ui/view/drviewsf.cxx  |  1 +
f325b2
 sw/source/ui/chrdlg/chardlg.cxx |  8 +-------
f325b2
 12 files changed, 27 insertions(+), 24 deletions(-)
f325b2
f325b2
diff --git a/cui/source/inc/chardlg.hxx b/cui/source/inc/chardlg.hxx
f325b2
index 4eb009a..a023a45 100644
f325b2
--- a/cui/source/inc/chardlg.hxx
f325b2
+++ b/cui/source/inc/chardlg.hxx
f325b2
@@ -32,16 +32,6 @@
f325b2
 class SvxFontListItem;
f325b2
 class FontList;
f325b2
 
f325b2
-
f325b2
-
f325b2
-#define DISABLE_CASEMAP             ((sal_uInt16)0x0001)
f325b2
-#define DISABLE_WORDLINE            ((sal_uInt16)0x0002)
f325b2
-#define DISABLE_BLINK               ((sal_uInt16)0x0004)
f325b2
-#define DISABLE_UNDERLINE_COLOR     ((sal_uInt16)0x0008)
f325b2
-
f325b2
-#define DISABLE_LANGUAGE            ((sal_uInt16)0x0010)
f325b2
-#define DISABLE_HIDE_LANGUAGE       ((sal_uInt16)0x0020)
f325b2
-
f325b2
 // class SvxCharBasePage -------------------------------------------------
f325b2
 
f325b2
 class SvxCharBasePage : public SfxTabPage
f325b2
diff --git a/sd/sdi/drtxtob.sdi b/sd/sdi/drtxtob.sdi
f325b2
index 3e975d4..ed564e4 100644
f325b2
--- a/sd/sdi/drtxtob.sdi
f325b2
+++ b/sd/sdi/drtxtob.sdi
f325b2
@@ -92,6 +92,12 @@ shell TextObjectBar
f325b2
         StateMethod = GetAttrState;
f325b2
     ]
f325b2
 
f325b2
+    SID_ATTR_CHAR_CASEMAP   // ole : ?, status : ?
f325b2
+    [
f325b2
+        ExecMethod = Execute;
f325b2
+        StateMethod = GetAttrState;
f325b2
+    ]
f325b2
+
f325b2
     SID_ATTR_PARA_ADJUST_LEFT  // ole : ?, status : ?
f325b2
     [
f325b2
         ExecMethod = Execute;
f325b2
diff --git a/sd/source/core/typemap.cxx b/sd/source/core/typemap.cxx
f325b2
index a5548a3..65f7cf0 100644
f325b2
--- a/sd/source/core/typemap.cxx
f325b2
+++ b/sd/source/core/typemap.cxx
f325b2
@@ -21,6 +21,7 @@
f325b2
 
f325b2
 #include <editeng/outliner.hxx>
f325b2
 #include <editeng/eeitem.hxx>
f325b2
+#include <editeng/cmapitem.hxx>
f325b2
 #include <editeng/langitem.hxx>
f325b2
 #include <editeng/fhgtitem.hxx>
f325b2
 #include <editeng/colritem.hxx>
f325b2
diff --git a/sd/source/ui/dlg/dlgchar.cxx b/sd/source/ui/dlg/dlgchar.cxx
f325b2
index a23cd80..5e44899 100644
f325b2
--- a/sd/source/ui/dlg/dlgchar.cxx
f325b2
+++ b/sd/source/ui/dlg/dlgchar.cxx
f325b2
@@ -60,7 +60,6 @@ void SdCharDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
f325b2
     }
f325b2
     else if (nId == mnCharEffects)
f325b2
     {
f325b2
-        aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
f325b2
         rPage.PageCreated(aSet);
f325b2
     }
f325b2
 }
f325b2
diff --git a/sd/source/ui/dlg/prltempl.cxx b/sd/source/ui/dlg/prltempl.cxx
f325b2
index 74c010e..c503c93 100644
f325b2
--- a/sd/source/ui/dlg/prltempl.cxx
f325b2
+++ b/sd/source/ui/dlg/prltempl.cxx
f325b2
@@ -281,7 +281,6 @@ void SdPresLayoutTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
f325b2
 
f325b2
     else if (nId == mnEffects)
f325b2
         {
f325b2
-            aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
f325b2
             rPage.PageCreated(aSet);
f325b2
         }
f325b2
 }
f325b2
diff --git a/sd/source/ui/dlg/tabtempl.cxx b/sd/source/ui/dlg/tabtempl.cxx
f325b2
index 61514ee..1189922 100644
f325b2
--- a/sd/source/ui/dlg/tabtempl.cxx
f325b2
+++ b/sd/source/ui/dlg/tabtempl.cxx
f325b2
@@ -152,7 +152,6 @@ void SdTabTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
f325b2
     }
f325b2
     else if (nId == m_nFontEffectId)
f325b2
     {
f325b2
-        aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
f325b2
         rPage.PageCreated(aSet);
f325b2
     }
f325b2
     else if (nId == m_nTextId)
f325b2
diff --git a/sd/source/ui/func/fuchar.cxx b/sd/source/ui/func/fuchar.cxx
f325b2
index 174391a..b8166c2 100644
f325b2
--- a/sd/source/ui/func/fuchar.cxx
f325b2
+++ b/sd/source/ui/func/fuchar.cxx
f325b2
@@ -106,6 +106,7 @@ void FuChar::DoExecute( SfxRequest& rReq )
f325b2
                     SID_ATTR_CHAR_FONTHEIGHT,
f325b2
                     SID_ATTR_CHAR_COLOR,
f325b2
                     SID_ATTR_CHAR_KERNING,
f325b2
+                    SID_ATTR_CHAR_CASEMAP,
f325b2
                     SID_SET_SUPER_SCRIPT,
f325b2
                     SID_SET_SUB_SCRIPT,
f325b2
                     0 };
f325b2
diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx
f325b2
index ac6fb71..33e5339 100644
f325b2
--- a/sd/source/ui/func/futext.cxx
f325b2
+++ b/sd/source/ui/func/futext.cxx
f325b2
@@ -85,12 +85,13 @@ static sal_uInt16 SidArray[] = {
f325b2
     SID_ATTR_CHAR_FONT,               //   10007
f325b2
     SID_ATTR_CHAR_POSTURE,            //   10008
f325b2
     SID_ATTR_CHAR_WEIGHT,             //   10009
f325b2
-    SID_ATTR_CHAR_SHADOWED,     //10010
f325b2
-    SID_ATTR_CHAR_STRIKEOUT,        //10013
f325b2
+    SID_ATTR_CHAR_SHADOWED,           //   10010
f325b2
+    SID_ATTR_CHAR_STRIKEOUT,          //   10013
f325b2
     SID_ATTR_CHAR_UNDERLINE,          //   10014
f325b2
     SID_ATTR_CHAR_FONTHEIGHT,         //   10015
f325b2
     SID_ATTR_CHAR_COLOR,              //   10017
f325b2
-    SID_ATTR_CHAR_KERNING,          //10018
f325b2
+    SID_ATTR_CHAR_KERNING,            //   10018
f325b2
+    SID_ATTR_CHAR_CASEMAP,            //   10019
f325b2
     SID_ATTR_PARA_ADJUST_LEFT,        //   10028
f325b2
     SID_ATTR_PARA_ADJUST_RIGHT,       //   10029
f325b2
     SID_ATTR_PARA_ADJUST_CENTER,      //   10030
f325b2
diff --git a/sd/source/ui/view/drtxtob.cxx b/sd/source/ui/view/drtxtob.cxx
f325b2
index 25913dd..45c868f 100644
f325b2
--- a/sd/source/ui/view/drtxtob.cxx
f325b2
+++ b/sd/source/ui/view/drtxtob.cxx
f325b2
@@ -171,8 +171,9 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet )
f325b2
             case SID_ATTR_CHAR_FONTHEIGHT:
f325b2
             case SID_ATTR_CHAR_WEIGHT:
f325b2
             case SID_ATTR_CHAR_POSTURE:
f325b2
-        case SID_ATTR_CHAR_SHADOWED:
f325b2
+            case SID_ATTR_CHAR_SHADOWED:
f325b2
             case SID_ATTR_CHAR_STRIKEOUT:
f325b2
+            case SID_ATTR_CHAR_CASEMAP:
f325b2
             {
f325b2
                 sal_uInt16 stretchX = 100;
f325b2
                 sal_uInt16 stretchY = 100;
f325b2
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
f325b2
index d4ed8fa..ffbb503 100644
f325b2
--- a/sd/source/ui/view/drviews2.cxx
f325b2
+++ b/sd/source/ui/view/drviews2.cxx
f325b2
@@ -87,6 +87,7 @@
f325b2
 #include <vcl/svapp.hxx>
f325b2
 #include <vcl/waitobj.hxx>
f325b2
 
f325b2
+#include <editeng/cmapitem.hxx>
f325b2
 #include <editeng/escapementitem.hxx>
f325b2
 #include <editeng/kernitem.hxx>
f325b2
 #include <editeng/wghtitem.hxx>
f325b2
@@ -3032,6 +3033,16 @@ void DrawViewShell::ExecChar( SfxRequest &rReq )
f325b2
             }
f325b2
         }
f325b2
         break;
f325b2
+    case SID_ATTR_CHAR_CASEMAP:
f325b2
+        if( rReq.GetArgs() )
f325b2
+        {
f325b2
+            SFX_REQUEST_ARG( rReq, pItem, SvxCaseMapItem, SID_ATTR_CHAR_CASEMAP , false );
f325b2
+            if (pItem)
f325b2
+            {
f325b2
+                aNewAttr.Put(*pItem);
f325b2
+            }
f325b2
+        }
f325b2
+        break;
f325b2
     case SID_SET_SUB_SCRIPT:
f325b2
         {
f325b2
             SvxEscapementItem aItem( EE_CHAR_ESCAPEMENT );
f325b2
diff --git a/sd/source/ui/view/drviewsf.cxx b/sd/source/ui/view/drviewsf.cxx
f325b2
index 56d7a88..a5183c1 100644
f325b2
--- a/sd/source/ui/view/drviewsf.cxx
f325b2
+++ b/sd/source/ui/view/drviewsf.cxx
f325b2
@@ -409,6 +409,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
f325b2
             case SID_ATTR_CHAR_WEIGHT:
f325b2
             case SID_ATTR_CHAR_COLOR:
f325b2
             case SID_ATTR_CHAR_KERNING:
f325b2
+            case SID_ATTR_CHAR_CASEMAP:
f325b2
             case SID_SET_SUB_SCRIPT:
f325b2
             case SID_SET_SUPER_SCRIPT:
f325b2
             {
f325b2
diff --git a/sw/source/ui/chrdlg/chardlg.cxx b/sw/source/ui/chrdlg/chardlg.cxx
f325b2
index b20dfdc2..2483fda 100644
f325b2
--- a/sw/source/ui/chrdlg/chardlg.cxx
f325b2
+++ b/sw/source/ui/chrdlg/chardlg.cxx
f325b2
@@ -112,13 +112,7 @@ void SwCharDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
f325b2
     }
f325b2
     else if (nId == m_nCharExtId)
f325b2
     {
f325b2
-        if(m_nDialogMode == DLG_CHAR_DRAW || m_nDialogMode == DLG_CHAR_ANN)
f325b2
-            aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
f325b2
-
f325b2
-        else
f325b2
-        {
f325b2
-            aSet.Put (SfxUInt32Item(SID_FLAG_TYPE,SVX_PREVIEW_CHARACTER|SVX_ENABLE_FLASH));
f325b2
-        }
f325b2
+        aSet.Put (SfxUInt32Item(SID_FLAG_TYPE,SVX_PREVIEW_CHARACTER|SVX_ENABLE_FLASH));
f325b2
         rPage.PageCreated(aSet);
f325b2
     }
f325b2
     else if (nId == m_nCharPosId)
f325b2
-- 
f325b2
2.4.0
f325b2