diff options
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/app/saldata.cxx | 6 | ||||
-rw-r--r-- | vcl/win/source/app/salinst.cxx | 10 | ||||
-rw-r--r-- | vcl/win/source/app/salshl.cxx | 6 | ||||
-rw-r--r-- | vcl/win/source/app/saltimer.cxx | 4 | ||||
-rw-r--r-- | vcl/win/source/gdi/salgdi.cxx | 36 | ||||
-rw-r--r-- | vcl/win/source/gdi/salgdi2.cxx | 2 | ||||
-rw-r--r-- | vcl/win/source/gdi/salgdi3.cxx | 18 | ||||
-rw-r--r-- | vcl/win/source/gdi/salnativewidgets-luna.cxx | 6 | ||||
-rw-r--r-- | vcl/win/source/gdi/salprn.cxx | 2 | ||||
-rw-r--r-- | vcl/win/source/gdi/salvd.cxx | 6 | ||||
-rw-r--r-- | vcl/win/source/gdi/winlayout.cxx | 24 | ||||
-rw-r--r-- | vcl/win/source/window/keynames.cxx | 8 | ||||
-rw-r--r-- | vcl/win/source/window/salframe.cxx | 12 | ||||
-rw-r--r-- | vcl/win/source/window/salmenu.cxx | 10 | ||||
-rw-r--r-- | vcl/win/source/window/salobj.cxx | 8 |
15 files changed, 79 insertions, 79 deletions
diff --git a/vcl/win/source/app/saldata.cxx b/vcl/win/source/app/saldata.cxx index 73d2e6edf22e..a650c8e2d99d 100644 --- a/vcl/win/source/app/saldata.cxx +++ b/vcl/win/source/app/saldata.cxx @@ -23,7 +23,7 @@ #include "win/saldata.hxx" -// ======================================================================= + rtl_TextEncoding ImplSalGetSystemEncoding() { @@ -53,7 +53,7 @@ OUString ImplSalGetUniString(const sal_Char* pStr, sal_Int32 const nLen) RTL_TEXTTOUNICODE_FLAGS_INVALID_DEFAULT ); } -// ======================================================================= + int ImplSalWICompareAscii( const wchar_t* pStr1, const char* pStr2 ) { @@ -81,7 +81,7 @@ int ImplSalWICompareAscii( const wchar_t* pStr1, const char* pStr2 ) return nRet; } -// ======================================================================= + BOOL ImplPostMessage( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam ) { diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx index ece177210cb2..d639d894c752 100644 --- a/vcl/win/source/app/salinst.cxx +++ b/vcl/win/source/app/salinst.cxx @@ -83,7 +83,7 @@ #include <sehandler.hxx> #endif -// ======================================================================= + void SalAbort( const OUString& rErrorText, bool ) { @@ -103,12 +103,12 @@ void SalAbort( const OUString& rErrorText, bool ) } } -// ======================================================================= + LRESULT CALLBACK SalComWndProcA( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam ); LRESULT CALLBACK SalComWndProcW( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam ); -// ======================================================================= + class SalYieldMutex : public vcl::SolarMutexObject { @@ -340,7 +340,7 @@ bool WinSalInstance::CheckYieldMutex() return true; } -// ======================================================================= + void SalData::initKeyCodeMap() { @@ -366,7 +366,7 @@ void SalData::initKeyCodeMap() initKey( ';', KEY_SEMICOLON ); } -// ======================================================================= + // SalData diff --git a/vcl/win/source/app/salshl.cxx b/vcl/win/source/app/salshl.cxx index fa66249df02e..8d72b021fae0 100644 --- a/vcl/win/source/app/salshl.cxx +++ b/vcl/win/source/app/salshl.cxx @@ -22,11 +22,11 @@ #include <tools/debug.hxx> #include <win/saldata.hxx> -// ======================================================================= + SalShlData aSalShlData; -// ======================================================================= + extern "C" { @@ -54,7 +54,7 @@ BOOL WINAPI LibMain( HINSTANCE hInst, DWORD nReason, LPVOID pReserved ) } -// ======================================================================= + HCURSOR ImplLoadSalCursor( int nId ) { diff --git a/vcl/win/source/app/saltimer.cxx b/vcl/win/source/app/saltimer.cxx index 68cd6ca5098e..ef99cd86db8e 100644 --- a/vcl/win/source/app/saltimer.cxx +++ b/vcl/win/source/app/saltimer.cxx @@ -27,12 +27,12 @@ #endif -// ======================================================================= + // maximum period #define MAX_SYSPERIOD 65533 -// ======================================================================= + void ImplSalStartTimer( sal_uLong nMS, sal_Bool bMutex ) { diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx index 845fb22a43af..04faaa67151d 100644 --- a/vcl/win/source/gdi/salgdi.cxx +++ b/vcl/win/source/gdi/salgdi.cxx @@ -33,12 +33,12 @@ #include <win/salframe.h> #include <basegfx/matrix/b2dhommatrixtools.hxx> -// ======================================================================= + // comment out to prevent use of beziers on GDI functions #define USE_GDI_BEZIERS -// ======================================================================= + #define DITHER_PAL_DELTA 51 #define DITHER_PAL_STEPS 6 @@ -47,7 +47,7 @@ #define DITHER_EXTRA_COLORS 1 #define DMAP( _def_nVal, _def_nThres ) ((pDitherDiff[_def_nVal]>(_def_nThres))?pDitherHigh[_def_nVal]:pDitherLow[_def_nVal]) -// ======================================================================= + struct SysColorEntry { @@ -55,7 +55,7 @@ struct SysColorEntry SysColorEntry* pNext; }; -// ======================================================================= + static SysColorEntry* pFirstSysColor = NULL; static SysColorEntry* pActSysColor = NULL; @@ -118,19 +118,19 @@ static BYTE aOrdDither16Bit[8][8] = { 5, 3, 4, 2, 5, 3, 4, 2 } }; -// ======================================================================= + // we must create pens with 1-pixel width; otherwise the S3-graphics card // map has many paint problems when drawing polygons/polyLines and a // complex is set #define GSL_PEN_WIDTH 1 -// ======================================================================= + #define SAL_POLYPOLYCOUNT_STACKBUF 8 #define SAL_POLYPOLYPOINTS_STACKBUF 64 -// ======================================================================= + void ImplInitSalGDI() { @@ -411,7 +411,7 @@ static int ImplIsPaletteEntry( BYTE nRed, BYTE nGreen, BYTE nBlue ) return FALSE; } -// ======================================================================= + int ImplIsSysColorEntry( SalColor nSalColor ) { @@ -430,7 +430,7 @@ int ImplIsSysColorEntry( SalColor nSalColor ) return FALSE; } -// ======================================================================= + static void ImplInsertSysColorEntry( int nSysIndex ) { @@ -453,7 +453,7 @@ static void ImplInsertSysColorEntry( int nSysIndex ) } } -// ======================================================================= + void ImplUpdateSysColorEntries() { @@ -504,7 +504,7 @@ static SalColor ImplGetROPSalColor( SalROPColor nROPColor ) return nSalColor; } -// ======================================================================= + void ImplSalInitGraphics( WinSalGraphics* pData ) { @@ -538,7 +538,7 @@ void ImplSalDeInitGraphics( WinSalGraphics* pData ) SelectFont( pData->getHDC(), pData->mhDefFont ); } -// ======================================================================= + HDC ImplGetCachedDC( sal_uLong nID, HBITMAP hBmp ) { @@ -572,7 +572,7 @@ HDC ImplGetCachedDC( sal_uLong nID, HBITMAP hBmp ) return pC->mhDC; } -// ======================================================================= + void ImplReleaseCachedDC( sal_uLong nID ) { @@ -583,7 +583,7 @@ void ImplReleaseCachedDC( sal_uLong nID ) SelectObject( pC->mhDC, pC->mhSelBmp ); } -// ======================================================================= + void ImplClearHDCCache( SalData* pData ) { @@ -604,7 +604,7 @@ void ImplClearHDCCache( SalData* pData ) } } -// ======================================================================= + // #100127# Fill point and flag memory from array of points which // might also contain bezier control points for the PolyDraw() GDI method @@ -677,7 +677,7 @@ void ImplPreparePolyDraw( bool bCloseFigures, } } -// ======================================================================= + // #100127# draw an array of points which might also contain bezier control points void ImplRenderPath( HDC hdc, sal_uLong nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry ) @@ -707,7 +707,7 @@ void ImplRenderPath( HDC hdc, sal_uLong nPoints, const SalPoint* pPtAry, const B } } -// ======================================================================= + WinSalGraphics::WinSalGraphics() { @@ -1052,7 +1052,7 @@ bool WinSalGraphics::setClipRegion( const Region& i_rClip ) // debug code if you weant to check range of the newly applied ClipRegion //RECT aBound; //const int aRegionType = GetRgnBox(mhRegion, &aBound); - // + //bool bBla = true; } else diff --git a/vcl/win/source/gdi/salgdi2.cxx b/vcl/win/source/gdi/salgdi2.cxx index d81229604ebb..a39bf3c3c518 100644 --- a/vcl/win/source/gdi/salgdi2.cxx +++ b/vcl/win/source/gdi/salgdi2.cxx @@ -55,7 +55,7 @@ bool WinSalGraphics::supportsOperation( OutDevSupportType eType ) const return bRet; } -// ======================================================================= + void WinSalGraphics::copyBits( const SalTwoRect& rPosAry, SalGraphics* pSrcGraphics ) { diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx index 2fd048fed949..29448a48d47a 100644 --- a/vcl/win/source/gdi/salgdi3.cxx +++ b/vcl/win/source/gdi/salgdi3.cxx @@ -77,14 +77,14 @@ inline int IntTimes256FromFixed(FIXED f) return nFixedTimes256; } -// ======================================================================= + // these variables can be static because they store system wide settings static bool bImplSalCourierScalable = false; static bool bImplSalCourierNew = false; -// ======================================================================= + @@ -228,7 +228,7 @@ void ImplFontAttrCache::AddFontAttr( const OUString& rFontFileName, const ImplDe } } -// ======================================================================= + // raw font data with a scoped lifetime class RawFontData @@ -294,7 +294,7 @@ RawFontData::RawFontData( HDC hDC, DWORD nTableTag ) } } -// =========================================================================== + // platform specific font substitution hooks for glyph fallback enhancement // TODO: move into i18n module (maybe merge with svx/ucsubset.* // or merge with i18nutil/source/utility/unicode_data.h) @@ -601,7 +601,7 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFon return bFound; } -// ======================================================================= + struct ImplEnumInfo { @@ -618,7 +618,7 @@ struct ImplEnumInfo int mnFontCount; }; -// ======================================================================= + static rtl_TextEncoding ImplCharSetToSal( BYTE nCharSet ) { @@ -1033,7 +1033,7 @@ void ImplSalLogFontToFontW( HDC hDC, const LOGFONTW& rLogFont, Font& rFont ) } } -// ======================================================================= + #if ENABLE_GRAPHITE #ifdef DEBUG @@ -1415,7 +1415,7 @@ void ImplWinFontData::GetFontCapabilities( HDC hDC ) const } } -// ======================================================================= + void WinSalGraphics::SetTextColor( SalColor nSalColor ) { @@ -2098,7 +2098,7 @@ static bool ImplGetFontAttrFromFile( const OUString& rFontFileURL, // byte offsets 0x4CE/0x4CF: winascent // byte offsets 0x4D0/0x4D1: winascent+windescent-emunits // byte offsets 0x4DF/0x4E0: avgwidth - //... + return true; } diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx index 0703bbbbb64a..cfba8a449b1e 100644 --- a/vcl/win/source/gdi/salnativewidgets-luna.cxx +++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx @@ -20,14 +20,14 @@ // General info: // http://msdn.microsoft.com/en-us/library/windows/desktop/hh270423%28v=vs.85%29.aspx // http://msdn.microsoft.com/en-us/library/windows/desktop/bb773178%28v=vs.85%29.aspx -// + // Useful tool to explore the themes & their rendering: // http://privat.rejbrand.se/UxExplore.exe // (found at http://stackoverflow.com/questions/4009701/windows-visual-themes-gallery-of-parts-and-states/4009712#4009712) -// + // Theme subclasses: // http://msdn.microsoft.com/en-us/library/windows/desktop/bb773218%28v=vs.85%29.aspx -// + // Drawing in non-client area (general DWM-related info): // http://msdn.microsoft.com/en-us/library/windows/desktop/bb688195%28v=vs.85%29.aspx diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx index cc10cac3fb55..b1dbab938ee9 100644 --- a/vcl/win/source/gdi/salprn.cxx +++ b/vcl/win/source/gdi/salprn.cxx @@ -576,7 +576,7 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS //also says that the MS DMPAPER_B4 is JIS, which makes most sense. And //matches our Excel filter's belief about the matching XlPaperSize //enumeration. - // + //http://msdn.microsoft.com/en-us/library/ms776398(VS.85).aspx said ////"DMPAPER_B4 12 B4 (JIS) 250 x 354" //which is bogus as it's either JIS 257 x 364 or ISO 250 x 353 diff --git a/vcl/win/source/gdi/salvd.cxx b/vcl/win/source/gdi/salvd.cxx index 420d312711da..89eaba889d26 100644 --- a/vcl/win/source/gdi/salvd.cxx +++ b/vcl/win/source/gdi/salvd.cxx @@ -28,7 +28,7 @@ #include <win/salgdi.h> #include <win/salvd.h> -// ======================================================================= + static HBITMAP ImplCreateVirDevBitmap( HDC hDC, long nDX, long nDY, sal_uInt16 nBitCount ) @@ -67,7 +67,7 @@ static HBITMAP ImplCreateVirDevBitmap( HDC hDC, long nDX, long nDY, return hBitmap; } -// ======================================================================= + SalVirtualDevice* WinSalInstance::CreateVirtualDevice( SalGraphics* pSGraphics, long nDX, long nDY, @@ -158,7 +158,7 @@ void WinSalInstance::DestroyVirtualDevice( SalVirtualDevice* pDevice ) delete pDevice; } -// ======================================================================= + WinSalVirtualDevice::WinSalVirtualDevice() { diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index 947219a582f7..a3aca6d5c4e4 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -62,7 +62,7 @@ typedef boost::unordered_map<int,int> IntMap; #include <config_mingw.h> -// ======================================================================= + // win32 specific physical font instance class ImplWinFontEntry : public ImplFontEntry @@ -117,7 +117,7 @@ inline int ImplWinFontEntry::GetCachedGlyphWidth( int nCharCode ) const return it->second; } -// ======================================================================= + class WinLayout : public SalLayout { @@ -141,7 +141,7 @@ protected: ImplWinFontEntry& mrWinFontEntry; }; -// ======================================================================= + class SimpleWinLayout : public WinLayout { @@ -187,7 +187,7 @@ private: BYTE mnCharSet; }; -// ======================================================================= + WinLayout::WinLayout( HDC hDC, const ImplWinFontData& rWFD, ImplWinFontEntry& rWFE ) : mhDC( hDC ), @@ -229,7 +229,7 @@ HFONT WinLayout::DisableFontScaling() const return SelectFont( mhDC, hHugeFont ); } -// ======================================================================= + SimpleWinLayout::SimpleWinLayout( HDC hDC, BYTE nCharSet, const ImplWinFontData& rWinFontData, ImplWinFontEntry& rWinFontEntry ) @@ -974,7 +974,7 @@ void SimpleWinLayout::Simplify( bool /*bIsBase*/ ) mnWidth = mnBaseAdv = 0; } -// ======================================================================= + struct VisualItem { @@ -1755,7 +1755,7 @@ int UniscribeLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos, //position so that iterating over glyph slots one at a time for //glyph fallback can keep context as to what characters are the //inputs that caused a missing glyph in a given font. - // + //See: fdo#46923/fdo#46896/fdo#46750 for extra complexities { int dir = 1; @@ -2703,7 +2703,7 @@ sal_GlyphId GraphiteLayoutWinImpl::getKashidaGlyph(int & rWidth) // This class uses the SIL Graphite engine to provide complex text layout services to the VCL // @author tse -// + class GraphiteWinLayout : public WinLayout { private: @@ -2896,7 +2896,7 @@ void GraphiteWinLayout::Simplify( bool is_base ) maImpl.Simplify(is_base); } #endif // ENABLE_GRAPHITE -// ======================================================================= + SalLayout* WinSalGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLevel ) { @@ -2961,7 +2961,7 @@ int WinSalGraphics::GetMinKashidaWidth() return nMinKashida; } -// ======================================================================= + ImplWinFontEntry::ImplWinFontEntry( FontSelectPattern& rFSD ) : ImplFontEntry( rFSD ) @@ -3045,7 +3045,7 @@ bool ImplWinFontEntry::InitKashidaHandling( HDC hDC ) return true; } -// ======================================================================= + PhysicalFontFace* ImplWinFontData::Clone() const { @@ -3067,6 +3067,6 @@ ImplFontEntry* ImplWinFontData::CreateFontInstance( FontSelectPattern& rFSD ) co return pEntry; } -// ======================================================================= + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/win/source/window/keynames.cxx b/vcl/win/source/window/keynames.cxx index 017955186cdd..00dd4351d076 100644 --- a/vcl/win/source/window/keynames.cxx +++ b/vcl/win/source/window/keynames.cxx @@ -60,13 +60,13 @@ namespace vcl_sal { int nReplacements; }; - // ==================================================================== - // + + // CAUTION CAUTION CAUTION // Every string value in the replacements tables must be in UTF-8 // but with the UTF-8 bytes encoded, not as such! Be careful! - // - // ==================================================================== + + static const struct KeysNameReplacement aImplReplacements_Asturian[] = { diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index aaae35c8b72f..e6ab38a3eaa5 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -113,20 +113,20 @@ using namespace ::com::sun::star::beans; # define WM_MOUSEHWHEEL 0x020E #endif -// ======================================================================= + const unsigned int WM_USER_SYSTEM_WINDOW_ACTIVATED = RegisterWindowMessageA("SYSTEM_WINDOW_ACTIVATED"); sal_Bool WinSalFrame::mbInReparent = FALSE; -// ======================================================================= + // Macros for support of WM_UNICHAR & Keyman 6.0 //#define Uni_UTF32ToSurrogate1(ch) (((unsigned long) (ch) - 0x10000) / 0x400 + 0xD800) #define Uni_UTF32ToSurrogate2(ch) (((unsigned long) (ch) - 0x10000) % 0x400 + 0xDC00) #define Uni_SupplementaryPlanesStart 0x10000 -// ======================================================================= + static void UpdateFrameGeometry( HWND hWnd, WinSalFrame* pFrame ); static void SetMaximizedFrameGeometry( HWND hWnd, WinSalFrame* pFrame, RECT* pParentRect = NULL ); @@ -282,7 +282,7 @@ void ImplSalGetWorkArea( HWND hWnd, RECT *pRect, const RECT *pParentRect ) } } -// ======================================================================= + SalFrame* ImplSalCreateFrame( WinSalInstance* pInst, HWND hWndParent, sal_uLong nSalFrameStyle ) @@ -525,7 +525,7 @@ HWND ImplSalReCreateHWND( HWND hWndParent, HWND oldhWnd, sal_Bool bAsChild ) hWndParent, 0, hInstance, (void*)GetWindowPtr( oldhWnd ) ); } -// ======================================================================= + // translation table from System keycodes into StartView keycodes #define KEY_TAB_SIZE 146 @@ -681,7 +681,7 @@ static const sal_uInt16 aImplTranslateKeyTab[KEY_TAB_SIZE] = 0 // SCROLLLOCK 145 }; -// ======================================================================= + static UINT ImplSalGetWheelScrollLines() { diff --git a/vcl/win/source/window/salmenu.cxx b/vcl/win/source/window/salmenu.cxx index 1284636990dc..7bbfd39fc475 100644 --- a/vcl/win/source/window/salmenu.cxx +++ b/vcl/win/source/window/salmenu.cxx @@ -39,7 +39,7 @@ static DWORD myerr=0; -// ======================================================================= + sal_Bool SalData::IsKnownMenuHandle( HMENU hMenu ) { @@ -49,7 +49,7 @@ sal_Bool SalData::IsKnownMenuHandle( HMENU hMenu ) return TRUE; } -// ======================================================================= + // WinSalInst factory methods @@ -125,7 +125,7 @@ void WinSalInstance::DestroyMenuItem( SalMenuItem* pSalMenuItem ) } -// ======================================================================= + static void ImplDrawMenuBar( SalMenu *pMenu ) { @@ -140,7 +140,7 @@ static void ImplDrawMenuBar( SalMenu *pMenu ) } } -// ======================================================================= + /* @@ -377,7 +377,7 @@ void WinSalMenu::GetSystemMenuData( SystemMenuData* pData ) pData->hMenu = mhMenu; } -// ======================================================================= + /* * SalMenuItem diff --git a/vcl/win/source/window/salobj.cxx b/vcl/win/source/window/salobj.cxx index ac70f7a8183a..d4ac6f002ec2 100644 --- a/vcl/win/source/window/salobj.cxx +++ b/vcl/win/source/window/salobj.cxx @@ -31,7 +31,7 @@ #include <win/salframe.h> #include <win/salobj.h> -// ======================================================================= + static sal_Bool ImplIsSysWindowOrChild( HWND hWndParent, HWND hWndChild ) { @@ -260,7 +260,7 @@ void ImplSalPostDispatchMsg( MSG* pMsg, LRESULT /* nDispatchResult */ ) pSalData->mnSalObjWantKeyEvt = 0; } -// ======================================================================= + LRESULT CALLBACK SalSysObjWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam, int& rDef ) { @@ -470,7 +470,7 @@ LRESULT CALLBACK SalSysObjChildWndProcW( HWND hWnd, UINT nMsg, WPARAM wParam, LP return nRet; } -// ======================================================================= + SalObject* ImplSalCreateObject( WinSalInstance* pInst, WinSalFrame* pParent ) { @@ -567,7 +567,7 @@ SalObject* ImplSalCreateObject( WinSalInstance* pInst, WinSalFrame* pParent ) return NULL; } -// ======================================================================= + WinSalObject::WinSalObject() { |