[Libreoffice-commits] core.git: vcl/inc vcl/source

Khaled Hosny khaledhosny at eglug.org
Sun Mar 19 15:02:25 UTC 2017


 vcl/inc/CommonSalLayout.hxx        |    9 ---------
 vcl/source/gdi/CommonSalLayout.cxx |   14 ++++++++++++--
 2 files changed, 12 insertions(+), 11 deletions(-)

New commits:
commit 12490e743fadd9e1d509cdaeee67ccb15e024657
Author: Khaled Hosny <khaledhosny at eglug.org>
Date:   Sun Mar 19 17:01:02 2017 +0200

    This can move out of the header as well
    
    Change-Id: I995ad7fb040e11363a70ee2b5cd88e068f06771c

diff --git a/vcl/inc/CommonSalLayout.hxx b/vcl/inc/CommonSalLayout.hxx
index 17498eccc20a..471ca4d2da02 100644
--- a/vcl/inc/CommonSalLayout.hxx
+++ b/vcl/inc/CommonSalLayout.hxx
@@ -91,14 +91,5 @@ public:
     bool                    IsKashidaPosValid(int nCharPos) const final override;
 };
 
-// these must match the values in vcl/source/gdi/VerticalOrientationData.cxx
-enum class VerticalOrientation {
-    Upright            = 0,
-    Rotated            = 1,
-    TransformedUpright = 2,
-    TransformedRotated = 3
-};
-
-
 #endif // INCLUDED_VCL_INC_COMMONSALLAYOUT_HXX
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 07b82dae5302..522a0dc6f5ec 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -302,9 +302,19 @@ namespace vcl {
             }
         }
     };
+} // namespace vcl
 
+namespace {
     #include "VerticalOrientationData.cxx"
 
+    // These must match the values in the file included above.
+    enum class VerticalOrientation {
+        Upright            = 0,
+        Rotated            = 1,
+        TransformedUpright = 2,
+        TransformedRotated = 3
+    };
+
     VerticalOrientation GetVerticalOrientation(sal_UCS4 cCh, const LanguageTag& rTag)
     {
         // Override fullwidth colon and semi-colon orientation. Tu is preferred.
@@ -333,7 +343,7 @@ namespace vcl {
         return VerticalOrientation(nRet);
     }
 
-} // namespace vcl
+} // namespace
 
 std::shared_ptr<vcl::TextLayoutCache> CommonSalLayout::CreateTextLayoutCache(OUString const& rString) const
 {
@@ -509,7 +519,7 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
                 {
                     sal_Int32 nPrevIdx = nIdx;
                     sal_UCS4 aChar = rArgs.mrStr.iterateCodePoints(&nIdx);
-                    VerticalOrientation aVo = vcl::GetVerticalOrientation(aChar, rArgs.maLanguageTag);
+                    VerticalOrientation aVo = GetVerticalOrientation(aChar, rArgs.maLanguageTag);
 
                     sal_UCS4 aVariationSelector = 0;
                     if (nIdx < nEndRunPos)


More information about the Libreoffice-commits mailing list