summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-29 12:40:47 +0200
committerNoel Grandin <noel@peralex.com>2015-09-29 15:08:43 +0200
commit34180700b2686c97cdce0b52ca9578a41a153035 (patch)
tree073f3753e4483f30efa3c7c769f23971e6a046d5 /vcl
parente710170d906fcb248a5e4ff5a3a90cbf0e20003d (diff)
loplugin:removeunusedmethods, remove unused stuff
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
Diffstat (limited to 'vcl')
-rw-r--r--vcl/README.GDIMetaFile13
-rw-r--r--vcl/generic/glyphs/gcach_ftyp.hxx4
-rw-r--r--vcl/generic/print/printerjob.cxx7
-rw-r--r--vcl/inc/fontmanager.hxx5
-rw-r--r--vcl/inc/generic/glyphcache.hxx1
-rw-r--r--vcl/inc/generic/printerjob.hxx4
-rw-r--r--vcl/inc/graphite_features.hxx4
-rw-r--r--vcl/inc/ilstbox.hxx1
-rw-r--r--vcl/inc/image.h2
-rw-r--r--vcl/inc/impfont.hxx3
-rw-r--r--vcl/inc/sallayout.hxx1
-rw-r--r--vcl/inc/unx/gtk/gtkframe.hxx2
-rw-r--r--vcl/inc/unx/gtk/gtksalmenu.hxx1
-rw-r--r--vcl/inc/unx/wmadaptor.hxx5
-rw-r--r--vcl/source/edit/textdat2.hxx1
-rw-r--r--vcl/source/filter/FilterConfigCache.cxx5
-rw-r--r--vcl/source/filter/FilterConfigCache.hxx1
-rw-r--r--vcl/source/filter/graphicfilter.cxx5
-rw-r--r--vcl/source/filter/sgvmain.cxx6
-rw-r--r--vcl/source/filter/sgvmain.hxx2
-rw-r--r--vcl/source/gdi/dibtools.cxx8
-rw-r--r--vcl/source/gdi/gdimtf.cxx41
-rw-r--r--vcl/source/gdi/print.cxx30
-rw-r--r--vcl/source/gdi/sallayout.cxx32
24 files changed, 1 insertions, 183 deletions
diff --git a/vcl/README.GDIMetaFile b/vcl/README.GDIMetaFile
index bd263395aed2..d95a74a6ec87 100644
--- a/vcl/README.GDIMetaFile
+++ b/vcl/README.GDIMetaFile
@@ -108,19 +108,6 @@ COLOR ADJUSTMENT FUNCTIONS
- GetMonochromeMtf
-SPECIAL RENDERING FUNCTION
-
-- makePluggableRendererAction - Create a special meaaction that delegates
- rendering to specified service. This factory
- function creates a MetaCommentAction that
- delegates rendering to the specified services,
- once played back in the metafile. Takes a
- renderer service name string that gets an
- awt::XGraphic on instantiation, and a graphic
- service name string that gets the raw data on
- instantiation.
-
-
Related classes
---------------
diff --git a/vcl/generic/glyphs/gcach_ftyp.hxx b/vcl/generic/glyphs/gcach_ftyp.hxx
index ff411a6448f4..1e4a31283431 100644
--- a/vcl/generic/glyphs/gcach_ftyp.hxx
+++ b/vcl/generic/glyphs/gcach_ftyp.hxx
@@ -158,13 +158,9 @@ private:
public:
ImplFTSFontData( FtFontInfo*, const ImplDevFontAttributes& );
- FtFontInfo* GetFtFontInfo() const { return mpFtFontInfo; }
-
virtual ImplFontEntry* CreateFontInstance( FontSelectPattern& ) const SAL_OVERRIDE;
virtual PhysicalFontFace* Clone() const SAL_OVERRIDE { return new ImplFTSFontData( *this ); }
virtual sal_IntPtr GetFontId() const SAL_OVERRIDE { return mpFtFontInfo->GetFontId(); }
-
- static bool CheckFontData( const PhysicalFontFace& r ) { return r.CheckMagic( IFTSFONT_MAGIC ); }
};
#endif // INCLUDED_VCL_GENERIC_GLYPHS_GCACH_FTYP_HXX
diff --git a/vcl/generic/print/printerjob.cxx b/vcl/generic/print/printerjob.cxx
index 2034bedd3f6a..221b99925c53 100644
--- a/vcl/generic/print/printerjob.cxx
+++ b/vcl/generic/print/printerjob.cxx
@@ -552,13 +552,6 @@ PrinterJob::EndJob()
return bSuccess;
}
-bool
-PrinterJob::AbortJob ()
-{
- m_pGraphics->OnEndJob();
- return false;
-}
-
void
PrinterJob::InitPaperSize (const JobData& rJobSetup)
{
diff --git a/vcl/inc/fontmanager.hxx b/vcl/inc/fontmanager.hxx
index fd0d13a2096c..9d00e6057469 100644
--- a/vcl/inc/fontmanager.hxx
+++ b/vcl/inc/fontmanager.hxx
@@ -282,11 +282,6 @@ class VCL_PLUGIN_PUBLIC PrintFontManager
// There may be multiple font ids for TrueType collections
std::vector<fontID> findFontFileIDs( int nDirID, const OString& rFile ) const;
- bool knownFontFile( int nDirID, const OString& rFile ) const
- {
- return findFontFileID(nDirID, rFile, 0) != 0;
- }
-
static FontFamily matchFamilyName( const OUString& rFamily );
PrintFont* getFont( fontID nID ) const
diff --git a/vcl/inc/generic/glyphcache.hxx b/vcl/inc/generic/glyphcache.hxx
index 4db801ec2837..49223ef03784 100644
--- a/vcl/inc/generic/glyphcache.hxx
+++ b/vcl/inc/generic/glyphcache.hxx
@@ -109,7 +109,6 @@ public:
GlyphMetric() : mnAdvanceWidth(0) {}
Point GetOffset() const { return maOffset; }
- Point GetDelta() const { return maDelta; }
Size GetSize() const { return maSize; }
long GetCharWidth() const { return mnAdvanceWidth; }
diff --git a/vcl/inc/generic/printerjob.hxx b/vcl/inc/generic/printerjob.hxx
index 5282a3751771..39dbc7b5760f 100644
--- a/vcl/inc/generic/printerjob.hxx
+++ b/vcl/inc/generic/printerjob.hxx
@@ -104,7 +104,7 @@ public:
* rAppName: text to appear in the %%Creator comment
* rSetupData: JobData that apply to this job
* pGraphics: the graphics used to print this job;
- * this graphics must live until End/AbortJob has returned
+ * this graphics must live until EndJob() has returned
* bIsQuickJob: the job was started as "direct print" meaning
* the quick command for spooling should be used instead
* of the normal command
@@ -119,8 +119,6 @@ public:
);
bool EndJob ();
- bool AbortJob ();
-
bool StartPage (const JobData& rJobSetup);
bool EndPage ();
};
diff --git a/vcl/inc/graphite_features.hxx b/vcl/inc/graphite_features.hxx
index 7b9c083e0034..420c8e553f61 100644
--- a/vcl/inc/graphite_features.hxx
+++ b/vcl/inc/graphite_features.hxx
@@ -48,11 +48,7 @@ namespace grutils
GrFeatureParser(const gr_face * face, const OString& features, const OString& lang);
GrFeatureParser(const gr_face * face, const OString& lang);
~GrFeatureParser();
- //size_t getFontFeatures(gr::FeatureSetting settings[MAX_FEATURES]) const;
- bool parseErrors() { return mbErrors; };
- //static bool isValid(gr::Font & font, gr::FeatureSetting & setting);
gr_uint32 getLanguage() const { return maLang.num; };
- bool hasLanguage() const { return (maLang.label[0] != '\0'); }
sal_Int32 hashCode() const { return mnHash; }
size_t numFeatures() const { return mnNumSettings; }
gr_feature_val * values() const { return mpSettings; };
diff --git a/vcl/inc/ilstbox.hxx b/vcl/inc/ilstbox.hxx
index db9807f06659..3a8312ded6a9 100644
--- a/vcl/inc/ilstbox.hxx
+++ b/vcl/inc/ilstbox.hxx
@@ -321,7 +321,6 @@ public:
bool IsMultiSelectionEnabled() const { return mbMulti; }
void SetMultiSelectionSimpleMode( bool bSimple ) { mbSimpleMode = bSimple; }
- bool IsMultiSelectionSimpleMode() const { return mbSimpleMode; }
void EnableMouseMoveSelect( bool bMouseMoveSelect ) { mbMouseMoveSelect = bMouseMoveSelect; }
bool IsMouseMoveSelect() const { return mbMouseMoveSelect||mbStackMode; }
diff --git a/vcl/inc/image.h b/vcl/inc/image.h
index bc1426299436..479bb66cd87e 100644
--- a/vcl/inc/image.h
+++ b/vcl/inc/image.h
@@ -108,8 +108,6 @@ struct ImplImageRefData
ImplImageRefData() {} // Um Warning zu umgehen
~ImplImageRefData();
-
- bool IsEqual( const ImplImageRefData& rData );
};
// - ImpImageData -
diff --git a/vcl/inc/impfont.hxx b/vcl/inc/impfont.hxx
index 3a02b1d9483a..05f05e3842ec 100644
--- a/vcl/inc/impfont.hxx
+++ b/vcl/inc/impfont.hxx
@@ -117,11 +117,8 @@ public:
long GetLineHeight() const { return mnLineHeight; }
long GetSlant() const { return mnSlant; }
- bool IsDeviceFont() const { return ((mnMiscFlags & DEVICE_FLAG) != 0); }
bool IsScalable() const { return ((mnMiscFlags & SCALABLE_FLAG) != 0); }
- bool SupportsLatin() const { return ((mnMiscFlags & LATIN_FLAG) != 0); }
bool SupportsCJK() const { return ((mnMiscFlags & CJK_FLAG) != 0); }
- bool SupportsCTL() const { return ((mnMiscFlags & CTL_FLAG) != 0); }
bool operator==( const ImplFontMetric& ) const;
};
diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx
index 5175e2d7eff5..9a33c12430b2 100644
--- a/vcl/inc/sallayout.hxx
+++ b/vcl/inc/sallayout.hxx
@@ -124,7 +124,6 @@ protected:
std::ostream &operator <<(std::ostream& s, ImplLayoutArgs &rArgs);
// helper functions often used with ImplLayoutArgs
-bool IsDiacritic( sal_UCS4 );
int GetVerticalFlags( sal_UCS4 );
// all positions/widths are in font units
diff --git a/vcl/inc/unx/gtk/gtkframe.hxx b/vcl/inc/unx/gtk/gtkframe.hxx
index dcf7f2f1eabb..f465c950adb3 100644
--- a/vcl/inc/unx/gtk/gtkframe.hxx
+++ b/vcl/inc/unx/gtk/gtkframe.hxx
@@ -353,8 +353,6 @@ public:
GdkNativeWindow getForeignParentWindow() const { return m_aForeignParentWindow; }
GdkWindow* getForeignTopLevel() const { return m_pForeignTopLevel; }
GdkNativeWindow getForeignTopLevelWindow() const { return m_aForeignTopLevelWindow; }
- GdkVisibilityState getVisibilityState() const
- { return m_nVisibility; }
Pixmap getBackgroundPixmap() const { return m_hBackgroundPixmap; }
SalX11Screen getXScreenNumber() const { return m_nXScreen; }
int GetDisplayScreen() const { return maGeometry.nDisplayScreenNumber; }
diff --git a/vcl/inc/unx/gtk/gtksalmenu.hxx b/vcl/inc/unx/gtk/gtksalmenu.hxx
index e74de22f3de3..7322ef492ab7 100644
--- a/vcl/inc/unx/gtk/gtksalmenu.hxx
+++ b/vcl/inc/unx/gtk/gtksalmenu.hxx
@@ -75,7 +75,6 @@ public:
void SetMenu( Menu* pMenu ) { mpVCLMenu = pMenu; }
Menu* GetMenu() { return mpVCLMenu; }
- GtkSalMenu* GetParentSalMenu() { return mpParentSalMenu; }
void SetMenuModel( GMenuModel* pMenuModel ) { mpMenuModel = pMenuModel; }
GMenuModel* GetMenuModel() { return mpMenuModel; }
unsigned GetItemCount() { return maItems.size(); }
diff --git a/vcl/inc/unx/wmadaptor.hxx b/vcl/inc/unx/wmadaptor.hxx
index 7d4000033964..b0fcba922451 100644
--- a/vcl/inc/unx/wmadaptor.hxx
+++ b/vcl/inc/unx/wmadaptor.hxx
@@ -284,11 +284,6 @@ public:
bool supportsSplash() const { return m_aWMAtoms[ NET_WM_WINDOW_TYPE_SPLASH ] != 0; }
/*
- * tells whteher there is WM support for NET_WM_WINDOW_TYPE_TOOLBAR
- */
- bool supportsToolbar() const { return m_aWMAtoms[ NET_WM_WINDOW_TYPE_TOOLBAR ] != 0; }
-
- /*
* enables always on top or equivalent if possible
*/
virtual void enableAlwaysOnTop( X11SalFrame* pFrame, bool bEnable ) const;
diff --git a/vcl/source/edit/textdat2.hxx b/vcl/source/edit/textdat2.hxx
index f7d4fcea0ab2..4ae76d289256 100644
--- a/vcl/source/edit/textdat2.hxx
+++ b/vcl/source/edit/textdat2.hxx
@@ -72,7 +72,6 @@ public:
sal_uInt8& GetKind() { return nKind; }
void SetRightToLeft(bool b) { bRightToLeft = b; }
bool IsRightToLeft() const { return bRightToLeft; }
- bool HasValidSize() const { return nWidth != (-1); }
};
class TETextPortionList : public std::vector<TETextPortion*>
diff --git a/vcl/source/filter/FilterConfigCache.cxx b/vcl/source/filter/FilterConfigCache.cxx
index 14fdbaa8dfa1..f0bfbabdc783 100644
--- a/vcl/source/filter/FilterConfigCache.cxx
+++ b/vcl/source/filter/FilterConfigCache.cxx
@@ -435,11 +435,6 @@ bool FilterConfigCache::IsImportInternalFilter( sal_uInt16 nFormat )
return (nFormat < aImport.size()) && aImport[ nFormat ].bIsInternalFilter;
}
-bool FilterConfigCache::IsImportPixelFormat( sal_uInt16 nFormat )
-{
- return (nFormat < aImport.size()) && aImport[ nFormat ].bIsPixelFormat;
-}
-
OUString FilterConfigCache::GetExportFilterName( sal_uInt16 nFormat )
{
if( nFormat < aExport.size() )
diff --git a/vcl/source/filter/FilterConfigCache.hxx b/vcl/source/filter/FilterConfigCache.hxx
index c288132a4ce2..f568c515b4f5 100644
--- a/vcl/source/filter/FilterConfigCache.hxx
+++ b/vcl/source/filter/FilterConfigCache.hxx
@@ -99,7 +99,6 @@ public:
OUString GetImportFilterTypeName( sal_uInt16 nFormat );
bool IsImportInternalFilter( sal_uInt16 nFormat );
- bool IsImportPixelFormat( sal_uInt16 nFormat );
sal_uInt16 GetExportFormatCount() const
{ return sal::static_int_cast< sal_uInt16 >(aExport.size()); };
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index 84cdfcac5ac8..12a929454c37 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -1205,11 +1205,6 @@ OUString GraphicFilter::GetImportWildcard( sal_uInt16 nFormat, sal_Int32 nEntry
return pConfig->GetImportWildcard( nFormat, nEntry );
}
-bool GraphicFilter::IsImportPixelFormat( sal_uInt16 nFormat )
-{
- return pConfig->IsImportPixelFormat( nFormat );
-}
-
sal_uInt16 GraphicFilter::GetExportFormatCount()
{
return pConfig->GetExportFormatCount();
diff --git a/vcl/source/filter/sgvmain.cxx b/vcl/source/filter/sgvmain.cxx
index 189f66a920b6..45f69feec00a 100644
--- a/vcl/source/filter/sgvmain.cxx
+++ b/vcl/source/filter/sgvmain.cxx
@@ -134,12 +134,6 @@ sal_uInt16 MulDiv(sal_uInt16 a, sal_uInt16 Mul, sal_uInt16 Div)
// SgfFilterSDrw
-SvStream& ReadDtHdType(SvStream& rIStream, DtHdType& rDtHd)
-{
- rIStream.Read(&rDtHd.Reserved[0], DtHdSize);
- return rIStream;
-}
-
void DtHdOverSeek(SvStream& rInp)
{
sal_uLong FPos=rInp.Tell();
diff --git a/vcl/source/filter/sgvmain.hxx b/vcl/source/filter/sgvmain.hxx
index 77c4981bef38..6223d45923fa 100644
--- a/vcl/source/filter/sgvmain.hxx
+++ b/vcl/source/filter/sgvmain.hxx
@@ -42,7 +42,6 @@ struct PointType {
class DtHdType {
public:
sal_uInt8 Reserved[256];
- friend SvStream& ReadDtHdType(SvStream& rIStream, DtHdType& rDtHd);
friend void DtHdOverSeek(SvStream& rInp);
};
@@ -157,7 +156,6 @@ public:
}
virtual ~ObjkType() {}
friend SvStream& ReadObjkType(SvStream& rIStream, ObjkType& rObjk);
- friend bool ObjOverSeek(SvStream& rInp, ObjkType& rObjk);
virtual void Draw(OutputDevice& rOut);
};
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index 401074373cda..f4bb3c849244 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -1706,12 +1706,4 @@ bool WriteDIBBitmapEx(
return false;
}
-bool WriteDIBV5(
- const Bitmap& rSource,
- const Bitmap& rSourceAlpha,
- SvStream& rOStm)
-{
- return ImplWriteDIB(rSource, &rSourceAlpha, rOStm, false, true);
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 4cd5334971be..bbdb4ebd2d07 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -2954,45 +2954,4 @@ void GDIMetaFile::UseCanvas( bool _bUseCanvas )
bUseCanvas = _bUseCanvas;
}
-MetaCommentAction* makePluggableRendererAction( const OUString& rRendererServiceName,
- const OUString& rGraphicServiceName,
- const void* _pData,
- sal_uInt32 nDataSize )
-{
- const sal_uInt8* pData=static_cast<sal_uInt8 const *>(_pData);
-
- // FIXME: Data gets copied twice, unfortunately
- OString aRendererServiceName(
- rRendererServiceName.getStr(),
- rRendererServiceName.getLength(),
- RTL_TEXTENCODING_ASCII_US);
- OString aGraphicServiceName(
- rGraphicServiceName.getStr(),
- rGraphicServiceName.getLength(),
- RTL_TEXTENCODING_ASCII_US);
-
- std::vector<sal_uInt8> aMem(
- aRendererServiceName.getLength()+
- aGraphicServiceName.getLength()+2+nDataSize);
- sal_uInt8* pMem=&aMem[0];
-
- std::copy(aRendererServiceName.getStr(),
- aRendererServiceName.getStr()+aRendererServiceName.getLength()+1,
- pMem);
- pMem+=aRendererServiceName.getLength()+1;
- std::copy(aGraphicServiceName.getStr(),
- aGraphicServiceName.getStr()+aGraphicServiceName.getLength()+1,
- pMem);
- pMem+=aGraphicServiceName.getLength()+1;
-
- std::copy(pData,pData+nDataSize,
- pMem);
-
- return new MetaCommentAction(
- "DELEGATE_PLUGGABLE_RENDERER",
- 0,
- &aMem[0],
- aMem.size());
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 88c4a6297d95..02c190c21426 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -387,36 +387,6 @@ bool QueueInfo::operator==( const QueueInfo& rInfo ) const
mnJobs == rInfo.mnJobs;
}
-SvStream& WriteQueueInfo( SvStream& rOStream, const QueueInfo& rInfo )
-{
- VersionCompat aCompat( rOStream, StreamMode::WRITE, 1 );
-
- write_uInt16_lenPrefixed_uInt8s_FromOUString(rOStream, rInfo.maPrinterName, RTL_TEXTENCODING_UTF8);
- write_uInt16_lenPrefixed_uInt8s_FromOUString(rOStream, rInfo.maDriver, RTL_TEXTENCODING_UTF8);
- write_uInt16_lenPrefixed_uInt8s_FromOUString(rOStream, rInfo.maLocation, RTL_TEXTENCODING_UTF8);
- write_uInt16_lenPrefixed_uInt8s_FromOUString(rOStream, rInfo.maComment, RTL_TEXTENCODING_UTF8);
- rOStream.WriteUInt32( static_cast<sal_uInt32>(rInfo.mnStatus) );
- rOStream.WriteUInt32( rInfo.mnJobs );
-
- return rOStream;
-}
-
-SvStream& ReadQueueInfo( SvStream& rIStream, QueueInfo& rInfo )
-{
- VersionCompat aCompat( rIStream, StreamMode::READ );
-
- rInfo.maPrinterName = read_uInt16_lenPrefixed_uInt8s_ToOUString(rIStream, RTL_TEXTENCODING_UTF8);
- rInfo.maDriver = read_uInt16_lenPrefixed_uInt8s_ToOUString(rIStream, RTL_TEXTENCODING_UTF8);
- rInfo.maLocation = read_uInt16_lenPrefixed_uInt8s_ToOUString(rIStream, RTL_TEXTENCODING_UTF8);
- rInfo.maComment = read_uInt16_lenPrefixed_uInt8s_ToOUString(rIStream, RTL_TEXTENCODING_UTF8);
- sal_uInt32 nTmp;
- rIStream.ReadUInt32( nTmp );
- rInfo.mnStatus = static_cast<PrintQueueFlags>(nTmp);
- rIStream.ReadUInt32( rInfo.mnJobs );
-
- return rIStream;
-}
-
SalPrinterQueueInfo::SalPrinterQueueInfo()
{
mnStatus = PrintQueueFlags::NONE;
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 04cbdd2e7c30..0154aaafedee 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -153,38 +153,6 @@ std::ostream &operator <<(std::ostream& s, ImplLayoutArgs &rArgs)
return s;
}
-// TODO: ask the glyph directly, for now we need this method because of #i99367#
-// true if a codepoint doesn't influence the logical text width
-bool IsDiacritic( sal_UCS4 nChar )
-{
- // shortcut obvious non-diacritics
- if( nChar < 0x0300 )
- return false;
- if( nChar >= 0x2100 )
- return false;
-
- // TODO: #i105058# use icu uchar.h's character classification instead of the handcrafted table
- struct DiaRange { sal_UCS4 mnMin, mnEnd;};
- static const DiaRange aRanges[] = {
- {0x0300, 0x0370},
- {0x0590, 0x05BE}, {0x05BF, 0x05C0}, {0x05C1, 0x05C3}, {0x05C4, 0x05C6}, {0x05C7, 0x05C8},
- {0x0610, 0x061B}, {0x064B, 0x0660}, {0x0670, 0x0671}, {0x06D6, 0x06DD}, {0x06DF, 0x06E5}, {0x06E7, 0x06E9}, {0x06EA,0x06EF},
- {0x0730, 0x074D}, {0x07A6, 0x07B1}, {0x07EB, 0x07F4},
- {0x1DC0, 0x1E00},
- {0x205F, 0x2070}, {0x20D0, 0x2100},
- {0xFB1E, 0xFB1F}
- };
-
- // TODO: almost anything is faster than an O(n) search
- static const int nCount = SAL_N_ELEMENTS(aRanges);
- const DiaRange* pRange = &aRanges[0];
- for( int i = nCount; --i >= 0; ++pRange )
- if( (pRange->mnMin <= nChar) && (nChar < pRange->mnEnd) )
- return true;
-
- return false;
-}
-
int GetVerticalFlags( sal_UCS4 nChar )
{
if( (nChar >= 0x1100 && nChar <= 0x11f9) // Hangul Jamo