summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-22 21:20:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:38:49 +0000
commit0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch)
tree5024cba9f9ea5e3b23ea26025323f6aef39488d0 /vcl
parentb81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff)
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/generic/app/geninst.cxx4
-rw-r--r--vcl/generic/fontmanager/fontmanager.cxx76
-rw-r--r--vcl/generic/fontmanager/fontsubst.cxx6
-rw-r--r--vcl/generic/glyphs/gcach_ftyp.cxx82
-rw-r--r--vcl/generic/glyphs/gcach_layout.cxx4
-rw-r--r--vcl/generic/print/genprnpsp.cxx2
-rw-r--r--vcl/generic/print/genpspgraphics.cxx24
-rw-r--r--vcl/headless/svpinst.cxx4
-rw-r--r--vcl/osx/HtmlFmtFlt.cxx4
-rw-r--r--vcl/osx/a11yfocuslistener.cxx12
-rw-r--r--vcl/osx/a11yfocustracker.cxx22
-rw-r--r--vcl/osx/a11ylistener.cxx8
-rw-r--r--vcl/osx/documentfocuslistener.cxx20
-rw-r--r--vcl/osx/salframe.cxx74
-rw-r--r--vcl/osx/salinst.cxx88
-rw-r--r--vcl/osx/salmenu.cxx2
-rw-r--r--vcl/osx/salobj.cxx20
-rw-r--r--vcl/osx/salprn.cxx50
-rw-r--r--vcl/qa/cppunit/dndtest.cxx64
-rw-r--r--vcl/quartz/ctfonts.cxx26
-rw-r--r--vcl/quartz/salbmp.cxx40
-rw-r--r--vcl/quartz/salgdi.cxx44
-rw-r--r--vcl/quartz/salgdicommon.cxx2
-rw-r--r--vcl/quartz/salgdiutils.cxx12
-rw-r--r--vcl/quartz/salvd.cxx16
-rw-r--r--vcl/source/app/help.cxx72
-rw-r--r--vcl/source/app/salvtables.cxx6
-rw-r--r--vcl/source/app/svdata.cxx10
-rw-r--r--vcl/source/components/dtranscomp.cxx10
-rw-r--r--vcl/source/components/fontident.cxx4
-rw-r--r--vcl/source/control/button.cxx294
-rw-r--r--vcl/source/control/combobox.cxx160
-rw-r--r--vcl/source/control/ctrl.cxx74
-rw-r--r--vcl/source/control/edit.cxx174
-rw-r--r--vcl/source/control/fixed.cxx122
-rw-r--r--vcl/source/control/group.cxx26
-rw-r--r--vcl/source/control/ilstbox.cxx220
-rw-r--r--vcl/source/control/imgctrl.cxx20
-rw-r--r--vcl/source/control/lstbox.cxx4
-rw-r--r--vcl/source/control/slider.cxx56
-rw-r--r--vcl/source/control/spinbtn.cxx44
-rw-r--r--vcl/source/control/spinfld.cxx52
-rw-r--r--vcl/source/control/tabctrl.cxx126
-rw-r--r--vcl/source/edit/textview.cxx4
-rw-r--r--vcl/source/edit/xtextedt.cxx4
-rw-r--r--vcl/source/filter/FilterConfigCache.cxx6
-rw-r--r--vcl/source/filter/FilterConfigItem.cxx4
-rw-r--r--vcl/source/filter/graphicfilter.cxx6
-rw-r--r--vcl/source/filter/igif/decode.cxx12
-rw-r--r--vcl/source/filter/ixbm/xbmread.cxx20
-rw-r--r--vcl/source/filter/ixpm/xpmread.cxx30
-rw-r--r--vcl/source/filter/wmf/winwmf.cxx12
-rw-r--r--vcl/source/filter/wmf/wmf.cxx10
-rw-r--r--vcl/source/filter/wmf/wmfwr.cxx12
-rw-r--r--vcl/source/fontsubset/cff.cxx106
-rw-r--r--vcl/source/fontsubset/fontsubset.cxx12
-rw-r--r--vcl/source/fontsubset/xlat.cxx8
-rw-r--r--vcl/source/gdi/bitmap3.cxx10
-rw-r--r--vcl/source/gdi/lineinfo.cxx52
-rw-r--r--vcl/source/gdi/metaact.cxx826
-rw-r--r--vcl/source/gdi/octree.cxx36
-rw-r--r--vcl/source/gdi/outdev2.cxx2
-rw-r--r--vcl/source/gdi/outdev5.cxx8
-rw-r--r--vcl/source/gdi/outdev6.cxx22
-rw-r--r--vcl/source/gdi/outdevnative.cxx14
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx6
-rw-r--r--vcl/source/gdi/regband.cxx38
-rw-r--r--vcl/source/gdi/region.cxx2
-rw-r--r--vcl/source/gdi/sallayout.cxx94
-rw-r--r--vcl/source/gdi/virdev.cxx22
-rw-r--r--vcl/source/gdi/wall.cxx68
-rw-r--r--vcl/source/window/accel.cxx42
-rw-r--r--vcl/source/window/accmgr.cxx8
-rw-r--r--vcl/source/window/brdwin.cxx140
-rw-r--r--vcl/source/window/cmdevt.cxx4
-rw-r--r--vcl/source/window/cursor.cxx32
-rw-r--r--vcl/source/window/decoview.cxx4
-rw-r--r--vcl/source/window/dialog.cxx54
-rw-r--r--vcl/source/window/dlgctrl.cxx36
-rw-r--r--vcl/source/window/dockingarea.cxx10
-rw-r--r--vcl/source/window/dockmgr.cxx70
-rw-r--r--vcl/source/window/dockwin.cxx84
-rw-r--r--vcl/source/window/floatwin.cxx42
-rw-r--r--vcl/source/window/introwin.cxx4
-rw-r--r--vcl/source/window/keycod.cxx8
-rw-r--r--vcl/source/window/keyevent.cxx2
-rw-r--r--vcl/source/window/menu.cxx20
-rw-r--r--vcl/source/window/mnemonic.cxx12
-rw-r--r--vcl/source/window/msgbox.cxx50
-rw-r--r--vcl/source/window/printdlg.cxx4
-rw-r--r--vcl/source/window/split.cxx58
-rw-r--r--vcl/source/window/status.cxx114
-rw-r--r--vcl/source/window/syschild.cxx14
-rw-r--r--vcl/source/window/syswin.cxx58
-rw-r--r--vcl/source/window/tabdlg.cxx12
-rw-r--r--vcl/source/window/tabpage.cxx18
-rw-r--r--vcl/source/window/taskpanelist.cxx18
-rw-r--r--vcl/source/window/toolbox.cxx166
-rw-r--r--vcl/source/window/toolbox2.cxx194
-rw-r--r--vcl/source/window/window.cxx478
-rw-r--r--vcl/source/window/window2.cxx74
-rw-r--r--vcl/source/window/window3.cxx6
-rw-r--r--vcl/source/window/winproc.cxx82
-rw-r--r--vcl/source/window/wrkwin.cxx22
-rw-r--r--vcl/unx/generic/app/i18n_cb.cxx28
-rw-r--r--vcl/unx/generic/app/i18n_ic.cxx44
-rw-r--r--vcl/unx/generic/app/i18n_im.cxx16
-rw-r--r--vcl/unx/generic/app/i18n_status.cxx24
-rw-r--r--vcl/unx/generic/app/saldisp.cxx2
-rw-r--r--vcl/unx/generic/app/salinst.cxx2
-rw-r--r--vcl/unx/generic/dtrans/X11_clipboard.cxx28
-rw-r--r--vcl/unx/generic/dtrans/X11_droptarget.cxx22
-rw-r--r--vcl/unx/generic/dtrans/X11_selection.cxx110
-rw-r--r--vcl/unx/generic/dtrans/X11_service.cxx6
-rw-r--r--vcl/unx/generic/gdi/gcach_xpeer.cxx6
-rw-r--r--vcl/unx/generic/gdi/salbmp.cxx76
-rw-r--r--vcl/unx/generic/gdi/salgdi2.cxx2
-rw-r--r--vcl/unx/generic/gdi/salgdi3.cxx40
-rw-r--r--vcl/unx/generic/gdi/xrender_peer.cxx6
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx40
-rw-r--r--vcl/unx/generic/printer/printerinfomanager.cxx36
-rw-r--r--vcl/unx/generic/window/salframe.cxx8
-rw-r--r--vcl/unx/generic/window/salobj.cxx4
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx76
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx16
-rw-r--r--vcl/unx/gtk/fpicker/resourceprovider.cxx4
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx68
-rw-r--r--vcl/unx/gtk/window/gtksalframe.cxx4
-rw-r--r--vcl/unx/kde/salnativewidgets-kde.cxx12
-rw-r--r--vcl/win/source/app/saldata.cxx10
-rw-r--r--vcl/win/source/app/salinfo.cxx4
-rw-r--r--vcl/win/source/app/salinst.cxx78
-rw-r--r--vcl/win/source/app/salshl.cxx4
-rw-r--r--vcl/win/source/app/saltimer.cxx4
-rw-r--r--vcl/win/source/gdi/salbmp.cxx40
-rw-r--r--vcl/win/source/gdi/salgdi.cxx82
-rw-r--r--vcl/win/source/gdi/salgdi2.cxx24
-rw-r--r--vcl/win/source/gdi/salgdi3.cxx82
-rw-r--r--vcl/win/source/gdi/salgdi_gdiplus.cxx8
-rw-r--r--vcl/win/source/gdi/salnativewidgets-luna.cxx2
-rw-r--r--vcl/win/source/gdi/salvd.cxx10
-rw-r--r--vcl/win/source/gdi/winlayout.cxx84
-rw-r--r--vcl/win/source/gdi/wntgdi.cxx6
-rw-r--r--vcl/win/source/window/salframe.cxx200
-rw-r--r--vcl/win/source/window/salmenu.cxx2
-rw-r--r--vcl/win/source/window/salobj.cxx32
146 files changed, 3459 insertions, 3459 deletions
diff --git a/vcl/generic/app/geninst.cxx b/vcl/generic/app/geninst.cxx
index c2a6c79cac4f..da3a3d66aad2 100644
--- a/vcl/generic/app/geninst.cxx
+++ b/vcl/generic/app/geninst.cxx
@@ -26,11 +26,11 @@
#include "generic/geninst.h"
-// -------------------------------------------------------------------------
+
//
// SalYieldMutex
//
-// -------------------------------------------------------------------------
+
SalYieldMutex::SalYieldMutex()
{
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx
index 4102df704506..ae82903b9a71 100644
--- a/vcl/generic/fontmanager/fontmanager.cxx
+++ b/vcl/generic/fontmanager/fontmanager.cxx
@@ -108,7 +108,7 @@ inline sal_uInt32 getUInt32BE( const sal_uInt8*& pBuffer )
return nRet;
}
-// -------------------------------------------------------------------------
+
static FontWeight parseWeight( const OString& rWeight )
{
@@ -173,20 +173,20 @@ PrintFontManager::PrintFont::PrintFont( fonttype::type eType ) :
{
}
-// -------------------------------------------------------------------------
+
PrintFontManager::PrintFont::~PrintFont()
{
delete m_pMetrics;
}
-// -------------------------------------------------------------------------
+
PrintFontManager::Type1FontFile::~Type1FontFile()
{
}
-// -------------------------------------------------------------------------
+
PrintFontManager::TrueTypeFontFile::TrueTypeFontFile()
: PrintFont( fonttype::TrueType )
@@ -195,20 +195,20 @@ PrintFontManager::TrueTypeFontFile::TrueTypeFontFile()
, m_nTypeFlags( TYPEFLAG_INVALID )
{}
-// -------------------------------------------------------------------------
+
PrintFontManager::TrueTypeFontFile::~TrueTypeFontFile()
{
}
-// -------------------------------------------------------------------------
+
bool PrintFontManager::Type1FontFile::queryMetricPage( int /*nPage*/, MultiAtomProvider* pProvider )
{
return readAfmMetrics( pProvider, false, false );
}
-// -------------------------------------------------------------------------
+
bool PrintFontManager::TrueTypeFontFile::queryMetricPage( int nPage, MultiAtomProvider* /*pProvider*/ )
{
@@ -275,7 +275,7 @@ bool PrintFontManager::TrueTypeFontFile::queryMetricPage( int nPage, MultiAtomPr
return bSuccess;
}
-// -------------------------------------------------------------------------
+
/* #i73387# There seem to be fonts with a rather unwell chosen family name
* consider e.g. "Helvetica Narrow" which defines its family as "Helvetica"
@@ -664,7 +664,7 @@ PrintFontManager& PrintFontManager::get()
return *pManager;
}
-// -------------------------------------------------------------------------
+
/*
* the PrintFontManager
@@ -691,7 +691,7 @@ PrintFontManager::PrintFontManager()
m_aFontInstallerTimer.SetTimeout(5000);
}
-// -------------------------------------------------------------------------
+
PrintFontManager::~PrintFontManager()
{
@@ -703,7 +703,7 @@ PrintFontManager::~PrintFontManager()
delete m_pFontCache;
}
-// -------------------------------------------------------------------------
+
OString PrintFontManager::getDirectory( int nAtom ) const
{
@@ -711,7 +711,7 @@ OString PrintFontManager::getDirectory( int nAtom ) const
return it != m_aAtomToDir.end() ? it->second : OString();
}
-// -------------------------------------------------------------------------
+
int PrintFontManager::getDirectoryAtom( const OString& rDirectory, bool bCreate )
{
@@ -729,7 +729,7 @@ int PrintFontManager::getDirectoryAtom( const OString& rDirectory, bool bCreate
return nAtom;
}
-// -------------------------------------------------------------------------
+
std::vector<fontID> PrintFontManager::addFontFile( const OString& rFileName )
{
@@ -919,7 +919,7 @@ bool PrintFontManager::analyzeFontFile( int nDirID, const OString& rFontFile, ::
return ! rNewFonts.empty();
}
-// -------------------------------------------------------------------------
+
fontID PrintFontManager::findFontFileID( int nDirID, const OString& rFontFile, int nFaceIndex ) const
{
@@ -999,7 +999,7 @@ std::vector<fontID> PrintFontManager::findFontFileIDs( int nDirID, const OString
return aIds;
}
-// -------------------------------------------------------------------------
+
OUString PrintFontManager::convertTrueTypeName( void* pRecord ) const
{
@@ -1085,7 +1085,7 @@ namespace
}
}
-// -------------------------------------------------------------------------
+
void PrintFontManager::analyzeTrueTypeFamilyName( void* pTTFont, ::std::list< OUString >& rNames ) const
{
@@ -1140,7 +1140,7 @@ void PrintFontManager::analyzeTrueTypeFamilyName( void* pTTFont, ::std::list< OU
return;
}
-// -------------------------------------------------------------------------
+
bool PrintFontManager::analyzeTrueTypeFile( PrintFont* pFont ) const
{
@@ -1467,7 +1467,7 @@ void PrintFontManager::initialize()
#endif
}
-// -------------------------------------------------------------------------
+
void PrintFontManager::getFontList( ::std::list< fontID >& rFontIDs )
{
@@ -1478,7 +1478,7 @@ void PrintFontManager::getFontList( ::std::list< fontID >& rFontIDs )
rFontIDs.push_back( it->first );
}
-// -------------------------------------------------------------------------
+
void PrintFontManager::fillPrintFontInfo( PrintFont* pFont, FastPrintFontInfo& rInfo ) const
{
@@ -1502,7 +1502,7 @@ void PrintFontManager::fillPrintFontInfo( PrintFont* pFont, FastPrintFontInfo& r
rInfo.m_aAliases.push_back( m_pAtoms->getString( ATOM_FAMILYNAME, *it ) );
}
-// -------------------------------------------------------------------------
+
void PrintFontManager::fillPrintFontInfo( PrintFont* pFont, PrintFontInfo& rInfo ) const
{
@@ -1525,7 +1525,7 @@ void PrintFontManager::fillPrintFontInfo( PrintFont* pFont, PrintFontInfo& rInfo
rInfo.m_nWidth = pFont->m_aGlobalMetricX.width < pFont->m_aGlobalMetricY.width ? pFont->m_aGlobalMetricY.width : pFont->m_aGlobalMetricX.width;
}
-// -------------------------------------------------------------------------
+
bool PrintFontManager::getFontInfo( fontID nFontID, PrintFontInfo& rInfo ) const
{
@@ -1538,7 +1538,7 @@ bool PrintFontManager::getFontInfo( fontID nFontID, PrintFontInfo& rInfo ) const
return pFont ? true : false;
}
-// -------------------------------------------------------------------------
+
bool PrintFontManager::getFontFastInfo( fontID nFontID, FastPrintFontInfo& rInfo ) const
{
@@ -1551,7 +1551,7 @@ bool PrintFontManager::getFontFastInfo( fontID nFontID, FastPrintFontInfo& rInfo
return pFont ? true : false;
}
-// -------------------------------------------------------------------------
+
bool PrintFontManager::getFontBoundingBox( fontID nFontID, int& xMin, int& yMin, int& xMax, int& yMax )
{
@@ -1576,7 +1576,7 @@ bool PrintFontManager::getFontBoundingBox( fontID nFontID, int& xMin, int& yMin,
return bSuccess;
}
-// -------------------------------------------------------------------------
+
int PrintFontManager::getFontFaceNumber( fontID nFontID ) const
{
@@ -1589,7 +1589,7 @@ int PrintFontManager::getFontFaceNumber( fontID nFontID ) const
return nRet;
}
-// -------------------------------------------------------------------------
+
FontFamily PrintFontManager::matchFamilyName( const OUString& rFamily ) const
@@ -1657,7 +1657,7 @@ FontFamily PrintFontManager::matchFamilyName( const OUString& rFamily ) const
return FAMILY_DONTKNOW;
}
-// -------------------------------------------------------------------------
+
OString PrintFontManager::getAfmFile( PrintFont* pFont ) const
{
@@ -1680,7 +1680,7 @@ OString PrintFontManager::getAfmFile( PrintFont* pFont ) const
return aMetricPath;
}
-// -------------------------------------------------------------------------
+
OString PrintFontManager::getFontFile( PrintFont* pFont ) const
{
@@ -1705,7 +1705,7 @@ OString PrintFontManager::getFontFile( PrintFont* pFont ) const
return aPath;
}
-// -------------------------------------------------------------------------
+
const OUString& PrintFontManager::getPSName( fontID nFontID ) const
{
@@ -1719,7 +1719,7 @@ const OUString& PrintFontManager::getPSName( fontID nFontID ) const
return m_pAtoms->getString( ATOM_PSNAME, pFont ? pFont->m_nPSName : INVALID_ATOM );
}
-// -------------------------------------------------------------------------
+
int PrintFontManager::getFontAscend( fontID nFontID ) const
{
@@ -1735,7 +1735,7 @@ int PrintFontManager::getFontAscend( fontID nFontID ) const
return pFont->m_nAscend;
}
-// -------------------------------------------------------------------------
+
int PrintFontManager::getFontDescend( fontID nFontID ) const
{
@@ -1751,7 +1751,7 @@ int PrintFontManager::getFontDescend( fontID nFontID ) const
return pFont->m_nDescend;
}
-// -------------------------------------------------------------------------
+
void PrintFontManager::hasVerticalSubstitutions( fontID nFontID,
const sal_Unicode* pCharacters, int nCharacters, bool* pHasSubst ) const
@@ -1780,7 +1780,7 @@ void PrintFontManager::hasVerticalSubstitutions( fontID nFontID,
}
}
-// -------------------------------------------------------------------------
+
bool PrintFontManager::isFontDownloadingAllowedForPrinting( fontID nFont ) const
{
@@ -1818,7 +1818,7 @@ bool PrintFontManager::isFontDownloadingAllowedForPrinting( fontID nFont ) const
return bRet;
}
-// -------------------------------------------------------------------------
+
bool PrintFontManager::getMetrics( fontID nFontID, const sal_Unicode* pString, int nLen, CharacterMetric* pArray, bool bVertical ) const
{
@@ -1861,7 +1861,7 @@ bool PrintFontManager::getMetrics( fontID nFontID, const sal_Unicode* pString, i
return true;
}
-// -------------------------------------------------------------------------
+
bool PrintFontManager::getMetrics( fontID nFontID, sal_Unicode minCharacter, sal_Unicode maxCharacter, CharacterMetric* pArray, bool bVertical ) const
{
@@ -1910,7 +1910,7 @@ bool PrintFontManager::getMetrics( fontID nFontID, sal_Unicode minCharacter, sal
return true;
}
-// -------------------------------------------------------------------------
+
// TODO: move most of this stuff into the central font-subsetting code
bool PrintFontManager::createFontSubset(
@@ -2143,7 +2143,7 @@ void PrintFontManager::getGlyphWidths( fontID nFont,
}
}
-// -------------------------------------------------------------------------
+
const std::map< sal_Unicode, sal_Int32 >* PrintFontManager::getEncodingMap( fontID nFont, const std::map< sal_Unicode, OString >** pNonEncoded ) const
{
@@ -2160,7 +2160,7 @@ const std::map< sal_Unicode, sal_Int32 >* PrintFontManager::getEncodingMap( font
return pFont->m_aEncodingVector.size() ? &pFont->m_aEncodingVector : NULL;
}
-// -------------------------------------------------------------------------
+
std::list< OString > PrintFontManager::getAdobeNameFromUnicode( sal_Unicode aChar ) const
{
@@ -2182,7 +2182,7 @@ std::list< OString > PrintFontManager::getAdobeNameFromUnicode( sal_Unicode aCha
return aRet;
}
-// -------------------------------------------------------------------------
+
std::list< sal_Unicode > PrintFontManager::getUnicodeFromAdobeName( const OString& rName ) const
{
std::pair< boost::unordered_multimap< OString, sal_Unicode, OStringHash >::const_iterator,
diff --git a/vcl/generic/fontmanager/fontsubst.cxx b/vcl/generic/fontmanager/fontsubst.cxx
index 7b2394cfcc6a..4a9d5572735a 100644
--- a/vcl/generic/fontmanager/fontsubst.cxx
+++ b/vcl/generic/fontmanager/fontsubst.cxx
@@ -114,7 +114,7 @@ void SalGenericInstance::RegisterFontSubstitutors( ImplDevFontList* pList )
}
}
-// -----------------------------------------------------------------------
+
static FontSelectPattern GetFcSubstitute(const FontSelectPattern &rFontSelData, OUString& rMissingCodes )
{
@@ -152,7 +152,7 @@ namespace
};
}
-//--------------------------------------------------------------------------
+
bool FcPreMatchSubstititution::FindFontSubstitute( FontSelectPattern &rFontSelData ) const
{
@@ -219,7 +219,7 @@ bool FcPreMatchSubstititution::FindFontSubstitute( FontSelectPattern &rFontSelDa
return bHaveSubstitute;
}
-// -----------------------------------------------------------------------
+
bool FcGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFontSelData,
OUString& rMissingCodes ) const
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx
index 42be83680f3b..53ccd83c055a 100644
--- a/vcl/generic/glyphs/gcach_ftyp.cxx
+++ b/vcl/generic/glyphs/gcach_ftyp.cxx
@@ -88,7 +88,7 @@ static void InitGammaTable()
}
}
-// -----------------------------------------------------------------------
+
static FT_Library aLibFT = 0;
@@ -99,7 +99,7 @@ typedef ::boost::unordered_map<const char*, boost::shared_ptr<FtFontFile>, rtl::
namespace { struct vclFontFileList : public rtl::Static< FontFileList, vclFontFileList > {}; }
-// -----------------------------------------------------------------------
+
// TODO: remove when the priorities are selected by UI
// if (AH==0) => disable autohinting
@@ -142,7 +142,7 @@ FtFontFile::FtFontFile( const OString& rNativeFileName )
}
}
-// -----------------------------------------------------------------------
+
FtFontFile* FtFontFile::FindFontFile( const OString& rNativeFileName )
{
@@ -160,7 +160,7 @@ FtFontFile* FtFontFile::FindFontFile( const OString& rNativeFileName )
return pFontFile;
}
-// -----------------------------------------------------------------------
+
bool FtFontFile::Map()
{
@@ -189,7 +189,7 @@ bool FtFontFile::Map()
return (mpFileMap != NULL);
}
-// -----------------------------------------------------------------------
+
void FtFontFile::Unmap()
{
@@ -253,7 +253,7 @@ FtFontInfo::FtFontInfo( const ImplDevFontAttributes& rDevFontAttributes,
maDevFontAttributes.mnQuality += mpFontFile->GetLangBoost();
}
-// -----------------------------------------------------------------------
+
FtFontInfo::~FtFontInfo()
{
@@ -273,7 +273,7 @@ void FtFontInfo::InitHashes() const
mpGlyph2Char = new Int2IntMap();
}
-// -----------------------------------------------------------------------
+
FT_FaceRec_* FtFontInfo::GetFaceFT()
{
@@ -313,7 +313,7 @@ GraphiteFaceWrapper * FtFontInfo::GetGraphiteFace()
}
#endif
-// -----------------------------------------------------------------------
+
void FtFontInfo::ReleaseFaceFT()
{
@@ -325,7 +325,7 @@ void FtFontInfo::ReleaseFaceFT()
}
}
-// -----------------------------------------------------------------------
+
static unsigned GetUInt( const unsigned char* p ) { return((p[0]<<24)+(p[1]<<16)+(p[2]<<8)+p[3]);}
static unsigned GetUShort( const unsigned char* p ){ return((p[0]<<8)+p[1]);}
@@ -371,7 +371,7 @@ const unsigned char* FtFontInfo::GetTable( const char* pTag, sal_uLong* pLength
return NULL;
}
-// -----------------------------------------------------------------------
+
void FtFontInfo::AnnounceFont( ImplDevFontList* pFontList )
{
@@ -406,7 +406,7 @@ FreetypeManager::FreetypeManager()
vclFontFileList::get();
}
-// -----------------------------------------------------------------------
+
FT_Face ServerFont::GetFtFace() const
{
@@ -415,14 +415,14 @@ FT_Face ServerFont::GetFtFace() const
return maFaceFT;
}
-// -----------------------------------------------------------------------
+
FreetypeManager::~FreetypeManager()
{
ClearFontList();
}
-// -----------------------------------------------------------------------
+
void FreetypeManager::AddFontFile( const OString& rNormalizedName,
int nFaceNum, sal_IntPtr nFontId, const ImplDevFontAttributes& rDevFontAttr)
@@ -440,7 +440,7 @@ void FreetypeManager::AddFontFile( const OString& rNormalizedName,
mnMaxFontId = nFontId;
}
-// -----------------------------------------------------------------------
+
void FreetypeManager::AnnounceFonts( ImplDevFontList* pToAdd ) const
{
@@ -451,7 +451,7 @@ void FreetypeManager::AnnounceFonts( ImplDevFontList* pToAdd ) const
}
}
-// -----------------------------------------------------------------------
+
void FreetypeManager::ClearFontList( )
{
@@ -463,7 +463,7 @@ void FreetypeManager::ClearFontList( )
maFontList.clear();
}
-// -----------------------------------------------------------------------
+
ServerFont* FreetypeManager::CreateFont( const FontSelectPattern& rFSD )
{
@@ -493,7 +493,7 @@ ImplFTSFontData::ImplFTSFontData( FtFontInfo* pFI, const ImplDevFontAttributes&
mbOrientation = true;
}
-// -----------------------------------------------------------------------
+
ImplFontEntry* ImplFTSFontData::CreateFontInstance( FontSelectPattern& rFSD ) const
{
@@ -667,7 +667,7 @@ bool ServerFont::TestFont() const
return mbFaceOk;
}
-// -----------------------------------------------------------------------
+
ServerFont::~ServerFont()
{
@@ -682,14 +682,14 @@ ServerFont::~ServerFont()
ReleaseFromGarbageCollect();
}
- // -----------------------------------------------------------------------
+
int ServerFont::GetEmUnits() const
{
return maFaceFT->units_per_EM;
}
-// -----------------------------------------------------------------------
+
void ServerFont::FetchFontMetric( ImplFontMetricData& rTo, long& rFactor ) const
{
@@ -813,7 +813,7 @@ void ServerFont::FetchFontMetric( ImplFontMetricData& rTo, long& rFactor ) const
}
}
-// -----------------------------------------------------------------------
+
static inline void SplitGlyphFlags( const ServerFont& rFont, sal_GlyphId& rGlyphId, int& nGlyphFlags )
{
@@ -824,7 +824,7 @@ static inline void SplitGlyphFlags( const ServerFont& rFont, sal_GlyphId& rGlyph
rGlyphId = rFont.GetRawGlyphIndex( rGlyphId );
}
-// -----------------------------------------------------------------------
+
int ServerFont::ApplyGlyphTransform( int nGlyphFlags,
FT_Glyph pGlyphFT, bool bForBitmapProcessing ) const
@@ -899,7 +899,7 @@ int ServerFont::ApplyGlyphTransform( int nGlyphFlags,
return nAngle;
}
-// -----------------------------------------------------------------------
+
sal_GlyphId ServerFont::GetRawGlyphIndex(sal_UCS4 aChar, sal_UCS4 aVS) const
{
@@ -944,7 +944,7 @@ sal_GlyphId ServerFont::GetRawGlyphIndex(sal_UCS4 aChar, sal_UCS4 aVS) const
return sal_GlyphId( nGlyphIndex);
}
-// -----------------------------------------------------------------------
+
sal_GlyphId ServerFont::FixupGlyphIndex( sal_GlyphId aGlyphId, sal_UCS4 aChar ) const
{
@@ -981,7 +981,7 @@ sal_GlyphId ServerFont::FixupGlyphIndex( sal_GlyphId aGlyphId, sal_UCS4 aChar )
}
-// -----------------------------------------------------------------------
+
sal_GlyphId ServerFont::GetGlyphIndex( sal_UCS4 aChar ) const
{
@@ -990,7 +990,7 @@ sal_GlyphId ServerFont::GetGlyphIndex( sal_UCS4 aChar ) const
return aGlyphId;
}
-// -----------------------------------------------------------------------
+
static int lcl_GetCharWidth( FT_FaceRec_* pFaceFT, double fStretch, int nGlyphFlags )
{
@@ -1005,7 +1005,7 @@ static int lcl_GetCharWidth( FT_FaceRec_* pFaceFT, double fStretch, int nGlyphFl
return (nCharWidth + 32) >> 6;
}
-// -----------------------------------------------------------------------
+
void ServerFont::InitGlyphData( sal_GlyphId aGlyphId, GlyphData& rGD ) const
{
@@ -1058,7 +1058,7 @@ void ServerFont::InitGlyphData( sal_GlyphId aGlyphId, GlyphData& rGD ) const
FT_Done_Glyph( pGlyphFT );
}
-// -----------------------------------------------------------------------
+
bool ServerFont::GetAntialiasAdvice( void ) const
{
@@ -1069,7 +1069,7 @@ bool ServerFont::GetAntialiasAdvice( void ) const
return bAdviseAA;
}
-// -----------------------------------------------------------------------
+
bool ServerFont::GetGlyphBitmap1( sal_GlyphId aGlyphId, RawBitmap& rRawBitmap ) const
{
@@ -1211,7 +1211,7 @@ bool ServerFont::GetGlyphBitmap1( sal_GlyphId aGlyphId, RawBitmap& rRawBitmap )
return true;
}
-// -----------------------------------------------------------------------
+
bool ServerFont::GetGlyphBitmap8( sal_GlyphId aGlyphId, RawBitmap& rRawBitmap ) const
{
@@ -1344,9 +1344,9 @@ bool ServerFont::GetGlyphBitmap8( sal_GlyphId aGlyphId, RawBitmap& rRawBitmap )
return true;
}
-// -----------------------------------------------------------------------
+
// determine unicode ranges in font
-// -----------------------------------------------------------------------
+
const ImplFontCharMap* ServerFont::GetImplFontCharMap( void ) const
{
@@ -1444,9 +1444,9 @@ bool ServerFont::GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) c
return bRet;
}
-// -----------------------------------------------------------------------
+
// outline stuff
-// -----------------------------------------------------------------------
+
class PolyArgs
{
@@ -1473,7 +1473,7 @@ private:
bool bHasOffline;
};
-// -----------------------------------------------------------------------
+
PolyArgs::PolyArgs( PolyPolygon& rPolyPoly, sal_uInt16 nMaxPoints )
: mrPolyPoly(rPolyPoly),
@@ -1487,7 +1487,7 @@ PolyArgs::PolyArgs( PolyPolygon& rPolyPoly, sal_uInt16 nMaxPoints )
maPosition.x = maPosition.y = 0;
}
-// -----------------------------------------------------------------------
+
PolyArgs::~PolyArgs()
@@ -1496,7 +1496,7 @@ PolyArgs::~PolyArgs()
delete[] mpPointAry;
}
-// -----------------------------------------------------------------------
+
void PolyArgs::AddPoint( long nX, long nY, PolyFlags aFlag )
{
@@ -1511,7 +1511,7 @@ void PolyArgs::AddPoint( long nX, long nY, PolyFlags aFlag )
bHasOffline |= (aFlag != POLY_NORMAL);
}
-// -----------------------------------------------------------------------
+
void PolyArgs::ClosePolygon()
{
@@ -1557,7 +1557,7 @@ void PolyArgs::ClosePolygon()
bHasOffline = false;
}
-// -----------------------------------------------------------------------
+
extern "C" {
@@ -1610,7 +1610,7 @@ static int FT_cubic_to( FT_Vector_CPtr p1, FT_Vector_CPtr p2, FT_Vector_CPtr p3,
} // extern "C"
-// -----------------------------------------------------------------------
+
bool ServerFont::GetGlyphOutline( sal_GlyphId aGlyphId,
::basegfx::B2DPolyPolygon& rB2DPolyPoly ) const
@@ -1688,7 +1688,7 @@ bool ServerFont::GetGlyphOutline( sal_GlyphId aGlyphId,
return true;
}
-// -----------------------------------------------------------------------
+
bool ServerFont::ApplyGSUB( const FontSelectPattern& rFSD )
{
diff --git a/vcl/generic/glyphs/gcach_layout.cxx b/vcl/generic/glyphs/gcach_layout.cxx
index dcf21965801c..67eafe8a86c8 100644
--- a/vcl/generic/glyphs/gcach_layout.cxx
+++ b/vcl/generic/glyphs/gcach_layout.cxx
@@ -51,14 +51,14 @@ void ServerFontLayout::DrawText( SalGraphics& rSalGraphics ) const
rSalGraphics.DrawServerFontLayout( *this );
}
-// -----------------------------------------------------------------------
+
bool ServerFontLayout::LayoutText( ImplLayoutArgs& rArgs )
{
return mrServerFont.GetLayoutEngine()->layout(*this, rArgs);
}
-// -----------------------------------------------------------------------
+
void ServerFontLayout::AdjustLayout( ImplLayoutArgs& rArgs )
{
GenericSalLayout::AdjustLayout( rArgs );
diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx
index 501260b22608..3fb28d2f17e2 100644
--- a/vcl/generic/print/genprnpsp.cxx
+++ b/vcl/generic/print/genprnpsp.cxx
@@ -1317,7 +1317,7 @@ void PrinterUpdate::doUpdate()
pInst->PostPrintersChanged();
}
-// -----------------------------------------------------------------------
+
IMPL_STATIC_LINK_NOINSTANCE( PrinterUpdate, UpdateTimerHdl, void*, EMPTYARG )
{
diff --git a/vcl/generic/print/genpspgraphics.cxx b/vcl/generic/print/genpspgraphics.cxx
index f4e4dc3d5701..50927df0ef59 100644
--- a/vcl/generic/print/genpspgraphics.cxx
+++ b/vcl/generic/print/genpspgraphics.cxx
@@ -578,14 +578,14 @@ public:
static bool CheckFontData( const PhysicalFontFace& r ) { return r.CheckMagic( PSPFD_MAGIC ); }
};
-//--------------------------------------------------------------------------
+
ImplPspFontData::ImplPspFontData( const psp::FastPrintFontInfo& rInfo )
: PhysicalFontFace( GenPspGraphics::Info2DevFontAttributes(rInfo), PSPFD_MAGIC ),
mnFontId( rInfo.m_nID )
{}
-//--------------------------------------------------------------------------
+
ImplFontEntry* ImplPspFontData::CreateFontInstance( FontSelectPattern& rFSD ) const
{
@@ -612,7 +612,7 @@ private:
bool mbArtBold;
};
-//--------------------------------------------------------------------------
+
PspFontLayout::PspFontLayout( ::psp::PrinterGfx& rGfx )
: mrPrinterGfx( rGfx )
@@ -625,7 +625,7 @@ PspFontLayout::PspFontLayout( ::psp::PrinterGfx& rGfx )
mbArtBold = mrPrinterGfx.GetArtificialBold();
}
-//--------------------------------------------------------------------------
+
bool PspFontLayout::LayoutText( ImplLayoutArgs& rArgs )
{
@@ -725,7 +725,7 @@ void PspServerFontLayout::InitFont() const
mnOrientation, mbVertical, mbArtItalic, mbArtBold );
}
-//--------------------------------------------------------------------------
+
static void DrawPrinterLayout( const SalLayout& rLayout, ::psp::PrinterGfx& rGfx, bool bIsPspServerFontLayout )
{
@@ -782,7 +782,7 @@ static void DrawPrinterLayout( const SalLayout& rLayout, ::psp::PrinterGfx& rGfx
}
}
-//--------------------------------------------------------------------------
+
void PspFontLayout::InitFont() const
{
@@ -790,7 +790,7 @@ void PspFontLayout::InitFont() const
mnOrientation, mbVertical, mbArtItalic, mbArtBold );
}
-//--------------------------------------------------------------------------
+
void PspFontLayout::DrawText( SalGraphics& ) const
{
@@ -1006,7 +1006,7 @@ SalLayout* GenPspGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLe
return pLayout;
}
-//--------------------------------------------------------------------------
+
bool GenPspGraphics::CreateFontSubset(
const OUString& rToFile,
@@ -1036,7 +1036,7 @@ bool GenPspGraphics::CreateFontSubset(
return bSuccess;
}
-//--------------------------------------------------------------------------
+
const Ucs2SIntMap* GenPspGraphics::GetFontEncodingVector( const PhysicalFontFace* pFont, const Ucs2OStrMap** pNonEncoded )
{
@@ -1049,7 +1049,7 @@ const Ucs2SIntMap* GenPspGraphics::GetFontEncodingVector( const PhysicalFontFace
return GenPspGraphics::DoGetFontEncodingVector( aFont, pNonEncoded );
}
-//--------------------------------------------------------------------------
+
void GenPspGraphics::GetGlyphWidths( const PhysicalFontFace* pFont,
bool bVertical,
@@ -1088,7 +1088,7 @@ void GenPspGraphics::DoGetGlyphWidths( psp::fontID aFont,
psp::PrintFontManager& rMgr = psp::PrintFontManager::get();
rMgr.getGlyphWidths( aFont, bVertical, rWidths, rUnicodeEnc );
}
-// ----------------------------------------------------------------------------
+
ImplDevFontAttributes GenPspGraphics::Info2DevFontAttributes( const psp::FastPrintFontInfo& rInfo )
{
@@ -1165,7 +1165,7 @@ namespace vcl
}
}
-// -----------------------------------------------------------------------
+
void GenPspGraphics::AnnounceFonts( ImplDevFontList* pFontList, const psp::FastPrintFontInfo& aInfo )
{
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index 7a43eb1f326c..cdf0e182c66a 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -380,9 +380,9 @@ void* SvpSalInstance::GetConnectionIdentifier( ConnectionIdentifierType& rReturn
return const_cast<char*>("");
}
-// ---------------
+
// - SalTimer -
-// ---------------
+
void SvpSalInstance::StopTimer()
{
diff --git a/vcl/osx/HtmlFmtFlt.cxx b/vcl/osx/HtmlFmtFlt.cxx
index 74779df5a11e..c45e7f856584 100644
--- a/vcl/osx/HtmlFmtFlt.cxx
+++ b/vcl/osx/HtmlFmtFlt.cxx
@@ -29,7 +29,7 @@
using namespace com::sun::star::uno;
-//------------------------------------------------------------------------------
+
// converts the openoffice text/html clipboard format to the HTML Format
// well known under MS Windows
// the MS HTML Format has a header before the real html data
@@ -52,7 +52,7 @@ using namespace com::sun::star::uno;
// The fragment should be preceded and followed by the HTML comments
// <!--StartFragment--> and <!--EndFragment--> (no space between !-- and the
// text
-//------------------------------------------------------------------------------
+
namespace // private
{
diff --git a/vcl/osx/a11yfocuslistener.cxx b/vcl/osx/a11yfocuslistener.cxx
index c4e296072868..225473069d28 100644
--- a/vcl/osx/a11yfocuslistener.cxx
+++ b/vcl/osx/a11yfocuslistener.cxx
@@ -31,7 +31,7 @@ using namespace ::com::sun::star::uno;
rtl::Reference< AquaA11yFocusListener > AquaA11yFocusListener::theListener;
-//------------------------------------------------------------------------------
+
rtl::Reference< AquaA11yFocusListener > AquaA11yFocusListener::get()
{
@@ -41,13 +41,13 @@ rtl::Reference< AquaA11yFocusListener > AquaA11yFocusListener::get()
return theListener;
}
-//------------------------------------------------------------------------------
+
AquaA11yFocusListener::AquaA11yFocusListener() : m_focusedObject(nil)
{
}
-//------------------------------------------------------------------------------
+
id AquaA11yFocusListener::getFocusedUIElement()
{
@@ -67,7 +67,7 @@ id AquaA11yFocusListener::getFocusedUIElement()
return m_focusedObject;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL
AquaA11yFocusListener::focusedObjectChanged(const Reference< XAccessible >& xAccessible)
@@ -91,7 +91,7 @@ AquaA11yFocusListener::focusedObjectChanged(const Reference< XAccessible >& xAcc
}
}
-//------------------------------------------------------------------------------
+
oslInterlockedCount SAL_CALL
AquaA11yFocusListener::acquire() SAL_THROW(())
@@ -99,7 +99,7 @@ AquaA11yFocusListener::acquire() SAL_THROW(())
return ReferenceObject::acquire();
}
-//------------------------------------------------------------------------------
+
oslInterlockedCount SAL_CALL
AquaA11yFocusListener::release() SAL_THROW(())
diff --git a/vcl/osx/a11yfocustracker.cxx b/vcl/osx/a11yfocustracker.cxx
index 1017969c879a..cbd634251fab 100644
--- a/vcl/osx/a11yfocustracker.cxx
+++ b/vcl/osx/a11yfocustracker.cxx
@@ -36,7 +36,7 @@
using namespace ::com::sun::star::accessibility;
using namespace ::com::sun::star::uno;
-//------------------------------------------------------------------------------
+
static inline Window *
getWindow(const ::VclSimpleEvent *pEvent)
@@ -45,7 +45,7 @@ getWindow(const ::VclSimpleEvent *pEvent)
}
-//------------------------------------------------------------------------------
+
// callback function for Application::addEventListener
@@ -94,7 +94,7 @@ long AquaA11yFocusTracker::WindowEventHandler(AquaA11yFocusTracker *pFocusTracke
return 0;
}
-//------------------------------------------------------------------------------
+
AquaA11yFocusTracker::AquaA11yFocusTracker() :
m_aWindowEventLink(this, (PSTUB) WindowEventHandler),
@@ -104,7 +104,7 @@ AquaA11yFocusTracker::AquaA11yFocusTracker() :
window_got_focus(Application::GetFocusWindow());
}
-//------------------------------------------------------------------------------
+
void AquaA11yFocusTracker::setFocusedObject(const Reference< XAccessible >& xAccessible)
{
@@ -117,7 +117,7 @@ void AquaA11yFocusTracker::setFocusedObject(const Reference< XAccessible >& xAcc
}
}
-//------------------------------------------------------------------------------
+
void AquaA11yFocusTracker::notify_toolbox_item_focus(ToolBox *pToolBox)
{
@@ -136,7 +136,7 @@ void AquaA11yFocusTracker::notify_toolbox_item_focus(ToolBox *pToolBox)
}
}
-//------------------------------------------------------------------------------
+
void AquaA11yFocusTracker::toolbox_open_floater(Window *pWindow)
{
@@ -171,7 +171,7 @@ void AquaA11yFocusTracker::toolbox_open_floater(Window *pWindow)
}
}
-//------------------------------------------------------------------------------
+
void AquaA11yFocusTracker::toolbox_highlight_on(Window *pWindow)
{
@@ -186,7 +186,7 @@ void AquaA11yFocusTracker::toolbox_highlight_on(Window *pWindow)
notify_toolbox_item_focus(static_cast <ToolBox *> (pWindow));
}
-//------------------------------------------------------------------------------
+
void AquaA11yFocusTracker::toolbox_highlight_off(Window *pWindow)
{
@@ -197,7 +197,7 @@ void AquaA11yFocusTracker::toolbox_highlight_off(Window *pWindow)
notify_toolbox_item_focus( pToolBoxParent );
}
-//------------------------------------------------------------------------------
+
void AquaA11yFocusTracker::tabpage_activated(Window *pWindow)
{
@@ -212,7 +212,7 @@ void AquaA11yFocusTracker::tabpage_activated(Window *pWindow)
}
}
-//------------------------------------------------------------------------------
+
void AquaA11yFocusTracker::menu_highlighted(const VclMenuEvent *pEvent)
{
@@ -227,7 +227,7 @@ void AquaA11yFocusTracker::menu_highlighted(const VclMenuEvent *pEvent)
}
}
-//------------------------------------------------------------------------------
+
void AquaA11yFocusTracker::window_got_focus(Window *pWindow)
{
diff --git a/vcl/osx/a11ylistener.cxx b/vcl/osx/a11ylistener.cxx
index dafabb7133c2..46d699c6f859 100644
--- a/vcl/osx/a11ylistener.cxx
+++ b/vcl/osx/a11ylistener.cxx
@@ -50,21 +50,21 @@ NSString * getTableNotification( const AccessibleEventObject& aEvent )
return notification;
}
-//------------------------------------------------------------------------------
+
AquaA11yEventListener::AquaA11yEventListener(id wrapperObject, sal_Int16 role) : m_wrapperObject(wrapperObject), m_role(role)
{
[ m_wrapperObject retain ];
}
-//------------------------------------------------------------------------------
+
AquaA11yEventListener::~AquaA11yEventListener()
{
[ m_wrapperObject release ];
}
-//------------------------------------------------------------------------------
+
void SAL_CALL
AquaA11yEventListener::disposing( const EventObject& ) throw( RuntimeException )
@@ -72,7 +72,7 @@ AquaA11yEventListener::disposing( const EventObject& ) throw( RuntimeException )
[ AquaA11yFactory removeFromWrapperRepositoryFor: [ (AquaA11yWrapper *) m_wrapperObject accessibleContext ] ];
}
-//------------------------------------------------------------------------------
+
void SAL_CALL
AquaA11yEventListener::notifyEvent( const AccessibleEventObject& aEvent ) throw( RuntimeException )
diff --git a/vcl/osx/documentfocuslistener.cxx b/vcl/osx/documentfocuslistener.cxx
index ac65f1e84338..da69778292e6 100644
--- a/vcl/osx/documentfocuslistener.cxx
+++ b/vcl/osx/documentfocuslistener.cxx
@@ -30,14 +30,14 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::uno;
-//------------------------------------------------------------------------------
+
DocumentFocusListener::DocumentFocusListener(AquaA11yFocusTracker& rTracker) :
m_aFocusTracker(rTracker)
{
}
-//------------------------------------------------------------------------------
+
void SAL_CALL
DocumentFocusListener::disposing( const EventObject& aEvent )
@@ -49,7 +49,7 @@ DocumentFocusListener::disposing( const EventObject& aEvent )
m_aRefList.erase(aEvent.Source);
}
-//------------------------------------------------------------------------------
+
void SAL_CALL
DocumentFocusListener::notifyEvent( const AccessibleEventObject& aEvent )
@@ -97,7 +97,7 @@ DocumentFocusListener::notifyEvent( const AccessibleEventObject& aEvent )
}
}
-//------------------------------------------------------------------------------
+
Reference< XAccessible > DocumentFocusListener::getAccessible(const EventObject& aEvent )
throw (IndexOutOfBoundsException, RuntimeException)
@@ -125,7 +125,7 @@ Reference< XAccessible > DocumentFocusListener::getAccessible(const EventObject&
return Reference< XAccessible >();
}
-//------------------------------------------------------------------------------
+
void DocumentFocusListener::attachRecursive(const Reference< XAccessible >& xAccessible)
throw (IndexOutOfBoundsException, RuntimeException)
@@ -136,7 +136,7 @@ void DocumentFocusListener::attachRecursive(const Reference< XAccessible >& xAcc
attachRecursive(xAccessible, xContext);
}
-//------------------------------------------------------------------------------
+
void DocumentFocusListener::attachRecursive(
const Reference< XAccessible >& xAccessible,
@@ -152,7 +152,7 @@ void DocumentFocusListener::attachRecursive(
}
}
-//------------------------------------------------------------------------------
+
void DocumentFocusListener::attachRecursive(
const Reference< XAccessible >& xAccessible,
@@ -185,7 +185,7 @@ void DocumentFocusListener::attachRecursive(
}
}
-//------------------------------------------------------------------------------
+
void DocumentFocusListener::detachRecursive(const Reference< XAccessible >& xAccessible)
throw (IndexOutOfBoundsException, RuntimeException)
@@ -196,7 +196,7 @@ void DocumentFocusListener::detachRecursive(const Reference< XAccessible >& xAcc
detachRecursive(xAccessible, xContext);
}
-//------------------------------------------------------------------------------
+
void DocumentFocusListener::detachRecursive(
const Reference< XAccessible >& xAccessible,
@@ -209,7 +209,7 @@ void DocumentFocusListener::detachRecursive(
detachRecursive(xAccessible, xContext, xStateSet);
}
-//------------------------------------------------------------------------------
+
void DocumentFocusListener::detachRecursive(
const Reference< XAccessible >&,
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 3ce28c9a2588..71a951c42d68 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -94,7 +94,7 @@ AquaSalFrame::AquaSalFrame( SalFrame* pParent, sal_uLong salFrameStyle ) :
pSalData->maFrameCheck.insert( this );
}
-// -----------------------------------------------------------------------
+
AquaSalFrame::~AquaSalFrame()
{
@@ -130,7 +130,7 @@ AquaSalFrame::~AquaSalFrame()
[mpNSWindow release];
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::initWindowAndView()
{
@@ -217,7 +217,7 @@ void AquaSalFrame::initWindowAndView()
[mpNSWindow setContentView: mpNSView];
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::CocoaToVCL( NSRect& io_rRect, bool bRelativeToScreen )
{
@@ -251,7 +251,7 @@ void AquaSalFrame::VCLToCocoa( NSPoint& io_rPoint, bool bRelativeToScreen )
io_rPoint.y = maGeometry.nHeight - io_rPoint.y;
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::screenParametersChanged()
{
@@ -262,7 +262,7 @@ void AquaSalFrame::screenParametersChanged()
CallCallback( SALEVENT_DISPLAYCHANGED, 0 );
}
-// -----------------------------------------------------------------------
+
SalGraphics* AquaSalFrame::GetGraphics()
{
@@ -279,7 +279,7 @@ SalGraphics* AquaSalFrame::GetGraphics()
return mpGraphics;
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::ReleaseGraphics( SalGraphics *pGraphics )
{
@@ -288,7 +288,7 @@ void AquaSalFrame::ReleaseGraphics( SalGraphics *pGraphics )
mbGraphics = FALSE;
}
-// -----------------------------------------------------------------------
+
bool AquaSalFrame::PostEvent( void *pData )
{
@@ -296,7 +296,7 @@ bool AquaSalFrame::PostEvent( void *pData )
return TRUE;
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetTitle(const OUString& rTitle)
{
if ( !mpNSWindow )
@@ -333,13 +333,13 @@ void AquaSalFrame::SetTitle(const OUString& rTitle)
[pTitle release];
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetIcon( sal_uInt16 )
{
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetRepresentedURL( const OUString& i_rDocURL )
{
@@ -359,7 +359,7 @@ void AquaSalFrame::SetRepresentedURL( const OUString& i_rDocURL )
}
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::initShow()
{
@@ -412,7 +412,7 @@ void AquaSalFrame::SendPaintEvent( const Rectangle* pRect )
CallCallback(SALEVENT_PAINT, &aPaintEvt);
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::Show(sal_Bool bVisible, sal_Bool bNoActivate)
{
@@ -475,13 +475,13 @@ void AquaSalFrame::Show(sal_Bool bVisible, sal_Bool bNoActivate)
}
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::Enable( sal_Bool )
{
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetMinClientSize( long nWidth, long nHeight )
{
@@ -506,7 +506,7 @@ void AquaSalFrame::SetMinClientSize( long nWidth, long nHeight )
}
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetMaxClientSize( long nWidth, long nHeight )
{
@@ -535,7 +535,7 @@ void AquaSalFrame::SetMaxClientSize( long nWidth, long nHeight )
}
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetClientSize( long nWidth, long nHeight )
{
@@ -554,7 +554,7 @@ void AquaSalFrame::SetClientSize( long nWidth, long nHeight )
}
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::GetClientSize( long& rWidth, long& rHeight )
{
@@ -570,7 +570,7 @@ void AquaSalFrame::GetClientSize( long& rWidth, long& rHeight )
}
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetWindowState( const SalFrameState* pState )
{
@@ -646,7 +646,7 @@ void AquaSalFrame::SetWindowState( const SalFrameState* pState )
}
}
-// -----------------------------------------------------------------------
+
bool AquaSalFrame::GetWindowState( SalFrameState* pState )
{
@@ -680,7 +680,7 @@ bool AquaSalFrame::GetWindowState( SalFrameState* pState )
return TRUE;
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetScreenNumber(unsigned int nScreen)
{
@@ -720,7 +720,7 @@ void AquaSalFrame::SetApplicationID( const OUString &/*rApplicationID*/ )
{
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::ShowFullScreen( bool bFullScreen, sal_Int32 nDisplay )
{
@@ -817,7 +817,7 @@ void AquaSalFrame::ShowFullScreen( bool bFullScreen, sal_Int32 nDisplay )
SendPaintEvent();
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::StartPresentation( sal_Bool bStart )
{
@@ -846,13 +846,13 @@ void AquaSalFrame::StartPresentation( sal_Bool bStart )
}
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetAlwaysOnTop( sal_Bool )
{
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::ToTop(sal_uInt16 nFlags)
{
@@ -873,7 +873,7 @@ void AquaSalFrame::ToTop(sal_uInt16 nFlags)
[mpNSWindow orderFront: NSApp];
}
-// -----------------------------------------------------------------------
+
NSCursor* AquaSalFrame::getCurrentCursor() const
{
@@ -929,7 +929,7 @@ void AquaSalFrame::SetPointer( PointerStyle ePointerStyle )
[mpNSWindow invalidateCursorRectsForView: mpNSView];
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetPointerPos( long nX, long nY )
{
@@ -941,7 +941,7 @@ void AquaSalFrame::SetPointerPos( long nX, long nY )
CGDisplayMoveCursorToPoint( mainDisplayID, aPoint );
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::Flush( void )
{
@@ -963,7 +963,7 @@ void AquaSalFrame::Flush( void )
}
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::Flush( const Rectangle& rRect )
{
@@ -986,7 +986,7 @@ void AquaSalFrame::Flush( const Rectangle& rRect )
}
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::Sync()
{
@@ -1000,7 +1000,7 @@ void AquaSalFrame::Sync()
}
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetInputContext( SalInputContext* pContext )
{
@@ -1016,13 +1016,13 @@ void AquaSalFrame::SetInputContext( SalInputContext* pContext )
return;
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::EndExtTextInput( sal_uInt16 )
{
}
-// -----------------------------------------------------------------------
+
OUString AquaSalFrame::GetKeyName( sal_uInt16 nKeyCode )
{
@@ -1109,7 +1109,7 @@ OUString AquaSalFrame::GetKeyName( sal_uInt16 nKeyCode )
return aResult.makeStringAndClear();
}
-// -----------------------------------------------------------------------
+
static void getAppleScrollBarVariant(StyleSettings &rSettings)
{
@@ -1308,21 +1308,21 @@ void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
[mpNSView unlockFocus];
}
-// -----------------------------------------------------------------------
+
const SystemEnvData* AquaSalFrame::GetSystemData() const
{
return &maSysData;
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::Beep()
{
NSBeep();
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::SetPosSize(long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags)
{
@@ -1643,7 +1643,7 @@ void AquaSalFrame::UpdateFrameGeometry()
maGeometry.nHeight = static_cast<unsigned int>(aContentRect.size.height);
}
-// -----------------------------------------------------------------------
+
void AquaSalFrame::CaptureMouse( sal_Bool bCapture )
{
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index e960e8db82bd..b8172e153cf7 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -70,7 +70,7 @@ static int* gpnInit = 0;
static NSMenu* pDockMenu = nil;
static bool bNoSVMain = true;
static bool bLeftMain = false;
-// -----------------------------------------------------------------------
+
class AquaDelayedSettingsChanged : public Timer
{
@@ -245,7 +245,7 @@ void SalAbort( const OUString& rErrorText, bool bDumpCore )
_exit(1);
}
-// -----------------------------------------------------------------------
+
void InitSalData()
{
@@ -253,7 +253,7 @@ void InitSalData()
SetSalData( pSalData );
}
-// -----------------------------------------------------------------------
+
const OUString& SalGetDesktopEnvironment()
{
@@ -261,7 +261,7 @@ const OUString& SalGetDesktopEnvironment()
return aDesktopEnvironment;
}
-// -----------------------------------------------------------------------
+
void DeInitSalData()
{
@@ -275,13 +275,13 @@ void DeInitSalData()
SetSalData( NULL );
}
-// -----------------------------------------------------------------------
+
extern "C" {
#include <crt_externs.h>
}
-// -----------------------------------------------------------------------
+
void InitSalMain()
{
@@ -325,7 +325,7 @@ bool SalYieldMutex::tryToAcquire()
return false;
}
-// -----------------------------------------------------------------------
+
// some convenience functions regarding the yield mutex, aka solar mutex
@@ -382,14 +382,14 @@ SalInstance* CreateSalInstance()
return pInst;
}
-// -----------------------------------------------------------------------
+
void DestroySalInstance( SalInstance* pInst )
{
delete pInst;
}
-// -----------------------------------------------------------------------
+
AquaSalInstance::AquaSalInstance()
{
@@ -403,7 +403,7 @@ AquaSalInstance::AquaSalInstance()
maWaitingYieldCond = osl_createCondition();
}
-// -----------------------------------------------------------------------
+
AquaSalInstance::~AquaSalInstance()
{
@@ -414,7 +414,7 @@ AquaSalInstance::~AquaSalInstance()
osl_destroyCondition( maWaitingYieldCond );
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::wakeupYield()
{
@@ -437,7 +437,7 @@ void AquaSalInstance::wakeupYield()
}
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::PostUserEvent( AquaSalFrame* pFrame, sal_uInt16 nType, void* pData )
{
@@ -449,14 +449,14 @@ void AquaSalInstance::PostUserEvent( AquaSalFrame* pFrame, sal_uInt16 nType, voi
wakeupYield();
}
-// -----------------------------------------------------------------------
+
comphelper::SolarMutex* AquaSalInstance::GetYieldMutex()
{
return mpSalYieldMutex;
}
-// -----------------------------------------------------------------------
+
sal_uLong AquaSalInstance::ReleaseYieldMutex()
{
@@ -478,7 +478,7 @@ sal_uLong AquaSalInstance::ReleaseYieldMutex()
return 0;
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::AcquireYieldMutex( sal_uLong nCount )
{
@@ -490,7 +490,7 @@ void AquaSalInstance::AcquireYieldMutex( sal_uLong nCount )
}
}
-// -----------------------------------------------------------------------
+
bool AquaSalInstance::CheckYieldMutex()
{
@@ -505,14 +505,14 @@ bool AquaSalInstance::CheckYieldMutex()
return bRet;
}
-// -----------------------------------------------------------------------
+
bool AquaSalInstance::isNSAppThread() const
{
return osl::Thread::getCurrentIdentifier() == maMainThread;
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::handleAppDefinedEvent( NSEvent* pEvent )
{
@@ -611,7 +611,7 @@ void AquaSalInstance::handleAppDefinedEvent( NSEvent* pEvent )
};
}
-// -----------------------------------------------------------------------
+
class ReleasePoolHolder
{
@@ -767,7 +767,7 @@ void AquaSalInstance::Yield( bool bWait, bool bHandleAllCurrentEvents )
}
}
-// -----------------------------------------------------------------------
+
bool AquaSalInstance::AnyInput( sal_uInt16 nType )
{
@@ -813,14 +813,14 @@ bool AquaSalInstance::AnyInput( sal_uInt16 nType )
return (pEvent != NULL);
}
-// -----------------------------------------------------------------------
+
SalFrame* AquaSalInstance::CreateChildFrame( SystemParentData*, sal_uLong /*nSalFrameStyle*/ )
{
return NULL;
}
-// -----------------------------------------------------------------------
+
SalFrame* AquaSalInstance::CreateFrame( SalFrame* pParent, sal_uLong nSalFrameStyle )
{
@@ -830,14 +830,14 @@ SalFrame* AquaSalInstance::CreateFrame( SalFrame* pParent, sal_uLong nSalFrameSt
return pFrame;
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::DestroyFrame( SalFrame* pFrame )
{
delete pFrame;
}
-// -----------------------------------------------------------------------
+
SalObject* AquaSalInstance::CreateObject( SalFrame* pParent, SystemWindowData* /* pWindowData */, sal_Bool /* bShow */ )
{
@@ -850,28 +850,28 @@ SalObject* AquaSalInstance::CreateObject( SalFrame* pParent, SystemWindowData* /
return pObject;
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::DestroyObject( SalObject* pObject )
{
delete ( pObject );
}
-// -----------------------------------------------------------------------
+
SalPrinter* AquaSalInstance::CreatePrinter( SalInfoPrinter* pInfoPrinter )
{
return new AquaSalPrinter( dynamic_cast<AquaSalInfoPrinter*>(pInfoPrinter) );
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::DestroyPrinter( SalPrinter* pPrinter )
{
delete pPrinter;
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
{
@@ -899,20 +899,20 @@ void AquaSalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
}
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::GetPrinterQueueState( SalPrinterQueueInfo* )
{
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo )
{
delete pInfo;
}
-// -----------------------------------------------------------------------
+
OUString AquaSalInstance::GetDefaultPrinter()
{
@@ -938,7 +938,7 @@ OUString AquaSalInstance::GetDefaultPrinter()
return maDefaultPrinter;
}
-// -----------------------------------------------------------------------
+
SalInfoPrinter* AquaSalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
ImplJobSetup* pSetupData )
@@ -957,7 +957,7 @@ SalInfoPrinter* AquaSalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueI
return pNewInfoPrinter;
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter )
{
@@ -967,33 +967,33 @@ void AquaSalInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter )
delete pPrinter;
}
-// -----------------------------------------------------------------------
+
SalSystem* AquaSalInstance::CreateSystem()
{
return new AquaSalSystem();
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::DestroySystem( SalSystem* pSystem )
{
delete pSystem;
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::SetEventCallback( void*, bool(*)(void*,void*,int) )
{
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::SetErrorEventCallback( void*, bool(*)(void*,void*,int) )
{
}
-// -----------------------------------------------------------------------
+
void* AquaSalInstance::GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes )
{
@@ -1065,35 +1065,35 @@ void AquaSalInstance::AddToRecentDocumentList(const OUString& rFileUrl, const OU
}
-// -----------------------------------------------------------------------
+
SalTimer* AquaSalInstance::CreateSalTimer()
{
return new AquaSalTimer();
}
-// -----------------------------------------------------------------------
+
SalSystem* AquaSalInstance::CreateSalSystem()
{
return new AquaSalSystem();
}
-// -----------------------------------------------------------------------
+
SalBitmap* AquaSalInstance::CreateSalBitmap()
{
return new QuartzSalBitmap();
}
-// -----------------------------------------------------------------------
+
SalSession* AquaSalInstance::CreateSalSession()
{
return NULL;
}
-// -----------------------------------------------------------------------
+
class MacImeStatus : public SalI18NImeStatus
{
@@ -1107,7 +1107,7 @@ public:
virtual void toggle() {}
};
-// -----------------------------------------------------------------------
+
SalI18NImeStatus* AquaSalInstance::CreateI18NImeStatus()
{
diff --git a/vcl/osx/salmenu.cxx b/vcl/osx/salmenu.cxx
index 8c6006f549ba..7912825bddaf 100644
--- a/vcl/osx/salmenu.cxx
+++ b/vcl/osx/salmenu.cxx
@@ -950,6 +950,6 @@ AquaSalMenuItem::~AquaSalMenuItem()
[mpMenuItem autorelease];
}
-// -------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/osx/salobj.cxx b/vcl/osx/salobj.cxx
index b0633c355f3e..350903fa665e 100644
--- a/vcl/osx/salobj.cxx
+++ b/vcl/osx/salobj.cxx
@@ -56,7 +56,7 @@ AquaSalObject::AquaSalObject( AquaSalFrame* pFrame ) :
}
}
-// -----------------------------------------------------------------------
+
AquaSalObject::~AquaSalObject()
{
@@ -93,7 +93,7 @@ AquaSalObject::~AquaSalObject()
This is gives us an 80% solution only, though.
*/
-// -----------------------------------------------------------------------
+
void AquaSalObject::ResetClipRegion()
{
@@ -101,21 +101,21 @@ void AquaSalObject::ResetClipRegion()
setClippedPosSize();
}
-// -----------------------------------------------------------------------
+
sal_uInt16 AquaSalObject::GetClipRegionType()
{
return SAL_OBJECT_CLIP_INCLUDERECTS;
}
-// -----------------------------------------------------------------------
+
void AquaSalObject::BeginSetClipRegion( sal_uLong )
{
mbClip = false;
}
-// -----------------------------------------------------------------------
+
void AquaSalObject::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
{
@@ -146,14 +146,14 @@ void AquaSalObject::UnionClipRegion( long nX, long nY, long nWidth, long nHeight
}
}
-// -----------------------------------------------------------------------
+
void AquaSalObject::EndSetClipRegion()
{
setClippedPosSize();
}
-// -----------------------------------------------------------------------
+
void AquaSalObject::SetPosSize( long nX, long nY, long nWidth, long nHeight )
{
@@ -164,7 +164,7 @@ void AquaSalObject::SetPosSize( long nX, long nY, long nWidth, long nHeight )
setClippedPosSize();
}
-// -----------------------------------------------------------------------
+
void AquaSalObject::setClippedPosSize()
{
@@ -194,7 +194,7 @@ void AquaSalObject::setClippedPosSize()
[mpClipView scrollToPoint: aClipPt];
}
-// -----------------------------------------------------------------------
+
void AquaSalObject::Show( sal_Bool bVisible )
{
@@ -202,7 +202,7 @@ void AquaSalObject::Show( sal_Bool bVisible )
[mpClipView setHidden: (bVisible ? NO : YES)];
}
-// -----------------------------------------------------------------------
+
const SystemEnvData* AquaSalObject::GetSystemData() const
{
diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx
index c0e13b2dd4ef..b2dafd79552c 100644
--- a/vcl/osx/salprn.cxx
+++ b/vcl/osx/salprn.cxx
@@ -90,7 +90,7 @@ AquaSalInfoPrinter::AquaSalInfoPrinter( const SalPrinterQueueInfo& i_rQueue ) :
}
}
-// -----------------------------------------------------------------------
+
AquaSalInfoPrinter::~AquaSalInfoPrinter()
{
@@ -101,7 +101,7 @@ AquaSalInfoPrinter::~AquaSalInfoPrinter()
CFRelease( mrContext );
}
-// -----------------------------------------------------------------------
+
void AquaSalInfoPrinter::SetupPrinterGraphics( CGContextRef i_rContext ) const
{
@@ -146,7 +146,7 @@ void AquaSalInfoPrinter::SetupPrinterGraphics( CGContextRef i_rContext ) const
}
}
-// -----------------------------------------------------------------------
+
SalGraphics* AquaSalInfoPrinter::GetGraphics()
{
@@ -155,21 +155,21 @@ SalGraphics* AquaSalInfoPrinter::GetGraphics()
return pGraphics;
}
-// -----------------------------------------------------------------------
+
void AquaSalInfoPrinter::ReleaseGraphics( SalGraphics* )
{
mbGraphics = false;
}
-// -----------------------------------------------------------------------
+
bool AquaSalInfoPrinter::Setup( SalFrame*, ImplJobSetup* )
{
return false;
}
-// -----------------------------------------------------------------------
+
bool AquaSalInfoPrinter::SetPrinterData( ImplJobSetup* io_pSetupData )
{
@@ -217,7 +217,7 @@ bool AquaSalInfoPrinter::SetPrinterData( ImplJobSetup* io_pSetupData )
return bSuccess;
}
-// -----------------------------------------------------------------------
+
void AquaSalInfoPrinter::setPaperSize( long i_nWidth, long i_nHeight, Orientation i_eSetOrientation )
{
@@ -239,7 +239,7 @@ void AquaSalInfoPrinter::setPaperSize( long i_nWidth, long i_nHeight, Orientatio
mePageOrientation = i_eSetOrientation;
}
-// -----------------------------------------------------------------------
+
bool AquaSalInfoPrinter::SetData( sal_uLong i_nFlags, ImplJobSetup* io_pSetupData )
{
@@ -279,21 +279,21 @@ bool AquaSalInfoPrinter::SetData( sal_uLong i_nFlags, ImplJobSetup* io_pSetupDat
return mpPrintInfo != nil;
}
-// -----------------------------------------------------------------------
+
sal_uLong AquaSalInfoPrinter::GetPaperBinCount( const ImplJobSetup* )
{
return 0;
}
-// -----------------------------------------------------------------------
+
OUString AquaSalInfoPrinter::GetPaperBinName( const ImplJobSetup*, sal_uLong )
{
return OUString();
}
-// -----------------------------------------------------------------------
+
sal_uLong AquaSalInfoPrinter::GetCapabilities( const ImplJobSetup*, sal_uInt16 i_nType )
{
@@ -327,7 +327,7 @@ sal_uLong AquaSalInfoPrinter::GetCapabilities( const ImplJobSetup*, sal_uInt16 i
return 0;
}
-// -----------------------------------------------------------------------
+
void AquaSalInfoPrinter::GetPageInfo( const ImplJobSetup*,
long& o_rOutWidth, long& o_rOutHeight,
@@ -560,7 +560,7 @@ sal_Bool AquaSalInfoPrinter::StartJob( const OUString* i_pFileName,
return bSuccess;
}
-// -----------------------------------------------------------------------
+
sal_Bool AquaSalInfoPrinter::EndJob()
{
@@ -569,7 +569,7 @@ sal_Bool AquaSalInfoPrinter::EndJob()
return sal_True;
}
-// -----------------------------------------------------------------------
+
sal_Bool AquaSalInfoPrinter::AbortJob()
{
@@ -579,7 +579,7 @@ sal_Bool AquaSalInfoPrinter::AbortJob()
return sal_False;
}
-// -----------------------------------------------------------------------
+
SalGraphics* AquaSalInfoPrinter::StartPage( ImplJobSetup* i_pSetupData, sal_Bool i_bNewJobData )
{
@@ -593,7 +593,7 @@ SalGraphics* AquaSalInfoPrinter::StartPage( ImplJobSetup* i_pSetupData, sal_Bool
return mpGraphics;
}
-// -----------------------------------------------------------------------
+
sal_Bool AquaSalInfoPrinter::EndPage()
{
@@ -601,7 +601,7 @@ sal_Bool AquaSalInfoPrinter::EndPage()
return sal_True;
}
-// -----------------------------------------------------------------------
+
sal_uLong AquaSalInfoPrinter::GetErrorCode() const
{
@@ -615,13 +615,13 @@ AquaSalPrinter::AquaSalPrinter( AquaSalInfoPrinter* i_pInfoPrinter ) :
{
}
-// -----------------------------------------------------------------------
+
AquaSalPrinter::~AquaSalPrinter()
{
}
-// -----------------------------------------------------------------------
+
bool AquaSalPrinter::StartJob( const OUString* i_pFileName,
const OUString& i_rJobName,
@@ -632,7 +632,7 @@ bool AquaSalPrinter::StartJob( const OUString* i_pFileName,
return mpInfoPrinter->StartJob( i_pFileName, i_rJobName, i_rAppName, i_pSetupData, i_rController );
}
-// -----------------------------------------------------------------------
+
bool AquaSalPrinter::StartJob( const OUString* /*i_pFileName*/,
const OUString& /*i_rJobName*/,
@@ -646,35 +646,35 @@ bool AquaSalPrinter::StartJob( const OUString* /*i_pFileName*/,
return false;
}
-// -----------------------------------------------------------------------
+
bool AquaSalPrinter::EndJob()
{
return mpInfoPrinter->EndJob();
}
-// -----------------------------------------------------------------------
+
bool AquaSalPrinter::AbortJob()
{
return mpInfoPrinter->AbortJob();
}
-// -----------------------------------------------------------------------
+
SalGraphics* AquaSalPrinter::StartPage( ImplJobSetup* i_pSetupData, sal_Bool i_bNewJobData )
{
return mpInfoPrinter->StartPage( i_pSetupData, i_bNewJobData );
}
-// -----------------------------------------------------------------------
+
bool AquaSalPrinter::EndPage()
{
return mpInfoPrinter->EndPage();
}
-// -----------------------------------------------------------------------
+
sal_uLong AquaSalPrinter::GetErrorCode()
{
diff --git a/vcl/qa/cppunit/dndtest.cxx b/vcl/qa/cppunit/dndtest.cxx
index 4bc18902e05d..604d8702e4d6 100644
--- a/vcl/qa/cppunit/dndtest.cxx
+++ b/vcl/qa/cppunit/dndtest.cxx
@@ -46,7 +46,7 @@ using namespace ::com::sun::star::datatransfer;
using namespace ::com::sun::star::datatransfer::clipboard;
using namespace ::com::sun::star::datatransfer::dnd;
-// -----------------------------------------------------------------------
+
class MyWin : public WorkWindow
{
@@ -62,7 +62,7 @@ public:
void Resize();
};
-// -----------------------------------------------------------------------
+
class MyDragAndDropListener: public ::cppu::WeakImplHelper3 < XDropTargetListener, XDragGestureListener, XDragSourceListener >
{
@@ -86,7 +86,7 @@ public:
virtual void SAL_CALL disposing( const EventObject& eo ) throw(RuntimeException);
};
-// -----------------------------------------------------------------------
+
class MyInfoBox : public InfoBox
{
@@ -96,7 +96,7 @@ public:
MyInfoBox( Window* pParent );
};
-// -----------------------------------------------------------------------
+
class MyListBox : public ListBox
{
@@ -106,7 +106,7 @@ public:
MyListBox( Window* pParent );
};
-// -----------------------------------------------------------------------
+
class StringTransferable : public ::cppu::WeakImplHelper1< XTransferable >
{
@@ -130,7 +130,7 @@ public:
};
-// -----------------------------------------------------------------------
+
class VclDnDTest : public test::BootstrapFixture
{
@@ -145,7 +145,7 @@ public:
CPPUNIT_TEST_SUITE_END();
};
-// -----------------------------------------------------------------------
+
void VclDnDTest::testDnD()
{
@@ -167,7 +167,7 @@ void VclDnDTest::testDnD()
aListBox.Show();
}
-// -----------------------------------------------------------------------
+
MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
WorkWindow( pParent, nWinStyle )
@@ -186,56 +186,56 @@ MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
xRecognizer->addDragGestureListener( Reference< XDragGestureListener > ( xListener, UNO_QUERY ) );
}
-// -----------------------------------------------------------------------
+
void MyWin::MouseMove( const MouseEvent& rMEvt )
{
WorkWindow::MouseMove( rMEvt );
}
-// -----------------------------------------------------------------------
+
void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
{
WorkWindow::MouseButtonDown( rMEvt );
}
-// -----------------------------------------------------------------------
+
void MyWin::MouseButtonUp( const MouseEvent& rMEvt )
{
WorkWindow::MouseButtonUp( rMEvt );
}
-// -----------------------------------------------------------------------
+
void MyWin::KeyInput( const KeyEvent& rKEvt )
{
WorkWindow::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
+
void MyWin::KeyUp( const KeyEvent& rKEvt )
{
WorkWindow::KeyUp( rKEvt );
}
-// -----------------------------------------------------------------------
+
void MyWin::Paint( const Rectangle& rRect )
{
WorkWindow::Paint( rRect );
}
-// -----------------------------------------------------------------------
+
void MyWin::Resize()
{
WorkWindow::Resize();
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::dragGestureRecognized( const DragGestureEvent& dge ) throw(RuntimeException)
{
@@ -243,77 +243,77 @@ void SAL_CALL MyDragAndDropListener::dragGestureRecognized( const DragGestureEve
xDragSource->startDrag( dge, -1, 0, 0, new StringTransferable( OUString("TestString") ), this );
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::drop( const DropTargetDropEvent& dtde ) throw(RuntimeException)
{
dtde.Context->dropComplete( sal_True );
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::dragEnter( const DropTargetDragEnterEvent& dtdee ) throw(RuntimeException)
{
dtdee.Context->acceptDrag( dtdee.DropAction );
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::dragExit( const DropTargetEvent& ) throw(RuntimeException)
{
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::dragOver( const DropTargetDragEvent& dtde ) throw(RuntimeException)
{
dtde.Context->acceptDrag( dtde.DropAction );
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::dropActionChanged( const DropTargetDragEvent& dtde ) throw(RuntimeException)
{
dtde.Context->acceptDrag( dtde.DropAction );
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::dragDropEnd( const DragSourceDropEvent& ) throw(RuntimeException)
{
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::dragEnter( const DragSourceDragEvent& ) throw(RuntimeException)
{
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::dragExit( const DragSourceEvent& ) throw(RuntimeException)
{
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::dragOver( const DragSourceDragEvent& ) throw(RuntimeException)
{
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::dropActionChanged( const DragSourceDragEvent& ) throw(RuntimeException)
{
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MyDragAndDropListener::disposing( const EventObject& ) throw(RuntimeException)
{
}
-// -----------------------------------------------------------------------
+
MyInfoBox::MyInfoBox( Window* pParent ) : InfoBox( pParent,
OUString("dragging over this box should result in another window id in the drag log.") )
@@ -332,7 +332,7 @@ MyInfoBox::MyInfoBox( Window* pParent ) : InfoBox( pParent,
xRecognizer->addDragGestureListener( Reference< XDragGestureListener > ( xListener, UNO_QUERY ) );
};
-// -----------------------------------------------------------------------
+
MyListBox::MyListBox( Window* pParent ) : ListBox( pParent )
{
@@ -350,7 +350,7 @@ MyListBox::MyListBox( Window* pParent ) : ListBox( pParent )
xRecognizer->addDragGestureListener( Reference< XDragGestureListener > ( xListener, UNO_QUERY ) );
};
-// -----------------------------------------------------------------------
+
Any SAL_CALL StringTransferable::getTransferData( const DataFlavor& )
throw(UnsupportedFlavorException, IOException, RuntimeException)
@@ -358,7 +358,7 @@ Any SAL_CALL StringTransferable::getTransferData( const DataFlavor& )
return makeAny( m_aData );
}
-// -----------------------------------------------------------------------
+
Sequence< DataFlavor > SAL_CALL StringTransferable::getTransferDataFlavors( )
throw(RuntimeException)
@@ -366,7 +366,7 @@ Sequence< DataFlavor > SAL_CALL StringTransferable::getTransferDataFlavors( )
return m_aFlavorList;
}
-// -----------------------------------------------------------------------
+
sal_Bool SAL_CALL StringTransferable::isDataFlavorSupported( const DataFlavor& )
throw(RuntimeException)
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx
index 72399399d282..ea89b5318f8d 100644
--- a/vcl/quartz/ctfonts.cxx
+++ b/vcl/quartz/ctfonts.cxx
@@ -106,7 +106,7 @@ CoreTextStyle::CoreTextStyle( const FontSelectPattern& rFSD )
#endif
}
-// -----------------------------------------------------------------------
+
CoreTextStyle::~CoreTextStyle( void )
{
@@ -114,7 +114,7 @@ CoreTextStyle::~CoreTextStyle( void )
CFRelease( mpStyleDict );
}
-// -----------------------------------------------------------------------
+
void CoreTextStyle::GetFontMetric( ImplFontMetricData& rMetric ) const
{
@@ -136,7 +136,7 @@ void CoreTextStyle::GetFontMetric( ImplFontMetricData& rMetric ) const
rMetric.mbKernableFont = true;
}
-// -----------------------------------------------------------------------
+
bool CoreTextStyle::GetGlyphBoundRect( sal_GlyphId aGlyphId, Rectangle& rRect ) const
{
@@ -154,7 +154,7 @@ bool CoreTextStyle::GetGlyphBoundRect( sal_GlyphId aGlyphId, Rectangle& rRect )
return true;
}
-// -----------------------------------------------------------------------
+
// callbacks from CTFontCreatePathForGlyph+CGPathApply for GetGlyphOutline()
struct GgoData { basegfx::B2DPolygon maPolygon; basegfx::B2DPolyPolygon* mpPolyPoly; };
@@ -216,7 +216,7 @@ bool CoreTextStyle::GetGlyphOutline( sal_GlyphId aGlyphId, basegfx::B2DPolyPolyg
return true;
}
-// -----------------------------------------------------------------------
+
void CoreTextStyle::SetTextColor( const RGBAColor& rColor )
{
@@ -235,21 +235,21 @@ PhysicalFontFace* CoreTextFontData::Clone( void ) const
return new CoreTextFontData( *this);
}
-// -----------------------------------------------------------------------
+
CoreTextStyle* CoreTextFontData::CreateTextStyle( const FontSelectPattern& rFSD ) const
{
return new CoreTextStyle( rFSD);
}
-// -----------------------------------------------------------------------
+
ImplFontEntry* CoreTextFontData::CreateFontInstance( /*const*/ FontSelectPattern& rFSD ) const
{
return new ImplFontEntry( rFSD);
}
-// -----------------------------------------------------------------------
+
int CoreTextFontData::GetFontTable( const char pTagName[5], unsigned char* pResultBuf ) const
{
@@ -424,7 +424,7 @@ SystemFontList::SystemFontList()
, mpCTFontArray( NULL )
{}
-// -----------------------------------------------------------------------
+
SystemFontList::~SystemFontList()
{
@@ -439,7 +439,7 @@ SystemFontList::~SystemFontList()
CFRelease( mpCTFontCollection );
}
-// -----------------------------------------------------------------------
+
void SystemFontList::AddFont( CoreTextFontData* pFontData )
{
@@ -447,7 +447,7 @@ void SystemFontList::AddFont( CoreTextFontData* pFontData )
maFontContainer[ nFontId ] = pFontData;
}
-// -----------------------------------------------------------------------
+
void SystemFontList::AnnounceFonts( ImplDevFontList& rFontList ) const
{
@@ -456,7 +456,7 @@ void SystemFontList::AnnounceFonts( ImplDevFontList& rFontList ) const
rFontList.Add( (*it).second->Clone() );
}
-// -----------------------------------------------------------------------
+
CoreTextFontData* SystemFontList::GetFontDataFromId( sal_IntPtr nFontId ) const
{
@@ -466,7 +466,7 @@ CoreTextFontData* SystemFontList::GetFontDataFromId( sal_IntPtr nFontId ) const
return (*it).second;
}
-// -----------------------------------------------------------------------
+
bool SystemFontList::Init( void )
{
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index 98a6938bf5fd..a30a22b1c4d1 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -66,14 +66,14 @@ QuartzSalBitmap::QuartzSalBitmap()
{
}
-// ------------------------------------------------------------------
+
QuartzSalBitmap::~QuartzSalBitmap()
{
Destroy();
}
-// ------------------------------------------------------------------
+
bool QuartzSalBitmap::Create( CGLayerRef xLayer, int nBitmapBits,
int nX, int nY, int nWidth, int nHeight )
@@ -108,7 +108,7 @@ bool QuartzSalBitmap::Create( CGLayerRef xLayer, int nBitmapBits,
return true;
}
-// ------------------------------------------------------------------
+
bool QuartzSalBitmap::Create( CGImageRef xImage, int nBitmapBits,
int nX, int nY, int nWidth, int nHeight )
@@ -177,7 +177,7 @@ bool QuartzSalBitmap::Create( BitmapBuffer& buffer)
return true;
}
-// ------------------------------------------------------------------
+
bool QuartzSalBitmap::Create( const Size& rSize, sal_uInt16 nBits, const BitmapPalette& rBitmapPalette )
{
@@ -190,21 +190,21 @@ bool QuartzSalBitmap::Create( const Size& rSize, sal_uInt16 nBits, const BitmapP
return AllocateUserData();
}
-// ------------------------------------------------------------------
+
bool QuartzSalBitmap::Create( const SalBitmap& rSalBmp )
{
return Create( rSalBmp, rSalBmp.GetBitCount() );
}
-// ------------------------------------------------------------------
+
bool QuartzSalBitmap::Create( const SalBitmap& rSalBmp, SalGraphics* pGraphics )
{
return Create( rSalBmp, pGraphics ? pGraphics->GetBitCount() : rSalBmp.GetBitCount() );
}
-// ------------------------------------------------------------------
+
bool QuartzSalBitmap::Create( const SalBitmap& rSalBmp, sal_uInt16 nNewBitCount )
{
@@ -226,14 +226,14 @@ bool QuartzSalBitmap::Create( const SalBitmap& rSalBmp, sal_uInt16 nNewBitCount
return false;
}
-// ------------------------------------------------------------------
+
bool QuartzSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > /*xBitmapCanvas*/, Size& /*rSize*/, bool /*bMask*/ )
{
return false;
}
-// ------------------------------------------------------------------
+
void QuartzSalBitmap::Destroy()
{
@@ -242,7 +242,7 @@ void QuartzSalBitmap::Destroy()
maExternalData = NULL;
}
-// ------------------------------------------------------------------
+
void QuartzSalBitmap::DestroyContext()
{
@@ -257,7 +257,7 @@ void QuartzSalBitmap::DestroyContext()
}
}
-// ------------------------------------------------------------------
+
bool QuartzSalBitmap::CreateContext()
{
@@ -344,7 +344,7 @@ bool QuartzSalBitmap::CreateContext()
return mxGraphicContext != NULL;
}
-// ------------------------------------------------------------------
+
bool QuartzSalBitmap::AllocateUserData()
{
@@ -382,7 +382,7 @@ bool QuartzSalBitmap::AllocateUserData()
return maUserBuffer.get() != 0;
}
-// ------------------------------------------------------------------
+
class ImplPixelFormat
{
@@ -658,21 +658,21 @@ void QuartzSalBitmap::ConvertBitmapData( sal_uInt32 nWidth, sal_uInt32 nHeight,
}
}
-// ------------------------------------------------------------------
+
Size QuartzSalBitmap::GetSize() const
{
return Size( mnWidth, mnHeight );
}
-// ------------------------------------------------------------------
+
sal_uInt16 QuartzSalBitmap::GetBitCount() const
{
return mnBits;
}
-// ------------------------------------------------------------------
+
static struct pal_entry
{
@@ -801,7 +801,7 @@ BitmapBuffer* QuartzSalBitmap::AcquireBuffer( bool /*bReadOnly*/ )
return pBuffer;
}
-// ------------------------------------------------------------------
+
void QuartzSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
{
@@ -816,7 +816,7 @@ void QuartzSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
delete pBuffer;
}
-// ------------------------------------------------------------------
+
CGImageRef QuartzSalBitmap::CreateCroppedImage( int nX, int nY, int nNewWidth, int nNewHeight ) const
{
@@ -846,7 +846,7 @@ CGImageRef QuartzSalBitmap::CreateCroppedImage( int nX, int nY, int nNewWidth, i
return xCroppedImage;
}
-// ------------------------------------------------------------------
+
static void CFRTLFree(void* /*info*/, const void* data, size_t /*size*/)
{
@@ -896,7 +896,7 @@ CGImageRef QuartzSalBitmap::CreateWithMask( const QuartzSalBitmap& rMask,
return xMaskedImage;
}
-// ------------------------------------------------------------------
+
/** creates an image from the given rectangle, replacing all black pixels with nMaskColor and make all other full transparent */
CGImageRef QuartzSalBitmap::CreateColorMask( int nX, int nY, int nWidth, int nHeight, SalColor nMaskColor ) const
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index 91ff6cb1bc9e..d82621576e34 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -73,7 +73,7 @@ CoreTextFontData::CoreTextFontData( const CoreTextFontData& rSrc )
mpCharMap->AddReference();
}
-// -----------------------------------------------------------------------
+
CoreTextFontData::CoreTextFontData( const ImplDevFontAttributes& rDFA, sal_IntPtr nFontId )
: PhysicalFontFace( rDFA, 0 )
@@ -86,7 +86,7 @@ CoreTextFontData::CoreTextFontData( const ImplDevFontAttributes& rDFA, sal_IntPt
{
}
-// -----------------------------------------------------------------------
+
CoreTextFontData::~CoreTextFontData()
{
@@ -94,14 +94,14 @@ CoreTextFontData::~CoreTextFontData()
mpCharMap->DeReference();
}
-// -----------------------------------------------------------------------
+
sal_IntPtr CoreTextFontData::GetFontId() const
{
return (sal_IntPtr)mnFontId;
}
-// -----------------------------------------------------------------------
+
static unsigned GetUShort( const unsigned char* p ){return((p[0]<<8)+p[1]);}
@@ -188,7 +188,7 @@ bool CoreTextFontData::GetImplFontCapabilities(vcl::FontCapabilities &rFontCapab
return !rFontCapabilities.maUnicodeRange.empty() || !rFontCapabilities.maCodePageRange.empty();
}
-// -----------------------------------------------------------------------
+
void CoreTextFontData::ReadOs2Table( void ) const
{
@@ -240,7 +240,7 @@ void CoreTextFontData::ReadMacCmapEncoding( void ) const
return;
}
-// -----------------------------------------------------------------------
+
AquaSalGraphics::AquaSalGraphics()
#ifdef MACOSX
@@ -319,14 +319,14 @@ void AquaSalGraphics::SetTextColor( SalColor nSalColor )
mpTextStyle->SetTextColor( maTextColor );
}
-// -----------------------------------------------------------------------
+
void AquaSalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int /*nFallbackLevel*/ )
{
mpTextStyle->GetFontMetric( *pMetric );
}
-// -----------------------------------------------------------------------
+
static bool AddTempDevFont(const OUString& rFontFileURL)
{
@@ -410,7 +410,7 @@ void AquaSalGraphics::ClearDevFontCache()
pSalData->mpFontList = NULL;
}
-// -----------------------------------------------------------------------
+
bool AquaSalGraphics::AddTempDevFont( ImplDevFontList*,
const OUString& rFontFileURL, const OUString& /*rFontName*/ )
@@ -418,7 +418,7 @@ bool AquaSalGraphics::AddTempDevFont( ImplDevFontList*,
return ::AddTempDevFont(rFontFileURL);
}
-// -----------------------------------------------------------------------
+
bool AquaSalGraphics::GetGlyphOutline( sal_GlyphId aGlyphId, basegfx::B2DPolyPolygon& rPolyPoly )
{
@@ -426,7 +426,7 @@ bool AquaSalGraphics::GetGlyphOutline( sal_GlyphId aGlyphId, basegfx::B2DPolyPol
return bRC;
}
-// -----------------------------------------------------------------------
+
bool AquaSalGraphics::GetGlyphBoundRect( sal_GlyphId aGlyphId, Rectangle& rRect )
{
@@ -434,13 +434,13 @@ bool AquaSalGraphics::GetGlyphBoundRect( sal_GlyphId aGlyphId, Rectangle& rRect
return bRC;
}
-// -----------------------------------------------------------------------
+
void AquaSalGraphics::DrawServerFontLayout( const ServerFontLayout& )
{
}
-// -----------------------------------------------------------------------
+
sal_uInt16 AquaSalGraphics::SetFont( FontSelectPattern* pReqFont, int /*nFallbackLevel*/ )
{
@@ -476,7 +476,7 @@ sal_uInt16 AquaSalGraphics::SetFont( FontSelectPattern* pReqFont, int /*nFallbac
return 0;
}
-// -----------------------------------------------------------------------
+
SalLayout* AquaSalGraphics::GetTextLayout( ImplLayoutArgs& /*rArgs*/, int /*nFallbackLevel*/ )
{
@@ -484,7 +484,7 @@ SalLayout* AquaSalGraphics::GetTextLayout( ImplLayoutArgs& /*rArgs*/, int /*nFal
return pSalLayout;
}
-// -----------------------------------------------------------------------
+
const ImplFontCharMap* AquaSalGraphics::GetImplFontCharMap() const
{
@@ -502,7 +502,7 @@ bool AquaSalGraphics::GetImplFontCapabilities(vcl::FontCapabilities &rFontCapabi
return mpFontData->GetImplFontCapabilities(rFontCapabilities);
}
-// -----------------------------------------------------------------------
+
// fake a SFNT font directory entry for a font table
// see http://developer.apple.com/fonts/TTRefMan/RM06/Chap6.html#Directory
@@ -686,7 +686,7 @@ bool AquaSalGraphics::GetRawFontData( const PhysicalFontFace* pFontData,
return true;
}
-// -----------------------------------------------------------------------
+
void AquaSalGraphics::GetGlyphWidths( const PhysicalFontFace* pFontData, bool bVertical,
Int32Vector& rGlyphWidths, Ucs2UIntMap& rUnicodeEnc )
@@ -757,7 +757,7 @@ void AquaSalGraphics::GetGlyphWidths( const PhysicalFontFace* pFontData, bool bV
}
}
-// -----------------------------------------------------------------------
+
const Ucs2SIntMap* AquaSalGraphics::GetFontEncodingVector(
const PhysicalFontFace*, const Ucs2OStrMap** /*ppNonEncoded*/ )
@@ -765,7 +765,7 @@ const Ucs2SIntMap* AquaSalGraphics::GetFontEncodingVector(
return NULL;
}
-// -----------------------------------------------------------------------
+
const void* AquaSalGraphics::GetEmbedFontData( const PhysicalFontFace*,
const sal_Ucs* /*pUnicodes*/,
@@ -776,7 +776,7 @@ const void* AquaSalGraphics::GetEmbedFontData( const PhysicalFontFace*,
return NULL;
}
-// -----------------------------------------------------------------------
+
void AquaSalGraphics::FreeEmbedFontData( const void* pData, long /*nDataLen*/ )
{
@@ -786,7 +786,7 @@ void AquaSalGraphics::FreeEmbedFontData( const void* pData, long /*nDataLen*/ )
DBG_ASSERT( (pData!=NULL), "AquaSalGraphics::FreeEmbedFontData() is not implemented\n");
}
-// -----------------------------------------------------------------------
+
SystemFontData AquaSalGraphics::GetSysFontData( int /* nFallbacklevel */ ) const
{
@@ -899,5 +899,5 @@ CGContextRef SvpSalGraphics::GetContext()
}
#endif
-
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 06a3cfe487b9..2c0226a8334b 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -1676,7 +1676,7 @@ void AquaSalGraphics::updateResolution()
#endif
-// -----------------------------------------------------------
+
XorEmulation::XorEmulation()
: m_xTargetLayer( NULL )
diff --git a/vcl/quartz/salgdiutils.cxx b/vcl/quartz/salgdiutils.cxx
index 295719e959ec..50792ed81cbc 100644
--- a/vcl/quartz/salgdiutils.cxx
+++ b/vcl/quartz/salgdiutils.cxx
@@ -33,7 +33,7 @@
#include "osx/salframe.h"
#include "osx/saldata.hxx"
-// ----------------------------------------------------------------------
+
void AquaSalGraphics::SetWindowGraphics( AquaSalFrame* pFrame )
{
@@ -117,7 +117,7 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex
SetState();
}
-// ----------------------------------------------------------------------
+
void AquaSalGraphics::InvalidateContext()
{
@@ -125,7 +125,7 @@ void AquaSalGraphics::InvalidateContext()
mrContext = 0;
}
-// ----------------------------------------------------------------------
+
void AquaSalGraphics::UnsetState()
{
@@ -162,7 +162,7 @@ void AquaSalGraphics::SetState()
CGContextSetBlendMode( mrContext, kCGBlendModeDifference );
}
-// ----------------------------------------------------------------------
+
bool AquaSalGraphics::CheckContext()
{
@@ -264,7 +264,7 @@ CGPoint* AquaSalGraphics::makeCGptArray(sal_uLong nPoints, const SalPoint* pPtA
return CGpoints;
}
-// -----------------------------------------------------------------------
+
void AquaSalGraphics::UpdateWindow( NSRect& )
{
@@ -293,6 +293,6 @@ void AquaSalGraphics::UpdateWindow( NSRect& )
DBG_ASSERT( mpFrame->mbInitShow, "UpdateWindow called on uneligible graphics" );
}
-// -----------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/quartz/salvd.cxx b/vcl/quartz/salvd.cxx
index 0c61499728dc..5c163ce381a7 100644
--- a/vcl/quartz/salvd.cxx
+++ b/vcl/quartz/salvd.cxx
@@ -33,7 +33,7 @@
#endif
#include "quartz/salgdi.h"
-// -----------------------------------------------------------------------
+
SalVirtualDevice* AquaSalInstance::CreateVirtualDevice( SalGraphics* pGraphics,
long nDX, long nDY, sal_uInt16 nBitCount, const SystemGraphicsData *pData )
@@ -51,7 +51,7 @@ SalVirtualDevice* AquaSalInstance::CreateVirtualDevice( SalGraphics* pGraphics,
#endif
}
-// -----------------------------------------------------------------------
+
void AquaSalInstance::DestroyVirtualDevice( SalVirtualDevice* pDevice )
{
@@ -113,7 +113,7 @@ AquaSalVirtualDevice::AquaSalVirtualDevice( AquaSalGraphics* pGraphic, long nDX,
}
}
-// -----------------------------------------------------------------------
+
AquaSalVirtualDevice::~AquaSalVirtualDevice()
{
@@ -126,7 +126,7 @@ AquaSalVirtualDevice::~AquaSalVirtualDevice()
Destroy();
}
-// -----------------------------------------------------------------------
+
void AquaSalVirtualDevice::Destroy()
{
@@ -153,7 +153,7 @@ void AquaSalVirtualDevice::Destroy()
}
}
-// -----------------------------------------------------------------------
+
SalGraphics* AquaSalVirtualDevice::GetGraphics()
{
@@ -164,14 +164,14 @@ SalGraphics* AquaSalVirtualDevice::GetGraphics()
return mpGraphics;
}
-// -----------------------------------------------------------------------
+
void AquaSalVirtualDevice::ReleaseGraphics( SalGraphics* )
{
mbGraphicsUsed = false;
}
-// -----------------------------------------------------------------------
+
bool AquaSalVirtualDevice::SetSize( long nDX, long nDY )
{
@@ -278,7 +278,7 @@ bool AquaSalVirtualDevice::SetSize( long nDX, long nDY )
#endif
}
-// -----------------------------------------------------------------------
+
void AquaSalVirtualDevice::GetSize( long& rWidth, long& rHeight )
{
diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx
index d70bb7335d17..c4a7ea764f0b 100644
--- a/vcl/source/app/help.cxx
+++ b/vcl/source/app/help.cxx
@@ -57,9 +57,9 @@ Help::~Help()
{
}
-// -----------------------------------------------------------------------
-// -----------------------------------------------------------------------
+
+
bool Help::Start( const OUString&, const Window* )
{
@@ -71,56 +71,56 @@ bool Help::SearchKeyword( const OUString& )
return false;
}
-// -----------------------------------------------------------------------
+
OUString Help::GetHelpText( const OUString&, const Window* )
{
return OUString();
}
-// -----------------------------------------------------------------------
+
void Help::EnableContextHelp()
{
ImplGetSVData()->maHelpData.mbContextHelp = true;
}
-// -----------------------------------------------------------------------
+
void Help::DisableContextHelp()
{
ImplGetSVData()->maHelpData.mbContextHelp = false;
}
-// -----------------------------------------------------------------------
+
bool Help::IsContextHelpEnabled()
{
return ImplGetSVData()->maHelpData.mbContextHelp;
}
-// -----------------------------------------------------------------------
+
void Help::EnableExtHelp()
{
ImplGetSVData()->maHelpData.mbExtHelp = true;
}
-// -----------------------------------------------------------------------
+
void Help::DisableExtHelp()
{
ImplGetSVData()->maHelpData.mbExtHelp = false;
}
-// -----------------------------------------------------------------------
+
bool Help::IsExtHelpEnabled()
{
return ImplGetSVData()->maHelpData.mbExtHelp;
}
-// -----------------------------------------------------------------------
+
bool Help::StartExtHelp()
{
@@ -139,7 +139,7 @@ bool Help::StartExtHelp()
return false;
}
-// -----------------------------------------------------------------------
+
bool Help::EndExtHelp()
{
@@ -157,28 +157,28 @@ bool Help::EndExtHelp()
return false;
}
-// -----------------------------------------------------------------------
+
void Help::EnableBalloonHelp()
{
ImplGetSVData()->maHelpData.mbBalloonHelp = true;
}
-// -----------------------------------------------------------------------
+
void Help::DisableBalloonHelp()
{
ImplGetSVData()->maHelpData.mbBalloonHelp = false;
}
-// -----------------------------------------------------------------------
+
bool Help::IsBalloonHelpEnabled()
{
return ImplGetSVData()->maHelpData.mbBalloonHelp;
}
-// -----------------------------------------------------------------------
+
bool Help::ShowBalloon( Window* pParent,
const Point& rScreenPos,
@@ -190,7 +190,7 @@ bool Help::ShowBalloon( Window* pParent,
return true;
}
-// -----------------------------------------------------------------------
+
bool Help::ShowBalloon( Window* pParent,
const Point& rScreenPos, const Rectangle& rRect,
@@ -202,28 +202,28 @@ bool Help::ShowBalloon( Window* pParent,
return true;
}
-// -----------------------------------------------------------------------
+
void Help::EnableQuickHelp()
{
ImplGetSVData()->maHelpData.mbQuickHelp = true;
}
-// -----------------------------------------------------------------------
+
void Help::DisableQuickHelp()
{
ImplGetSVData()->maHelpData.mbQuickHelp = false;
}
-// -----------------------------------------------------------------------
+
bool Help::IsQuickHelpEnabled()
{
return ImplGetSVData()->maHelpData.mbQuickHelp;
}
-// -----------------------------------------------------------------------
+
bool Help::ShowQuickHelp( Window* pParent,
const Rectangle& rScreenRect,
@@ -237,7 +237,7 @@ bool Help::ShowQuickHelp( Window* pParent,
return true;
}
-// -----------------------------------------------------------------------
+
void Help::HideBalloonAndQuickHelp()
{
@@ -246,7 +246,7 @@ void Help::HideBalloonAndQuickHelp()
ImplDestroyHelpWindow( bIsVisible );
}
-// -----------------------------------------------------------------------
+
sal_uIntPtr Help::ShowTip( Window* pParent, const Rectangle& rScreenRect,
const OUString& rText, sal_uInt16 nStyle )
@@ -261,7 +261,7 @@ sal_uIntPtr Help::ShowTip( Window* pParent, const Rectangle& rScreenRect,
return nId;
}
-// -----------------------------------------------------------------------
+
void Help::UpdateTip( sal_uIntPtr nId, Window* pParent, const Rectangle& rScreenRect, const OUString& rText )
{
@@ -277,7 +277,7 @@ void Help::UpdateTip( sal_uIntPtr nId, Window* pParent, const Rectangle& rScreen
pHelpWin->Invalidate();
}
-// -----------------------------------------------------------------------
+
void Help::HideTip( sal_uLong nId )
{
@@ -342,7 +342,7 @@ HelpTextWindow::HelpTextWindow( Window* pParent, const OUString& rText, sal_uInt
maHideTimer.SetTimeout( rHelpSettings.GetTipTimeout() );
}
-// -----------------------------------------------------------------------
+
HelpTextWindow::~HelpTextWindow()
{
@@ -353,7 +353,7 @@ HelpTextWindow::~HelpTextWindow()
ImplGetSVData()->maHelpData.mpHelpWin = NULL;
}
-// -----------------------------------------------------------------------
+
void HelpTextWindow::SetHelpText( const OUString& rHelpText )
{
@@ -396,7 +396,7 @@ void HelpTextWindow::SetHelpText( const OUString& rHelpText )
SetOutputSizePixel( aSize );
}
-// -----------------------------------------------------------------------
+
void HelpTextWindow::ImplShow()
{
@@ -406,7 +406,7 @@ void HelpTextWindow::ImplShow()
Update();
}
-// -----------------------------------------------------------------------
+
void HelpTextWindow::Paint( const Rectangle& )
{
@@ -455,7 +455,7 @@ void HelpTextWindow::Paint( const Rectangle& )
}
}
-// -----------------------------------------------------------------------
+
void HelpTextWindow::ShowHelp( sal_uInt16 nDelayMode )
{
@@ -482,7 +482,7 @@ void HelpTextWindow::ShowHelp( sal_uInt16 nDelayMode )
maShowTimer.Start();
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( HelpTextWindow, TimerHdl, Timer*, pTimer)
{
@@ -506,7 +506,7 @@ IMPL_LINK( HelpTextWindow, TimerHdl, Timer*, pTimer)
return 1;
}
-// -----------------------------------------------------------------------
+
Size HelpTextWindow::CalcOutSize() const
{
@@ -516,7 +516,7 @@ Size HelpTextWindow::CalcOutSize() const
return aSz;
}
-// -----------------------------------------------------------------------
+
void HelpTextWindow::RequestHelp( const HelpEvent& /*rHEvt*/ )
{
@@ -524,14 +524,14 @@ void HelpTextWindow::RequestHelp( const HelpEvent& /*rHEvt*/ )
// ShowQuickHelp/ShowBalloonHelp in the HelpTextWindow.
}
-// -----------------------------------------------------------------------
+
OUString HelpTextWindow::GetText() const
{
return maHelpText;
}
-// -----------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > HelpTextWindow::CreateAccessible()
{
@@ -618,7 +618,7 @@ void ImplShowHelpWindow( Window* pParent, sal_uInt16 nHelpWinStyle, sal_uInt16 n
}
}
-// -----------------------------------------------------------------------
+
void ImplDestroyHelpWindow( bool bUpdateHideTime )
{
@@ -640,7 +640,7 @@ void ImplDestroyHelpWindow( bool bUpdateHideTime )
}
}
-// -----------------------------------------------------------------------
+
void ImplSetHelpWindowPos( Window* pHelpWin, sal_uInt16 nHelpWinStyle, sal_uInt16 nStyle,
const Point& rPos, const Rectangle* pHelpArea )
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 8ed1ec84f73b..d3f377535091 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -36,7 +36,7 @@ SalFrame::~SalFrame()
{
}
-// -----------------------------------------------------------------------
+
// default to full-frame flushes
// on ports where partial-flushes are much cheaper this method should be overridden
@@ -45,14 +45,14 @@ void SalFrame::Flush( const Rectangle& )
Flush();
}
-// -----------------------------------------------------------------------
+
void SalFrame::SetRepresentedURL( const OUString& )
{
// currently this is Mac only functionality
}
-// -----------------------------------------------------------------------
+
SalInstance::~SalInstance()
{
diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx
index d9d25d7623b9..dfbb001cb769 100644
--- a/vcl/source/app/svdata.cxx
+++ b/vcl/source/app/svdata.cxx
@@ -89,7 +89,7 @@ void ImplInitSVData()
pImplSVData->maAppData.mnDefaultLayoutBorder = -1;
}
-// -----------------------------------------------------------------------
+
void ImplDeInitSVData()
{
@@ -110,14 +110,14 @@ void ImplDeInitSVData()
delete pSVData->mpPaperNames, pSVData->mpPaperNames = NULL;
}
-// -----------------------------------------------------------------------
+
void ImplDestroySVData()
{
pImplSVData = NULL;
}
-// -----------------------------------------------------------------------
+
Window* ImplGetDefaultWindow()
{
@@ -149,7 +149,7 @@ Window* ImplGetDefaultWindow()
return pSVData->mpDefaultWin;
}
-// -----------------------------------------------------------------------
+
ResMgr* ImplGetResMgr()
{
@@ -315,7 +315,7 @@ bool ImplInitAccessBridge()
return true;
}
-// -----------------------------------------------------------------------
+
Window* ImplFindWindow( const SalFrame* pFrame, ::Point& rSalFramePos )
{
diff --git a/vcl/source/components/dtranscomp.cxx b/vcl/source/components/dtranscomp.cxx
index fed5316fef91..5fa2a1680a59 100644
--- a/vcl/source/components/dtranscomp.cxx
+++ b/vcl/source/components/dtranscomp.cxx
@@ -207,7 +207,7 @@ void GenericClipboard::removeClipboardListener( const Reference< datatransfer::c
m_aListeners.remove( listener );
}
-// ------------------------------------------------------------------------
+
class ClipboardFactory : public ::cppu::WeakComponentImplHelper1<
com::sun::star::lang::XSingleServiceFactory
@@ -225,7 +225,7 @@ public:
virtual Reference< XInterface > SAL_CALL createInstanceWithArguments( const Sequence< Any >& rArgs ) throw();
};
-// ------------------------------------------------------------------------
+
ClipboardFactory::ClipboardFactory() :
cppu::WeakComponentImplHelper1<
@@ -234,20 +234,20 @@ ClipboardFactory::ClipboardFactory() :
{
}
-// ------------------------------------------------------------------------
+
ClipboardFactory::~ClipboardFactory()
{
}
-// ------------------------------------------------------------------------
+
Reference< XInterface > ClipboardFactory::createInstance() throw()
{
return createInstanceWithArguments( Sequence< Any >() );
}
-// ------------------------------------------------------------------------
+
Reference< XInterface > ClipboardFactory::createInstanceWithArguments( const Sequence< Any >& arguments ) throw()
{
diff --git a/vcl/source/components/fontident.cxx b/vcl/source/components/fontident.cxx
index 9e5a138856ec..572051d65d12 100644
--- a/vcl/source/components/fontident.cxx
+++ b/vcl/source/components/fontident.cxx
@@ -41,7 +41,7 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::awt;
-// -----------------------------------------------------------------------
+
namespace vcl
{
@@ -67,7 +67,7 @@ FontIdentificator() {}
};
-// --------------------------------------------------------------------
+
FontIdentificator::~FontIdentificator()
{
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index ffeab10531d2..94d2ab883c67 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -79,13 +79,13 @@ public:
~ImplCommonButtonData();
};
-// -----------------------------------------------------------------------
+
ImplCommonButtonData::ImplCommonButtonData() : maFocusRect(), mnSeparatorX(0), mnButtonState(0),
mbSmallSymbol(false), maImage(), meImageAlign(IMAGEALIGN_TOP), meSymbolAlign(SYMBOLALIGN_LEFT)
{
}
-// -----------------------------------------------------------------------
+
ImplCommonButtonData::~ImplCommonButtonData()
{
}
@@ -98,21 +98,21 @@ Button::Button( WindowType nType ) :
mpButtonData = new ImplCommonButtonData;
}
-// -----------------------------------------------------------------------
+
Button::~Button()
{
delete mpButtonData;
}
-// -----------------------------------------------------------------------
+
void Button::Click()
{
ImplCallEventListenersAndHandler( VCLEVENT_BUTTON_CLICK, maClickHdl, this );
}
-// -----------------------------------------------------------------------
+
OUString Button::GetStandardText( StandardButtonType eButton )
{
@@ -157,7 +157,7 @@ OUString Button::GetStandardText( StandardButtonType eButton )
return ResId(nResId, *pResMgr).toString();
}
-// -----------------------------------------------------------------------
+
bool Button::SetModeImage( const Image& rImage )
{
if ( rImage != mpButtonData->maImage )
@@ -169,19 +169,19 @@ bool Button::SetModeImage( const Image& rImage )
return true;
}
-// -----------------------------------------------------------------------
+
const Image Button::GetModeImage( ) const
{
return mpButtonData->maImage;
}
-// -----------------------------------------------------------------------
+
bool Button::HasImage() const
{
return !!(mpButtonData->maImage);
}
-// -----------------------------------------------------------------------
+
void Button::SetImageAlign( ImageAlign eAlign )
{
if ( mpButtonData->meImageAlign != eAlign )
@@ -191,20 +191,20 @@ void Button::SetImageAlign( ImageAlign eAlign )
}
}
-// -----------------------------------------------------------------------
+
ImageAlign Button::GetImageAlign() const
{
return mpButtonData->meImageAlign;
}
-// -----------------------------------------------------------------------
+
void Button::SetFocusRect( const Rectangle& rFocusRect )
{
ImplSetFocusRect( rFocusRect );
}
-// -----------------------------------------------------------------------
+
long Button::ImplGetSeparatorX() const
{
@@ -216,7 +216,7 @@ void Button::ImplSetSeparatorX( long nX )
mpButtonData->mnSeparatorX = nX;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 Button::ImplGetTextStyle( OUString& rText, WinBits nWinStyle,
sal_uLong nDrawFlags )
@@ -246,7 +246,7 @@ sal_uInt16 Button::ImplGetTextStyle( OUString& rText, WinBits nWinStyle,
return nTextStyle;
}
-// -----------------------------------------------------------------------
+
void Button::ImplDrawAlignedImage( OutputDevice* pDev, Point& rPos,
Size& rSize, bool bLayout,
@@ -520,7 +520,7 @@ void Button::ImplDrawAlignedImage( OutputDevice* pDev, Point& rPos,
}
}
-// -----------------------------------------------------------------------
+
void Button::ImplSetFocusRect( const Rectangle &rFocusRect )
{
Rectangle aFocusRect = rFocusRect;
@@ -542,25 +542,25 @@ void Button::ImplSetFocusRect( const Rectangle &rFocusRect )
mpButtonData->maFocusRect = aFocusRect;
}
-// -----------------------------------------------------------------------
+
const Rectangle& Button::ImplGetFocusRect() const
{
return mpButtonData->maFocusRect;
}
-// -----------------------------------------------------------------------
+
sal_uInt16& Button::ImplGetButtonState()
{
return mpButtonData->mnButtonState;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 Button::ImplGetButtonState() const
{
return mpButtonData->mnButtonState;
}
-// -----------------------------------------------------------------------
+
void Button::ImplSetSymbolAlign( SymbolAlign eAlign )
{
if ( mpButtonData->meSymbolAlign != eAlign )
@@ -570,13 +570,13 @@ void Button::ImplSetSymbolAlign( SymbolAlign eAlign )
}
}
-// -----------------------------------------------------------------------
+
void Button::SetSmallSymbol(bool bSmall)
{
mpButtonData->mbSmallSymbol = bSmall;
}
-// -----------------------------------------------------------------------
+
void Button::EnableImageDisplay( bool bEnable )
{
if( bEnable )
@@ -585,7 +585,7 @@ void Button::EnableImageDisplay( bool bEnable )
mpButtonData->mnButtonState |= BUTTON_DRAW_NOIMAGE;
}
-// -----------------------------------------------------------------------
+
void Button::EnableTextDisplay( bool bEnable )
{
if( bEnable )
@@ -633,7 +633,7 @@ void PushButton::ImplInitPushButtonData()
mbInUserDraw = false;
}
-// -----------------------------------------------------------------------
+
void PushButton::ImplInit( Window* pParent, WinBits nStyle )
{
@@ -646,7 +646,7 @@ void PushButton::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings( true, true, true );
}
-// -----------------------------------------------------------------------
+
WinBits PushButton::ImplInitStyle( const Window* pPrevWindow, WinBits nStyle )
{
@@ -669,20 +669,20 @@ WinBits PushButton::ImplInitStyle( const Window* pPrevWindow, WinBits nStyle )
return nStyle;
}
-// -----------------------------------------------------------------
+
const Font& PushButton::GetCanonicalFont( const StyleSettings& _rStyle ) const
{
return _rStyle.GetPushButtonFont();
}
-// -----------------------------------------------------------------
+
const Color& PushButton::GetCanonicalTextColor( const StyleSettings& _rStyle ) const
{
return _rStyle.GetButtonTextColor();
}
-// -----------------------------------------------------------------------
+
void PushButton::ImplInitSettings( bool bFont,
bool bForeground, bool bBackground )
@@ -714,7 +714,7 @@ void PushButton::ImplInitSettings( bool bFont,
}
}
-// -----------------------------------------------------------------------
+
void PushButton::ImplDrawPushButtonFrame( Window* pDev,
Rectangle& rRect, sal_uInt16 nStyle )
@@ -742,7 +742,7 @@ void PushButton::ImplDrawPushButtonFrame( Window* pDev,
rRect = aDecoView.DrawButton( rRect, nStyle );
}
-// -----------------------------------------------------------------------
+
bool PushButton::ImplHitTestPushButton( Window* pDev,
const Point& rPos )
@@ -753,7 +753,7 @@ bool PushButton::ImplHitTestPushButton( Window* pDev,
return aTestRect.IsInside( rPos );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 PushButton::ImplGetTextStyle( sal_uLong nDrawFlags ) const
{
@@ -790,7 +790,7 @@ sal_uInt16 PushButton::ImplGetTextStyle( sal_uLong nDrawFlags ) const
return nTextStyle;
}
-// -----------------------------------------------------------------------
+
static void ImplDrawBtnDropDownArrow( OutputDevice* pDev,
long nX, long nY,
@@ -818,7 +818,7 @@ static void ImplDrawBtnDropDownArrow( OutputDevice* pDev,
pDev->SetFillColor( aOldFillColor );
}
-// -----------------------------------------------------------------------
+
void PushButton::ImplDrawPushButtonContent( OutputDevice* pDev, sal_uLong nDrawFlags,
const Rectangle& rRect,
@@ -940,13 +940,13 @@ void PushButton::ImplDrawPushButtonContent( OutputDevice* pDev, sal_uLong nDrawF
pDev->Pop(); // restore clipregion
}
-// -----------------------------------------------------------------------
+
void PushButton::UserDraw( const UserDrawEvent& )
{
}
-// -----------------------------------------------------------------------
+
void PushButton::ImplDrawPushButton( bool bLayout )
{
@@ -1123,7 +1123,7 @@ void PushButton::ImplDrawPushButton( bool bLayout )
}
}
-// -----------------------------------------------------------------------
+
void PushButton::ImplSetDefButton( bool bSet )
{
@@ -1183,14 +1183,14 @@ void PushButton::ImplSetDefButton( bool bSet )
Invalidate();
}
-// -----------------------------------------------------------------------
+
bool PushButton::ImplIsDefButton() const
{
return (ImplGetButtonState() & BUTTON_DRAW_DEFAULT) != 0;
}
-// -----------------------------------------------------------------------
+
PushButton::PushButton( WindowType nType ) :
Button( nType )
@@ -1198,7 +1198,7 @@ PushButton::PushButton( WindowType nType ) :
ImplInitPushButtonData();
}
-// -----------------------------------------------------------------------
+
PushButton::PushButton( Window* pParent, WinBits nStyle ) :
Button( WINDOW_PUSHBUTTON )
@@ -1207,7 +1207,7 @@ PushButton::PushButton( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
PushButton::PushButton( Window* pParent, const ResId& rResId ) :
Button( WINDOW_PUSHBUTTON )
@@ -1222,13 +1222,13 @@ PushButton::PushButton( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
PushButton::~PushButton()
{
}
-// -----------------------------------------------------------------------
+
void PushButton::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -1250,7 +1250,7 @@ void PushButton::MouseButtonDown( const MouseEvent& rMEvt )
}
}
-// -----------------------------------------------------------------------
+
void PushButton::Tracking( const TrackingEvent& rTEvt )
{
@@ -1316,7 +1316,7 @@ void PushButton::Tracking( const TrackingEvent& rTEvt )
}
}
-// -----------------------------------------------------------------------
+
void PushButton::KeyInput( const KeyEvent& rKEvt )
{
@@ -1344,7 +1344,7 @@ void PushButton::KeyInput( const KeyEvent& rKEvt )
Button::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
+
void PushButton::KeyUp( const KeyEvent& rKEvt )
{
@@ -1378,7 +1378,7 @@ void PushButton::KeyUp( const KeyEvent& rKEvt )
Button::KeyUp( rKEvt );
}
-// -----------------------------------------------------------------------
+
void PushButton::FillLayoutData() const
{
@@ -1386,14 +1386,14 @@ void PushButton::FillLayoutData() const
const_cast<PushButton*>(this)->ImplDrawPushButton( true );
}
-// -----------------------------------------------------------------------
+
void PushButton::Paint( const Rectangle& )
{
ImplDrawPushButton();
}
-// -----------------------------------------------------------------------
+
void PushButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
sal_uLong nFlags )
@@ -1438,7 +1438,7 @@ void PushButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
pDev->Pop();
}
-// -----------------------------------------------------------------------
+
void PushButton::Resize()
{
@@ -1446,7 +1446,7 @@ void PushButton::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void PushButton::GetFocus()
{
@@ -1455,7 +1455,7 @@ void PushButton::GetFocus()
Button::GetFocus();
}
-// -----------------------------------------------------------------------
+
void PushButton::LoseFocus()
{
@@ -1464,7 +1464,7 @@ void PushButton::LoseFocus()
Button::LoseFocus();
}
-// -----------------------------------------------------------------------
+
void PushButton::StateChanged( StateChangedType nType )
{
@@ -1514,7 +1514,7 @@ void PushButton::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void PushButton::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -1530,7 +1530,7 @@ void PushButton::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
bool PushButton::PreNotify( NotifyEvent& rNEvt )
{
@@ -1597,14 +1597,14 @@ bool PushButton::PreNotify( NotifyEvent& rNEvt )
return Button::PreNotify(rNEvt);
}
-// -----------------------------------------------------------------------
+
void PushButton::Toggle()
{
ImplCallEventListenersAndHandler( VCLEVENT_PUSHBUTTON_TOGGLE, maToggleHdl, this );
}
-// -----------------------------------------------------------------------
+
void PushButton::SetSymbol( SymbolType eSymbol )
{
@@ -1615,13 +1615,13 @@ void PushButton::SetSymbol( SymbolType eSymbol )
}
}
-// -----------------------------------------------------------------------
+
void PushButton::SetSymbolAlign( SymbolAlign eAlign )
{
ImplSetSymbolAlign( eAlign );
}
-// -----------------------------------------------------------------------
+
void PushButton::SetDropDown( sal_uInt16 nStyle )
{
@@ -1632,7 +1632,7 @@ void PushButton::SetDropDown( sal_uInt16 nStyle )
}
}
-// -----------------------------------------------------------------------
+
void PushButton::SetState( TriState eState )
{
@@ -1657,7 +1657,7 @@ void PushButton::SetState( TriState eState )
}
}
-// -----------------------------------------------------------------------
+
void PushButton::SetPressed( bool bPressed )
{
@@ -1668,7 +1668,7 @@ void PushButton::SetPressed( bool bPressed )
}
}
-// -----------------------------------------------------------------------
+
void PushButton::EndSelection()
{
@@ -1681,7 +1681,7 @@ void PushButton::EndSelection()
}
}
-// -----------------------------------------------------------------------
+
Size PushButton::CalcMinimumSize( long nMaxWidth ) const
{
@@ -1750,7 +1750,7 @@ void OKButton::ImplInit( Window* pParent, WinBits nStyle )
SetText( Button::GetStandardText( BUTTON_OK ) );
}
-// -----------------------------------------------------------------------
+
OKButton::OKButton( Window* pParent, WinBits nStyle ) :
PushButton( WINDOW_OKBUTTON )
@@ -1758,7 +1758,7 @@ OKButton::OKButton( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
OKButton::OKButton( Window* pParent, const ResId& rResId ) :
PushButton( WINDOW_OKBUTTON )
@@ -1772,7 +1772,7 @@ OKButton::OKButton( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
void OKButton::Click()
{
@@ -1815,7 +1815,7 @@ void CancelButton::ImplInit( Window* pParent, WinBits nStyle )
SetText( Button::GetStandardText( BUTTON_CANCEL ) );
}
-// -----------------------------------------------------------------------
+
CancelButton::CancelButton( Window* pParent, WinBits nStyle ) :
PushButton( WINDOW_CANCELBUTTON )
@@ -1823,7 +1823,7 @@ CancelButton::CancelButton( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
CancelButton::CancelButton( Window* pParent, const ResId& rResId ) :
PushButton( WINDOW_CANCELBUTTON )
@@ -1837,7 +1837,7 @@ CancelButton::CancelButton( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
void CancelButton::Click()
{
@@ -1886,7 +1886,7 @@ void HelpButton::ImplInit( Window* pParent, WinBits nStyle )
SetText( Button::GetStandardText( BUTTON_HELP ) );
}
-// -----------------------------------------------------------------------
+
HelpButton::HelpButton( Window* pParent, WinBits nStyle ) :
PushButton( WINDOW_HELPBUTTON )
@@ -1894,7 +1894,7 @@ HelpButton::HelpButton( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
HelpButton::HelpButton( Window* pParent, const ResId& rResId ) :
PushButton( WINDOW_HELPBUTTON )
@@ -1908,7 +1908,7 @@ HelpButton::HelpButton( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
void HelpButton::Click()
{
@@ -1935,7 +1935,7 @@ void RadioButton::ImplInitRadioButtonData()
mbStateChanged = false;
}
-// -----------------------------------------------------------------------
+
void RadioButton::ImplInit( Window* pParent, WinBits nStyle )
{
@@ -1945,7 +1945,7 @@ void RadioButton::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings( true, true, true );
}
-// -----------------------------------------------------------------------
+
WinBits RadioButton::ImplInitStyle( const Window* pPrevWindow, WinBits nStyle )
{
@@ -1962,20 +1962,20 @@ WinBits RadioButton::ImplInitStyle( const Window* pPrevWindow, WinBits nStyle )
return nStyle;
}
-// -----------------------------------------------------------------
+
const Font& RadioButton::GetCanonicalFont( const StyleSettings& _rStyle ) const
{
return _rStyle.GetRadioCheckFont();
}
-// -----------------------------------------------------------------
+
const Color& RadioButton::GetCanonicalTextColor( const StyleSettings& _rStyle ) const
{
return _rStyle.GetRadioCheckTextColor();
}
-// -----------------------------------------------------------------------
+
void RadioButton::ImplInitSettings( bool bFont,
bool bForeground, bool bBackground )
@@ -2014,7 +2014,7 @@ void RadioButton::DrawRadioButtonState( )
ImplDrawRadioButtonState( );
}
-// -----------------------------------------------------------------------
+
void RadioButton::ImplInvalidateOrDrawRadioButtonState()
{
@@ -2140,7 +2140,7 @@ void RadioButton::ImplDrawRadioButtonState()
}
}
-// -----------------------------------------------------------------------
+
void RadioButton::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
const Point& rPos, const Size& rSize,
@@ -2278,7 +2278,7 @@ void RadioButton::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
pDev->Pop();
}
-// -----------------------------------------------------------------------
+
void RadioButton::ImplDrawRadioButton( bool bLayout )
{
@@ -2395,7 +2395,7 @@ std::vector< RadioButton* > RadioButton::GetRadioButtonGroup(bool bIncludeThis)
return aGroup;
}
-// -----------------------------------------------------------------------
+
void RadioButton::ImplUncheckAllOther()
{
@@ -2421,7 +2421,7 @@ void RadioButton::ImplUncheckAllOther()
}
}
-// -----------------------------------------------------------------------
+
void RadioButton::ImplCallClick( bool bGrabFocus, sal_uInt16 nFocusFlags )
{
@@ -2450,7 +2450,7 @@ void RadioButton::ImplCallClick( bool bGrabFocus, sal_uInt16 nFocusFlags )
mbStateChanged = false;
}
-// -----------------------------------------------------------------------
+
RadioButton::RadioButton( Window* pParent, WinBits nStyle ) :
Button( WINDOW_RADIOBUTTON ), mbLegacyNoTextAlign( false )
@@ -2459,7 +2459,7 @@ RadioButton::RadioButton( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
RadioButton::RadioButton( Window* pParent, const ResId& rResId ) :
Button( WINDOW_RADIOBUTTON ), mbLegacyNoTextAlign( false )
@@ -2474,7 +2474,7 @@ RadioButton::RadioButton( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
void RadioButton::ImplLoadRes( const ResId& rResId )
{
@@ -2486,7 +2486,7 @@ void RadioButton::ImplLoadRes( const ResId& rResId )
SetState( true );
}
-// -----------------------------------------------------------------------
+
RadioButton::~RadioButton()
{
@@ -2497,7 +2497,7 @@ RadioButton::~RadioButton()
}
}
-// -----------------------------------------------------------------------
+
void RadioButton::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -2512,7 +2512,7 @@ void RadioButton::MouseButtonDown( const MouseEvent& rMEvt )
Button::MouseButtonDown( rMEvt );
}
-// -----------------------------------------------------------------------
+
void RadioButton::Tracking( const TrackingEvent& rTEvt )
{
@@ -2553,7 +2553,7 @@ void RadioButton::Tracking( const TrackingEvent& rTEvt )
}
}
-// -----------------------------------------------------------------------
+
void RadioButton::KeyInput( const KeyEvent& rKEvt )
{
@@ -2576,7 +2576,7 @@ void RadioButton::KeyInput( const KeyEvent& rKEvt )
Button::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
+
void RadioButton::KeyUp( const KeyEvent& rKEvt )
{
@@ -2591,7 +2591,7 @@ void RadioButton::KeyUp( const KeyEvent& rKEvt )
Button::KeyUp( rKEvt );
}
-// -----------------------------------------------------------------------
+
void RadioButton::FillLayoutData() const
{
@@ -2599,14 +2599,14 @@ void RadioButton::FillLayoutData() const
const_cast<RadioButton*>(this)->ImplDrawRadioButton( true );
}
-// -----------------------------------------------------------------------
+
void RadioButton::Paint( const Rectangle& )
{
ImplDrawRadioButton();
}
-// -----------------------------------------------------------------------
+
void RadioButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
sal_uLong nFlags )
@@ -2682,7 +2682,7 @@ void RadioButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize
}
}
-// -----------------------------------------------------------------------
+
void RadioButton::Resize()
{
@@ -2690,7 +2690,7 @@ void RadioButton::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void RadioButton::GetFocus()
{
@@ -2699,7 +2699,7 @@ void RadioButton::GetFocus()
Button::GetFocus();
}
-// -----------------------------------------------------------------------
+
void RadioButton::LoseFocus()
{
@@ -2713,7 +2713,7 @@ void RadioButton::LoseFocus()
Button::LoseFocus();
}
-// -----------------------------------------------------------------------
+
void RadioButton::StateChanged( StateChangedType nType )
{
@@ -2762,7 +2762,7 @@ void RadioButton::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void RadioButton::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -2778,7 +2778,7 @@ void RadioButton::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
bool RadioButton::PreNotify( NotifyEvent& rNEvt )
{
@@ -2806,14 +2806,14 @@ bool RadioButton::PreNotify( NotifyEvent& rNEvt )
return Button::PreNotify(rNEvt);
}
-// -----------------------------------------------------------------------
+
void RadioButton::Toggle()
{
ImplCallEventListenersAndHandler( VCLEVENT_RADIOBUTTON_TOGGLE, maToggleHdl, this );
}
-// -----------------------------------------------------------------------
+
bool RadioButton::SetModeRadioImage( const Image& rImage )
{
@@ -2826,14 +2826,14 @@ bool RadioButton::SetModeRadioImage( const Image& rImage )
return true;
}
-// -----------------------------------------------------------------------
+
const Image& RadioButton::GetModeRadioImage( ) const
{
return maImage;
}
-// -----------------------------------------------------------------------
+
void RadioButton::SetState( bool bCheck )
{
@@ -2890,7 +2890,7 @@ bool RadioButton::set_property(const OString &rKey, const OString &rValue)
return true;
}
-// -----------------------------------------------------------------------
+
void RadioButton::Check( bool bCheck )
{
@@ -2917,7 +2917,7 @@ void RadioButton::Check( bool bCheck )
}
}
-// -----------------------------------------------------------------------
+
long RadioButton::ImplGetImageToTextDistance() const
{
@@ -2926,7 +2926,7 @@ long RadioButton::ImplGetImageToTextDistance() const
return CalcZoom( 4 );
}
-// -----------------------------------------------------------------------
+
Size RadioButton::ImplGetRadioImageSize() const
{
@@ -3037,7 +3037,7 @@ Image RadioButton::GetRadioImage( const AllSettings& rSettings, sal_uInt16 nFlag
return pSVData->maCtrlData.mpRadioImgList->GetImage( nId );
}
-// -----------------------------------------------------------------------
+
void RadioButton::ImplSetMinimumNWFSize()
{
@@ -3066,7 +3066,7 @@ void RadioButton::ImplSetMinimumNWFSize()
Pop();
}
-// -----------------------------------------------------------------------
+
Size RadioButton::CalcMinimumSize( long nMaxWidth ) const
{
@@ -3118,7 +3118,7 @@ Size RadioButton::CalcMinimumSize( long nMaxWidth ) const
return CalcWindowSize( aSize );
}
-// -----------------------------------------------------------------------
+
Size RadioButton::GetOptimalSize() const
{
@@ -3134,7 +3134,7 @@ void CheckBox::ImplInitCheckBoxData()
mbTriState = false;
}
-// -----------------------------------------------------------------------
+
void CheckBox::ImplInit( Window* pParent, WinBits nStyle )
{
@@ -3144,7 +3144,7 @@ void CheckBox::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings( true, true, true );
}
-// -----------------------------------------------------------------------
+
WinBits CheckBox::ImplInitStyle( const Window* pPrevWindow, WinBits nStyle )
{
@@ -3156,20 +3156,20 @@ WinBits CheckBox::ImplInitStyle( const Window* pPrevWindow, WinBits nStyle )
return nStyle;
}
-// -----------------------------------------------------------------
+
const Font& CheckBox::GetCanonicalFont( const StyleSettings& _rStyle ) const
{
return _rStyle.GetRadioCheckFont();
}
-// -----------------------------------------------------------------
+
const Color& CheckBox::GetCanonicalTextColor( const StyleSettings& _rStyle ) const
{
return _rStyle.GetRadioCheckTextColor();
}
-// -----------------------------------------------------------------------
+
void CheckBox::ImplInitSettings( bool bFont,
bool bForeground, bool bBackground )
@@ -3203,7 +3203,7 @@ void CheckBox::ImplInitSettings( bool bFont,
}
}
-// -----------------------------------------------------------------------
+
void CheckBox::ImplLoadRes( const ResId& rResId )
{
@@ -3218,7 +3218,7 @@ void CheckBox::ImplLoadRes( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
void CheckBox::ImplInvalidateOrDrawCheckBoxState()
{
@@ -3278,7 +3278,7 @@ void CheckBox::ImplDrawCheckBoxState()
}
}
-// -----------------------------------------------------------------------
+
void CheckBox::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
const Point& rPos, const Size& rSize,
@@ -3383,7 +3383,7 @@ void CheckBox::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
pDev->Pop();
}
-// -----------------------------------------------------------------------
+
void CheckBox::ImplDrawCheckBox( bool bLayout )
{
@@ -3405,7 +3405,7 @@ void CheckBox::ImplDrawCheckBox( bool bLayout )
}
}
-// -----------------------------------------------------------------------
+
void CheckBox::ImplCheck()
{
@@ -3433,7 +3433,7 @@ void CheckBox::ImplCheck()
Click();
}
-// -----------------------------------------------------------------------
+
CheckBox::CheckBox( Window* pParent, WinBits nStyle ) :
Button( WINDOW_CHECKBOX ), mbLegacyNoTextAlign( false )
@@ -3442,7 +3442,7 @@ CheckBox::CheckBox( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
CheckBox::CheckBox( Window* pParent, const ResId& rResId ) :
Button( WINDOW_CHECKBOX ), mbLegacyNoTextAlign( false )
@@ -3457,7 +3457,7 @@ CheckBox::CheckBox( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
void CheckBox::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -3472,7 +3472,7 @@ void CheckBox::MouseButtonDown( const MouseEvent& rMEvt )
Button::MouseButtonDown( rMEvt );
}
-// -----------------------------------------------------------------------
+
void CheckBox::Tracking( const TrackingEvent& rTEvt )
{
@@ -3513,7 +3513,7 @@ void CheckBox::Tracking( const TrackingEvent& rTEvt )
}
}
-// -----------------------------------------------------------------------
+
void CheckBox::KeyInput( const KeyEvent& rKEvt )
{
@@ -3536,7 +3536,7 @@ void CheckBox::KeyInput( const KeyEvent& rKEvt )
Button::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
+
void CheckBox::KeyUp( const KeyEvent& rKEvt )
{
@@ -3551,7 +3551,7 @@ void CheckBox::KeyUp( const KeyEvent& rKEvt )
Button::KeyUp( rKEvt );
}
-// -----------------------------------------------------------------------
+
void CheckBox::FillLayoutData() const
{
@@ -3559,14 +3559,14 @@ void CheckBox::FillLayoutData() const
const_cast<CheckBox*>(this)->ImplDrawCheckBox( true );
}
-// -----------------------------------------------------------------------
+
void CheckBox::Paint( const Rectangle& )
{
ImplDrawCheckBox();
}
-// -----------------------------------------------------------------------
+
void CheckBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
sal_uLong nFlags )
@@ -3666,7 +3666,7 @@ void CheckBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
pDev->Pop();
}
-// -----------------------------------------------------------------------
+
void CheckBox::Resize()
{
@@ -3674,7 +3674,7 @@ void CheckBox::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void CheckBox::GetFocus()
{
@@ -3698,7 +3698,7 @@ void CheckBox::GetFocus()
Button::GetFocus();
}
-// -----------------------------------------------------------------------
+
void CheckBox::LoseFocus()
{
@@ -3725,7 +3725,7 @@ void CheckBox::LoseFocus()
}
}
-// -----------------------------------------------------------------------
+
void CheckBox::StateChanged( StateChangedType nType )
{
@@ -3774,7 +3774,7 @@ void CheckBox::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void CheckBox::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -3790,7 +3790,7 @@ void CheckBox::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
bool CheckBox::PreNotify( NotifyEvent& rNEvt )
{
@@ -3818,14 +3818,14 @@ bool CheckBox::PreNotify( NotifyEvent& rNEvt )
return Button::PreNotify(rNEvt);
}
-// -----------------------------------------------------------------------
+
void CheckBox::Toggle()
{
ImplCallEventListenersAndHandler( VCLEVENT_CHECKBOX_TOGGLE, maToggleHdl, this );
}
-// -----------------------------------------------------------------------
+
void CheckBox::SetState( TriState eState )
{
@@ -3849,7 +3849,7 @@ bool CheckBox::set_property(const OString &rKey, const OString &rValue)
return true;
}
-// -----------------------------------------------------------------------
+
void CheckBox::EnableTriState( bool bTriState )
{
@@ -3862,7 +3862,7 @@ void CheckBox::EnableTriState( bool bTriState )
}
}
-// -----------------------------------------------------------------------
+
long CheckBox::ImplGetImageToTextDistance() const
{
@@ -3871,7 +3871,7 @@ long CheckBox::ImplGetImageToTextDistance() const
return CalcZoom( 4 );
}
-// -----------------------------------------------------------------------
+
Size CheckBox::ImplGetCheckImageSize() const
{
@@ -3961,7 +3961,7 @@ Image CheckBox::GetCheckImage( const AllSettings& rSettings, sal_uInt16 nFlags )
return pSVData->maCtrlData.mpCheckImgList->GetImage( nId );
}
-// -----------------------------------------------------------------------
+
void CheckBox::ImplSetMinimumNWFSize()
{
@@ -3990,7 +3990,7 @@ void CheckBox::ImplSetMinimumNWFSize()
Pop();
}
-// -----------------------------------------------------------------------
+
Size CheckBox::CalcMinimumSize( long nMaxWidth ) const
{
@@ -4025,7 +4025,7 @@ Size CheckBox::CalcMinimumSize( long nMaxWidth ) const
return CalcWindowSize( aSize );
}
-// -----------------------------------------------------------------------
+
Size CheckBox::GetOptimalSize() const
{
@@ -4040,7 +4040,7 @@ ImageButton::ImageButton( Window* pParent, WinBits nStyle ) :
ImplInitStyle();
}
-// -----------------------------------------------------------------------
+
ImageButton::ImageButton( Window* pParent, const ResId& rResId ) :
PushButton( pParent, rResId.SetRT( RSC_IMAGEBUTTON ) )
@@ -4062,13 +4062,13 @@ ImageButton::ImageButton( Window* pParent, const ResId& rResId ) :
ImplInitStyle();
}
-// -----------------------------------------------------------------------
+
ImageButton::~ImageButton()
{
}
-// -----------------------------------------------------------------------
+
void ImageButton::ImplInitStyle()
{
WinBits nStyle = GetStyle();
@@ -4089,7 +4089,7 @@ ImageRadioButton::ImageRadioButton( Window* pParent, WinBits nStyle ) :
{
}
-// -----------------------------------------------------------------------
+
ImageRadioButton::~ImageRadioButton()
{
@@ -4103,7 +4103,7 @@ TriStateBox::TriStateBox( Window* pParent, WinBits nStyle ) :
EnableTriState( true );
}
-// -----------------------------------------------------------------------
+
TriStateBox::~TriStateBox()
{
@@ -4116,7 +4116,7 @@ DisclosureButton::DisclosureButton( Window* pParent, WinBits nStyle ) :
{
}
-// -----------------------------------------------------------------------
+
void DisclosureButton::ImplDrawCheckBoxState()
{
@@ -4168,7 +4168,7 @@ void DisclosureButton::ImplDrawCheckBoxState()
}
}
-// -----------------------------------------------------------------------
+
void DisclosureButton::KeyInput( const KeyEvent& rKEvt )
{
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index b6d8c9bc851e..22ae03aca7e2 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -56,7 +56,7 @@ ComboBox::ComboBox( WindowType nType ) :
SetWidthInChars(-1);
}
-// -----------------------------------------------------------------------
+
ComboBox::ComboBox( Window* pParent, WinBits nStyle ) :
Edit( WINDOW_COMBOBOX )
@@ -66,7 +66,7 @@ ComboBox::ComboBox( Window* pParent, WinBits nStyle ) :
SetWidthInChars(-1);
}
-// -----------------------------------------------------------------------
+
ComboBox::ComboBox( Window* pParent, const ResId& rResId ) :
Edit( WINDOW_COMBOBOX )
@@ -82,7 +82,7 @@ ComboBox::ComboBox( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
ComboBox::~ComboBox()
{
@@ -97,7 +97,7 @@ ComboBox::~ComboBox()
delete mpBtn;
}
-// -----------------------------------------------------------------------
+
void ComboBox::ImplInitComboBoxData()
{
@@ -114,7 +114,7 @@ void ComboBox::ImplInitComboBoxData()
m_nMaxWidthChars = -1;
}
-// -----------------------------------------------------------------------
+
void ComboBox::ImplCalcEditHeight()
{
@@ -140,7 +140,7 @@ void ComboBox::ImplCalcEditHeight()
}
}
-// -----------------------------------------------------------------------
+
void ComboBox::ImplInit( Window* pParent, WinBits nStyle )
{
@@ -219,7 +219,7 @@ void ComboBox::ImplInit( Window* pParent, WinBits nStyle )
SetCompoundControl( true );
}
-// -----------------------------------------------------------------------
+
WinBits ComboBox::ImplInitStyle( WinBits nStyle )
{
@@ -230,7 +230,7 @@ WinBits ComboBox::ImplInitStyle( WinBits nStyle )
return nStyle;
}
-// -----------------------------------------------------------------------
+
void ComboBox::ImplLoadRes( const ResId& rResId )
{
@@ -247,7 +247,7 @@ void ComboBox::ImplLoadRes( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
void ComboBox::EnableAutocomplete( bool bEnable, bool bMatchCase )
{
@@ -259,14 +259,14 @@ void ComboBox::EnableAutocomplete( bool bEnable, bool bMatchCase )
mpSubEdit->SetAutocompleteHdl( Link() );
}
-// -----------------------------------------------------------------------
+
bool ComboBox::IsAutocompleteEnabled() const
{
return mpSubEdit->GetAutocompleteHdl().IsSet();
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ComboBox, ImplClickBtnHdl)
{
@@ -288,7 +288,7 @@ IMPL_LINK_NOARG(ComboBox, ImplClickBtnHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ComboBox, ImplPopupModeEndHdl)
{
@@ -313,7 +313,7 @@ IMPL_LINK_NOARG(ComboBox, ImplPopupModeEndHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( ComboBox, ImplAutocompleteHdl, Edit*, pEdit )
{
@@ -370,7 +370,7 @@ IMPL_LINK( ComboBox, ImplAutocompleteHdl, Edit*, pEdit )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ComboBox, ImplSelectHdl)
{
@@ -476,7 +476,7 @@ IMPL_LINK_NOARG(ComboBox, ImplCancelHdl)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( ComboBox, ImplSelectionChangedHdl, void*, n )
{
@@ -489,7 +489,7 @@ IMPL_LINK( ComboBox, ImplSelectionChangedHdl, void*, n )
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ComboBox, ImplDoubleClickHdl)
{
@@ -497,7 +497,7 @@ IMPL_LINK_NOARG(ComboBox, ImplDoubleClickHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
void ComboBox::ToggleDropDown()
{
@@ -521,21 +521,21 @@ void ComboBox::ToggleDropDown()
}
}
-// -----------------------------------------------------------------------
+
void ComboBox::Select()
{
ImplCallEventListenersAndHandler( VCLEVENT_COMBOBOX_SELECT, maSelectHdl, this );
}
-// -----------------------------------------------------------------------
+
void ComboBox::DoubleClick()
{
ImplCallEventListenersAndHandler( VCLEVENT_COMBOBOX_DOUBLECLICK, maDoubleClickHdl, this );
}
-// -----------------------------------------------------------------------
+
void ComboBox::EnableAutoSize( bool bAuto )
{
@@ -554,7 +554,7 @@ void ComboBox::EnableAutoSize( bool bAuto )
}
}
-// -----------------------------------------------------------------------
+
void ComboBox::EnableDDAutoWidth( bool b )
{
@@ -562,7 +562,7 @@ void ComboBox::EnableDDAutoWidth( bool b )
mpFloatWin->SetAutoWidth( b );
}
- // -----------------------------------------------------------------------
+
void ComboBox::SetDropDownLineCount( sal_uInt16 nLines )
{
@@ -570,7 +570,7 @@ void ComboBox::SetDropDownLineCount( sal_uInt16 nLines )
mpFloatWin->SetDropDownLineCount( nLines );
}
-// -----------------------------------------------------------------------
+
void ComboBox::AdaptDropDownLineCountToMaximum()
{
@@ -578,7 +578,7 @@ void ComboBox::AdaptDropDownLineCountToMaximum()
SetDropDownLineCount(GetSettings().GetStyleSettings().GetListBoxMaximumLineCount());
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ComboBox::GetDropDownLineCount() const
{
@@ -588,7 +588,7 @@ sal_uInt16 ComboBox::GetDropDownLineCount() const
return nLines;
}
-// -----------------------------------------------------------------------
+
void ComboBox::setPosSizePixel( long nX, long nY, long nWidth, long nHeight,
sal_uInt16 nFlags )
@@ -609,7 +609,7 @@ void ComboBox::setPosSizePixel( long nX, long nY, long nWidth, long nHeight,
Edit::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
-// -----------------------------------------------------------------------
+
void ComboBox::Resize()
{
@@ -637,7 +637,7 @@ void ComboBox::Resize()
mpFloatWin->SetSizePixel( mpFloatWin->CalcFloatSize() );
}
-// -----------------------------------------------------------------------
+
void ComboBox::FillLayoutData() const
{
@@ -661,7 +661,7 @@ void ComboBox::FillLayoutData() const
}
}
-// -----------------------------------------------------------------------
+
void ComboBox::StateChanged( StateChangedType nType )
{
@@ -727,7 +727,7 @@ void ComboBox::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void ComboBox::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -751,7 +751,7 @@ void ComboBox::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
bool ComboBox::PreNotify( NotifyEvent& rNEvt )
{
@@ -759,7 +759,7 @@ bool ComboBox::PreNotify( NotifyEvent& rNEvt )
return Edit::PreNotify( rNEvt );
}
-// -----------------------------------------------------------------------
+
bool ComboBox::Notify( NotifyEvent& rNEvt )
{
@@ -844,7 +844,7 @@ bool ComboBox::Notify( NotifyEvent& rNEvt )
return nDone || Edit::Notify( rNEvt );
}
-// -----------------------------------------------------------------------
+
void ComboBox::SetText( const OUString& rStr )
{
@@ -854,7 +854,7 @@ void ComboBox::SetText( const OUString& rStr )
ImplUpdateFloatSelection();
}
-// -----------------------------------------------------------------------
+
void ComboBox::SetText( const OUString& rStr, const Selection& rNewSelection )
{
@@ -864,7 +864,7 @@ void ComboBox::SetText( const OUString& rStr, const Selection& rNewSelection )
ImplUpdateFloatSelection();
}
-// -----------------------------------------------------------------------
+
void ComboBox::Modify()
{
@@ -874,7 +874,7 @@ void ComboBox::Modify()
Edit::Modify();
}
-// -----------------------------------------------------------------------
+
void ComboBox::ImplUpdateFloatSelection()
{
@@ -925,7 +925,7 @@ void ComboBox::ImplUpdateFloatSelection()
mpImplLB->SetCallSelectionChangedHdl( true );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ComboBox::InsertEntry(const OUString& rStr, sal_uInt16 const nPos)
{
@@ -935,7 +935,7 @@ sal_uInt16 ComboBox::InsertEntry(const OUString& rStr, sal_uInt16 const nPos)
return nRealPos;
}
-// -----------------------------------------------------------------------
+
void ComboBox::InsertEntryWithImage(
const OUString& rStr, const Image& rImage, sal_uInt16 const nPos)
@@ -945,14 +945,14 @@ void ComboBox::InsertEntryWithImage(
CallEventListeners( VCLEVENT_COMBOBOX_ITEMADDED, (void*) sal_IntPtr(nRealPos) );
}
-// -----------------------------------------------------------------------
+
void ComboBox::RemoveEntry( const OUString& rStr )
{
RemoveEntryAt(GetEntryPos(rStr));
}
-// -----------------------------------------------------------------------
+
void ComboBox::RemoveEntryAt(sal_uInt16 const nPos)
{
@@ -960,14 +960,14 @@ void ComboBox::RemoveEntryAt(sal_uInt16 const nPos)
CallEventListeners( VCLEVENT_COMBOBOX_ITEMREMOVED, (void*) sal_IntPtr(nPos) );
}
-// -----------------------------------------------------------------------
+
void ComboBox::Clear()
{
mpImplLB->Clear();
CallEventListeners( VCLEVENT_COMBOBOX_ITEMREMOVED, (void*) sal_IntPtr(-1) );
}
-// -----------------------------------------------------------------------
+
Image ComboBox::GetEntryImage( sal_uInt16 nPos ) const
{
@@ -976,7 +976,7 @@ Image ComboBox::GetEntryImage( sal_uInt16 nPos ) const
return Image();
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ComboBox::GetEntryPos( const OUString& rStr ) const
{
@@ -986,35 +986,35 @@ sal_uInt16 ComboBox::GetEntryPos( const OUString& rStr ) const
return nPos;
}
-// -----------------------------------------------------------------------
+
OUString ComboBox::GetEntry( sal_uInt16 nPos ) const
{
return mpImplLB->GetEntryList()->GetEntryText( nPos + mpImplLB->GetEntryList()->GetMRUCount() );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ComboBox::GetEntryCount() const
{
return mpImplLB->GetEntryList()->GetEntryCount() - mpImplLB->GetEntryList()->GetMRUCount();
}
-// -----------------------------------------------------------------------
+
bool ComboBox::IsTravelSelect() const
{
return mpImplLB->IsTravelSelect();
}
-// -----------------------------------------------------------------------
+
bool ComboBox::IsInDropDown() const
{
return mpFloatWin && mpFloatWin->IsInPopupMode();
}
-// -----------------------------------------------------------------------
+
void ComboBox::EnableMultiSelection( bool bMulti )
{
@@ -1022,28 +1022,28 @@ void ComboBox::EnableMultiSelection( bool bMulti )
mpImplLB->SetMultiSelectionSimpleMode( true );
}
-// -----------------------------------------------------------------------
+
bool ComboBox::IsMultiSelectionEnabled() const
{
return mpImplLB->IsMultiSelectionEnabled();
}
-// -----------------------------------------------------------------------
+
long ComboBox::CalcWindowSizePixel( sal_uInt16 nLines ) const
{
return mpImplLB->GetEntryHeight() * nLines;
}
-// -----------------------------------------------------------------------
+
Size ComboBox::GetOptimalSize() const
{
return CalcMinimumSize();
}
-// -----------------------------------------------------------------------
+
long ComboBox::getMaxWidthScrollBarAndDownButton() const
{
@@ -1105,7 +1105,7 @@ Size ComboBox::CalcMinimumSize() const
return aSz;
}
-// -----------------------------------------------------------------------
+
Size ComboBox::CalcAdjustedSize( const Size& rPrefSize ) const
{
@@ -1132,7 +1132,7 @@ Size ComboBox::CalcAdjustedSize( const Size& rPrefSize ) const
return aSz;
}
-// -----------------------------------------------------------------------
+
Size ComboBox::CalcBlockSize( sal_uInt16 nColumns, sal_uInt16 nLines ) const
{
@@ -1174,7 +1174,7 @@ Size ComboBox::CalcBlockSize( sal_uInt16 nColumns, sal_uInt16 nLines ) const
return aSz;
}
-// -----------------------------------------------------------------------
+
void ComboBox::GetMaxVisColumnsAndLines( sal_uInt16& rnCols, sal_uInt16& rnLines ) const
{
@@ -1193,7 +1193,7 @@ void ComboBox::GetMaxVisColumnsAndLines( sal_uInt16& rnCols, sal_uInt16& rnLines
}
}
-// -----------------------------------------------------------------------
+
void ComboBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags )
{
@@ -1299,7 +1299,7 @@ void ComboBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, s
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( ComboBox, ImplUserDrawHdl, UserDrawEvent*, pEvent )
{
@@ -1307,27 +1307,27 @@ IMPL_LINK( ComboBox, ImplUserDrawHdl, UserDrawEvent*, pEvent )
return 1;
}
-// -----------------------------------------------------------------------
+
void ComboBox::UserDraw( const UserDrawEvent& )
{
}
-// -----------------------------------------------------------------------
+
void ComboBox::SetUserItemSize( const Size& rSz )
{
mpImplLB->GetMainWindow()->SetUserItemSize( rSz );
}
-// -----------------------------------------------------------------------
+
void ComboBox::EnableUserDraw( bool bUserDraw )
{
mpImplLB->GetMainWindow()->EnableUserDraw( bUserDraw );
}
-// -----------------------------------------------------------------------
+
void ComboBox::DrawEntry( const UserDrawEvent& rEvt, bool bDrawImage, bool bDrawText, bool bDrawTextAtImagePos )
{
@@ -1335,35 +1335,35 @@ void ComboBox::DrawEntry( const UserDrawEvent& rEvt, bool bDrawImage, bool bDraw
mpImplLB->GetMainWindow()->DrawEntry( rEvt.GetItemId(), bDrawImage, bDrawText, bDrawTextAtImagePos );
}
-// -----------------------------------------------------------------------
+
void ComboBox::SetSeparatorPos( sal_uInt16 n )
{
mpImplLB->SetSeparatorPos( n );
}
-// -----------------------------------------------------------------------
+
void ComboBox::SetMRUEntries( const OUString& rEntries, sal_Unicode cSep )
{
mpImplLB->SetMRUEntries( rEntries, cSep );
}
-// -----------------------------------------------------------------------
+
OUString ComboBox::GetMRUEntries( sal_Unicode cSep ) const
{
return mpImplLB->GetMRUEntries( cSep );
}
-// -----------------------------------------------------------------------
+
void ComboBox::SetMaxMRUCount( sal_uInt16 n )
{
mpImplLB->SetMaxMRUCount( n );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ComboBox::GetMaxMRUCount() const
{
@@ -1375,28 +1375,28 @@ sal_uInt16 ComboBox::GetMRUCount() const
return mpImplLB->GetEntryList()->GetMRUCount();
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ComboBox::GetDisplayLineCount() const
{
return mpImplLB->GetDisplayLineCount();
}
-// -----------------------------------------------------------------------
+
void ComboBox::SetEntryData( sal_uInt16 nPos, void* pNewData )
{
mpImplLB->SetEntryData( nPos + mpImplLB->GetEntryList()->GetMRUCount(), pNewData );
}
-// -----------------------------------------------------------------------
+
void* ComboBox::GetEntryData( sal_uInt16 nPos ) const
{
return mpImplLB->GetEntryList()->GetEntryData( nPos + mpImplLB->GetEntryList()->GetMRUCount() );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ComboBox::GetTopEntry() const
{
@@ -1406,21 +1406,21 @@ sal_uInt16 ComboBox::GetTopEntry() const
return nPos;
}
-// -----------------------------------------------------------------------
+
void ComboBox::SetProminentEntryType( ProminentEntry eType )
{
mpImplLB->SetProminentEntryType( eType );
}
-// -----------------------------------------------------------------------
+
Rectangle ComboBox::GetDropDownPosSizePixel() const
{
return mpFloatWin ? mpFloatWin->GetWindowExtentsRelative( const_cast<ComboBox*>(this) ) : Rectangle();
}
-// -----------------------------------------------------------------------
+
const Wallpaper& ComboBox::GetDisplayBackground() const
{
@@ -1435,12 +1435,12 @@ const Wallpaper& ComboBox::GetDisplayBackground() const
return Control::GetDisplayBackground();
return rBack;
}
-// -----------------------------------------------------------------------------
+
sal_uInt16 ComboBox::GetSelectEntryCount() const
{
return mpImplLB->GetEntryList()->GetSelectEntryCount();
}
-// -----------------------------------------------------------------------------
+
sal_uInt16 ComboBox::GetSelectEntryPos( sal_uInt16 nIndex ) const
{
sal_uInt16 nPos = mpImplLB->GetEntryList()->GetSelectEntryPos( nIndex );
@@ -1452,24 +1452,24 @@ sal_uInt16 ComboBox::GetSelectEntryPos( sal_uInt16 nIndex ) const
}
return nPos;
}
-// -----------------------------------------------------------------------------
+
bool ComboBox::IsEntryPosSelected( sal_uInt16 nPos ) const
{
return mpImplLB->GetEntryList()->IsEntryPosSelected( nPos + mpImplLB->GetEntryList()->GetMRUCount() );
}
-// -----------------------------------------------------------------------------
+
void ComboBox::SelectEntryPos( sal_uInt16 nPos, bool bSelect)
{
if ( nPos < mpImplLB->GetEntryList()->GetEntryCount() )
mpImplLB->SelectEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount(), bSelect );
}
-// -----------------------------------------------------------------------------
+
void ComboBox::SetNoSelection()
{
mpImplLB->SetNoSelection();
mpSubEdit->SetText( OUString() );
}
-// -----------------------------------------------------------------------------
+
Rectangle ComboBox::GetBoundingRectangle( sal_uInt16 nItem ) const
{
Rectangle aRect = mpImplLB->GetMainWindow()->GetBoundingRectangle( nItem );
@@ -1477,7 +1477,7 @@ Rectangle ComboBox::GetBoundingRectangle( sal_uInt16 nItem ) const
aRect.Move( aOffset.TopLeft().X(), aOffset.TopLeft().Y() );
return aRect;
}
-// -----------------------------------------------------------------------------
+
void ComboBox::SetBorderStyle( sal_uInt16 nBorderStyle )
{
@@ -1488,7 +1488,7 @@ void ComboBox::SetBorderStyle( sal_uInt16 nBorderStyle )
mpImplLB->SetBorderStyle( nBorderStyle );
}
}
-// -----------------------------------------------------------------------------
+
long ComboBox::GetIndexForPoint( const Point& rPoint, sal_uInt16& rPos ) const
{
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index 84e25feb4cfb..9a458295c28a 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -43,7 +43,7 @@ void Control::ImplInitControlData()
mpControlData = new ImplControlData;
}
-// -----------------------------------------------------------------------
+
Control::Control( WindowType nType ) :
Window( nType )
@@ -51,7 +51,7 @@ Control::Control( WindowType nType ) :
ImplInitControlData();
}
-// -----------------------------------------------------------------------
+
Control::Control( Window* pParent, WinBits nStyle ) :
Window( WINDOW_CONTROL )
@@ -73,28 +73,28 @@ Control::Control( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
Control::~Control()
{
delete mpControlData, mpControlData = NULL;
}
-// -----------------------------------------------------------------------
+
void Control::GetFocus()
{
Window::GetFocus();
}
-// -----------------------------------------------------------------------
+
void Control::LoseFocus()
{
Window::LoseFocus();
}
-// -----------------------------------------------------------------------
+
void Control::Resize()
{
@@ -102,13 +102,13 @@ void Control::Resize()
Window::Resize();
}
-// -----------------------------------------------------------------------
+
void Control::FillLayoutData() const
{
}
-// -----------------------------------------------------------------------
+
void Control::CreateLayoutData() const
{
@@ -116,21 +116,21 @@ void Control::CreateLayoutData() const
mpControlData->mpLayoutData = new ::vcl::ControlLayoutData();
}
-// -----------------------------------------------------------------------
+
bool Control::HasLayoutData() const
{
return mpControlData->mpLayoutData != NULL;
}
-// -----------------------------------------------------------------------
+
::vcl::ControlLayoutData* Control::GetLayoutData() const
{
return mpControlData->mpLayoutData;
}
-// -----------------------------------------------------------------------
+
void Control::SetText( const OUString& rStr )
{
@@ -138,7 +138,7 @@ void Control::SetText( const OUString& rStr )
Window::SetText( rStr );
}
-// -----------------------------------------------------------------------
+
Rectangle ControlLayoutData::GetCharacterBounds( long nIndex ) const
{
@@ -146,7 +146,7 @@ Rectangle ControlLayoutData::GetCharacterBounds( long nIndex ) const
}
-// -----------------------------------------------------------------------
+
Rectangle Control::GetCharacterBounds( long nIndex ) const
{
@@ -155,7 +155,7 @@ Rectangle Control::GetCharacterBounds( long nIndex ) const
return mpControlData->mpLayoutData ? mpControlData->mpLayoutData->GetCharacterBounds( nIndex ) : Rectangle();
}
-// -----------------------------------------------------------------------
+
long ControlLayoutData::GetIndexForPoint( const Point& rPoint ) const
{
@@ -174,7 +174,7 @@ long ControlLayoutData::GetIndexForPoint( const Point& rPoint ) const
return nIndex;
}
-// -----------------------------------------------------------------------
+
long Control::GetIndexForPoint( const Point& rPoint ) const
{
@@ -183,7 +183,7 @@ long Control::GetIndexForPoint( const Point& rPoint ) const
return mpControlData->mpLayoutData ? mpControlData->mpLayoutData->GetIndexForPoint( rPoint ) : -1;
}
-// -----------------------------------------------------------------------
+
long ControlLayoutData::GetLineCount() const
{
@@ -193,7 +193,7 @@ long ControlLayoutData::GetLineCount() const
return nLines;
}
-// -----------------------------------------------------------------------
+
Pair ControlLayoutData::GetLineStartEnd( long nLine ) const
{
@@ -218,7 +218,7 @@ Pair ControlLayoutData::GetLineStartEnd( long nLine ) const
return aPair;
}
-// -----------------------------------------------------------------------
+
Pair Control::GetLineStartEnd( long nLine ) const
{
@@ -227,7 +227,7 @@ Pair Control::GetLineStartEnd( long nLine ) const
return mpControlData->mpLayoutData ? mpControlData->mpLayoutData->GetLineStartEnd( nLine ) : Pair( -1, -1 );
}
-// -----------------------------------------------------------------------
+
long ControlLayoutData::ToRelativeLineIndex( long nIndex ) const
{
@@ -261,7 +261,7 @@ long ControlLayoutData::ToRelativeLineIndex( long nIndex ) const
return nIndex;
}
-// -----------------------------------------------------------------------
+
long Control::ToRelativeLineIndex( long nIndex ) const
{
@@ -270,7 +270,7 @@ long Control::ToRelativeLineIndex( long nIndex ) const
return mpControlData->mpLayoutData ? mpControlData->mpLayoutData->ToRelativeLineIndex( nIndex ) : -1;
}
-// -----------------------------------------------------------------------
+
OUString Control::GetDisplayText() const
{
@@ -279,7 +279,7 @@ OUString Control::GetDisplayText() const
return mpControlData->mpLayoutData ? OUString(mpControlData->mpLayoutData->m_aDisplayText) : GetText();
}
-// -----------------------------------------------------------------------
+
bool Control::Notify( NotifyEvent& rNEvt )
{
@@ -313,7 +313,7 @@ bool Control::Notify( NotifyEvent& rNEvt )
return Window::Notify( rNEvt );
}
-// -----------------------------------------------------------------------
+
void Control::StateChanged( StateChangedType nStateChange )
{
@@ -329,7 +329,7 @@ void Control::StateChanged( StateChangedType nStateChange )
Window::StateChanged( nStateChange );
}
-// -----------------------------------------------------------------------
+
void Control::AppendLayoutData( const Control& rSubControl ) const
{
@@ -355,7 +355,7 @@ void Control::AppendLayoutData( const Control& rSubControl ) const
}
}
-// -----------------------------------------------------------------
+
bool Control::ImplCallEventListenersAndHandler( sal_uLong nEvent, const Link& rHandler, void* pCaller )
{
@@ -376,7 +376,7 @@ bool Control::ImplCallEventListenersAndHandler( sal_uLong nEvent, const Link& r
return true;
}
-// -----------------------------------------------------------------
+
void Control::SetLayoutDataParent( const Control* pParent ) const
{
@@ -384,14 +384,14 @@ void Control::SetLayoutDataParent( const Control* pParent ) const
mpControlData->mpLayoutData->m_pParent = pParent;
}
-// -----------------------------------------------------------------
+
void Control::ImplClearLayoutData() const
{
delete mpControlData->mpLayoutData, mpControlData->mpLayoutData = NULL;
}
-// -----------------------------------------------------------------------
+
void Control::ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect )
{
@@ -420,7 +420,7 @@ void Control::ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect )
pDev->OutputDevice::SetSettings( aOriginalSettings );
}
-// -----------------------------------------------------------------------
+
void Control::DataChanged( const DataChangedEvent& rDCEvt)
{
@@ -447,7 +447,7 @@ void Control::DataChanged( const DataChangedEvent& rDCEvt)
}
}
-// -----------------------------------------------------------------
+
ControlLayoutData::~ControlLayoutData()
{
@@ -455,7 +455,7 @@ ControlLayoutData::~ControlLayoutData()
m_pParent->ImplClearLayoutData();
}
-// -----------------------------------------------------------------
+
Size Control::GetOptimalSize() const
{
@@ -463,7 +463,7 @@ Size Control::GetOptimalSize() const
GetTextHeight() + 2 * 6 );
}
-// -----------------------------------------------------------------
+
void Control::SetReferenceDevice( OutputDevice* _referenceDevice )
{
@@ -474,27 +474,27 @@ void Control::SetReferenceDevice( OutputDevice* _referenceDevice )
Invalidate();
}
-// -----------------------------------------------------------------
+
OutputDevice* Control::GetReferenceDevice() const
{
return mpControlData->mpReferenceDevice;
}
-// -----------------------------------------------------------------
+
const Font& Control::GetCanonicalFont( const StyleSettings& _rStyle ) const
{
return _rStyle.GetLabelFont();
}
-// -----------------------------------------------------------------
+
const Color& Control::GetCanonicalTextColor( const StyleSettings& _rStyle ) const
{
return _rStyle.GetLabelTextColor();
}
-// -----------------------------------------------------------------
+
void Control::ImplInitSettings( const bool _bFont, const bool _bForeground )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -519,7 +519,7 @@ void Control::ImplInitSettings( const bool _bFont, const bool _bForeground )
}
}
-// -----------------------------------------------------------------
+
void Control::DrawControlText( OutputDevice& _rTargetDevice, Rectangle& _io_rRect, const OUString& _rStr,
sal_uInt16 _nStyle, MetricVector* _pVector, OUString* _pDisplayText ) const
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 165d73885552..e24a474a1324 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -137,7 +137,7 @@ struct Impl_IMEInfos
void DestroyAttribs();
};
-// -----------------------------------------------------------------------
+
Impl_IMEInfos::Impl_IMEInfos(sal_Int32 nP, const OUString& rOldTextAfterStartPos)
: aOldTextAfterStartPos(rOldTextAfterStartPos)
@@ -149,14 +149,14 @@ Impl_IMEInfos::Impl_IMEInfos(sal_Int32 nP, const OUString& rOldTextAfterStartPos
bWasCursorOverwrite = false;
}
-// -----------------------------------------------------------------------
+
Impl_IMEInfos::~Impl_IMEInfos()
{
delete[] pAttribs;
}
-// -----------------------------------------------------------------------
+
void Impl_IMEInfos::CopyAttribs(const sal_uInt16* pA, sal_Int32 nL)
{
@@ -166,7 +166,7 @@ void Impl_IMEInfos::CopyAttribs(const sal_uInt16* pA, sal_Int32 nL)
memcpy( pAttribs, pA, nL*sizeof(sal_uInt16) );
}
-// -----------------------------------------------------------------------
+
void Impl_IMEInfos::DestroyAttribs()
{
@@ -183,7 +183,7 @@ Edit::Edit( WindowType nType ) :
ImplInitEditData();
}
-// -----------------------------------------------------------------------
+
Edit::Edit( Window* pParent, WinBits nStyle ) :
Control( WINDOW_EDIT )
@@ -264,7 +264,7 @@ bool Edit::set_property(const OString &rKey, const OString &rValue)
return true;
}
-// -----------------------------------------------------------------------
+
Edit::~Edit()
{
@@ -298,7 +298,7 @@ Edit::~Edit()
}
}
-// -----------------------------------------------------------------------
+
void Edit::ImplInitEditData()
{
@@ -330,7 +330,7 @@ void Edit::ImplInitEditData()
mxDnDListener = pDnDWrapper;
}
-// -----------------------------------------------------------------------
+
bool Edit::ImplUseNativeBorder( WinBits nStyle )
{
@@ -385,7 +385,7 @@ void Edit::ImplInit( Window* pParent, WinBits nStyle )
}
}
-// -----------------------------------------------------------------------
+
WinBits Edit::ImplInitStyle( WinBits nStyle )
{
@@ -397,7 +397,7 @@ WinBits Edit::ImplInitStyle( WinBits nStyle )
return nStyle;
}
-// -----------------------------------------------------------------------
+
bool Edit::IsCharInput( const KeyEvent& rKeyEvent )
{
@@ -409,7 +409,7 @@ bool Edit::IsCharInput( const KeyEvent& rKeyEvent )
!rKeyEvent.GetKeyCode().IsMod1() );
}
-// -----------------------------------------------------------------------
+
void Edit::ImplModified()
{
@@ -417,7 +417,7 @@ void Edit::ImplModified()
Modify();
}
-// -----------------------------------------------------------------------
+
void Edit::ImplInitSettings( bool bFont, bool bForeground, bool bBackground )
{
@@ -461,7 +461,7 @@ void Edit::ImplInitSettings( bool bFont, bool bForeground, bool bBackground )
}
}
-// -----------------------------------------------------------------------
+
long Edit::ImplGetExtraOffset() const
{
@@ -476,7 +476,7 @@ long Edit::ImplGetExtraOffset() const
}
-// -----------------------------------------------------------------------
+
OUString Edit::ImplGetText() const
{
@@ -495,7 +495,7 @@ OUString Edit::ImplGetText() const
return maText.toString();
}
-// -----------------------------------------------------------------------
+
void Edit::ImplInvalidateOrRepaint()
{
@@ -510,7 +510,7 @@ void Edit::ImplInvalidateOrRepaint()
ImplRepaint();
}
-// -----------------------------------------------------------------------
+
long Edit::ImplGetTextYPosition() const
{
@@ -521,7 +521,7 @@ long Edit::ImplGetTextYPosition() const
return ( GetOutputSizePixel().Height() - GetTextHeight() ) / 2;
}
-// -----------------------------------------------------------------------
+
void Edit::ImplRepaint(bool bLayout)
{
@@ -743,7 +743,7 @@ void Edit::ImplRepaint(bool bLayout)
delete [] pDXBuffer;
}
-// -----------------------------------------------------------------------
+
void Edit::ImplDelete( const Selection& rSelection, sal_uInt8 nDirection, sal_uInt8 nMode )
{
@@ -813,7 +813,7 @@ void Edit::ImplDelete( const Selection& rSelection, sal_uInt8 nDirection, sal_uI
mbInternModified = true;
}
-// -----------------------------------------------------------------------
+
OUString Edit::ImplGetValidString( const OUString& rString ) const
{
@@ -824,7 +824,7 @@ OUString Edit::ImplGetValidString( const OUString& rString ) const
return aValidString;
}
-// -----------------------------------------------------------------------
+
uno::Reference < i18n::XBreakIterator > Edit::ImplGetBreakIterator() const
{
//!! since we don't want to become incompatible in the next minor update
@@ -833,7 +833,7 @@ uno::Reference < i18n::XBreakIterator > Edit::ImplGetBreakIterator() const
uno::Reference< uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext();
return i18n::BreakIterator::create(xContext);
}
-// -----------------------------------------------------------------------
+
uno::Reference < i18n::XExtendedInputSequenceChecker > Edit::ImplGetInputSequenceChecker()
{
@@ -845,7 +845,7 @@ uno::Reference < i18n::XExtendedInputSequenceChecker > Edit::ImplGetInputSequenc
return mxISC;
}
-// -----------------------------------------------------------------------
+
void Edit::ShowTruncationWarning( Window* pParent )
{
@@ -857,7 +857,7 @@ void Edit::ShowTruncationWarning( Window* pParent )
}
}
-// -----------------------------------------------------------------------
+
bool Edit::ImplTruncateToMaxLen( OUString& rStr, sal_Int32 nSelectionLen ) const
{
@@ -871,7 +871,7 @@ bool Edit::ImplTruncateToMaxLen( OUString& rStr, sal_Int32 nSelectionLen ) const
return bWasTruncated;
}
-// -----------------------------------------------------------------------
+
void Edit::ImplInsertText( const OUString& rStr, const Selection* pNewSel, bool bIsUserInput )
{
@@ -974,7 +974,7 @@ void Edit::ImplInsertText( const OUString& rStr, const Selection* pNewSel, bool
mbInternModified = true;
}
-// -----------------------------------------------------------------------
+
void Edit::ImplSetText( const OUString& rText, const Selection* pNewSelection )
{
@@ -1009,7 +1009,7 @@ void Edit::ImplSetText( const OUString& rText, const Selection* pNewSelection )
}
}
-// -----------------------------------------------------------------------
+
int Edit::ImplGetNativeControlType() const
{
@@ -1140,7 +1140,7 @@ void Edit::ImplPaintBorder( long nXStart, long nXEnd )
}
}
-// -----------------------------------------------------------------------
+
void Edit::ImplShowCursor( bool bOnlyIfVisible )
{
@@ -1222,7 +1222,7 @@ void Edit::ImplShowCursor( bool bOnlyIfVisible )
delete [] pDXBuffer;
}
-// -----------------------------------------------------------------------
+
void Edit::ImplAlign()
{
@@ -1262,7 +1262,7 @@ void Edit::ImplAlign()
}
-// -----------------------------------------------------------------------
+
void Edit::ImplAlignAndPaint()
{
@@ -1271,7 +1271,7 @@ void Edit::ImplAlignAndPaint()
ImplShowCursor();
}
-// -----------------------------------------------------------------------
+
sal_Int32 Edit::ImplGetCharPos( const Point& rWindowPos ) const
{
@@ -1332,7 +1332,7 @@ sal_Int32 Edit::ImplGetCharPos( const Point& rWindowPos ) const
return nIndex;
}
-// -----------------------------------------------------------------------
+
void Edit::ImplSetCursorPos( sal_Int32 nChar, bool bSelect )
{
@@ -1343,7 +1343,7 @@ void Edit::ImplSetCursorPos( sal_Int32 nChar, bool bSelect )
ImplSetSelection( aSelection );
}
-// -----------------------------------------------------------------------
+
void Edit::ImplLoadRes( const ResId& rResId )
{
@@ -1354,7 +1354,7 @@ void Edit::ImplLoadRes( const ResId& rResId )
SetMaxTextLen( nTextLength );
}
-// -----------------------------------------------------------------------
+
void Edit::ImplCopyToSelectionClipboard()
{
@@ -1370,7 +1370,7 @@ void Edit::ImplCopy( uno::Reference< datatransfer::clipboard::XClipboard >& rxCl
::vcl::unohelper::TextDataObject::CopyStringTo( GetSelected(), rxClipboard );
}
-// -----------------------------------------------------------------------
+
void Edit::ImplPaste( uno::Reference< datatransfer::clipboard::XClipboard >& rxClipboard )
{
@@ -1410,7 +1410,7 @@ void Edit::ImplPaste( uno::Reference< datatransfer::clipboard::XClipboard >& rxC
}
}
-// -----------------------------------------------------------------------
+
void Edit::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -1455,7 +1455,7 @@ void Edit::MouseButtonDown( const MouseEvent& rMEvt )
mbInMBDown = false;
}
-// -----------------------------------------------------------------------
+
void Edit::MouseButtonUp( const MouseEvent& rMEvt )
{
@@ -1474,7 +1474,7 @@ void Edit::MouseButtonUp( const MouseEvent& rMEvt )
}
}
-// -----------------------------------------------------------------------
+
void Edit::Tracking( const TrackingEvent& rTEvt )
{
@@ -1504,7 +1504,7 @@ void Edit::Tracking( const TrackingEvent& rTEvt )
mpUpdateDataTimer->Start();//do not update while the user is still travelling in the control
}
-// -----------------------------------------------------------------------
+
bool Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt )
{
@@ -1837,7 +1837,7 @@ bool Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt )
return bDone;
}
-// -----------------------------------------------------------------------
+
void Edit::KeyInput( const KeyEvent& rKEvt )
{
@@ -1848,7 +1848,7 @@ void Edit::KeyInput( const KeyEvent& rKEvt )
Control::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
+
void Edit::FillLayoutData() const
{
@@ -1856,7 +1856,7 @@ void Edit::FillLayoutData() const
const_cast<Edit*>(this)->ImplRepaint(true);
}
-// -----------------------------------------------------------------------
+
void Edit::Paint( const Rectangle& )
{
@@ -1864,7 +1864,7 @@ void Edit::Paint( const Rectangle& )
ImplRepaint();
}
-// -----------------------------------------------------------------------
+
void Edit::Resize()
{
@@ -1879,7 +1879,7 @@ void Edit::Resize()
}
}
-// -----------------------------------------------------------------------
+
void Edit::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags )
{
@@ -1968,7 +1968,7 @@ void Edit::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_u
}
}
-// -----------------------------------------------------------------------
+
void Edit::ImplInvalidateOutermostBorder( Window* pWin )
{
@@ -2036,7 +2036,7 @@ void Edit::GetFocus()
Control::GetFocus();
}
-// -----------------------------------------------------------------------
+
Window* Edit::GetPreferredKeyInputWindow()
{
@@ -2046,7 +2046,7 @@ Window* Edit::GetPreferredKeyInputWindow()
return this;
}
-// -----------------------------------------------------------------------
+
void Edit::LoseFocus()
{
@@ -2075,7 +2075,7 @@ void Edit::LoseFocus()
Control::LoseFocus();
}
-// -----------------------------------------------------------------------
+
void Edit::Command( const CommandEvent& rCEvt )
{
@@ -2314,7 +2314,7 @@ void Edit::Command( const CommandEvent& rCEvt )
Control::Command( rCEvt );
}
-// -----------------------------------------------------------------------
+
void Edit::StateChanged( StateChangedType nType )
{
@@ -2415,7 +2415,7 @@ void Edit::StateChanged( StateChangedType nType )
Control::StateChanged( nType );
}
-// -----------------------------------------------------------------------
+
void Edit::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -2435,7 +2435,7 @@ void Edit::DataChanged( const DataChangedEvent& rDCEvt )
Control::DataChanged( rDCEvt );
}
-// -----------------------------------------------------------------------
+
void Edit::ImplShowDDCursor()
{
@@ -2452,7 +2452,7 @@ void Edit::ImplShowDDCursor()
}
}
-// -----------------------------------------------------------------------
+
void Edit::ImplHideDDCursor()
{
@@ -2463,7 +2463,7 @@ void Edit::ImplHideDDCursor()
}
}
-// -----------------------------------------------------------------------
+
void Edit::Modify()
{
@@ -2493,14 +2493,14 @@ void Edit::Modify()
}
}
-// -----------------------------------------------------------------------
+
void Edit::UpdateData()
{
maUpdateDataHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(Edit, ImplUpdateDataHdl)
{
@@ -2508,7 +2508,7 @@ IMPL_LINK_NOARG(Edit, ImplUpdateDataHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
void Edit::EnableUpdateData( sal_uLong nTimeout )
{
@@ -2526,7 +2526,7 @@ void Edit::EnableUpdateData( sal_uLong nTimeout )
}
}
-// -----------------------------------------------------------------------
+
void Edit::SetEchoChar( sal_Unicode c )
{
@@ -2535,7 +2535,7 @@ void Edit::SetEchoChar( sal_Unicode c )
mpSubEdit->SetEchoChar( c );
}
-// -----------------------------------------------------------------------
+
void Edit::SetReadOnly( sal_Bool bReadOnly )
{
@@ -2549,7 +2549,7 @@ void Edit::SetReadOnly( sal_Bool bReadOnly )
}
}
-// -----------------------------------------------------------------------
+
void Edit::SetAutocompleteHdl( const Link& rHdl )
{
@@ -2558,7 +2558,7 @@ void Edit::SetAutocompleteHdl( const Link& rHdl )
mpSubEdit->SetAutocompleteHdl( rHdl );
}
-// -----------------------------------------------------------------------
+
void Edit::SetInsertMode( bool bInsert )
{
@@ -2572,7 +2572,7 @@ void Edit::SetInsertMode( bool bInsert )
}
}
-// -----------------------------------------------------------------------
+
bool Edit::IsInsertMode() const
{
@@ -2582,7 +2582,7 @@ bool Edit::IsInsertMode() const
return mbInsertMode;
}
-// -----------------------------------------------------------------------
+
void Edit::SetMaxTextLen(sal_Int32 nMaxLen)
{
@@ -2597,7 +2597,7 @@ void Edit::SetMaxTextLen(sal_Int32 nMaxLen)
}
}
-// -----------------------------------------------------------------------
+
void Edit::SetSelection( const Selection& rSelection )
{
@@ -2611,7 +2611,7 @@ void Edit::SetSelection( const Selection& rSelection )
ImplSetSelection( rSelection );
}
-// -----------------------------------------------------------------------
+
void Edit::ImplSetSelection( const Selection& rSelection, bool bPaint )
{
@@ -2675,7 +2675,7 @@ void Edit::ImplSetSelection( const Selection& rSelection, bool bPaint )
}
}
-// -----------------------------------------------------------------------
+
const Selection& Edit::GetSelection() const
{
@@ -2685,7 +2685,7 @@ const Selection& Edit::GetSelection() const
return maSelection;
}
-// -----------------------------------------------------------------------
+
void Edit::ReplaceSelected( const OUString& rStr )
{
@@ -2695,7 +2695,7 @@ void Edit::ReplaceSelected( const OUString& rStr )
ImplInsertText( rStr );
}
-// -----------------------------------------------------------------------
+
void Edit::DeleteSelected()
{
@@ -2708,7 +2708,7 @@ void Edit::DeleteSelected()
}
}
-// -----------------------------------------------------------------------
+
OUString Edit::GetSelected() const
{
@@ -2722,7 +2722,7 @@ OUString Edit::GetSelected() const
}
}
-// -----------------------------------------------------------------------
+
void Edit::Cut()
{
@@ -2733,7 +2733,7 @@ void Edit::Cut()
}
}
-// -----------------------------------------------------------------------
+
void Edit::Copy()
{
@@ -2744,7 +2744,7 @@ void Edit::Copy()
}
}
-// -----------------------------------------------------------------------
+
void Edit::Paste()
{
@@ -2752,7 +2752,7 @@ void Edit::Paste()
ImplPaste( aClipboard );
}
-// -----------------------------------------------------------------------
+
void Edit::Undo()
{
@@ -2768,7 +2768,7 @@ void Edit::Undo()
}
}
-// -----------------------------------------------------------------------
+
void Edit::SetText( const OUString& rStr )
{
@@ -2781,7 +2781,7 @@ void Edit::SetText( const OUString& rStr )
}
}
-// -----------------------------------------------------------------------
+
void Edit::SetText( const OUString& rStr, const Selection& rSelection )
{
@@ -2791,7 +2791,7 @@ void Edit::SetText( const OUString& rStr, const Selection& rSelection )
ImplSetText( rStr, &rSelection );
}
-// -----------------------------------------------------------------------
+
OUString Edit::GetText() const
{
@@ -2801,7 +2801,7 @@ OUString Edit::GetText() const
return maText.toString();
}
-// -----------------------------------------------------------------------
+
void Edit::SetPlaceholderText( const OUString& rStr )
{
@@ -2815,7 +2815,7 @@ void Edit::SetPlaceholderText( const OUString& rStr )
}
}
-// -----------------------------------------------------------------------
+
OUString Edit::GetPlaceholderText() const
{
@@ -2825,7 +2825,7 @@ OUString Edit::GetPlaceholderText() const
return maPlaceholderText;
}
-// -----------------------------------------------------------------------
+
void Edit::SetModifyFlag()
{
@@ -2835,7 +2835,7 @@ void Edit::SetModifyFlag()
mbModified = true;
}
-// -----------------------------------------------------------------------
+
void Edit::ClearModifyFlag()
{
@@ -2845,7 +2845,7 @@ void Edit::ClearModifyFlag()
mbModified = false;
}
-// -----------------------------------------------------------------------
+
void Edit::SetSubEdit( Edit* pEdit )
{
@@ -2927,14 +2927,14 @@ Size Edit::GetMinimumEditSize()
return aSize;
}
-// -----------------------------------------------------------------------
+
Size Edit::GetOptimalSize() const
{
return CalcMinimumSize();
}
-// -----------------------------------------------------------------------
+
Size Edit::CalcSize(sal_Int32 nChars) const
{
@@ -2947,7 +2947,7 @@ Size Edit::CalcSize(sal_Int32 nChars) const
return aSz;
}
-// -----------------------------------------------------------------------
+
sal_Int32 Edit::GetMaxVisChars() const
{
@@ -2957,28 +2957,28 @@ sal_Int32 Edit::GetMaxVisChars() const
return nCharWidth ? nOutWidth/nCharWidth : 0;
}
-// -----------------------------------------------------------------------
+
sal_Int32 Edit::GetCharPos( const Point& rWindowPos ) const
{
return ImplGetCharPos( rWindowPos );
}
-// -----------------------------------------------------------------------
+
void Edit::SetGetSpecialCharsFunction( FncGetSpecialChars fn )
{
pImplFncGetSpecialChars = fn;
}
-// -----------------------------------------------------------------------
+
FncGetSpecialChars Edit::GetGetSpecialCharsFunction()
{
return pImplFncGetSpecialChars;
}
-// -----------------------------------------------------------------------
+
PopupMenu* Edit::CreatePopupMenu()
{
@@ -3005,7 +3005,7 @@ PopupMenu* Edit::CreatePopupMenu()
return pPopup;
}
-// -----------------------------------------------------------------------
+
void Edit::DeletePopupMenu( PopupMenu* pMenu )
{
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index 695d3ae6b8e7..ebe5367ef907 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -94,7 +94,7 @@ void FixedText::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings( true, true, true );
}
-// -----------------------------------------------------------------------
+
WinBits FixedText::ImplInitStyle( WinBits nStyle )
{
@@ -103,20 +103,20 @@ WinBits FixedText::ImplInitStyle( WinBits nStyle )
return nStyle;
}
-// -----------------------------------------------------------------
+
const Font& FixedText::GetCanonicalFont( const StyleSettings& _rStyle ) const
{
return ( GetStyle() & WB_INFO ) ? _rStyle.GetInfoFont() : _rStyle.GetLabelFont();
}
-// -----------------------------------------------------------------
+
const Color& FixedText::GetCanonicalTextColor( const StyleSettings& _rStyle ) const
{
return ( GetStyle() & WB_INFO ) ? _rStyle.GetInfoTextColor() : _rStyle.GetLabelTextColor();
}
-// -----------------------------------------------------------------------
+
void FixedText::ImplInitSettings( bool bFont,
bool bForeground, bool bBackground )
@@ -147,7 +147,7 @@ void FixedText::ImplInitSettings( bool bFont,
}
}
-// -----------------------------------------------------------------------
+
FixedText::FixedText( Window* pParent, WinBits nStyle )
: Control(WINDOW_FIXEDTEXT)
@@ -158,7 +158,7 @@ FixedText::FixedText( Window* pParent, WinBits nStyle )
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
FixedText::FixedText( Window* pParent, const ResId& rResId )
: Control(WINDOW_FIXEDTEXT)
@@ -175,7 +175,7 @@ FixedText::FixedText( Window* pParent, const ResId& rResId )
Show();
}
-// -----------------------------------------------------------------------
+
sal_uInt16 FixedText::ImplGetTextStyle( WinBits nWinStyle )
{
@@ -208,7 +208,7 @@ sal_uInt16 FixedText::ImplGetTextStyle( WinBits nWinStyle )
return nTextStyle;
}
-// -----------------------------------------------------------------------
+
void FixedText::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
const Point& rPos, const Size& rSize,
@@ -256,14 +256,14 @@ void FixedText::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
);
}
-// -----------------------------------------------------------------------
+
void FixedText::Paint( const Rectangle& )
{
ImplDraw( this, 0, Point(), GetOutputSizePixel() );
}
-// -----------------------------------------------------------------------
+
void FixedText::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
sal_uLong nFlags )
@@ -303,7 +303,7 @@ void FixedText::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
pDev->Pop();
}
-// -----------------------------------------------------------------------
+
void FixedText::Resize()
{
@@ -311,7 +311,7 @@ void FixedText::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void FixedText::StateChanged( StateChangedType nType )
{
@@ -352,7 +352,7 @@ void FixedText::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void FixedText::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -368,7 +368,7 @@ void FixedText::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
Size FixedText::getTextDimensions(Control const *pControl, const OUString &rTxt, long nMaxWidth)
{
@@ -401,7 +401,7 @@ Size FixedText::CalcMinimumSize( long nMaxWidth ) const
{
return CalcWindowSize( CalcMinimumTextSize ( this, nMaxWidth ) );
}
-// -----------------------------------------------------------------------
+
Size FixedText::GetOptimalSize() const
{
@@ -425,7 +425,7 @@ Size FixedText::GetOptimalSize() const
return aRet;
}
-// -----------------------------------------------------------------------
+
void FixedText::FillLayoutData() const
{
@@ -514,7 +514,7 @@ SelectableFixedText::SelectableFixedText(Window* pParent, WinBits nStyle)
SetPaintTransparent( true );
}
-// -----------------------------------------------------------------------
+
void SelectableFixedText::LoseFocus()
{
@@ -532,7 +532,7 @@ void FixedLine::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings( true, true, true );
}
-// -----------------------------------------------------------------------
+
WinBits FixedLine::ImplInitStyle( WinBits nStyle )
{
@@ -541,20 +541,20 @@ WinBits FixedLine::ImplInitStyle( WinBits nStyle )
return nStyle;
}
-// -----------------------------------------------------------------
+
const Font& FixedLine::GetCanonicalFont( const StyleSettings& _rStyle ) const
{
return _rStyle.GetGroupFont();
}
-// -----------------------------------------------------------------
+
const Color& FixedLine::GetCanonicalTextColor( const StyleSettings& _rStyle ) const
{
return _rStyle.GetGroupTextColor();
}
-// -----------------------------------------------------------------------
+
void FixedLine::ImplInitSettings( bool bFont,
bool bForeground, bool bBackground )
@@ -585,7 +585,7 @@ void FixedLine::ImplInitSettings( bool bFont,
}
}
-// -----------------------------------------------------------------------
+
void FixedLine::ImplDraw( bool bLayout )
{
@@ -660,7 +660,7 @@ void FixedLine::ImplDraw( bool bLayout )
}
}
-// -----------------------------------------------------------------------
+
FixedLine::FixedLine( Window* pParent, WinBits nStyle ) :
Control( WINDOW_FIXEDLINE )
@@ -669,7 +669,7 @@ FixedLine::FixedLine( Window* pParent, WinBits nStyle ) :
SetSizePixel( Size( 2, 2 ) );
}
-// -----------------------------------------------------------------------
+
FixedLine::FixedLine( Window* pParent, const ResId& rResId ) :
Control( WINDOW_FIXEDLINE )
@@ -683,7 +683,7 @@ FixedLine::FixedLine( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
void FixedLine::FillLayoutData() const
{
@@ -692,20 +692,20 @@ void FixedLine::FillLayoutData() const
}
-// -----------------------------------------------------------------------
+
void FixedLine::Paint( const Rectangle& )
{
ImplDraw();
}
-// -----------------------------------------------------------------------
+
void FixedLine::Draw( OutputDevice*, const Point&, const Size&, sal_uLong )
{
}
-// -----------------------------------------------------------------------
+
void FixedLine::Resize()
{
@@ -713,7 +713,7 @@ void FixedLine::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void FixedLine::StateChanged( StateChangedType nType )
{
@@ -752,7 +752,7 @@ void FixedLine::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void FixedLine::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -768,7 +768,7 @@ void FixedLine::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
Size FixedLine::GetOptimalSize() const
{
@@ -784,7 +784,7 @@ void FixedBitmap::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings();
}
-// -----------------------------------------------------------------------
+
WinBits FixedBitmap::ImplInitStyle( WinBits nStyle )
{
@@ -793,7 +793,7 @@ WinBits FixedBitmap::ImplInitStyle( WinBits nStyle )
return nStyle;
}
-// -----------------------------------------------------------------------
+
void FixedBitmap::ImplInitSettings()
{
@@ -818,7 +818,7 @@ void FixedBitmap::ImplInitSettings()
}
}
-// -----------------------------------------------------------------------
+
void FixedBitmap::ImplLoadRes( const ResId& rResId )
{
@@ -833,7 +833,7 @@ void FixedBitmap::ImplLoadRes( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
FixedBitmap::FixedBitmap( Window* pParent, WinBits nStyle ) :
Control( WINDOW_FIXEDBITMAP )
@@ -841,7 +841,7 @@ FixedBitmap::FixedBitmap( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
FixedBitmap::FixedBitmap( Window* pParent, const ResId& rResId ) :
Control( WINDOW_FIXEDBITMAP )
@@ -855,13 +855,13 @@ FixedBitmap::FixedBitmap( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
FixedBitmap::~FixedBitmap()
{
}
-// -----------------------------------------------------------------------
+
void FixedBitmap::ImplDraw( OutputDevice* pDev, sal_uLong /* nDrawFlags */,
const Point& rPos, const Size& rSize )
@@ -881,14 +881,14 @@ void FixedBitmap::ImplDraw( OutputDevice* pDev, sal_uLong /* nDrawFlags */,
}
}
-// -----------------------------------------------------------------------
+
void FixedBitmap::Paint( const Rectangle& )
{
ImplDraw( this, 0, Point(), GetOutputSizePixel() );
}
-// -----------------------------------------------------------------------
+
void FixedBitmap::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
sal_uLong nFlags )
@@ -912,7 +912,7 @@ void FixedBitmap::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize
pDev->Pop();
}
-// -----------------------------------------------------------------------
+
void FixedBitmap::Resize()
{
@@ -920,7 +920,7 @@ void FixedBitmap::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void FixedBitmap::StateChanged( StateChangedType nType )
{
@@ -946,7 +946,7 @@ void FixedBitmap::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void FixedBitmap::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -960,7 +960,7 @@ void FixedBitmap::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
void FixedBitmap::SetBitmap( const Bitmap& rBitmap )
{
@@ -979,7 +979,7 @@ void FixedImage::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings();
}
-// -----------------------------------------------------------------------
+
WinBits FixedImage::ImplInitStyle( WinBits nStyle )
{
@@ -988,7 +988,7 @@ WinBits FixedImage::ImplInitStyle( WinBits nStyle )
return nStyle;
}
-// -----------------------------------------------------------------------
+
void FixedImage::ImplInitSettings()
{
@@ -1013,7 +1013,7 @@ void FixedImage::ImplInitSettings()
}
}
-// -----------------------------------------------------------------------
+
void FixedImage::ImplLoadRes( const ResId& rResId )
{
@@ -1028,7 +1028,7 @@ void FixedImage::ImplLoadRes( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
FixedImage::FixedImage( Window* pParent, WinBits nStyle ) :
Control( WINDOW_FIXEDIMAGE )
@@ -1036,7 +1036,7 @@ FixedImage::FixedImage( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
FixedImage::FixedImage( Window* pParent, const ResId& rResId ) :
Control( WINDOW_FIXEDIMAGE )
@@ -1050,13 +1050,13 @@ FixedImage::FixedImage( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
FixedImage::~FixedImage()
{
}
-// -----------------------------------------------------------------------
+
void FixedImage::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
const Point& rPos, const Size& rSize )
@@ -1088,27 +1088,27 @@ void FixedImage::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
mbInUserDraw = false;
}
-// -----------------------------------------------------------------------
+
void FixedImage::Paint( const Rectangle& )
{
ImplDraw( this, 0, Point(), GetOutputSizePixel() );
}
-// -----------------------------------------------------------------------
+
Size FixedImage::GetOptimalSize() const
{
return maImage.GetSizePixel();
}
-// -----------------------------------------------------------------------
+
void FixedImage::UserDraw( const UserDrawEvent& )
{
}
-// -----------------------------------------------------------------------
+
void FixedImage::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
sal_uLong nFlags )
@@ -1131,7 +1131,7 @@ void FixedImage::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
pDev->Pop();
}
-// -----------------------------------------------------------------------
+
void FixedImage::Resize()
{
@@ -1139,7 +1139,7 @@ void FixedImage::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void FixedImage::StateChanged( StateChangedType nType )
{
@@ -1166,7 +1166,7 @@ void FixedImage::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void FixedImage::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -1180,7 +1180,7 @@ void FixedImage::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
void FixedImage::SetImage( const Image& rImage )
{
@@ -1192,7 +1192,7 @@ void FixedImage::SetImage( const Image& rImage )
}
}
-// -----------------------------------------------------------------------
+
bool FixedImage::SetModeImage( const Image& rImage )
{
@@ -1200,7 +1200,7 @@ bool FixedImage::SetModeImage( const Image& rImage )
return true;
}
-// -----------------------------------------------------------------------
+
const Image& FixedImage::GetModeImage( ) const
{
diff --git a/vcl/source/control/group.cxx b/vcl/source/control/group.cxx
index 8e1ef5bf1f51..47fd9e25c8db 100644
--- a/vcl/source/control/group.cxx
+++ b/vcl/source/control/group.cxx
@@ -43,7 +43,7 @@ void GroupBox::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings( true, true, true );
}
-// -----------------------------------------------------------------------
+
WinBits GroupBox::ImplInitStyle( WinBits nStyle )
{
@@ -52,20 +52,20 @@ WinBits GroupBox::ImplInitStyle( WinBits nStyle )
return nStyle;
}
-// -----------------------------------------------------------------
+
const Font& GroupBox::GetCanonicalFont( const StyleSettings& _rStyle ) const
{
return _rStyle.GetGroupFont();
}
-// -----------------------------------------------------------------
+
const Color& GroupBox::GetCanonicalTextColor( const StyleSettings& _rStyle ) const
{
return _rStyle.GetGroupTextColor();
}
-// -----------------------------------------------------------------------
+
void GroupBox::ImplInitSettings( bool bFont,
bool bForeground, bool bBackground )
@@ -98,7 +98,7 @@ void GroupBox::ImplInitSettings( bool bFont,
}
}
-// -----------------------------------------------------------------------
+
GroupBox::GroupBox( Window* pParent, WinBits nStyle ) :
Control( WINDOW_GROUPBOX )
@@ -106,7 +106,7 @@ GroupBox::GroupBox( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
GroupBox::GroupBox( Window* pParent, const ResId& rResId ) :
Control( WINDOW_GROUPBOX )
@@ -120,7 +120,7 @@ GroupBox::GroupBox( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
void GroupBox::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
const Point& rPos, const Size& rSize, bool bLayout )
@@ -212,7 +212,7 @@ void GroupBox::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
DrawControlText( *pDev, aRect, aText, nTextStyle, pVector, pDisplayText );
}
-// -----------------------------------------------------------------------
+
void GroupBox::FillLayoutData() const
{
@@ -220,14 +220,14 @@ void GroupBox::FillLayoutData() const
const_cast<GroupBox*>(this)-> ImplDraw( const_cast<GroupBox*>(this), 0, Point(), GetOutputSizePixel(), true );
}
-// -----------------------------------------------------------------------
+
void GroupBox::Paint( const Rectangle& )
{
ImplDraw( this, 0, Point(), GetOutputSizePixel() );
}
-// -----------------------------------------------------------------------
+
void GroupBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
sal_uLong nFlags )
@@ -249,7 +249,7 @@ void GroupBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
pDev->Pop();
}
-// -----------------------------------------------------------------------
+
void GroupBox::Resize()
{
@@ -257,7 +257,7 @@ void GroupBox::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void GroupBox::StateChanged( StateChangedType nType )
{
@@ -295,7 +295,7 @@ void GroupBox::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void GroupBox::DataChanged( const DataChangedEvent& rDCEvt )
{
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 9d1b2f60cabf..252fb7f67552 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -76,7 +76,7 @@ void ImplInitFieldSettings( Window* pWin, bool bFont, bool bForeground, bool bBa
}
}
-// -----------------------------------------------------------------------
+
void ImplInitDropDownButton( PushButton* pButton )
{
@@ -104,14 +104,14 @@ ImplEntryList::ImplEntryList( Window* pWindow )
mnMaxMRUCount = 0;
}
-// -----------------------------------------------------------------------
+
ImplEntryList::~ImplEntryList()
{
Clear();
}
-// -----------------------------------------------------------------------
+
void ImplEntryList::Clear()
{
@@ -119,7 +119,7 @@ void ImplEntryList::Clear()
maEntries.clear();
}
-// -----------------------------------------------------------------------
+
void ImplEntryList::SelectEntry( sal_uInt16 nPos, bool bSelect )
{
@@ -249,7 +249,7 @@ sal_uInt16 ImplEntryList::InsertEntry( sal_uInt16 nPos, ImplEntryType* pNewEntry
return insPos;
}
-// -----------------------------------------------------------------------
+
void ImplEntryList::RemoveEntry( sal_uInt16 nPos )
{
@@ -264,7 +264,7 @@ void ImplEntryList::RemoveEntry( sal_uInt16 nPos )
}
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplEntryList::FindEntry( const OUString& rString, bool bSearchMRUArea ) const
{
@@ -278,7 +278,7 @@ sal_uInt16 ImplEntryList::FindEntry( const OUString& rString, bool bSearchMRUAre
return LISTBOX_ENTRY_NOTFOUND;
}
- // -----------------------------------------------------------------------
+
sal_uInt16 ImplEntryList::FindMatchingEntry( const OUString& rStr, sal_uInt16 nStart, bool bForward, bool bLazy ) const
{
@@ -316,7 +316,7 @@ sal_uInt16 ImplEntryList::FindMatchingEntry( const OUString& rStr, sal_uInt16 nS
return nPos;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplEntryList::FindEntry( const void* pData ) const
{
@@ -333,7 +333,7 @@ sal_uInt16 ImplEntryList::FindEntry( const void* pData ) const
return nPos;
}
-// -----------------------------------------------------------------------
+
long ImplEntryList::GetAddedHeight( sal_uInt16 i_nEndIndex, sal_uInt16 i_nBeginIndex, long i_nBeginHeight ) const
{
@@ -361,7 +361,7 @@ long ImplEntryList::GetAddedHeight( sal_uInt16 i_nEndIndex, sal_uInt16 i_nBeginI
return i_nEndIndex > i_nBeginIndex ? nHeight : -nHeight;
}
-// -----------------------------------------------------------------------
+
long ImplEntryList::GetEntryHeight( sal_uInt16 nPos ) const
{
@@ -369,7 +369,7 @@ long ImplEntryList::GetEntryHeight( sal_uInt16 nPos ) const
return pImplEntry ? pImplEntry->mnHeight : 0;
}
-// -----------------------------------------------------------------------
+
OUString ImplEntryList::GetEntryText( sal_uInt16 nPos ) const
{
@@ -380,7 +380,7 @@ OUString ImplEntryList::GetEntryText( sal_uInt16 nPos ) const
return aEntryText;
}
-// -----------------------------------------------------------------------
+
bool ImplEntryList::HasEntryImage( sal_uInt16 nPos ) const
{
@@ -391,7 +391,7 @@ bool ImplEntryList::HasEntryImage( sal_uInt16 nPos ) const
return bImage;
}
-// -----------------------------------------------------------------------
+
Image ImplEntryList::GetEntryImage( sal_uInt16 nPos ) const
{
@@ -402,7 +402,7 @@ Image ImplEntryList::GetEntryImage( sal_uInt16 nPos ) const
return aImage;
}
-// -----------------------------------------------------------------------
+
void ImplEntryList::SetEntryData( sal_uInt16 nPos, void* pNewData )
{
@@ -411,7 +411,7 @@ void ImplEntryList::SetEntryData( sal_uInt16 nPos, void* pNewData )
pImplEntry->mpUserData = pNewData;
}
-// -----------------------------------------------------------------------
+
void* ImplEntryList::GetEntryData( sal_uInt16 nPos ) const
{
@@ -419,7 +419,7 @@ void* ImplEntryList::GetEntryData( sal_uInt16 nPos ) const
return pImplEntry ? pImplEntry->mpUserData : NULL;
}
-// -----------------------------------------------------------------------
+
void ImplEntryList::SetEntryFlags( sal_uInt16 nPos, long nFlags )
{
@@ -428,7 +428,7 @@ void ImplEntryList::SetEntryFlags( sal_uInt16 nPos, long nFlags )
pImplEntry->mnFlags = nFlags;
}
-// -----------------------------------------------------------------------
+
long ImplEntryList::GetEntryFlags( sal_uInt16 nPos ) const
{
@@ -436,7 +436,7 @@ long ImplEntryList::GetEntryFlags( sal_uInt16 nPos ) const
return pImplEntry ? pImplEntry->mnFlags : 0;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplEntryList::GetSelectEntryCount() const
{
@@ -450,14 +450,14 @@ sal_uInt16 ImplEntryList::GetSelectEntryCount() const
return nSelCount;
}
-// -----------------------------------------------------------------------
+
OUString ImplEntryList::GetSelectEntry( sal_uInt16 nIndex ) const
{
return GetEntryText( GetSelectEntryPos( nIndex ) );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplEntryList::GetSelectEntryPos( sal_uInt16 nIndex ) const
{
@@ -482,7 +482,7 @@ sal_uInt16 ImplEntryList::GetSelectEntryPos( sal_uInt16 nIndex ) const
return nSelEntryPos;
}
-// -----------------------------------------------------------------------
+
bool ImplEntryList::IsEntryPosSelected( sal_uInt16 nIndex ) const
{
@@ -490,7 +490,7 @@ bool ImplEntryList::IsEntryPosSelected( sal_uInt16 nIndex ) const
return pImplEntry ? pImplEntry->mbIsSelected : sal_False;
}
-// -----------------------------------------------------------------------
+
bool ImplEntryList::IsEntrySelectable( sal_uInt16 nPos ) const
{
@@ -498,7 +498,7 @@ bool ImplEntryList::IsEntrySelectable( sal_uInt16 nPos ) const
return pImplEntry ? ((pImplEntry->mnFlags & LISTBOX_ENTRY_FLAG_DISABLE_SELECTION) == 0) : true;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplEntryList::FindFirstSelectable( sal_uInt16 nPos, bool bForward /* = true */ )
{
@@ -574,21 +574,21 @@ ImplListBoxWindow::ImplListBoxWindow( Window* pParent, WinBits nWinStyle ) :
ImplCalcMetrics();
}
-// -----------------------------------------------------------------------
+
ImplListBoxWindow::~ImplListBoxWindow()
{
delete mpEntryList;
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::ImplInitSettings( bool bFont, bool bForeground, bool bBackground )
{
ImplInitFieldSettings( this, bFont, bForeground, bBackground );
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::ImplCalcMetrics()
{
@@ -620,7 +620,7 @@ void ImplListBoxWindow::ImplCalcMetrics()
}
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::Clear()
{
@@ -650,7 +650,7 @@ void ImplListBoxWindow::SetUserItemSize( const Size& rSz )
ImplCalcMetrics();
}
-// -----------------------------------------------------------------------
+
struct ImplEntryMetrics
{
@@ -663,7 +663,7 @@ struct ImplEntryMetrics
long nImgHeight;
};
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::EnableQuickSelection( const bool& b )
{
maQuickSelectionEngine.SetEnabled( b );
@@ -751,7 +751,7 @@ void ImplListBoxWindow::ImplUpdateEntryMetrics( ImplEntryType& rEntry )
rEntry.mnHeight = aMetrics.nEntryHeight;
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::ImplCallSelect()
{
@@ -794,7 +794,7 @@ void ImplListBoxWindow::ImplCallSelect()
mbSelectionChanged = false;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplListBoxWindow::InsertEntry( sal_uInt16 nPos, ImplEntryType* pNewEntry )
{
@@ -808,7 +808,7 @@ sal_uInt16 ImplListBoxWindow::InsertEntry( sal_uInt16 nPos, ImplEntryType* pNewE
return nNewPos;
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::RemoveEntry( sal_uInt16 nPos )
{
@@ -819,7 +819,7 @@ void ImplListBoxWindow::RemoveEntry( sal_uInt16 nPos )
ImplCalcMetrics();
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::SetEntryFlags( sal_uInt16 nPos, long nFlags )
{
@@ -829,7 +829,7 @@ void ImplListBoxWindow::SetEntryFlags( sal_uInt16 nPos, long nFlags )
ImplUpdateEntryMetrics( *pEntry );
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::ImplShowFocusRect()
{
@@ -839,7 +839,7 @@ void ImplListBoxWindow::ImplShowFocusRect()
mbHasFocusRect = true;
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::ImplHideFocusRect()
{
@@ -851,7 +851,7 @@ void ImplListBoxWindow::ImplHideFocusRect()
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplListBoxWindow::GetEntryPosForPoint( const Point& rPoint ) const
{
@@ -870,7 +870,7 @@ sal_uInt16 ImplListBoxWindow::GetEntryPosForPoint( const Point& rPoint ) const
return nSelect;
}
-// -----------------------------------------------------------------------
+
bool ImplListBoxWindow::IsVisible( sal_uInt16 i_nEntry ) const
{
@@ -888,7 +888,7 @@ bool ImplListBoxWindow::IsVisible( sal_uInt16 i_nEntry ) const
return bRet;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplListBoxWindow::GetLastVisibleEntry() const
{
@@ -908,7 +908,7 @@ sal_uInt16 ImplListBoxWindow::GetLastVisibleEntry() const
return nPos;
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -949,7 +949,7 @@ void ImplListBoxWindow::MouseButtonDown( const MouseEvent& rMEvt )
}
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::MouseMove( const MouseEvent& rMEvt )
{
@@ -1030,7 +1030,7 @@ void ImplListBoxWindow::MouseMove( const MouseEvent& rMEvt )
}
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::DeselectAll()
{
@@ -1041,7 +1041,7 @@ void ImplListBoxWindow::DeselectAll()
}
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::SelectEntry( sal_uInt16 nPos, bool bSelect )
{
@@ -1092,7 +1092,7 @@ void ImplListBoxWindow::SelectEntry( sal_uInt16 nPos, bool bSelect )
}
}
-// -----------------------------------------------------------------------
+
bool ImplListBoxWindow::SelectEntries( sal_uInt16 nSelect, LB_EVENT_TYPE eLET, bool bShift, bool bCtrl, bool bSelectPosChange /*=FALSE*/ )
{
@@ -1249,7 +1249,7 @@ bool ImplListBoxWindow::SelectEntries( sal_uInt16 nSelect, LB_EVENT_TYPE eLET, b
return bSelectionChanged;
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::Tracking( const TrackingEvent& rTEvt )
{
@@ -1418,7 +1418,7 @@ void ImplListBoxWindow::Tracking( const TrackingEvent& rTEvt )
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::KeyInput( const KeyEvent& rKEvt )
{
@@ -1426,7 +1426,7 @@ void ImplListBoxWindow::KeyInput( const KeyEvent& rKEvt )
Control::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
+
bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
@@ -1715,7 +1715,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
return bDone;
}
-// -----------------------------------------------------------------------
+
namespace
{
static ::vcl::StringEntryIdentifier lcl_getEntry( const ImplEntryList& _rList, sal_uInt16 _nPos, OUString& _out_entryText )
@@ -1738,20 +1738,20 @@ namespace
}
}
-// -----------------------------------------------------------------------
+
::vcl::StringEntryIdentifier ImplListBoxWindow::CurrentEntry( OUString& _out_entryText ) const
{
return lcl_getEntry( *GetEntryList(), ( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND ) ? 0 : mnCurrentPos + 1, _out_entryText );
}
-// -----------------------------------------------------------------------
+
::vcl::StringEntryIdentifier ImplListBoxWindow::NextEntry( ::vcl::StringEntryIdentifier _currentEntry, OUString& _out_entryText ) const
{
sal_uInt16 nNextPos = lcl_getEntryPos( _currentEntry ) + 1;
return lcl_getEntry( *GetEntryList(), nNextPos, _out_entryText );
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::SelectEntry( ::vcl::StringEntryIdentifier _entry )
{
sal_uInt16 nSelect = lcl_getEntryPos( _entry );
@@ -1781,7 +1781,7 @@ void ImplListBoxWindow::SelectEntry( ::vcl::StringEntryIdentifier _entry )
}
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::ImplPaint( sal_uInt16 nPos, bool bErase, bool bLayout )
{
@@ -1838,7 +1838,7 @@ void ImplListBoxWindow::ImplPaint( sal_uInt16 nPos, bool bErase, bool bLayout )
}
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::DrawEntry( sal_uInt16 nPos, bool bDrawImage, bool bDrawText, bool bDrawTextAtImagePos, bool bLayout )
{
@@ -1958,7 +1958,7 @@ void ImplListBoxWindow::DrawEntry( sal_uInt16 nPos, bool bDrawImage, bool bDrawT
}
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::FillLayoutData() const
{
@@ -1967,7 +1967,7 @@ void ImplListBoxWindow::FillLayoutData() const
ImplDoPaint( Rectangle( Point( 0, 0 ), GetOutputSize() ), true );
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::ImplDoPaint( const Rectangle& rRect, bool bLayout )
{
@@ -1999,14 +1999,14 @@ void ImplListBoxWindow::ImplDoPaint( const Rectangle& rRect, bool bLayout )
ImplShowFocusRect();
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::Paint( const Rectangle& rRect )
{
ImplDoPaint( rRect );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplListBoxWindow::GetDisplayLineCount() const
{
@@ -2021,7 +2021,7 @@ sal_uInt16 ImplListBoxWindow::GetDisplayLineCount() const
return nEntries;
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::Resize()
{
@@ -2043,7 +2043,7 @@ void ImplListBoxWindow::Resize()
ImplClearLayoutData();
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::GetFocus()
{
@@ -2058,7 +2058,7 @@ void ImplListBoxWindow::GetFocus()
Control::GetFocus();
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::LoseFocus()
{
@@ -2066,7 +2066,7 @@ void ImplListBoxWindow::LoseFocus()
Control::LoseFocus();
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::SetTopEntry( sal_uInt16 nTop )
{
@@ -2097,7 +2097,7 @@ void ImplListBoxWindow::SetTopEntry( sal_uInt16 nTop )
}
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::ShowProminentEntry( sal_uInt16 nEntryPos )
{
@@ -2111,14 +2111,14 @@ void ImplListBoxWindow::ShowProminentEntry( sal_uInt16 nEntryPos )
SetTopEntry( nEntryPos );
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::SetLeftIndent( long n )
{
ScrollHorz( n - mnLeft );
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::ScrollHorz( long n )
{
@@ -2152,7 +2152,7 @@ void ImplListBoxWindow::ScrollHorz( long n )
}
}
-// -----------------------------------------------------------------------
+
Size ImplListBoxWindow::CalcSize(sal_Int32 nMaxLines) const
{
@@ -2164,7 +2164,7 @@ Size ImplListBoxWindow::CalcSize(sal_Int32 nMaxLines) const
return aSz;
}
-// -----------------------------------------------------------------------
+
Rectangle ImplListBoxWindow::GetBoundingRectangle( sal_uInt16 nItem ) const
{
@@ -2175,7 +2175,7 @@ Rectangle ImplListBoxWindow::GetBoundingRectangle( sal_uInt16 nItem ) const
return aRect;
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::StateChanged( StateChangedType nType )
{
@@ -2211,7 +2211,7 @@ void ImplListBoxWindow::StateChanged( StateChangedType nType )
ImplClearLayoutData();
}
-// -----------------------------------------------------------------------
+
void ImplListBoxWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -2229,7 +2229,7 @@ void ImplListBoxWindow::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplListBoxWindow::ImplGetTextStyle() const
{
@@ -2275,7 +2275,7 @@ ImplListBox::ImplListBox( Window* pParent, WinBits nWinStyle ) :
maLBWindow.Show();
}
-// -----------------------------------------------------------------------
+
ImplListBox::~ImplListBox()
{
@@ -2284,7 +2284,7 @@ ImplListBox::~ImplListBox()
delete mpScrollBarBox;
}
-// -----------------------------------------------------------------------
+
void ImplListBox::Clear()
{
@@ -2299,7 +2299,7 @@ void ImplListBox::Clear()
StateChanged( STATE_CHANGE_DATA );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplListBox::InsertEntry( sal_uInt16 nPos, const OUString& rStr )
{
@@ -2309,7 +2309,7 @@ sal_uInt16 ImplListBox::InsertEntry( sal_uInt16 nPos, const OUString& rStr )
return nNewPos;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplListBox::InsertEntry( sal_uInt16 nPos, const OUString& rStr, const Image& rImage )
{
@@ -2319,7 +2319,7 @@ sal_uInt16 ImplListBox::InsertEntry( sal_uInt16 nPos, const OUString& rStr, cons
return nNewPos;
}
-// -----------------------------------------------------------------------
+
void ImplListBox::RemoveEntry( sal_uInt16 nPos )
{
@@ -2327,42 +2327,42 @@ void ImplListBox::RemoveEntry( sal_uInt16 nPos )
StateChanged( STATE_CHANGE_DATA );
}
-// -----------------------------------------------------------------------
+
void ImplListBox::SetEntryFlags( sal_uInt16 nPos, long nFlags )
{
maLBWindow.SetEntryFlags( nPos, nFlags );
}
-// -----------------------------------------------------------------------
+
void ImplListBox::SelectEntry( sal_uInt16 nPos, bool bSelect )
{
maLBWindow.SelectEntry( nPos, bSelect );
}
-// -----------------------------------------------------------------------
+
void ImplListBox::SetNoSelection()
{
maLBWindow.DeselectAll();
}
-// -----------------------------------------------------------------------
+
void ImplListBox::GetFocus()
{
maLBWindow.GrabFocus();
}
-// -----------------------------------------------------------------------
+
Window* ImplListBox::GetPreferredKeyInputWindow()
{
return &maLBWindow;
}
-// -----------------------------------------------------------------------
+
void ImplListBox::Resize()
{
@@ -2372,7 +2372,7 @@ void ImplListBox::Resize()
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ImplListBox, MRUChanged)
{
@@ -2380,7 +2380,7 @@ IMPL_LINK_NOARG(ImplListBox, MRUChanged)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ImplListBox, LBWindowScrolled)
{
@@ -2396,7 +2396,7 @@ IMPL_LINK_NOARG(ImplListBox, LBWindowScrolled)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( ImplListBox, ScrollBarHdl, ScrollBar*, pSB )
{
@@ -2409,7 +2409,7 @@ IMPL_LINK( ImplListBox, ScrollBarHdl, ScrollBar*, pSB )
return 1;
}
-// -----------------------------------------------------------------------
+
void ImplListBox::ImplCheckScrollBars()
{
@@ -2492,7 +2492,7 @@ void ImplListBox::ImplCheckScrollBars()
ImplInitScrollBars();
}
-// -----------------------------------------------------------------------
+
void ImplListBox::ImplInitScrollBars()
{
@@ -2516,7 +2516,7 @@ void ImplListBox::ImplInitScrollBars()
}
}
-// -----------------------------------------------------------------------
+
void ImplListBox::ImplResizeControls()
{
@@ -2580,7 +2580,7 @@ void ImplListBox::ImplResizeControls()
}
}
-// -----------------------------------------------------------------------
+
void ImplListBox::StateChanged( StateChangedType nType )
{
@@ -2630,14 +2630,14 @@ void ImplListBox::StateChanged( StateChangedType nType )
Control::StateChanged( nType );
}
-// -----------------------------------------------------------------------
+
void ImplListBox::DataChanged( const DataChangedEvent& rDCEvt )
{
Control::DataChanged( rDCEvt );
}
-// -----------------------------------------------------------------------
+
bool ImplListBox::Notify( NotifyEvent& rNEvt )
{
@@ -2658,14 +2658,14 @@ bool ImplListBox::Notify( NotifyEvent& rNEvt )
return nDone || Window::Notify( rNEvt );
}
-// -----------------------------------------------------------------------
+
const Wallpaper& ImplListBox::GetDisplayBackground() const
{
return maLBWindow.GetDisplayBackground();
}
-// -----------------------------------------------------------------------
+
bool ImplListBox::HandleWheelAsCursorTravel( const CommandEvent& rCEvt )
{
@@ -2683,7 +2683,7 @@ bool ImplListBox::HandleWheelAsCursorTravel( const CommandEvent& rCEvt )
return bDone;
}
-// -----------------------------------------------------------------------
+
void ImplListBox::SetMRUEntries( const OUString& rEntries, sal_Unicode cSep )
{
@@ -2716,7 +2716,7 @@ void ImplListBox::SetMRUEntries( const OUString& rEntries, sal_Unicode cSep )
}
}
-// -----------------------------------------------------------------------
+
OUString ImplListBox::GetMRUEntries( sal_Unicode cSep ) const
{
@@ -2730,7 +2730,7 @@ OUString ImplListBox::GetMRUEntries( sal_Unicode cSep ) const
return aEntries.makeStringAndClear();
}
-// -----------------------------------------------------------------------
+
void ImplListBox::SetEdgeBlending(bool bNew)
{
@@ -2758,7 +2758,7 @@ ImplWin::ImplWin( Window* pParent, WinBits nWinStyle ) :
mnItemPos = LISTBOX_ENTRY_NOTFOUND;
}
-// -----------------------------------------------------------------------
+
void ImplWin::MBDown()
{
@@ -2766,7 +2766,7 @@ void ImplWin::MBDown()
maMBDownHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void ImplWin::MouseButtonDown( const MouseEvent& )
{
@@ -2776,7 +2776,7 @@ void ImplWin::MouseButtonDown( const MouseEvent& )
}
}
-// -----------------------------------------------------------------------
+
void ImplWin::FillLayoutData() const
{
@@ -2784,7 +2784,7 @@ void ImplWin::FillLayoutData() const
const_cast<ImplWin*>(this)->ImplDraw( true );
}
-// -----------------------------------------------------------------------
+
bool ImplWin::PreNotify( NotifyEvent& rNEvt )
{
@@ -2807,7 +2807,7 @@ bool ImplWin::PreNotify( NotifyEvent& rNEvt )
return Control::PreNotify(rNEvt);
}
-// -----------------------------------------------------------------------
+
void ImplWin::ImplDraw( bool bLayout )
{
@@ -2918,14 +2918,14 @@ void ImplWin::ImplDraw( bool bLayout )
}
}
-// -----------------------------------------------------------------------
+
void ImplWin::Paint( const Rectangle& )
{
ImplDraw();
}
-// -----------------------------------------------------------------------
+
void ImplWin::DrawEntry( bool bDrawImage, bool bDrawText, bool bDrawTextAtImagePos, bool bLayout )
{
@@ -3000,7 +3000,7 @@ void ImplWin::DrawEntry( bool bDrawImage, bool bDrawText, bool bDrawTextAtImageP
ShowFocus( maFocusRect );
}
-// -----------------------------------------------------------------------
+
void ImplWin::Resize()
{
@@ -3009,7 +3009,7 @@ void ImplWin::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void ImplWin::GetFocus()
{
@@ -3028,7 +3028,7 @@ void ImplWin::GetFocus()
Control::GetFocus();
}
-// -----------------------------------------------------------------------
+
void ImplWin::LoseFocus()
{
@@ -3055,7 +3055,7 @@ ImplBtn::ImplBtn( Window* pParent, WinBits nWinStyle ) :
{
}
-// -----------------------------------------------------------------------
+
void ImplBtn::MBDown()
{
@@ -3063,7 +3063,7 @@ void ImplBtn::MBDown()
maMBDownHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void ImplBtn::MouseButtonDown( const MouseEvent& )
{
@@ -3101,7 +3101,7 @@ ImplListBoxFloatingWindow::ImplListBoxFloatingWindow( Window* pParent ) :
}
-// -----------------------------------------------------------------------
+
bool ImplListBoxFloatingWindow::PreNotify( NotifyEvent& rNEvt )
{
@@ -3114,7 +3114,7 @@ bool ImplListBoxFloatingWindow::PreNotify( NotifyEvent& rNEvt )
return FloatingWindow::PreNotify( rNEvt );
}
-// -----------------------------------------------------------------------
+
void ImplListBoxFloatingWindow::setPosSizePixel( long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags )
{
@@ -3150,7 +3150,7 @@ void ImplListBoxFloatingWindow::setPosSizePixel( long nX, long nY, long nWidth,
}
}
-// -----------------------------------------------------------------------
+
void ImplListBoxFloatingWindow::Resize()
{
@@ -3158,7 +3158,7 @@ void ImplListBoxFloatingWindow::Resize()
FloatingWindow::Resize();
}
-// -----------------------------------------------------------------------
+
Size ImplListBoxFloatingWindow::CalcFloatSize()
{
@@ -3232,7 +3232,7 @@ Size ImplListBoxFloatingWindow::CalcFloatSize()
return aFloatSz;
}
-// -----------------------------------------------------------------------
+
void ImplListBoxFloatingWindow::StartFloat( bool bStartTracking )
{
diff --git a/vcl/source/control/imgctrl.cxx b/vcl/source/control/imgctrl.cxx
index 5b41fc616994..1e3441a01705 100644
--- a/vcl/source/control/imgctrl.cxx
+++ b/vcl/source/control/imgctrl.cxx
@@ -26,7 +26,7 @@
namespace ImageScaleMode = ::com::sun::star::awt::ImageScaleMode;
-// -----------------------------------------------------------------------
+
ImageControl::ImageControl( Window* pParent, WinBits nStyle )
:FixedImage( pParent, nStyle )
@@ -34,7 +34,7 @@ ImageControl::ImageControl( Window* pParent, WinBits nStyle )
{
}
-// -----------------------------------------------------------------------
+
ImageControl::ImageControl( Window* pParent, const ResId& rResId )
:FixedImage( pParent, rResId )
@@ -42,7 +42,7 @@ ImageControl::ImageControl( Window* pParent, const ResId& rResId )
{
}
-// -----------------------------------------------------------------------
+
void ImageControl::SetScaleMode( const ::sal_Int16 _nMode )
{
@@ -53,14 +53,14 @@ void ImageControl::SetScaleMode( const ::sal_Int16 _nMode )
}
}
-// -----------------------------------------------------------------------
+
void ImageControl::Resize()
{
Invalidate();
}
-// -----------------------------------------------------------------------
+
namespace
{
static Size lcl_calcPaintSize( const Rectangle& _rPaintRect, const Size& _rBitmapSize )
@@ -83,7 +83,7 @@ namespace
}
}
-// -----------------------------------------------------------------------
+
void ImageControl::ImplDraw( OutputDevice& rDev, sal_uLong nDrawFlags, const Point& rPos, const Size& rSize ) const
{
@@ -149,7 +149,7 @@ void ImageControl::ImplDraw( OutputDevice& rDev, sal_uLong nDrawFlags, const Poi
} // switch ( mnScaleMode )
}
-// -----------------------------------------------------------------------
+
void ImageControl::Paint( const Rectangle& /*rRect*/ )
{
@@ -177,7 +177,7 @@ void ImageControl::Paint( const Rectangle& /*rRect*/ )
}
}
-// -----------------------------------------------------------------------
+
void ImageControl::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags )
{
const Point aPos = pDev->LogicToPixel( rPos );
@@ -198,7 +198,7 @@ void ImageControl::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSiz
pDev->Pop();
}
-// -----------------------------------------------------------------------
+
void ImageControl::GetFocus()
{
@@ -206,7 +206,7 @@ void ImageControl::GetFocus()
GetWindow( WINDOW_BORDER )->Invalidate();
}
-// -----------------------------------------------------------------------
+
void ImageControl::LoseFocus()
{
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index bf87289c1677..0ee8067a2a20 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -615,7 +615,7 @@ void ListBox::AdaptDropDownLineCountToMaximum()
SetDropDownLineCount(GetSettings().GetStyleSettings().GetListBoxMaximumLineCount());
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ListBox::GetDropDownLineCount() const
{
@@ -1536,7 +1536,7 @@ bool ListBox::set_property(const OString &rKey, const OString &rValue)
return true;
}
-// -----------------------------------------------------------------------
+
void ListBox::SetEdgeBlending(bool bNew)
{
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index a942545ec792..35d01ed13c10 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -78,7 +78,7 @@ void Slider::ImplInit( Window* pParent, WinBits nStyle )
SetSizePixel( CalcWindowSizePixel() );
}
-// -----------------------------------------------------------------------
+
Slider::Slider( Window* pParent, WinBits nStyle ) :
Control( WINDOW_SLIDER )
@@ -86,7 +86,7 @@ Slider::Slider( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
void Slider::ImplInitSettings()
{
@@ -111,7 +111,7 @@ void Slider::ImplInitSettings()
}
}
-// -----------------------------------------------------------------------
+
void Slider::ImplUpdateRects( bool bUpdate )
{
@@ -220,7 +220,7 @@ void Slider::ImplUpdateRects( bool bUpdate )
}
}
-// -----------------------------------------------------------------------
+
long Slider::ImplCalcThumbPos( long nPixPos )
{
@@ -231,7 +231,7 @@ long Slider::ImplCalcThumbPos( long nPixPos )
return nCalcThumbPos;
}
-// -----------------------------------------------------------------------
+
long Slider::ImplCalcThumbPosPix( long nPos )
{
@@ -248,7 +248,7 @@ long Slider::ImplCalcThumbPosPix( long nPos )
return nCalcThumbPos+mnThumbPixOffset;
}
-// -----------------------------------------------------------------------
+
void Slider::ImplCalc( bool bUpdate )
{
@@ -319,7 +319,7 @@ void Slider::ImplCalc( bool bUpdate )
ImplUpdateRects( bUpdate );
}
-// -----------------------------------------------------------------------
+
void Slider::ImplDraw( sal_uInt16 nDrawFlags )
{
@@ -459,7 +459,7 @@ void Slider::ImplDraw( sal_uInt16 nDrawFlags )
}
}
-// -----------------------------------------------------------------------
+
bool Slider::ImplIsPageUp( const Point& rPos )
{
@@ -478,7 +478,7 @@ bool Slider::ImplIsPageUp( const Point& rPos )
return aRect.IsInside( rPos );
}
-// -----------------------------------------------------------------------
+
bool Slider::ImplIsPageDown( const Point& rPos )
{
@@ -497,7 +497,7 @@ bool Slider::ImplIsPageDown( const Point& rPos )
return aRect.IsInside( rPos );
}
-// -----------------------------------------------------------------------
+
long Slider::ImplSlide( long nNewPos, bool bCallEndSlide )
{
@@ -515,7 +515,7 @@ long Slider::ImplSlide( long nNewPos, bool bCallEndSlide )
return nDelta;
}
-// -----------------------------------------------------------------------
+
long Slider::ImplDoAction( bool bCallEndSlide )
{
@@ -549,7 +549,7 @@ long Slider::ImplDoAction( bool bCallEndSlide )
return nDelta;
}
-// -----------------------------------------------------------------------
+
void Slider::ImplDoMouseAction( const Point& rMousePos, bool bCallAction )
{
@@ -611,7 +611,7 @@ void Slider::ImplDoMouseAction( const Point& rMousePos, bool bCallAction )
ImplDraw( mnDragDraw );
}
-// -----------------------------------------------------------------------
+
long Slider::ImplDoSlide( long nNewPos )
{
@@ -624,7 +624,7 @@ long Slider::ImplDoSlide( long nNewPos )
return nDelta;
}
-// -----------------------------------------------------------------------
+
long Slider::ImplDoSlideAction( ScrollType eScrollType )
{
@@ -639,7 +639,7 @@ long Slider::ImplDoSlideAction( ScrollType eScrollType )
return nDelta;
}
-// -----------------------------------------------------------------------
+
void Slider::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -700,7 +700,7 @@ void Slider::MouseButtonDown( const MouseEvent& rMEvt )
}
}
-// -----------------------------------------------------------------------
+
void Slider::MouseButtonUp( const MouseEvent& )
{
@@ -720,7 +720,7 @@ void Slider::MouseButtonUp( const MouseEvent& )
}
}
-// -----------------------------------------------------------------------
+
void Slider::Tracking( const TrackingEvent& rTEvt )
{
@@ -807,7 +807,7 @@ void Slider::Tracking( const TrackingEvent& rTEvt )
}
}
-// -----------------------------------------------------------------------
+
void Slider::KeyInput( const KeyEvent& rKEvt )
{
@@ -849,14 +849,14 @@ void Slider::KeyInput( const KeyEvent& rKEvt )
Control::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
+
void Slider::Paint( const Rectangle& )
{
ImplDraw( SLIDER_DRAW_ALL );
}
-// -----------------------------------------------------------------------
+
void Slider::Resize()
{
@@ -867,14 +867,14 @@ void Slider::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void Slider::RequestHelp( const HelpEvent& rHEvt )
{
Control::RequestHelp( rHEvt );
}
-// -----------------------------------------------------------------------
+
void Slider::StateChanged( StateChangedType nType )
{
@@ -920,7 +920,7 @@ void Slider::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void Slider::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -934,21 +934,21 @@ void Slider::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
void Slider::Slide()
{
maSlideHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void Slider::EndSlide()
{
maEndSlideHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void Slider::SetRange( const Range& rRange )
{
@@ -975,7 +975,7 @@ void Slider::SetRange( const Range& rRange )
}
}
-// -----------------------------------------------------------------------
+
void Slider::SetThumbPos( long nNewThumbPos )
{
@@ -991,7 +991,7 @@ void Slider::SetThumbPos( long nNewThumbPos )
}
}
-// -----------------------------------------------------------------------
+
Size Slider::CalcWindowSizePixel()
{
diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx
index 6d6d7dbc256f..fccfe301b48e 100644
--- a/vcl/source/control/spinbtn.cxx
+++ b/vcl/source/control/spinbtn.cxx
@@ -50,7 +50,7 @@ void SpinButton::ImplInit( Window* pParent, WinBits nStyle )
Control::ImplInit( pParent, nStyle, NULL );
}
-// -----------------------------------------------------------------------
+
SpinButton::SpinButton( Window* pParent, WinBits nStyle )
:Control( WINDOW_SPINBUTTON )
@@ -59,13 +59,13 @@ SpinButton::SpinButton( Window* pParent, WinBits nStyle )
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
SpinButton::~SpinButton()
{
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SpinButton, ImplTimeout, Timer*, pTimer )
{
@@ -85,7 +85,7 @@ IMPL_LINK( SpinButton, ImplTimeout, Timer*, pTimer )
return 0;
}
-// -----------------------------------------------------------------------
+
void SpinButton::Up()
{
@@ -100,7 +100,7 @@ void SpinButton::Up()
ImplCallEventListenersAndHandler( VCLEVENT_SPINBUTTON_UP, maUpHdlLink, this );
}
-// -----------------------------------------------------------------------
+
void SpinButton::Down()
{
@@ -115,7 +115,7 @@ void SpinButton::Down()
ImplCallEventListenersAndHandler( VCLEVENT_SPINBUTTON_DOWN, maDownHdlLink, this );
}
-// -----------------------------------------------------------------------
+
void SpinButton::Resize()
{
@@ -140,7 +140,7 @@ void SpinButton::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void SpinButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags )
{
@@ -199,7 +199,7 @@ void SpinButton::Paint( const Rectangle& )
ShowFocus( maFocusRect );
}
-// -----------------------------------------------------------------------
+
void SpinButton::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -225,7 +225,7 @@ void SpinButton::MouseButtonDown( const MouseEvent& rMEvt )
}
}
-// -----------------------------------------------------------------------
+
void SpinButton::MouseButtonUp( const MouseEvent& )
{
@@ -254,7 +254,7 @@ void SpinButton::MouseButtonUp( const MouseEvent& )
mbInitialUp = mbInitialDown = false;
}
-// -----------------------------------------------------------------------
+
void SpinButton::MouseMove( const MouseEvent& rMEvt )
{
@@ -297,7 +297,7 @@ void SpinButton::MouseMove( const MouseEvent& rMEvt )
}
}
-// -----------------------------------------------------------------------
+
void SpinButton::KeyInput( const KeyEvent& rKEvt )
{
@@ -336,7 +336,7 @@ void SpinButton::KeyInput( const KeyEvent& rKEvt )
Control::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
+
void SpinButton::StateChanged( StateChangedType nType )
{
@@ -373,21 +373,21 @@ void SpinButton::StateChanged( StateChangedType nType )
Control::StateChanged( nType );
}
-// -----------------------------------------------------------------------
+
void SpinButton::SetRangeMin( long nNewRange )
{
SetRange( Range( nNewRange, GetRangeMax() ) );
}
-// -----------------------------------------------------------------------
+
void SpinButton::SetRangeMax( long nNewRange )
{
SetRange( Range( GetRangeMin(), nNewRange ) );
}
-// -----------------------------------------------------------------------
+
void SpinButton::SetRange( const Range& rRange )
{
@@ -414,7 +414,7 @@ void SpinButton::SetRange( const Range& rRange )
}
}
-// -----------------------------------------------------------------------
+
void SpinButton::SetValue( long nValue )
{
@@ -431,7 +431,7 @@ void SpinButton::SetValue( long nValue )
}
}
-// -----------------------------------------------------------------------
+
void SpinButton::GetFocus()
{
@@ -439,7 +439,7 @@ void SpinButton::GetFocus()
Control::GetFocus();
}
-// -----------------------------------------------------------------------
+
void SpinButton::LoseFocus()
{
@@ -447,7 +447,7 @@ void SpinButton::LoseFocus()
Control::LoseFocus();
}
-// -----------------------------------------------------------------------
+
bool SpinButton::ImplMoveFocus( bool _bUpper )
{
@@ -461,7 +461,7 @@ bool SpinButton::ImplMoveFocus( bool _bUpper )
return true;
}
-// -----------------------------------------------------------------------
+
void SpinButton::ImplCalcFocusRect( bool _bUpper )
{
@@ -474,7 +474,7 @@ void SpinButton::ImplCalcFocusRect( bool _bUpper )
mbUpperIsFocused = _bUpper;
}
-// -----------------------------------------------------------------------
+
Rectangle* SpinButton::ImplFindPartRect( const Point& rPt )
{
@@ -523,6 +523,6 @@ bool SpinButton::PreNotify( NotifyEvent& rNEvt )
return Control::PreNotify(rNEvt);
}
-// -----------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx
index 3e72b136c363..8251a50d6951 100644
--- a/vcl/source/control/spinfld.cxx
+++ b/vcl/source/control/spinfld.cxx
@@ -303,7 +303,7 @@ void SpinField::ImplInitSpinFieldData()
mbInDropDown = false;
}
-// --------------------------------------------------------------------
+
void SpinField::ImplInit( Window* pParent, WinBits nWinStyle )
{
@@ -339,7 +339,7 @@ void SpinField::ImplInit( Window* pParent, WinBits nWinStyle )
}
}
-// --------------------------------------------------------------------
+
SpinField::SpinField( WindowType nTyp ) :
Edit( nTyp )
@@ -347,7 +347,7 @@ SpinField::SpinField( WindowType nTyp ) :
ImplInitSpinFieldData();
}
-// --------------------------------------------------------------------
+
SpinField::SpinField( Window* pParent, WinBits nWinStyle ) :
Edit( WINDOW_SPINFIELD )
@@ -369,42 +369,42 @@ SpinField::SpinField( Window* pParent, const ResId& rResId ) :
Show();
}
-// --------------------------------------------------------------------
+
SpinField::~SpinField()
{
delete mpEdit;
}
-// --------------------------------------------------------------------
+
void SpinField::Up()
{
ImplCallEventListenersAndHandler( VCLEVENT_SPINFIELD_UP, maUpHdlLink, this );
}
-// --------------------------------------------------------------------
+
void SpinField::Down()
{
ImplCallEventListenersAndHandler( VCLEVENT_SPINFIELD_DOWN, maDownHdlLink, this );
}
-// --------------------------------------------------------------------
+
void SpinField::First()
{
ImplCallEventListenersAndHandler( VCLEVENT_SPINFIELD_FIRST, maFirstHdlLink, this );
}
-// --------------------------------------------------------------------
+
void SpinField::Last()
{
ImplCallEventListenersAndHandler( VCLEVENT_SPINFIELD_LAST, maLastHdlLink, this );
}
-// --------------------------------------------------------------------
+
void SpinField::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -448,7 +448,7 @@ void SpinField::MouseButtonDown( const MouseEvent& rMEvt )
Edit::MouseButtonDown( rMEvt );
}
-// --------------------------------------------------------------------
+
void SpinField::MouseButtonUp( const MouseEvent& rMEvt )
{
@@ -475,7 +475,7 @@ void SpinField::MouseButtonUp( const MouseEvent& rMEvt )
Edit::MouseButtonUp( rMEvt );
}
-// --------------------------------------------------------------------
+
void SpinField::MouseMove( const MouseEvent& rMEvt )
{
@@ -522,7 +522,7 @@ void SpinField::MouseMove( const MouseEvent& rMEvt )
Edit::MouseMove( rMEvt );
}
-// --------------------------------------------------------------------
+
bool SpinField::Notify( NotifyEvent& rNEvt )
{
@@ -610,14 +610,14 @@ bool SpinField::Notify( NotifyEvent& rNEvt )
return nDone || Edit::Notify( rNEvt );
}
-// --------------------------------------------------------------------
+
void SpinField::Command( const CommandEvent& rCEvt )
{
Edit::Command( rCEvt );
}
-// --------------------------------------------------------------------
+
void SpinField::FillLayoutData() const
{
@@ -631,7 +631,7 @@ void SpinField::FillLayoutData() const
Edit::FillLayoutData();
}
-// --------------------------------------------------------------------
+
void SpinField::Paint( const Rectangle& rRect )
{
@@ -662,7 +662,7 @@ void SpinField::Paint( const Rectangle& rRect )
Edit::Paint( rRect );
}
-// --------------------------------------------------------------------
+
void SpinField::ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rectangle& rDDArea, Rectangle& rSpinUpArea, Rectangle& rSpinDownArea )
{
@@ -747,7 +747,7 @@ void SpinField::ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rec
}
}
-// --------------------------------------------------------------------
+
void SpinField::Resize()
{
@@ -808,7 +808,7 @@ void SpinField::Resize()
}
}
-// -----------------------------------------------------------------------
+
void SpinField::StateChanged( StateChangedType nType )
{
@@ -872,7 +872,7 @@ void SpinField::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void SpinField::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -886,7 +886,7 @@ void SpinField::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
Rectangle* SpinField::ImplFindPartRect( const Point& rPt )
{
@@ -947,7 +947,7 @@ bool SpinField::PreNotify( NotifyEvent& rNEvt )
return Edit::PreNotify(rNEvt);
}
-// -----------------------------------------------------------------------
+
void SpinField::EndDropDown()
{
@@ -955,7 +955,7 @@ void SpinField::EndDropDown()
Paint( Rectangle( Point(), GetOutputSizePixel() ) );
}
-// -----------------------------------------------------------------------
+
bool SpinField::ShowDropDown( sal_Bool )
{
@@ -996,14 +996,14 @@ Size SpinField::CalcMinimumSize() const
return CalcMinimumSizeForText(GetText());
}
-// -----------------------------------------------------------------------
+
Size SpinField::GetOptimalSize() const
{
return CalcMinimumSize();
}
-// -----------------------------------------------------------------------
+
Size SpinField::CalcSize(sal_Int32 nChars) const
{
@@ -1017,7 +1017,7 @@ Size SpinField::CalcSize(sal_Int32 nChars) const
return aSz;
}
-// --------------------------------------------------------------------
+
IMPL_LINK( SpinField, ImplTimeout, Timer*, pTimer )
{
@@ -1036,7 +1036,7 @@ IMPL_LINK( SpinField, ImplTimeout, Timer*, pTimer )
return 0;
}
-// -----------------------------------------------------------------------
+
void SpinField::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags )
{
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 81d2119b29d3..1f388c42d553 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -63,7 +63,7 @@ struct ImplTabItem
{}
};
-// -----------------------------------------------------------------------
+
struct ImplTabCtrlData
{
@@ -75,7 +75,7 @@ struct ImplTabCtrlData
ListBox* mpListBox;
};
-// -----------------------------------------------------------------------
+
#define TAB_OFFSET 3
#define TAB_TABOFFSET_X 3
@@ -137,20 +137,20 @@ void TabControl::ImplInit( Window* pParent, WinBits nStyle )
pParent->AddChildEventListener( LINK( this, TabControl, ImplWindowEventListener ) );
}
-// -----------------------------------------------------------------
+
const Font& TabControl::GetCanonicalFont( const StyleSettings& _rStyle ) const
{
return _rStyle.GetAppFont();
}
-// -----------------------------------------------------------------
+
const Color& TabControl::GetCanonicalTextColor( const StyleSettings& _rStyle ) const
{
return _rStyle.GetButtonTextColor();
}
-// -----------------------------------------------------------------------
+
void TabControl::ImplInitSettings( bool bFont,
bool bForeground, bool bBackground )
@@ -188,7 +188,7 @@ void TabControl::ImplInitSettings( bool bFont,
}
}
-// -----------------------------------------------------------------------
+
void TabControl::ImplFreeLayoutData()
{
@@ -200,7 +200,7 @@ void TabControl::ImplFreeLayoutData()
}
}
-// -----------------------------------------------------------------------
+
TabControl::TabControl( Window* pParent, WinBits nStyle ) :
Control( WINDOW_TABCONTROL )
@@ -209,7 +209,7 @@ TabControl::TabControl( Window* pParent, WinBits nStyle ) :
OSL_TRACE("*** TABCONTROL no notabs? %s", ( GetStyle() & WB_NOBORDER ) ? "true" : "false" );
}
-// -----------------------------------------------------------------------
+
TabControl::TabControl( Window* pParent, const ResId& rResId ) :
Control( WINDOW_TABCONTROL )
@@ -223,7 +223,7 @@ TabControl::TabControl( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
void TabControl::ImplLoadRes( const ResId& rResId )
{
@@ -244,7 +244,7 @@ void TabControl::ImplLoadRes( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
TabControl::~TabControl()
{
@@ -262,7 +262,7 @@ TabControl::~TabControl()
}
}
-// -----------------------------------------------------------------------
+
ImplTabItem* TabControl::ImplGetItem( sal_uInt16 nId ) const
{
@@ -276,7 +276,7 @@ ImplTabItem* TabControl::ImplGetItem( sal_uInt16 nId ) const
return NULL;
}
-// -----------------------------------------------------------------------
+
Size TabControl::ImplGetItemSize( ImplTabItem* pItem, long nMaxWidth )
{
@@ -627,7 +627,7 @@ Rectangle TabControl::ImplGetTabRect( sal_uInt16 nItemPos, long nWidth, long nHe
return size_t(nItemPos) < mpTabCtrlData->maItemList.size() ? mpTabCtrlData->maItemList[nItemPos].maRect : Rectangle();
}
-// -----------------------------------------------------------------------
+
void TabControl::ImplChangeTabPage( sal_uInt16 nId, sal_uInt16 nOldId )
{
@@ -733,7 +733,7 @@ void TabControl::ImplChangeTabPage( sal_uInt16 nId, sal_uInt16 nOldId )
Invalidate( aRect );
}
-// -----------------------------------------------------------------------
+
bool TabControl::ImplPosCurTabPage()
{
@@ -755,7 +755,7 @@ bool TabControl::ImplPosCurTabPage()
return false;
}
-// -----------------------------------------------------------------------
+
void TabControl::ImplActivateTabPage( bool bNext )
{
@@ -774,7 +774,7 @@ void TabControl::ImplActivateTabPage( bool bNext )
SelectTabPage( GetPageId( nCurPos ) );
}
-// -----------------------------------------------------------------------
+
void TabControl::ImplShowFocus()
{
@@ -826,7 +826,7 @@ void TabControl::ImplShowFocus()
ShowFocus( aRect );
}
-// -----------------------------------------------------------------------
+
void TabControl::ImplDrawItem( ImplTabItem* pItem, const Rectangle& rCurRect, bool bLayout, bool bFirstInGroup, bool bLastInGroup, bool /* bIsCurrentItem */ )
{
@@ -1026,7 +1026,7 @@ void TabControl::ImplDrawItem( ImplTabItem* pItem, const Rectangle& rCurRect, bo
}
}
-// -----------------------------------------------------------------------
+
bool TabControl::ImplHandleKeyEvent( const KeyEvent& rKeyEvent )
{
@@ -1062,7 +1062,7 @@ bool TabControl::ImplHandleKeyEvent( const KeyEvent& rKeyEvent )
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(TabControl, ImplListBoxSelectHdl)
{
@@ -1070,7 +1070,7 @@ IMPL_LINK_NOARG(TabControl, ImplListBoxSelectHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( TabControl, ImplWindowEventListener, VclSimpleEvent*, pEvent )
{
@@ -1088,7 +1088,7 @@ IMPL_LINK( TabControl, ImplWindowEventListener, VclSimpleEvent*, pEvent )
}
-// -----------------------------------------------------------------------
+
void TabControl::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -1104,7 +1104,7 @@ void TabControl::MouseButtonDown( const MouseEvent& rMEvt )
}
}
-// -----------------------------------------------------------------------
+
void TabControl::KeyInput( const KeyEvent& rKEvt )
{
@@ -1125,7 +1125,7 @@ void TabControl::KeyInput( const KeyEvent& rKEvt )
Control::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
+
void TabControl::Paint( const Rectangle& rRect )
{
@@ -1133,7 +1133,7 @@ void TabControl::Paint( const Rectangle& rRect )
ImplPaint( rRect, false );
}
-// -----------------------------------------------------------------------
+
void TabControl::ImplPaint( const Rectangle& rRect, bool bLayout )
{
@@ -1315,7 +1315,7 @@ void TabControl::ImplPaint( const Rectangle& rRect, bool bLayout )
mbSmallInvalidate = true;
}
-// -----------------------------------------------------------------------
+
void TabControl::setAllocation(const Size &rAllocation)
{
@@ -1407,7 +1407,7 @@ void TabControl::Resize()
setAllocation(Control::GetOutputSizePixel());
}
-// -----------------------------------------------------------------------
+
void TabControl::GetFocus()
{
@@ -1424,7 +1424,7 @@ void TabControl::GetFocus()
Control::GetFocus();
}
-// -----------------------------------------------------------------------
+
void TabControl::LoseFocus()
{
@@ -1433,7 +1433,7 @@ void TabControl::LoseFocus()
Control::LoseFocus();
}
-// -----------------------------------------------------------------------
+
void TabControl::RequestHelp( const HelpEvent& rHEvt )
{
@@ -1518,7 +1518,7 @@ void TabControl::RequestHelp( const HelpEvent& rHEvt )
Control::RequestHelp( rHEvt );
}
-// -----------------------------------------------------------------------
+
void TabControl::Command( const CommandEvent& rCEvt )
{
@@ -1559,7 +1559,7 @@ void TabControl::Command( const CommandEvent& rCEvt )
Control::Command( rCEvt );
}
-// -----------------------------------------------------------------------
+
void TabControl::StateChanged( StateChangedType nType )
{
@@ -1594,7 +1594,7 @@ void TabControl::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void TabControl::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -1610,7 +1610,7 @@ void TabControl::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
Rectangle* TabControl::ImplFindPartRect( const Point& rPt )
{
@@ -1678,7 +1678,7 @@ bool TabControl::PreNotify( NotifyEvent& rNEvt )
return Control::PreNotify(rNEvt);
}
-// -----------------------------------------------------------------------
+
bool TabControl::Notify( NotifyEvent& rNEvt )
{
@@ -1690,21 +1690,21 @@ bool TabControl::Notify( NotifyEvent& rNEvt )
return nRet || Control::Notify( rNEvt );
}
-// -----------------------------------------------------------------------
+
void TabControl::ActivatePage()
{
maActivateHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
bool TabControl::DeactivatePage()
{
return !maDeactivateHdl.IsSet() || maDeactivateHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void TabControl::SetTabPageSizePixel( const Size& rSize )
{
@@ -1718,7 +1718,7 @@ void TabControl::SetTabPageSizePixel( const Size& rSize )
Window::SetOutputSizePixel( aNewSize );
}
-// -----------------------------------------------------------------------
+
Size TabControl::GetTabPageSizePixel() const
{
@@ -1726,7 +1726,7 @@ Size TabControl::GetTabPageSizePixel() const
return aRect.GetSize();
}
-// -----------------------------------------------------------------------
+
void TabControl::InsertPage( const ResId& rResId, sal_uInt16 nPos )
{
@@ -1753,7 +1753,7 @@ void TabControl::InsertPage( const ResId& rResId, sal_uInt16 nPos )
}
}
-// -----------------------------------------------------------------------
+
void TabControl::InsertPage( sal_uInt16 nPageId, const OUString& rText,
sal_uInt16 nPos )
@@ -1807,7 +1807,7 @@ void TabControl::InsertPage( sal_uInt16 nPageId, const OUString& rText,
ImplCallEventListeners( VCLEVENT_TABPAGE_INSERTED, (void*) (sal_uLong)nPageId );
}
-// -----------------------------------------------------------------------
+
void TabControl::RemovePage( sal_uInt16 nPageId )
{
@@ -1855,7 +1855,7 @@ void TabControl::RemovePage( sal_uInt16 nPageId )
}
}
-// -----------------------------------------------------------------------
+
void TabControl::Clear()
{
@@ -1874,7 +1874,7 @@ void TabControl::Clear()
ImplCallEventListeners( VCLEVENT_TABPAGE_REMOVEDALL );
}
-// -----------------------------------------------------------------------
+
void TabControl::EnablePage( sal_uInt16 i_nPageId, bool i_bEnable )
{
@@ -1897,14 +1897,14 @@ void TabControl::EnablePage( sal_uInt16 i_nPageId, bool i_bEnable )
}
}
-// -----------------------------------------------------------------------
+
sal_uInt16 TabControl::GetPageCount() const
{
return (sal_uInt16)mpTabCtrlData->maItemList.size();
}
-// -----------------------------------------------------------------------
+
sal_uInt16 TabControl::GetPageId( sal_uInt16 nPos ) const
{
@@ -1913,7 +1913,7 @@ sal_uInt16 TabControl::GetPageId( sal_uInt16 nPos ) const
return 0;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 TabControl::GetPagePos( sal_uInt16 nPageId ) const
{
@@ -1927,7 +1927,7 @@ sal_uInt16 TabControl::GetPagePos( sal_uInt16 nPageId ) const
return TAB_PAGE_NOTFOUND;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 TabControl::GetPageId( const Point& rPos ) const
{
@@ -1964,7 +1964,7 @@ sal_uInt16 TabControl::GetPageId( const OString& rName ) const
return 0;
}
-// -----------------------------------------------------------------------
+
void TabControl::SetCurPageId( sal_uInt16 nPageId )
{
@@ -2001,7 +2001,7 @@ void TabControl::SetCurPageId( sal_uInt16 nPageId )
}
}
-// -----------------------------------------------------------------------
+
sal_uInt16 TabControl::GetCurPageId() const
{
@@ -2011,7 +2011,7 @@ sal_uInt16 TabControl::GetCurPageId() const
return mnCurPageId;
}
-// -----------------------------------------------------------------------
+
void TabControl::SelectTabPage( sal_uInt16 nPageId )
{
@@ -2035,7 +2035,7 @@ void TabControl::SelectTabPage( sal_uInt16 nPageId )
}
}
-// -----------------------------------------------------------------------
+
void TabControl::SetTabPage( sal_uInt16 nPageId, TabPage* pTabPage )
{
@@ -2065,7 +2065,7 @@ void TabControl::SetTabPage( sal_uInt16 nPageId, TabPage* pTabPage )
}
}
-// -----------------------------------------------------------------------
+
TabPage* TabControl::GetTabPage( sal_uInt16 nPageId ) const
{
@@ -2077,7 +2077,7 @@ TabPage* TabControl::GetTabPage( sal_uInt16 nPageId ) const
return NULL;
}
-// -----------------------------------------------------------------------
+
void TabControl::SetPageText( sal_uInt16 nPageId, const OUString& rText )
{
@@ -2100,7 +2100,7 @@ void TabControl::SetPageText( sal_uInt16 nPageId, const OUString& rText )
}
}
-// -----------------------------------------------------------------------
+
OUString TabControl::GetPageText( sal_uInt16 nPageId ) const
{
@@ -2111,7 +2111,7 @@ OUString TabControl::GetPageText( sal_uInt16 nPageId ) const
return pItem->maText;
}
-// -----------------------------------------------------------------------
+
void TabControl::SetHelpText( sal_uInt16 nPageId, const OUString& rText )
{
@@ -2122,7 +2122,7 @@ void TabControl::SetHelpText( sal_uInt16 nPageId, const OUString& rText )
pItem->maHelpText = rText;
}
-// -----------------------------------------------------------------------
+
const OUString& TabControl::GetHelpText( sal_uInt16 nPageId ) const
{
@@ -2139,7 +2139,7 @@ const OUString& TabControl::GetHelpText( sal_uInt16 nPageId ) const
return pItem->maHelpText;
}
-// -----------------------------------------------------------------------
+
void TabControl::SetHelpId( sal_uInt16 nPageId, const OString& rId ) const
{
@@ -2177,7 +2177,7 @@ OString TabControl::GetPageName( sal_uInt16 nPageId ) const
return OString();
}
-// -----------------------------------------------------------------------
+
void TabControl::SetPageImage( sal_uInt16 i_nPageId, const Image& i_rImage )
{
@@ -2192,7 +2192,7 @@ void TabControl::SetPageImage( sal_uInt16 i_nPageId, const Image& i_rImage )
}
}
-// -----------------------------------------------------------------------
+
Rectangle TabControl::GetCharacterBounds( sal_uInt16 nPageId, long nIndex ) const
{
@@ -2215,7 +2215,7 @@ Rectangle TabControl::GetCharacterBounds( sal_uInt16 nPageId, long nIndex ) cons
return aRet;
}
-// -----------------------------------------------------------------------
+
long TabControl::GetIndexForPoint( const Point& rPoint, sal_uInt16& rPageId ) const
{
@@ -2248,7 +2248,7 @@ long TabControl::GetIndexForPoint( const Point& rPoint, sal_uInt16& rPageId ) co
return nRet;
}
-// -----------------------------------------------------------------------
+
void TabControl::FillLayoutData() const
{
@@ -2257,7 +2257,7 @@ void TabControl::FillLayoutData() const
const_cast<TabControl*>(this)->ImplPaint( Rectangle(), true );
}
-// -----------------------------------------------------------------------
+
Rectangle TabControl::GetTabBounds( sal_uInt16 nPageId ) const
{
@@ -2270,7 +2270,7 @@ Rectangle TabControl::GetTabBounds( sal_uInt16 nPageId ) const
return aRet;
}
-// -----------------------------------------------------------------------
+
void TabControl::SetItemsOffset( const Point& rOffs )
{
@@ -2286,7 +2286,7 @@ Point TabControl::GetItemsOffset() const
return Point();
}
-// -----------------------------------------------------------------------
+
Size TabControl::calculateRequisition() const
{
diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx
index 969e5898d29a..6a8c268a1a4e 100644
--- a/vcl/source/edit/textview.cxx
+++ b/vcl/source/edit/textview.cxx
@@ -2271,9 +2271,9 @@ sal_Int32 TextView::GetLineNumberOfCursorInSelection() const
}
-// -------------------------------------------------------------------------
+
// (+) class TextSelFunctionSet
-// -------------------------------------------------------------------------
+
TextSelFunctionSet::TextSelFunctionSet( TextView* pView )
{
mpView = pView;
diff --git a/vcl/source/edit/xtextedt.cxx b/vcl/source/edit/xtextedt.cxx
index c543c563d4e1..0f8f1342e277 100644
--- a/vcl/source/edit/xtextedt.cxx
+++ b/vcl/source/edit/xtextedt.cxx
@@ -223,9 +223,9 @@ bool ExtTextEngine::Search( TextSelection& rSel, const util::SearchOptions& rSea
}
-// -------------------------------------------------------------------------
+
// class ExtTextView
-// -------------------------------------------------------------------------
+
ExtTextView::ExtTextView( ExtTextEngine* pEng, Window* pWindow )
: TextView( pEng, pWindow )
{
diff --git a/vcl/source/filter/FilterConfigCache.cxx b/vcl/source/filter/FilterConfigCache.cxx
index cbb35a2ccd61..47962c368793 100644
--- a/vcl/source/filter/FilterConfigCache.cxx
+++ b/vcl/source/filter/FilterConfigCache.cxx
@@ -300,7 +300,7 @@ void FilterConfigCache::ImplInitSmart()
}
}
-// ------------------------------------------------------------------------
+
FilterConfigCache::FilterConfigCache( bool bConfig ) :
bUseConfig ( bConfig )
@@ -442,7 +442,7 @@ bool FilterConfigCache::IsImportPixelFormat( sal_uInt16 nFormat )
return (nFormat < aImport.size()) && aImport[ nFormat ].bIsPixelFormat;
}
-// ------------------------------------------------------------------------
+
OUString FilterConfigCache::GetExportFilterName( sal_uInt16 nFormat )
{
@@ -556,6 +556,6 @@ bool FilterConfigCache::IsExportPixelFormat( sal_uInt16 nFormat )
return (nFormat < aExport.size()) && aExport[ nFormat ].bIsPixelFormat;
}
-// ------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/filter/FilterConfigItem.cxx b/vcl/source/filter/FilterConfigItem.cxx
index db9af7ad21ed..253566b1be8e 100644
--- a/vcl/source/filter/FilterConfigItem.cxx
+++ b/vcl/source/filter/FilterConfigItem.cxx
@@ -400,14 +400,14 @@ void FilterConfigItem::WriteInt32( const OUString& rKey, sal_Int32 nNewValue )
}
}
-// ------------------------------------------------------------------------
+
Sequence< PropertyValue > FilterConfigItem::GetFilterData() const
{
return aFilterData;
}
-// ------------------------------------------------------------------------
+
Reference< XStatusIndicator > FilterConfigItem::GetStatusIndicator() const
{
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index abdcbea87bdb..ded84a24c523 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -782,7 +782,7 @@ static bool ImpPeekGraphicFormat( SvStream& rStream, OUString& rFormatExtension,
return bTest && !bSomethingTested;
}
-//--------------------------------------------------------------------------
+
sal_uInt16 GraphicFilter::ImpTestOrFindFormat( const OUString& rPath, SvStream& rStream, sal_uInt16& rFormat )
{
@@ -828,7 +828,7 @@ sal_uInt16 GraphicFilter::ImpTestOrFindFormat( const OUString& rPath, SvStream&
return GRFILTER_OK;
}
-//--------------------------------------------------------------------------
+
#ifndef DISABLE_EXPORT
@@ -1343,7 +1343,7 @@ sal_uInt16 GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPat
return ImportGraphic( rGraphic, rPath, rIStream, nFormat, pDeterminedFormat, nImportFlags, NULL, pExtHeader );
}
-//-------------------------------------------------------------------------
+
sal_uInt16 GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPath, SvStream& rIStream,
sal_uInt16 nFormat, sal_uInt16* pDeterminedFormat, sal_uInt32 nImportFlags,
diff --git a/vcl/source/filter/igif/decode.cxx b/vcl/source/filter/igif/decode.cxx
index fd92fba99856..db1bc12725bb 100644
--- a/vcl/source/filter/igif/decode.cxx
+++ b/vcl/source/filter/igif/decode.cxx
@@ -20,7 +20,7 @@
#include "decode.hxx"
-// ------------------------------------------------------------------------
+
struct GIFLZWTableEntry
{
@@ -29,7 +29,7 @@ struct GIFLZWTableEntry
sal_uInt8 nData;
};
-// ------------------------------------------------------------------------
+
GIFLZWDecompressor::GIFLZWDecompressor( sal_uInt8 cDataSize ) :
nInputBitsBuf ( 0 ),
@@ -57,7 +57,7 @@ GIFLZWDecompressor::GIFLZWDecompressor( sal_uInt8 cDataSize ) :
}
}
-// ------------------------------------------------------------------------
+
GIFLZWDecompressor::~GIFLZWDecompressor()
{
@@ -65,7 +65,7 @@ GIFLZWDecompressor::~GIFLZWDecompressor()
delete[] pTable;
}
-// ------------------------------------------------------------------------
+
HPBYTE GIFLZWDecompressor::DecompressBlock( HPBYTE pSrc, sal_uInt8 cBufSize,
sal_uLong& rCount, bool& rEOI )
@@ -111,7 +111,7 @@ HPBYTE GIFLZWDecompressor::DecompressBlock( HPBYTE pSrc, sal_uInt8 cBufSize,
return pTarget;
}
-// ------------------------------------------------------------------------
+
void GIFLZWDecompressor::AddToTable( sal_uInt16 nPrevCode, sal_uInt16 nCodeFirstData )
{
@@ -130,7 +130,7 @@ void GIFLZWDecompressor::AddToTable( sal_uInt16 nPrevCode, sal_uInt16 nCodeFirst
}
}
-// ------------------------------------------------------------------------
+
bool GIFLZWDecompressor::ProcessOneCode()
{
diff --git a/vcl/source/filter/ixbm/xbmread.cxx b/vcl/source/filter/ixbm/xbmread.cxx
index 8b99c81c7f80..3b94c802b343 100644
--- a/vcl/source/filter/ixbm/xbmread.cxx
+++ b/vcl/source/filter/ixbm/xbmread.cxx
@@ -23,9 +23,9 @@
#include <comphelper/string.hxx>
#include "xbmread.hxx"
-// -------------
+
// - XBMReader -
-// -------------
+
XBMReader::XBMReader( SvStream& rStm ) :
rIStm ( rStm ),
@@ -40,7 +40,7 @@ XBMReader::XBMReader( SvStream& rStm ) :
InitTable();
}
-// ------------------------------------------------------------------------
+
XBMReader::~XBMReader()
{
@@ -50,7 +50,7 @@ XBMReader::~XBMReader()
aBmp1.ReleaseAccess( pAcc1 );
}
-// ------------------------------------------------------------------------
+
void XBMReader::InitTable()
{
@@ -88,7 +88,7 @@ void XBMReader::InitTable()
pHexTable[(int)'\0'] = -1;
}
-// ------------------------------------------------------------------------
+
OString XBMReader::FindTokenLine( SvStream* pInStm, const char* pTok1,
const char* pTok2, const char* pTok3 )
@@ -135,7 +135,7 @@ OString XBMReader::FindTokenLine( SvStream* pInStm, const char* pTok1,
return aRet;
}
-// ------------------------------------------------------------------------
+
long XBMReader::ParseDefine( const sal_Char* pDefine )
{
@@ -184,7 +184,7 @@ long XBMReader::ParseDefine( const sal_Char* pDefine )
return nRet;
}
-// ------------------------------------------------------------------------
+
bool XBMReader::ParseData( SvStream* pInStm, const OString& aLastLine, XBMFormat eFormat )
{
@@ -257,7 +257,7 @@ bool XBMReader::ParseData( SvStream* pInStm, const OString& aLastLine, XBMFormat
return true;
}
-// ------------------------------------------------------------------------
+
ReadState XBMReader::ReadXBM( Graphic& rGraphic )
{
@@ -353,9 +353,9 @@ ReadState XBMReader::ReadXBM( Graphic& rGraphic )
return eReadState;
}
-// -------------
+
// - ImportXBM -
-// -------------
+
bool ImportXBM( SvStream& rStm, Graphic& rGraphic )
{
diff --git a/vcl/source/filter/ixpm/xpmread.cxx b/vcl/source/filter/ixpm/xpmread.cxx
index 27f49b19e2f3..9d3ad23145c4 100644
--- a/vcl/source/filter/ixpm/xpmread.cxx
+++ b/vcl/source/filter/ixpm/xpmread.cxx
@@ -24,9 +24,9 @@
#define _XPMPRIVATE
#include "xpmread.hxx"
-// -------------
+
// - XPMReader -
-// -------------
+
XPMReader::XPMReader( SvStream& rStm ) :
mrIStm ( rStm ),
@@ -49,7 +49,7 @@ XPMReader::XPMReader( SvStream& rStm ) :
}
-// ------------------------------------------------------------------------
+
XPMReader::~XPMReader()
{
@@ -57,7 +57,7 @@ XPMReader::~XPMReader()
maBmp.ReleaseAccess( mpAcc );
}
-// ------------------------------------------------------------------------
+
ReadState XPMReader::ReadXPM( Graphic& rGraphic )
{
@@ -214,7 +214,7 @@ ReadState XPMReader::ReadXPM( Graphic& rGraphic )
return eReadState;
}
-// ------------------------------------------------------------------------
+
// ImplGetColor returns variouls colour values,
// returns TRUE if various colours could be assigned
@@ -233,7 +233,7 @@ bool XPMReader::ImplGetColor( sal_uLong nNumb )
return bStatus;
}
-// ------------------------------------------------------------------------
+
// ImpGetScanLine reads the string mpBufSize and writes the pixel in the
// Bitmap. Parameter nY is the horizontal position.
@@ -299,7 +299,7 @@ bool XPMReader::ImplGetScanLine( sal_uLong nY )
return bStatus;
}
-// ------------------------------------------------------------------------
+
// tries to determine a colour value from mpStringBuf
// if a colour was found the RGB value is written a pDest[1]..pDest[2]
// pDest[0] contains 0xFF if the colour is transparent otherwise 0
@@ -367,7 +367,7 @@ bool XPMReader::ImplGetColSub( sal_uInt8* pDest )
return bColStatus;
}
-// ------------------------------------------------------------------------
+
// ImplGetColKey searches string mpStringBuf for a parameter 'nKey'
// and returns a boolean. (if TRUE mpPara and mnParaSize will be set)
@@ -411,7 +411,7 @@ bool XPMReader::ImplGetColKey( sal_uInt8 nKey )
return ( mnParaSize ) ? true : false;
}
-// ------------------------------------------------------------------------
+
// ImplGetRGBHex translates the ASCII-Hexadecimalvalue belonging to mpPara
// in a RGB value and writes this to pDest
// below formats should be contained in mpPara:
@@ -441,7 +441,7 @@ void XPMReader::ImplGetRGBHex( sal_uInt8* pDest,sal_uLong nAdd )
}
}
-// ------------------------------------------------------------------------
+
// ImplGetUlong returns the value of a up to 6-digit long ASCII-decimal number.
sal_uLong XPMReader::ImplGetULONG( sal_uLong nPara )
@@ -464,7 +464,7 @@ sal_uLong XPMReader::ImplGetULONG( sal_uLong nPara )
else return 0;
}
-// ------------------------------------------------------------------------
+
bool XPMReader::ImplCompare( sal_uInt8* pSource, sal_uInt8* pDest, sal_uLong nSize, sal_uLong nMode )
{
@@ -495,7 +495,7 @@ bool XPMReader::ImplCompare( sal_uInt8* pSource, sal_uInt8* pDest, sal_uLong nSi
return bRet;
}
-// ------------------------------------------------------------------------
+
// ImplGetPara tries to retrieve nNumb (0...x) parameters from mpStringBuf.
// Parameters are separated by spaces or tabs.
// If a parameter was found then the return value is TRUE and mpPara + mnParaSize
@@ -551,7 +551,7 @@ bool XPMReader::ImplGetPara ( sal_uLong nNumb )
return ( ( nCount == nNumb ) && ( mpPara ) );
}
-// ------------------------------------------------------------------------
+
// The next string is read and stored in mpStringBuf (terminated with 0);
// mnStringSize contains the size of the string read.
// Comments like '//' and '/*....*/' are skipped.
@@ -650,9 +650,9 @@ bool XPMReader::ImplGetString( void )
return mbStatus;
}
-// -------------
+
// - ImportXPM -
-// -------------
+
bool ImportXPM( SvStream& rStm, Graphic& rGraphic )
{
diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx
index 8d6fd89787aa..26efbadd9a0a 100644
--- a/vcl/source/filter/wmf/winwmf.cxx
+++ b/vcl/source/filter/wmf/winwmf.cxx
@@ -139,7 +139,7 @@ inline Point WMFReader::ReadPoint()
return Point( nX, nY );
}
-// ------------------------------------------------------------------------
+
inline Point WMFReader::ReadYX()
{
@@ -148,7 +148,7 @@ inline Point WMFReader::ReadYX()
return Point( nX, nY );
}
-// ------------------------------------------------------------------------
+
Rectangle WMFReader::ReadRectangle()
{
@@ -160,7 +160,7 @@ Rectangle WMFReader::ReadRectangle()
return Rectangle( aTL, aBR );
}
-// ------------------------------------------------------------------------
+
Size WMFReader::ReadYXExt()
{
@@ -169,7 +169,7 @@ Size WMFReader::ReadYXExt()
return Size( nW, nH );
}
-// ------------------------------------------------------------------------
+
void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
{
@@ -1089,7 +1089,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
}
}
-// ------------------------------------------------------------------------
+
bool WMFReader::ReadHeader()
{
@@ -1304,7 +1304,7 @@ void WMFReader::ReadWMF()
pWMF->Seek( nStartPos );
}
-// ------------------------------------------------------------------------
+
bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pStm )
{
diff --git a/vcl/source/filter/wmf/wmf.cxx b/vcl/source/filter/wmf/wmf.cxx
index f9e51a2a8724..2100052336ab 100644
--- a/vcl/source/filter/wmf/wmf.cxx
+++ b/vcl/source/filter/wmf/wmf.cxx
@@ -25,7 +25,7 @@
#include <vcl/gdimetafiletools.hxx>
#include <comphelper/scopeguard.hxx>
-// -----------------------------------------------------------------------------
+
bool ConvertWMFToGDIMetaFile( SvStream & rStreamWMF, GDIMetaFile & rGDIMetaFile, FilterConfigItem* pConfigItem, WMF_EXTERNALHEADER *pExtHeader )
{
@@ -56,7 +56,7 @@ bool ConvertWMFToGDIMetaFile( SvStream & rStreamWMF, GDIMetaFile & rGDIMetaFile,
return !rStreamWMF.GetError();
}
-// -----------------------------------------------------------------------------
+
bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF, FilterConfigItem* pFilterConfigItem )
{
@@ -90,7 +90,7 @@ bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF, FilterConfigItem*
return rStream.good();
}
-// -----------------------------------------------------------------------------
+
bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream,
FilterConfigItem* pConfigItem, bool bPlaceable)
@@ -109,7 +109,7 @@ bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream
return aWMFWriter.WriteWMF( aGdiMetaFile, rTargetStream, pConfigItem, bPlaceable );
}
-// -----------------------------------------------------------------------------
+
bool ConvertGDIMetaFileToEMF( const GDIMetaFile & rMTF, SvStream & rTargetStream,
FilterConfigItem* pConfigItem )
@@ -128,7 +128,7 @@ bool ConvertGDIMetaFileToEMF( const GDIMetaFile & rMTF, SvStream & rTargetStream
return aEMFWriter.WriteEMF( aGdiMetaFile, pConfigItem );
}
-// -----------------------------------------------------------------------------
+
bool WriteWindowMetafileBits( SvStream& rStream, const GDIMetaFile& rMTF )
{
diff --git a/vcl/source/filter/wmf/wmfwr.cxx b/vcl/source/filter/wmf/wmfwr.cxx
index 1baff780e01f..ac979a20a6ef 100644
--- a/vcl/source/filter/wmf/wmfwr.cxx
+++ b/vcl/source/filter/wmf/wmfwr.cxx
@@ -1651,7 +1651,7 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
}
}
-// ------------------------------------------------------------------------
+
void WMFWriter::WriteHeader( const GDIMetaFile &, bool bPlaceable )
{
@@ -1685,7 +1685,7 @@ void WMFWriter::WriteHeader( const GDIMetaFile &, bool bPlaceable )
.WriteUInt16( (sal_uInt16)0x0000 ); // reserved
}
-// ------------------------------------------------------------------------
+
void WMFWriter::UpdateHeader()
{
@@ -1707,7 +1707,7 @@ void WMFWriter::UpdateHeader()
pWMF->Seek(nPos);
}
-// ------------------------------------------------------------------------
+
bool WMFWriter::WriteWMF( const GDIMetaFile& rMTF, SvStream& rTargetStream,
FilterConfigItem* pFConfigItem, bool bPlaceable )
@@ -1833,7 +1833,7 @@ bool WMFWriter::WriteWMF( const GDIMetaFile& rMTF, SvStream& rTargetStream,
return bStatus;
}
-// ------------------------------------------------------------------------
+
sal_uInt16 WMFWriter::CalcSaveTargetMapMode(MapMode& rMapMode,
const Size& rPrefSize)
@@ -1859,7 +1859,7 @@ sal_uInt16 WMFWriter::CalcSaveTargetMapMode(MapMode& rMapMode,
return nDivisor;
}
-// ------------------------------------------------------------------------
+
void WMFWriter::WriteEmbeddedEMF( const GDIMetaFile& rMTF )
{
@@ -1912,7 +1912,7 @@ void WMFWriter::WriteEmbeddedEMF( const GDIMetaFile& rMTF )
}
}
-// ------------------------------------------------------------------------
+
void WMFWriter::WriteEMFRecord( SvMemoryStream& rStream, sal_uInt32 nCurSize, sal_uInt32 nRemainingSize,
sal_uInt32 nTotalSize, sal_uInt32 nRecCounts, sal_uInt16 nCheckSum )
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx
index d57b849ad965..79c9f50ab577 100644
--- a/vcl/source/fontsubset/cff.cxx
+++ b/vcl/source/fontsubset/cff.cxx
@@ -142,9 +142,9 @@ static const char* pStringIds[] = {
"Regular", "Roman", "Semibold"
};
-// --------------------------------------------------------------------
-// --------------------------------------------------------------------
+
+
// TOP DICT keywords (also covers PRIV DICT keywords)
static const char* pDictOps[] = {
@@ -158,7 +158,7 @@ static const char* pDictOps[] = {
"shortint", "longint", "BCD", NULL
};
-// --------------------------------------------------------------------
+
// TOP DICT escapes (also covers PRIV DICT escapes)
static const char* pDictEscs[] = {
@@ -174,7 +174,7 @@ static const char* pDictEscs[] = {
"nFDArray", "nFDSelect", "sFontName"
};
-// --------------------------------------------------------------------
+
static const char* pType1Ops[] = {
NULL, "2hstem", NULL, "2vstem",
@@ -187,7 +187,7 @@ static const char* pType1Ops[] = {
NULL, NULL, "4vhcurveto", "4hvcurveto"
};
-// --------------------------------------------------------------------
+
static const char* pT1EscOps[] = {
"0dotsection", "6vstem3", "6hstem3", NULL,
@@ -201,7 +201,7 @@ static const char* pT1EscOps[] = {
NULL, "2setcurrentpoint"
};
-// --------------------------------------------------------------------
+
struct TYPE1OP
{
@@ -222,7 +222,7 @@ struct TYPE1OP
};
};
-// --------------------------------------------------------------------
+
static const char* pType2Ops[] = {
NULL, "hhstem", NULL, "vvstem",
@@ -235,7 +235,7 @@ static const char* pType2Ops[] = {
".shortint", "Gcallgsubr", ".vhcurveto", ".hvcurveto"
};
-// --------------------------------------------------------------------
+
static const char* pT2EscOps[] = {
NULL, NULL, NULL, "2and",
@@ -250,7 +250,7 @@ static const char* pT2EscOps[] = {
"9hflex1", "fflex1"
};
-// --------------------------------------------------------------------
+
struct TYPE2OP
{
@@ -350,7 +350,7 @@ public:
GlyphWidth* pGlyphWidths, int nGlyphCount, FontSubsetInfo& ) = 0;
};
-// --------------------------------------------------------------------
+
SubsetterContext::~SubsetterContext( void)
{}
@@ -463,7 +463,7 @@ private:
ValType maCharWidth;
};
-// --------------------------------------------------------------------
+
CffSubsetterContext::CffSubsetterContext( const U8* pBasePtr, int nBaseLen)
: mpBasePtr( pBasePtr)
@@ -478,14 +478,14 @@ CffSubsetterContext::CffSubsetterContext( const U8* pBasePtr, int nBaseLen)
mpCffLocal = &maCffLocal[0];
}
-// --------------------------------------------------------------------
+
CffSubsetterContext::~CffSubsetterContext( void)
{
// TODO: delete[] maCffLocal;
}
-// --------------------------------------------------------------------
+
inline int CffSubsetterContext::popInt( void)
{
@@ -495,7 +495,7 @@ inline int CffSubsetterContext::popInt( void)
return nInt;
}
-// --------------------------------------------------------------------
+
inline int CffSubsetterContext::peekInt( void) const
{
@@ -505,7 +505,7 @@ inline int CffSubsetterContext::peekInt( void) const
return nInt;
}
-// --------------------------------------------------------------------
+
inline int CffSubsetterContext::getInt( int nIndex) const
{
@@ -515,7 +515,7 @@ inline int CffSubsetterContext::getInt( int nIndex) const
return nInt;
}
-// --------------------------------------------------------------------
+
inline void CffSubsetterContext::updateWidth( bool bUseFirstVal)
{
@@ -535,7 +535,7 @@ inline void CffSubsetterContext::updateWidth( bool bUseFirstVal)
}
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::addHints( bool bVerticalHints)
{
@@ -568,7 +568,7 @@ void CffSubsetterContext::addHints( bool bVerticalHints)
mnStackIdx = 0;
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::setCharStringType( int nVal)
{
@@ -579,7 +579,7 @@ void CffSubsetterContext::setCharStringType( int nVal)
}
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::readDictOp( void)
{
@@ -718,7 +718,7 @@ void CffSubsetterContext::readDictOp( void)
}
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::read2push()
{
@@ -752,7 +752,7 @@ void CffSubsetterContext::read2push()
push( aVal);
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::writeType1Val( ValType aVal)
{
@@ -789,7 +789,7 @@ void CffSubsetterContext::writeType1Val( ValType aVal)
mpWritePtr = pOut;
}
-// --------------------------------------------------------------------
+
inline void CffSubsetterContext::pop2write( void)
{
@@ -797,14 +797,14 @@ inline void CffSubsetterContext::pop2write( void)
writeType1Val( aVal);
}
-// --------------------------------------------------------------------
+
inline void CffSubsetterContext::writeTypeOp( int nTypeOp)
{
*(mpWritePtr++) = static_cast<U8>(nTypeOp);
}
-// --------------------------------------------------------------------
+
inline void CffSubsetterContext::writeTypeEsc( int nTypeEsc)
{
@@ -812,7 +812,7 @@ inline void CffSubsetterContext::writeTypeEsc( int nTypeEsc)
*(mpWritePtr++) = static_cast<U8>(nTypeEsc);
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::pop2MultiWrite( int nArgsPerTypo, int nTypeOp, int nTypeXor)
{
@@ -828,7 +828,7 @@ void CffSubsetterContext::pop2MultiWrite( int nArgsPerTypo, int nTypeOp, int nTy
clear();
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::popAll2Write( int nTypeOp)
{
@@ -841,7 +841,7 @@ void CffSubsetterContext::popAll2Write( int nTypeOp)
writeTypeOp( nTypeOp);
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::writeCurveTo( int nStackPos,
int nIX1, int nIY1, int nIX2, int nIY2, int nIX3, int nIY3)
@@ -866,7 +866,7 @@ void CffSubsetterContext::writeCurveTo( int nStackPos,
writeTypeOp( TYPE1OP::RCURVETO );
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::convertOneTypeOp( void)
{
@@ -1093,7 +1093,7 @@ void CffSubsetterContext::convertOneTypeOp( void)
}
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::convertOneTypeEsc( void)
{
@@ -1276,7 +1276,7 @@ void CffSubsetterContext::convertOneTypeEsc( void)
}
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::callType2Subr( bool bGlobal, int nSubrNumber)
{
@@ -1298,7 +1298,7 @@ void CffSubsetterContext::callType2Subr( bool bGlobal, int nSubrNumber)
mpReadEnd = pOldReadEnd;
}
-// --------------------------------------------------------------------
+
static const int MAX_T1OPS_SIZE = 81920; // TODO: use dynamic value
@@ -1375,7 +1375,7 @@ if( mbSawError) {
return nType1Len;
}
-// --------------------------------------------------------------------
+
RealType CffSubsetterContext::readRealVal()
{
@@ -1447,7 +1447,7 @@ RealType CffSubsetterContext::readRealVal()
return fReal;
}
-// --------------------------------------------------------------------
+
// prepare to access an element inside a CFF/CID index table
int CffSubsetterContext::seekIndexData( int nIndexBase, int nDataIndex)
@@ -1488,7 +1488,7 @@ int CffSubsetterContext::seekIndexData( int nIndexBase, int nDataIndex)
return (nOfs2 - nOfs1);
}
-// --------------------------------------------------------------------
+
// skip over a CFF/CID index table
void CffSubsetterContext::seekIndexEnd( int nIndexBase)
@@ -1543,7 +1543,7 @@ CffLocal::CffLocal( void)
maFamilyOtherBlues.clear();
}
-// --------------------------------------------------------------------
+
CffGlobal::CffGlobal( void)
: mnNameIdxBase( 0)
@@ -1569,7 +1569,7 @@ CffGlobal::CffGlobal( void)
// TODO; maFontMatrix.clear();
}
-// --------------------------------------------------------------------
+
void CffSubsetterContext::initialCffRead( void)
{
@@ -1672,7 +1672,7 @@ void CffSubsetterContext::initialCffRead( void)
// ignore the Notices info
}
-// --------------------------------------------------------------------
+
// get a cstring from a StringID
const char* CffSubsetterContext::getString( int nStringID)
@@ -1706,7 +1706,7 @@ const char* CffSubsetterContext::getString( int nStringID)
return aNameBuf;
}
-// --------------------------------------------------------------------
+
// access a CID's FDSelect table
int CffSubsetterContext::getFDSelect( int nGlyphIndex) const
@@ -1752,7 +1752,7 @@ int CffSubsetterContext::getFDSelect( int nGlyphIndex) const
return -1;
}
-// --------------------------------------------------------------------
+
int CffSubsetterContext::getGlyphSID( int nGlyphIndex) const
{
@@ -1801,7 +1801,7 @@ int CffSubsetterContext::getGlyphSID( int nGlyphIndex) const
return nSID;
}
-// --------------------------------------------------------------------
+
// NOTE: the result becomes invalid with the next call to this method
const char* CffSubsetterContext::getGlyphName( int nGlyphIndex)
@@ -1839,7 +1839,7 @@ const char* CffSubsetterContext::getGlyphName( int nGlyphIndex)
return pGlyphName;
}
-// --------------------------------------------------------------------
+
class Type1Emitter
{
@@ -1868,7 +1868,7 @@ public:
int mnHexLineCol;
};
-// --------------------------------------------------------------------
+
Type1Emitter::Type1Emitter( FILE* pOutFile, bool bPfbSubset)
: mpFileOut( pOutFile)
@@ -1881,7 +1881,7 @@ Type1Emitter::Type1Emitter( FILE* pOutFile, bool bPfbSubset)
maSubsetName[0] = '\0';
}
-// --------------------------------------------------------------------
+
Type1Emitter::~Type1Emitter( void)
{
@@ -1892,7 +1892,7 @@ Type1Emitter::~Type1Emitter( void)
mpFileOut = NULL;
}
-// --------------------------------------------------------------------
+
void Type1Emitter::setSubsetName( const char* pSubsetName)
{
@@ -1902,7 +1902,7 @@ void Type1Emitter::setSubsetName( const char* pSubsetName)
maSubsetName[sizeof(maSubsetName)-1] = '\0';
}
-// --------------------------------------------------------------------
+
int Type1Emitter::tellPos( void) const
{
@@ -1910,7 +1910,7 @@ int Type1Emitter::tellPos( void) const
return nTellPos;
}
-// --------------------------------------------------------------------
+
size_t Type1Emitter::updateLen( int nTellPos, size_t nLength)
{
@@ -1928,14 +1928,14 @@ size_t Type1Emitter::updateLen( int nTellPos, size_t nLength)
return nWrote;
}
-// --------------------------------------------------------------------
+
inline size_t Type1Emitter::emitRawData(const char* pData, size_t nLength) const
{
return fwrite( pData, 1, nLength, mpFileOut);
}
-// --------------------------------------------------------------------
+
inline void Type1Emitter::emitAllRaw( void)
{
@@ -1946,7 +1946,7 @@ inline void Type1Emitter::emitAllRaw( void)
mpPtr = maBuffer;
}
-// --------------------------------------------------------------------
+
inline void Type1Emitter::emitAllHex( void)
{
@@ -1974,7 +1974,7 @@ inline void Type1Emitter::emitAllHex( void)
mpPtr = maBuffer;
}
-// --------------------------------------------------------------------
+
void Type1Emitter::emitAllCrypted( void)
{
@@ -1991,7 +1991,7 @@ void Type1Emitter::emitAllCrypted( void)
emitAllHex();
}
-// --------------------------------------------------------------------
+
// #i110387# quick-and-dirty double->ascii conversion
// needed because sprintf/ecvt/etc. alone are too localized (LC_NUMERIC)
@@ -2002,7 +2002,7 @@ inline int dbl2str( char* pOut, double fVal, int nPrecision=6)
return nLen;
}
-// --------------------------------------------------------------------
+
void Type1Emitter::emitValVector( const char* pLineHead, const char* pLineTail,
const ValVector& rVector)
@@ -2028,7 +2028,7 @@ void Type1Emitter::emitValVector( const char* pLineHead, const char* pLineTail,
mpPtr += sprintf( mpPtr, "%s", pLineTail);
}
-// --------------------------------------------------------------------
+
bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
const sal_GlyphId* pReqGlyphIds, const U8* pReqEncoding,
diff --git a/vcl/source/fontsubset/fontsubset.cxx b/vcl/source/fontsubset/fontsubset.cxx
index 8b8970486cad..ab0636f73c04 100644
--- a/vcl/source/fontsubset/fontsubset.cxx
+++ b/vcl/source/fontsubset/fontsubset.cxx
@@ -36,12 +36,12 @@ FontSubsetInfo::FontSubsetInfo()
, mpSftTTFont( NULL)
{}
-// --------------------------------------------------------------------
+
FontSubsetInfo::~FontSubsetInfo()
{}
-// --------------------------------------------------------------------
+
// prepare subsetting for fonts where the input font file is mapped
bool FontSubsetInfo::LoadFont(
@@ -55,7 +55,7 @@ bool FontSubsetInfo::LoadFont(
return (mnInByteLength > 0);
}
-// --------------------------------------------------------------------
+
// prepare subsetting for fonts that are known to the SFT-parser
bool FontSubsetInfo::LoadFont( vcl::_TrueTypeFont* pSftTTFont )
@@ -66,7 +66,7 @@ bool FontSubsetInfo::LoadFont( vcl::_TrueTypeFont* pSftTTFont )
return (mpSftTTFont == NULL);
}
-// --------------------------------------------------------------------
+
bool FontSubsetInfo::CreateFontSubset(
int nReqFontTypeMask,
@@ -113,7 +113,7 @@ bool FontSubsetInfo::CreateFontSubset(
return bOK;
}
-// --------------------------------------------------------------------
+
// TODO: move function to sft.cxx to replace dummy implementation
bool FontSubsetInfo::CreateFontSubsetFromSfnt( sal_Int32* pOutGlyphWidths )
@@ -158,7 +158,7 @@ bool FontSubsetInfo::CreateFontSubsetFromSfnt( sal_Int32* pOutGlyphWidths )
return (nSFTErr != vcl::SF_OK);
}
-// --------------------------------------------------------------------
+
// TODO: replace dummy implementation
bool FontSubsetInfo::CreateFontSubsetFromType1( sal_Int32* pOutGlyphWidths)
diff --git a/vcl/source/fontsubset/xlat.cxx b/vcl/source/fontsubset/xlat.cxx
index b92d6b670757..22365b709764 100644
--- a/vcl/source/fontsubset/xlat.cxx
+++ b/vcl/source/fontsubset/xlat.cxx
@@ -51,7 +51,7 @@ ConverterCache::ConverterCache( void)
}
}
-// --------------------------------------------------------------------
+
ConverterCache::~ConverterCache( void)
{
@@ -64,7 +64,7 @@ ConverterCache::~ConverterCache( void)
}
}
-// --------------------------------------------------------------------
+
void ConverterCache::ensureConverter( int nSelect )
{
@@ -93,7 +93,7 @@ void ConverterCache::ensureConverter( int nSelect )
rtl_resetUnicodeToTextContext( maConverterCache[ nSelect ], aContext );
}
-// --------------------------------------------------------------------
+
sal_uInt16 ConverterCache::convertOne( int nSelect, sal_Unicode aChar )
{
@@ -118,7 +118,7 @@ sal_uInt16 ConverterCache::convertOne( int nSelect, sal_Unicode aChar )
return aCode;
}
-// --------------------------------------------------------------------
+
void ConverterCache::convertStr( int nSelect, const sal_Unicode* pSrc, sal_uInt16* pDst, int nCount )
{
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 73029540a90b..22afc65c627e 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -946,7 +946,7 @@ bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, sal_uInt32 nSc
return bRetval;
}
-// ------------------------------------------------------------------------
+
bool Bitmap::Scale( const Size& rNewSize, sal_uInt32 nScaleFlag )
{
@@ -965,14 +965,14 @@ bool Bitmap::Scale( const Size& rNewSize, sal_uInt32 nScaleFlag )
return bRet;
}
-// ------------------------------------------------------------------------
+
void Bitmap::AdaptBitCount(Bitmap& rNew) const
{
ImplAdaptBitCount(rNew);
}
-// ------------------------------------------------------------------------
+
void Bitmap::ImplAdaptBitCount(Bitmap& rNew) const
{
@@ -2084,7 +2084,7 @@ bool Bitmap::ImplScaleSuper(
return bRet;
}
-//-----------------------------------------------------------------------------------
+
namespace
{
@@ -2442,7 +2442,7 @@ bool Bitmap::ImplScaleConvolution(
return bResult;
}
-// ------------------------------------------------------------------------
+
bool Bitmap::Dither( sal_uLong nDitherFlags )
{
diff --git a/vcl/source/gdi/lineinfo.cxx b/vcl/source/gdi/lineinfo.cxx
index a6fb09f1ad05..91c299177d63 100644
--- a/vcl/source/gdi/lineinfo.cxx
+++ b/vcl/source/gdi/lineinfo.cxx
@@ -27,9 +27,9 @@
#include <numeric>
-// ----------------
+
// - ImplLineInfo -
-// ----------------
+
ImplLineInfo::ImplLineInfo() :
mnRefCount ( 1 ),
@@ -45,7 +45,7 @@ ImplLineInfo::ImplLineInfo() :
{
}
-// -----------------------------------------------------------------------
+
ImplLineInfo::ImplLineInfo( const ImplLineInfo& rImplLineInfo ) :
mnRefCount ( 1 ),
@@ -61,7 +61,7 @@ ImplLineInfo::ImplLineInfo( const ImplLineInfo& rImplLineInfo ) :
{
}
-// -----------------------------------------------------------------------
+
inline bool ImplLineInfo::operator==( const ImplLineInfo& rB ) const
{
@@ -76,9 +76,9 @@ inline bool ImplLineInfo::operator==( const ImplLineInfo& rB ) const
&& meLineCap == rB.meLineCap);
}
-// ------------
+
// - LineInfo -
-// ------------
+
LineInfo::LineInfo( LineStyle eStyle, long nWidth )
{
@@ -87,7 +87,7 @@ LineInfo::LineInfo( LineStyle eStyle, long nWidth )
mpImplLineInfo->mnWidth = nWidth;
}
-// -----------------------------------------------------------------------
+
LineInfo::LineInfo( const LineInfo& rLineInfo )
{
@@ -95,7 +95,7 @@ LineInfo::LineInfo( const LineInfo& rLineInfo )
mpImplLineInfo->mnRefCount++;
}
-// -----------------------------------------------------------------------
+
LineInfo::~LineInfo()
{
@@ -103,7 +103,7 @@ LineInfo::~LineInfo()
delete mpImplLineInfo;
}
-// -----------------------------------------------------------------------
+
LineInfo& LineInfo::operator=( const LineInfo& rLineInfo )
{
@@ -117,7 +117,7 @@ LineInfo& LineInfo::operator=( const LineInfo& rLineInfo )
return *this;
}
-// -----------------------------------------------------------------------
+
bool LineInfo::operator==( const LineInfo& rLineInfo ) const
{
@@ -126,7 +126,7 @@ bool LineInfo::operator==( const LineInfo& rLineInfo ) const
*mpImplLineInfo == *rLineInfo.mpImplLineInfo );
}
-// -----------------------------------------------------------------------
+
void LineInfo::ImplMakeUnique()
{
@@ -139,7 +139,7 @@ void LineInfo::ImplMakeUnique()
}
}
-// -----------------------------------------------------------------------
+
void LineInfo::SetStyle( LineStyle eStyle )
{
@@ -147,7 +147,7 @@ void LineInfo::SetStyle( LineStyle eStyle )
mpImplLineInfo->meStyle = eStyle;
}
-// -----------------------------------------------------------------------
+
void LineInfo::SetWidth( long nWidth )
{
@@ -155,7 +155,7 @@ void LineInfo::SetWidth( long nWidth )
mpImplLineInfo->mnWidth = nWidth;
}
-// -----------------------------------------------------------------------
+
void LineInfo::SetDashCount( sal_uInt16 nDashCount )
{
@@ -163,7 +163,7 @@ void LineInfo::SetDashCount( sal_uInt16 nDashCount )
mpImplLineInfo->mnDashCount = nDashCount;
}
-// -----------------------------------------------------------------------
+
void LineInfo::SetDashLen( long nDashLen )
{
@@ -171,7 +171,7 @@ void LineInfo::SetDashLen( long nDashLen )
mpImplLineInfo->mnDashLen = nDashLen;
}
-// -----------------------------------------------------------------------
+
void LineInfo::SetDotCount( sal_uInt16 nDotCount )
{
@@ -179,7 +179,7 @@ void LineInfo::SetDotCount( sal_uInt16 nDotCount )
mpImplLineInfo->mnDotCount = nDotCount;
}
-// -----------------------------------------------------------------------
+
void LineInfo::SetDotLen( long nDotLen )
{
@@ -187,7 +187,7 @@ void LineInfo::SetDotLen( long nDotLen )
mpImplLineInfo->mnDotLen = nDotLen;
}
-// -----------------------------------------------------------------------
+
void LineInfo::SetDistance( long nDistance )
{
@@ -195,7 +195,7 @@ void LineInfo::SetDistance( long nDistance )
mpImplLineInfo->mnDistance = nDistance;
}
-// -----------------------------------------------------------------------
+
void LineInfo::SetLineJoin(basegfx::B2DLineJoin eLineJoin)
{
@@ -207,7 +207,7 @@ void LineInfo::SetLineJoin(basegfx::B2DLineJoin eLineJoin)
}
}
-// -----------------------------------------------------------------------
+
void LineInfo::SetLineCap(com::sun::star::drawing::LineCap eLineCap)
{
@@ -218,7 +218,7 @@ void LineInfo::SetLineCap(com::sun::star::drawing::LineCap eLineCap)
}
}
-// -----------------------------------------------------------------------
+
bool LineInfo::IsDefault() const
{
@@ -227,7 +227,7 @@ bool LineInfo::IsDefault() const
&& ( com::sun::star::drawing::LineCap_BUTT == mpImplLineInfo->meLineCap));
}
-// -----------------------------------------------------------------------
+
SvStream& ReadImplLineInfo( SvStream& rIStm, ImplLineInfo& rImplLineInfo )
{
@@ -266,7 +266,7 @@ SvStream& ReadImplLineInfo( SvStream& rIStm, ImplLineInfo& rImplLineInfo )
return rIStm;
}
-// -----------------------------------------------------------------------
+
SvStream& WriteImplLineInfo( SvStream& rOStm, const ImplLineInfo& rImplLineInfo )
{
@@ -290,7 +290,7 @@ SvStream& WriteImplLineInfo( SvStream& rOStm, const ImplLineInfo& rImplLineInfo
return rOStm;
}
-// -----------------------------------------------------------------------
+
SvStream& ReadLineInfo( SvStream& rIStm, LineInfo& rLineInfo )
{
@@ -298,14 +298,14 @@ SvStream& ReadLineInfo( SvStream& rIStm, LineInfo& rLineInfo )
return ReadImplLineInfo( rIStm, *rLineInfo.mpImplLineInfo );
}
-// -----------------------------------------------------------------------
+
SvStream& WriteLineInfo( SvStream& rOStm, const LineInfo& rLineInfo )
{
return WriteImplLineInfo( rOStm, *rLineInfo.mpImplLineInfo );
}
-// -----------------------------------------------------------------------
+
void LineInfo::applyToB2DPolyPolygon(
basegfx::B2DPolyPolygon& io_rLinePolyPolygon,
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index 16ecaa20ac57..e3977355321b 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -38,7 +38,7 @@ inline void ImplScalePoint( Point& rPt, double fScaleX, double fScaleY )
rPt.Y() = FRound( fScaleY * rPt.Y() );
}
-// ------------------------------------------------------------------------
+
inline void ImplScaleRect( Rectangle& rRect, double fScaleX, double fScaleY )
{
@@ -52,7 +52,7 @@ inline void ImplScaleRect( Rectangle& rRect, double fScaleX, double fScaleY )
rRect.Justify();
}
-// ------------------------------------------------------------------------
+
inline void ImplScalePoly( Polygon& rPoly, double fScaleX, double fScaleY )
{
@@ -60,7 +60,7 @@ inline void ImplScalePoly( Polygon& rPoly, double fScaleX, double fScaleY )
ImplScalePoint( rPoly[ i ], fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
inline void ImplScaleLineInfo( LineInfo& rLineInfo, double fScaleX, double fScaleY )
{
@@ -90,7 +90,7 @@ MetaAction::MetaAction() :
{
}
-// ------------------------------------------------------------------------
+
MetaAction::MetaAction( sal_uInt16 nType ) :
mnRefCount( 1 ),
@@ -98,59 +98,59 @@ MetaAction::MetaAction( sal_uInt16 nType ) :
{
}
-// ------------------------------------------------------------------------
+
MetaAction::~MetaAction()
{
}
-// ------------------------------------------------------------------------
+
void MetaAction::Execute( OutputDevice* )
{
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaAction::Clone()
{
return new MetaAction;
}
-// ------------------------------------------------------------------------
+
void MetaAction::Move( long, long )
{
}
-// ------------------------------------------------------------------------
+
void MetaAction::Scale( double, double )
{
}
-// ------------------------------------------------------------------------
+
bool MetaAction::Compare( const MetaAction& ) const
{
return true;
}
-// ------------------------------------------------------------------------
+
void MetaAction::Write( SvStream& rOStm, ImplMetaWriteData* )
{
rOStm.WriteUInt16( mnType );
}
-// ------------------------------------------------------------------------
+
void MetaAction::Read( SvStream&, ImplMetaReadData* )
{
// DO NOT read mnType - ReadMetaAction already did that!
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaAction::ReadMetaAction( SvStream& rIStm, ImplMetaReadData* pData )
{
@@ -237,7 +237,7 @@ MetaAction* MetaAction::ReadMetaAction( SvStream& rIStm, ImplMetaReadData* pData
IMPL_META_ACTION( Pixel, META_PIXEL_ACTION )
-// ------------------------------------------------------------------------
+
MetaPixelAction::MetaPixelAction( const Point& rPt, const Color& rColor ) :
MetaAction ( META_PIXEL_ACTION ),
@@ -246,14 +246,14 @@ MetaPixelAction::MetaPixelAction( const Point& rPt, const Color& rColor ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaPixelAction::Execute( OutputDevice* pOut )
{
pOut->DrawPixel( maPt, maColor );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaPixelAction::Clone()
{
@@ -262,21 +262,21 @@ MetaAction* MetaPixelAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaPixelAction::Move( long nHorzMove, long nVertMove )
{
maPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaPixelAction::Scale( double fScaleX, double fScaleY )
{
ImplScalePoint( maPt, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaPixelAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -284,7 +284,7 @@ bool MetaPixelAction::Compare( const MetaAction& rMetaAction ) const
( maColor == ((MetaPixelAction&)rMetaAction).maColor );
}
-// ------------------------------------------------------------------------
+
void MetaPixelAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -293,7 +293,7 @@ void MetaPixelAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
maColor.Write( rOStm, true );
}
-// ------------------------------------------------------------------------
+
void MetaPixelAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -306,7 +306,7 @@ void MetaPixelAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Point, META_POINT_ACTION )
-// ------------------------------------------------------------------------
+
MetaPointAction::MetaPointAction( const Point& rPt ) :
MetaAction ( META_POINT_ACTION ),
@@ -314,14 +314,14 @@ MetaPointAction::MetaPointAction( const Point& rPt ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaPointAction::Execute( OutputDevice* pOut )
{
pOut->DrawPixel( maPt );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaPointAction::Clone()
{
@@ -330,28 +330,28 @@ MetaAction* MetaPointAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaPointAction::Move( long nHorzMove, long nVertMove )
{
maPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaPointAction::Scale( double fScaleX, double fScaleY )
{
ImplScalePoint( maPt, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaPointAction::Compare( const MetaAction& rMetaAction ) const
{
return maPt == ((MetaPointAction&)rMetaAction).maPt;
}
-// ------------------------------------------------------------------------
+
void MetaPointAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -359,7 +359,7 @@ void MetaPointAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WritePair( rOStm, maPt );
}
-// ------------------------------------------------------------------------
+
void MetaPointAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -371,7 +371,7 @@ void MetaPointAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Line, META_LINE_ACTION )
-// ------------------------------------------------------------------------
+
MetaLineAction::MetaLineAction( const Point& rStart, const Point& rEnd ) :
MetaAction ( META_LINE_ACTION ),
@@ -380,7 +380,7 @@ MetaLineAction::MetaLineAction( const Point& rStart, const Point& rEnd ) :
{
}
-// ------------------------------------------------------------------------
+
MetaLineAction::MetaLineAction( const Point& rStart, const Point& rEnd,
const LineInfo& rLineInfo ) :
@@ -391,7 +391,7 @@ MetaLineAction::MetaLineAction( const Point& rStart, const Point& rEnd,
{
}
-// ------------------------------------------------------------------------
+
void MetaLineAction::Execute( OutputDevice* pOut )
{
@@ -401,7 +401,7 @@ void MetaLineAction::Execute( OutputDevice* pOut )
pOut->DrawLine( maStartPt, maEndPt, maLineInfo );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaLineAction::Clone()
{
@@ -410,7 +410,7 @@ MetaAction* MetaLineAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaLineAction::Move( long nHorzMove, long nVertMove )
{
@@ -418,7 +418,7 @@ void MetaLineAction::Move( long nHorzMove, long nVertMove )
maEndPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaLineAction::Scale( double fScaleX, double fScaleY )
{
@@ -427,7 +427,7 @@ void MetaLineAction::Scale( double fScaleX, double fScaleY )
ImplScaleLineInfo( maLineInfo, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaLineAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -436,7 +436,7 @@ bool MetaLineAction::Compare( const MetaAction& rMetaAction ) const
( maEndPt == ((MetaLineAction&)rMetaAction).maEndPt );
}
-// ------------------------------------------------------------------------
+
void MetaLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -447,7 +447,7 @@ void MetaLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WriteLineInfo( rOStm, maLineInfo ); // Version 2
}
-// ------------------------------------------------------------------------
+
void MetaLineAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -468,7 +468,7 @@ void MetaLineAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Rect, META_RECT_ACTION )
-// ------------------------------------------------------------------------
+
MetaRectAction::MetaRectAction( const Rectangle& rRect ) :
MetaAction ( META_RECT_ACTION ),
@@ -476,14 +476,14 @@ MetaRectAction::MetaRectAction( const Rectangle& rRect ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaRectAction::Execute( OutputDevice* pOut )
{
pOut->DrawRect( maRect );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaRectAction::Clone()
{
@@ -492,28 +492,28 @@ MetaAction* MetaRectAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaRectAction::Move( long nHorzMove, long nVertMove )
{
maRect.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaRectAction::Scale( double fScaleX, double fScaleY )
{
ImplScaleRect( maRect, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaRectAction::Compare( const MetaAction& rMetaAction ) const
{
return maRect == ((MetaRectAction&)rMetaAction).maRect;
}
-// ------------------------------------------------------------------------
+
void MetaRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -521,7 +521,7 @@ void MetaRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WriteRectangle( rOStm, maRect );
}
-// ------------------------------------------------------------------------
+
void MetaRectAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -533,7 +533,7 @@ void MetaRectAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( RoundRect, META_ROUNDRECT_ACTION )
-// ------------------------------------------------------------------------
+
MetaRoundRectAction::MetaRoundRectAction( const Rectangle& rRect,
sal_uInt32 nHorzRound, sal_uInt32 nVertRound ) :
@@ -544,14 +544,14 @@ MetaRoundRectAction::MetaRoundRectAction( const Rectangle& rRect,
{
}
-// ------------------------------------------------------------------------
+
void MetaRoundRectAction::Execute( OutputDevice* pOut )
{
pOut->DrawRect( maRect, mnHorzRound, mnVertRound );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaRoundRectAction::Clone()
{
@@ -560,14 +560,14 @@ MetaAction* MetaRoundRectAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaRoundRectAction::Move( long nHorzMove, long nVertMove )
{
maRect.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaRoundRectAction::Scale( double fScaleX, double fScaleY )
{
@@ -576,7 +576,7 @@ void MetaRoundRectAction::Scale( double fScaleX, double fScaleY )
mnVertRound = FRound( mnVertRound * fabs(fScaleY) );
}
-// ------------------------------------------------------------------------
+
bool MetaRoundRectAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -585,7 +585,7 @@ bool MetaRoundRectAction::Compare( const MetaAction& rMetaAction ) const
( mnVertRound == ((MetaRoundRectAction&)rMetaAction).mnVertRound );
}
-// ------------------------------------------------------------------------
+
void MetaRoundRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -594,7 +594,7 @@ void MetaRoundRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUInt32( mnHorzRound ).WriteUInt32( mnVertRound );
}
-// ------------------------------------------------------------------------
+
void MetaRoundRectAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -606,7 +606,7 @@ void MetaRoundRectAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Ellipse, META_ELLIPSE_ACTION )
-// ------------------------------------------------------------------------
+
MetaEllipseAction::MetaEllipseAction( const Rectangle& rRect ) :
MetaAction ( META_ELLIPSE_ACTION ),
@@ -614,14 +614,14 @@ MetaEllipseAction::MetaEllipseAction( const Rectangle& rRect ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaEllipseAction::Execute( OutputDevice* pOut )
{
pOut->DrawEllipse( maRect );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaEllipseAction::Clone()
{
@@ -630,28 +630,28 @@ MetaAction* MetaEllipseAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaEllipseAction::Move( long nHorzMove, long nVertMove )
{
maRect.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaEllipseAction::Scale( double fScaleX, double fScaleY )
{
ImplScaleRect( maRect, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaEllipseAction::Compare( const MetaAction& rMetaAction ) const
{
return maRect == ((MetaEllipseAction&)rMetaAction).maRect;
}
-// ------------------------------------------------------------------------
+
void MetaEllipseAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -659,7 +659,7 @@ void MetaEllipseAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WriteRectangle( rOStm, maRect );
}
-// ------------------------------------------------------------------------
+
void MetaEllipseAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -671,7 +671,7 @@ void MetaEllipseAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Arc, META_ARC_ACTION )
-// ------------------------------------------------------------------------
+
MetaArcAction::MetaArcAction( const Rectangle& rRect,
const Point& rStart, const Point& rEnd ) :
@@ -682,14 +682,14 @@ MetaArcAction::MetaArcAction( const Rectangle& rRect,
{
}
-// ------------------------------------------------------------------------
+
void MetaArcAction::Execute( OutputDevice* pOut )
{
pOut->DrawArc( maRect, maStartPt, maEndPt );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaArcAction::Clone()
{
@@ -698,7 +698,7 @@ MetaAction* MetaArcAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaArcAction::Move( long nHorzMove, long nVertMove )
{
@@ -707,7 +707,7 @@ void MetaArcAction::Move( long nHorzMove, long nVertMove )
maEndPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaArcAction::Scale( double fScaleX, double fScaleY )
{
@@ -716,7 +716,7 @@ void MetaArcAction::Scale( double fScaleX, double fScaleY )
ImplScalePoint( maEndPt, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaArcAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -725,7 +725,7 @@ bool MetaArcAction::Compare( const MetaAction& rMetaAction ) const
( maEndPt == ((MetaArcAction&)rMetaAction).maEndPt );
}
-// ------------------------------------------------------------------------
+
void MetaArcAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -735,7 +735,7 @@ void MetaArcAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WritePair( rOStm, maEndPt );
}
-// ------------------------------------------------------------------------
+
void MetaArcAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -749,7 +749,7 @@ void MetaArcAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Pie, META_PIE_ACTION )
-// ------------------------------------------------------------------------
+
MetaPieAction::MetaPieAction( const Rectangle& rRect,
const Point& rStart, const Point& rEnd ) :
@@ -760,14 +760,14 @@ MetaPieAction::MetaPieAction( const Rectangle& rRect,
{
}
-// ------------------------------------------------------------------------
+
void MetaPieAction::Execute( OutputDevice* pOut )
{
pOut->DrawPie( maRect, maStartPt, maEndPt );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaPieAction::Clone()
{
@@ -776,7 +776,7 @@ MetaAction* MetaPieAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaPieAction::Move( long nHorzMove, long nVertMove )
{
@@ -785,7 +785,7 @@ void MetaPieAction::Move( long nHorzMove, long nVertMove )
maEndPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaPieAction::Scale( double fScaleX, double fScaleY )
{
@@ -794,7 +794,7 @@ void MetaPieAction::Scale( double fScaleX, double fScaleY )
ImplScalePoint( maEndPt, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaPieAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -803,7 +803,7 @@ bool MetaPieAction::Compare( const MetaAction& rMetaAction ) const
( maEndPt == ((MetaPieAction&)rMetaAction).maEndPt );
}
-// ------------------------------------------------------------------------
+
void MetaPieAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -813,7 +813,7 @@ void MetaPieAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WritePair( rOStm, maEndPt );
}
-// ------------------------------------------------------------------------
+
void MetaPieAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -827,7 +827,7 @@ void MetaPieAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Chord, META_CHORD_ACTION )
-// ------------------------------------------------------------------------
+
MetaChordAction::MetaChordAction( const Rectangle& rRect,
const Point& rStart, const Point& rEnd ) :
@@ -838,14 +838,14 @@ MetaChordAction::MetaChordAction( const Rectangle& rRect,
{
}
-// ------------------------------------------------------------------------
+
void MetaChordAction::Execute( OutputDevice* pOut )
{
pOut->DrawChord( maRect, maStartPt, maEndPt );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaChordAction::Clone()
{
@@ -854,7 +854,7 @@ MetaAction* MetaChordAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaChordAction::Move( long nHorzMove, long nVertMove )
{
@@ -863,7 +863,7 @@ void MetaChordAction::Move( long nHorzMove, long nVertMove )
maEndPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaChordAction::Scale( double fScaleX, double fScaleY )
{
@@ -872,7 +872,7 @@ void MetaChordAction::Scale( double fScaleX, double fScaleY )
ImplScalePoint( maEndPt, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaChordAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -881,7 +881,7 @@ bool MetaChordAction::Compare( const MetaAction& rMetaAction ) const
( maEndPt == ((MetaChordAction&)rMetaAction).maEndPt );
}
-// ------------------------------------------------------------------------
+
void MetaChordAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -891,7 +891,7 @@ void MetaChordAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WritePair( rOStm, maEndPt );
}
-// ------------------------------------------------------------------------
+
void MetaChordAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -905,7 +905,7 @@ void MetaChordAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( PolyLine, META_POLYLINE_ACTION )
-// ------------------------------------------------------------------------
+
MetaPolyLineAction::MetaPolyLineAction( const Polygon& rPoly ) :
MetaAction ( META_POLYLINE_ACTION ),
@@ -913,7 +913,7 @@ MetaPolyLineAction::MetaPolyLineAction( const Polygon& rPoly ) :
{
}
-// ------------------------------------------------------------------------
+
MetaPolyLineAction::MetaPolyLineAction( const Polygon& rPoly, const LineInfo& rLineInfo ) :
MetaAction ( META_POLYLINE_ACTION ),
@@ -922,7 +922,7 @@ MetaPolyLineAction::MetaPolyLineAction( const Polygon& rPoly, const LineInfo& rL
{
}
-// ------------------------------------------------------------------------
+
void MetaPolyLineAction::Execute( OutputDevice* pOut )
{
@@ -932,7 +932,7 @@ void MetaPolyLineAction::Execute( OutputDevice* pOut )
pOut->DrawPolyLine( maPoly, maLineInfo );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaPolyLineAction::Clone()
{
@@ -941,14 +941,14 @@ MetaAction* MetaPolyLineAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaPolyLineAction::Move( long nHorzMove, long nVertMove )
{
maPoly.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaPolyLineAction::Scale( double fScaleX, double fScaleY )
{
@@ -956,7 +956,7 @@ void MetaPolyLineAction::Scale( double fScaleX, double fScaleY )
ImplScaleLineInfo( maLineInfo, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaPolyLineAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -969,7 +969,7 @@ bool MetaPolyLineAction::Compare( const MetaAction& rMetaAction ) const
}
-// ------------------------------------------------------------------------
+
void MetaPolyLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -987,7 +987,7 @@ void MetaPolyLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
maPoly.Write( rOStm );
}
-// ------------------------------------------------------------------------
+
void MetaPolyLineAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -1012,7 +1012,7 @@ void MetaPolyLineAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Polygon, META_POLYGON_ACTION )
-// ------------------------------------------------------------------------
+
MetaPolygonAction::MetaPolygonAction( const Polygon& rPoly ) :
MetaAction ( META_POLYGON_ACTION ),
@@ -1020,14 +1020,14 @@ MetaPolygonAction::MetaPolygonAction( const Polygon& rPoly ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaPolygonAction::Execute( OutputDevice* pOut )
{
pOut->DrawPolygon( maPoly );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaPolygonAction::Clone()
{
@@ -1036,28 +1036,28 @@ MetaAction* MetaPolygonAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaPolygonAction::Move( long nHorzMove, long nVertMove )
{
maPoly.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaPolygonAction::Scale( double fScaleX, double fScaleY )
{
ImplScalePoly( maPoly, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaPolygonAction::Compare( const MetaAction& rMetaAction ) const
{
return maPoly.IsEqual(((MetaPolygonAction&)rMetaAction).maPoly );
}
-// ------------------------------------------------------------------------
+
void MetaPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -1073,7 +1073,7 @@ void MetaPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
maPoly.Write( rOStm );
}
-// ------------------------------------------------------------------------
+
void MetaPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -1094,7 +1094,7 @@ void MetaPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( PolyPolygon, META_POLYPOLYGON_ACTION )
-// ------------------------------------------------------------------------
+
MetaPolyPolygonAction::MetaPolyPolygonAction( const PolyPolygon& rPolyPoly ) :
MetaAction ( META_POLYPOLYGON_ACTION ),
@@ -1102,14 +1102,14 @@ MetaPolyPolygonAction::MetaPolyPolygonAction( const PolyPolygon& rPolyPoly ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaPolyPolygonAction::Execute( OutputDevice* pOut )
{
pOut->DrawPolyPolygon( maPolyPoly );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaPolyPolygonAction::Clone()
{
@@ -1118,14 +1118,14 @@ MetaAction* MetaPolyPolygonAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaPolyPolygonAction::Move( long nHorzMove, long nVertMove )
{
maPolyPoly.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaPolyPolygonAction::Scale( double fScaleX, double fScaleY )
{
@@ -1133,14 +1133,14 @@ void MetaPolyPolygonAction::Scale( double fScaleX, double fScaleY )
ImplScalePoly( maPolyPoly[ i ], fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaPolyPolygonAction::Compare( const MetaAction& rMetaAction ) const
{
return maPolyPoly.IsEqual(((MetaPolyPolygonAction&)rMetaAction).maPolyPoly );
}
-// ------------------------------------------------------------------------
+
void MetaPolyPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -1174,7 +1174,7 @@ void MetaPolyPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
}
}
-// ------------------------------------------------------------------------
+
void MetaPolyPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -1199,7 +1199,7 @@ void MetaPolyPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Text, META_TEXT_ACTION )
-// ------------------------------------------------------------------------
+
MetaTextAction::MetaTextAction( const Point& rPt, const OUString& rStr,
sal_Int32 nIndex, sal_Int32 nLen ) :
@@ -1211,14 +1211,14 @@ MetaTextAction::MetaTextAction( const Point& rPt, const OUString& rStr,
{
}
-// ------------------------------------------------------------------------
+
void MetaTextAction::Execute( OutputDevice* pOut )
{
pOut->DrawText( maPt, maStr, mnIndex, mnLen );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaTextAction::Clone()
{
@@ -1227,21 +1227,21 @@ MetaAction* MetaTextAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaTextAction::Move( long nHorzMove, long nVertMove )
{
maPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaTextAction::Scale( double fScaleX, double fScaleY )
{
ImplScalePoint( maPt, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaTextAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -1251,7 +1251,7 @@ bool MetaTextAction::Compare( const MetaAction& rMetaAction ) const
( mnLen == ((MetaTextAction&)rMetaAction).mnLen );
}
-// ------------------------------------------------------------------------
+
void MetaTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -1264,7 +1264,7 @@ void MetaTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
write_uInt16_lenPrefixed_uInt16s_FromOUString(rOStm, maStr); // version 2
}
-// ------------------------------------------------------------------------
+
void MetaTextAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
@@ -1288,7 +1288,7 @@ MetaTextArrayAction::MetaTextArrayAction() :
{
}
-// ------------------------------------------------------------------------
+
MetaTextArrayAction::MetaTextArrayAction( const MetaTextArrayAction& rAction ) :
MetaAction ( META_TEXTARRAY_ACTION ),
@@ -1308,7 +1308,7 @@ MetaTextArrayAction::MetaTextArrayAction( const MetaTextArrayAction& rAction ) :
mpDXAry = NULL;
}
-// ------------------------------------------------------------------------
+
MetaTextArrayAction::MetaTextArrayAction( const Point& rStartPt,
const OUString& rStr,
@@ -1332,21 +1332,21 @@ MetaTextArrayAction::MetaTextArrayAction( const Point& rStartPt,
mpDXAry = NULL;
}
-// ------------------------------------------------------------------------
+
MetaTextArrayAction::~MetaTextArrayAction()
{
delete[] mpDXAry;
}
-// ------------------------------------------------------------------------
+
void MetaTextArrayAction::Execute( OutputDevice* pOut )
{
pOut->DrawTextArray( maStartPt, maStr, mpDXAry, mnIndex, mnLen );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaTextArrayAction::Clone()
{
@@ -1355,14 +1355,14 @@ MetaAction* MetaTextArrayAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaTextArrayAction::Move( long nHorzMove, long nVertMove )
{
maStartPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaTextArrayAction::Scale( double fScaleX, double fScaleY )
{
@@ -1375,7 +1375,7 @@ void MetaTextArrayAction::Scale( double fScaleX, double fScaleY )
}
}
-// ------------------------------------------------------------------------
+
bool MetaTextArrayAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -1386,7 +1386,7 @@ bool MetaTextArrayAction::Compare( const MetaAction& rMetaAction ) const
( memcmp( mpDXAry, ((MetaTextArrayAction&)rMetaAction).mpDXAry, mnLen ) == 0 );
}
-// ------------------------------------------------------------------------
+
void MetaTextArrayAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -1405,7 +1405,7 @@ void MetaTextArrayAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
write_uInt16_lenPrefixed_uInt16s_FromOUString(rOStm, maStr); // version 2
}
-// ------------------------------------------------------------------------
+
void MetaTextArrayAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
@@ -1469,7 +1469,7 @@ void MetaTextArrayAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
IMPL_META_ACTION( StretchText, META_STRETCHTEXT_ACTION )
-// ------------------------------------------------------------------------
+
MetaStretchTextAction::MetaStretchTextAction( const Point& rPt, sal_uInt32 nWidth,
const OUString& rStr,
@@ -1483,14 +1483,14 @@ MetaStretchTextAction::MetaStretchTextAction( const Point& rPt, sal_uInt32 nWidt
{
}
-// ------------------------------------------------------------------------
+
void MetaStretchTextAction::Execute( OutputDevice* pOut )
{
pOut->DrawStretchText( maPt, mnWidth, maStr, mnIndex, mnLen );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaStretchTextAction::Clone()
{
@@ -1499,14 +1499,14 @@ MetaAction* MetaStretchTextAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaStretchTextAction::Move( long nHorzMove, long nVertMove )
{
maPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaStretchTextAction::Scale( double fScaleX, double fScaleY )
{
@@ -1514,7 +1514,7 @@ void MetaStretchTextAction::Scale( double fScaleX, double fScaleY )
mnWidth = (sal_uLong)FRound( mnWidth * fabs(fScaleX) );
}
-// ------------------------------------------------------------------------
+
bool MetaStretchTextAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -1525,7 +1525,7 @@ bool MetaStretchTextAction::Compare( const MetaAction& rMetaAction ) const
( mnLen == ((MetaStretchTextAction&)rMetaAction).mnLen );
}
-// ------------------------------------------------------------------------
+
void MetaStretchTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -1539,7 +1539,7 @@ void MetaStretchTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
write_uInt16_lenPrefixed_uInt16s_FromOUString(rOStm, maStr); // version 2
}
-// ------------------------------------------------------------------------
+
void MetaStretchTextAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
@@ -1558,7 +1558,7 @@ void MetaStretchTextAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
IMPL_META_ACTION( TextRect, META_TEXTRECT_ACTION )
-// ------------------------------------------------------------------------
+
MetaTextRectAction::MetaTextRectAction( const Rectangle& rRect,
const OUString& rStr, sal_uInt16 nStyle ) :
@@ -1569,14 +1569,14 @@ MetaTextRectAction::MetaTextRectAction( const Rectangle& rRect,
{
}
-// ------------------------------------------------------------------------
+
void MetaTextRectAction::Execute( OutputDevice* pOut )
{
pOut->DrawText( maRect, maStr, mnStyle );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaTextRectAction::Clone()
{
@@ -1585,21 +1585,21 @@ MetaAction* MetaTextRectAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaTextRectAction::Move( long nHorzMove, long nVertMove )
{
maRect.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaTextRectAction::Scale( double fScaleX, double fScaleY )
{
ImplScaleRect( maRect, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaTextRectAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -1608,7 +1608,7 @@ bool MetaTextRectAction::Compare( const MetaAction& rMetaAction ) const
( mnStyle == ((MetaTextRectAction&)rMetaAction).mnStyle );
}
-// ------------------------------------------------------------------------
+
void MetaTextRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -1620,7 +1620,7 @@ void MetaTextRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
write_uInt16_lenPrefixed_uInt16s_FromOUString(rOStm, maStr); // version 2
}
-// ------------------------------------------------------------------------
+
void MetaTextRectAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
@@ -1637,7 +1637,7 @@ void MetaTextRectAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
IMPL_META_ACTION( TextLine, META_TEXTLINE_ACTION )
-// ------------------------------------------------------------------------
+
MetaTextLineAction::MetaTextLineAction( const Point& rPos, long nWidth,
FontStrikeout eStrikeout,
@@ -1652,14 +1652,14 @@ MetaTextLineAction::MetaTextLineAction( const Point& rPos, long nWidth,
{
}
-// ------------------------------------------------------------------------
+
void MetaTextLineAction::Execute( OutputDevice* pOut )
{
pOut->DrawTextLine( maPos, mnWidth, meStrikeout, meUnderline, meOverline );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaTextLineAction::Clone()
{
@@ -1668,14 +1668,14 @@ MetaAction* MetaTextLineAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaTextLineAction::Move( long nHorzMove, long nVertMove )
{
maPos.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaTextLineAction::Scale( double fScaleX, double fScaleY )
{
@@ -1683,7 +1683,7 @@ void MetaTextLineAction::Scale( double fScaleX, double fScaleY )
mnWidth = FRound( mnWidth * fabs(fScaleX) );
}
-// ------------------------------------------------------------------------
+
bool MetaTextLineAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -1694,7 +1694,7 @@ bool MetaTextLineAction::Compare( const MetaAction& rMetaAction ) const
( meOverline == ((MetaTextLineAction&)rMetaAction).meOverline );
}
-// ------------------------------------------------------------------------
+
void MetaTextLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -1709,7 +1709,7 @@ void MetaTextLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUInt32( static_cast<sal_uInt32>(meOverline) );
}
-// ------------------------------------------------------------------------
+
void MetaTextLineAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -1735,7 +1735,7 @@ void MetaTextLineAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Bmp, META_BMP_ACTION )
-// ------------------------------------------------------------------------
+
MetaBmpAction::MetaBmpAction( const Point& rPt, const Bitmap& rBmp ) :
MetaAction ( META_BMP_ACTION ),
@@ -1744,14 +1744,14 @@ MetaBmpAction::MetaBmpAction( const Point& rPt, const Bitmap& rBmp ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaBmpAction::Execute( OutputDevice* pOut )
{
pOut->DrawBitmap( maPt, maBmp );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaBmpAction::Clone()
{
@@ -1760,21 +1760,21 @@ MetaAction* MetaBmpAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaBmpAction::Move( long nHorzMove, long nVertMove )
{
maPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaBmpAction::Scale( double fScaleX, double fScaleY )
{
ImplScalePoint( maPt, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaBmpAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -1782,7 +1782,7 @@ bool MetaBmpAction::Compare( const MetaAction& rMetaAction ) const
( maPt == ((MetaBmpAction&)rMetaAction).maPt );
}
-// ------------------------------------------------------------------------
+
void MetaBmpAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -1794,7 +1794,7 @@ void MetaBmpAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
}
}
-// ------------------------------------------------------------------------
+
void MetaBmpAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -1807,7 +1807,7 @@ void MetaBmpAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( BmpScale, META_BMPSCALE_ACTION )
-// ------------------------------------------------------------------------
+
MetaBmpScaleAction::MetaBmpScaleAction( const Point& rPt, const Size& rSz,
const Bitmap& rBmp ) :
@@ -1818,14 +1818,14 @@ MetaBmpScaleAction::MetaBmpScaleAction( const Point& rPt, const Size& rSz,
{
}
-// ------------------------------------------------------------------------
+
void MetaBmpScaleAction::Execute( OutputDevice* pOut )
{
pOut->DrawBitmap( maPt, maSz, maBmp );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaBmpScaleAction::Clone()
{
@@ -1834,14 +1834,14 @@ MetaAction* MetaBmpScaleAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaBmpScaleAction::Move( long nHorzMove, long nVertMove )
{
maPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaBmpScaleAction::Scale( double fScaleX, double fScaleY )
{
@@ -1851,7 +1851,7 @@ void MetaBmpScaleAction::Scale( double fScaleX, double fScaleY )
maSz = aRectangle.GetSize();
}
-// ------------------------------------------------------------------------
+
bool MetaBmpScaleAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -1860,7 +1860,7 @@ bool MetaBmpScaleAction::Compare( const MetaAction& rMetaAction ) const
( maSz == ((MetaBmpScaleAction&)rMetaAction).maSz );
}
-// ------------------------------------------------------------------------
+
void MetaBmpScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -1873,7 +1873,7 @@ void MetaBmpScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
}
}
-// ------------------------------------------------------------------------
+
void MetaBmpScaleAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -1887,7 +1887,7 @@ void MetaBmpScaleAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( BmpScalePart, META_BMPSCALEPART_ACTION )
-// ------------------------------------------------------------------------
+
MetaBmpScalePartAction::MetaBmpScalePartAction( const Point& rDstPt, const Size& rDstSz,
const Point& rSrcPt, const Size& rSrcSz,
@@ -1901,14 +1901,14 @@ MetaBmpScalePartAction::MetaBmpScalePartAction( const Point& rDstPt, const Size&
{
}
-// ------------------------------------------------------------------------
+
void MetaBmpScalePartAction::Execute( OutputDevice* pOut )
{
pOut->DrawBitmap( maDstPt, maDstSz, maSrcPt, maSrcSz, maBmp );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaBmpScalePartAction::Clone()
{
@@ -1917,14 +1917,14 @@ MetaAction* MetaBmpScalePartAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaBmpScalePartAction::Move( long nHorzMove, long nVertMove )
{
maDstPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaBmpScalePartAction::Scale( double fScaleX, double fScaleY )
{
@@ -1934,7 +1934,7 @@ void MetaBmpScalePartAction::Scale( double fScaleX, double fScaleY )
maDstSz = aRectangle.GetSize();
}
-// ------------------------------------------------------------------------
+
bool MetaBmpScalePartAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -1945,7 +1945,7 @@ bool MetaBmpScalePartAction::Compare( const MetaAction& rMetaAction ) const
( maSrcSz == ((MetaBmpScalePartAction&)rMetaAction).maSrcSz );
}
-// ------------------------------------------------------------------------
+
void MetaBmpScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -1960,7 +1960,7 @@ void MetaBmpScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
}
}
-// ------------------------------------------------------------------------
+
void MetaBmpScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -1976,7 +1976,7 @@ void MetaBmpScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( BmpEx, META_BMPEX_ACTION )
-// ------------------------------------------------------------------------
+
MetaBmpExAction::MetaBmpExAction( const Point& rPt, const BitmapEx& rBmpEx ) :
MetaAction ( META_BMPEX_ACTION ),
@@ -1985,14 +1985,14 @@ MetaBmpExAction::MetaBmpExAction( const Point& rPt, const BitmapEx& rBmpEx ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaBmpExAction::Execute( OutputDevice* pOut )
{
pOut->DrawBitmapEx( maPt, maBmpEx );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaBmpExAction::Clone()
{
@@ -2001,21 +2001,21 @@ MetaAction* MetaBmpExAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaBmpExAction::Move( long nHorzMove, long nVertMove )
{
maPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaBmpExAction::Scale( double fScaleX, double fScaleY )
{
ImplScalePoint( maPt, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaBmpExAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2023,7 +2023,7 @@ bool MetaBmpExAction::Compare( const MetaAction& rMetaAction ) const
( maPt == ((MetaBmpExAction&)rMetaAction).maPt );
}
-// ------------------------------------------------------------------------
+
void MetaBmpExAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2035,7 +2035,7 @@ void MetaBmpExAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
}
}
-// ------------------------------------------------------------------------
+
void MetaBmpExAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2048,7 +2048,7 @@ void MetaBmpExAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( BmpExScale, META_BMPEXSCALE_ACTION )
-// ------------------------------------------------------------------------
+
MetaBmpExScaleAction::MetaBmpExScaleAction( const Point& rPt, const Size& rSz,
const BitmapEx& rBmpEx ) :
@@ -2059,14 +2059,14 @@ MetaBmpExScaleAction::MetaBmpExScaleAction( const Point& rPt, const Size& rSz,
{
}
-// ------------------------------------------------------------------------
+
void MetaBmpExScaleAction::Execute( OutputDevice* pOut )
{
pOut->DrawBitmapEx( maPt, maSz, maBmpEx );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaBmpExScaleAction::Clone()
{
@@ -2075,14 +2075,14 @@ MetaAction* MetaBmpExScaleAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaBmpExScaleAction::Move( long nHorzMove, long nVertMove )
{
maPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaBmpExScaleAction::Scale( double fScaleX, double fScaleY )
{
@@ -2092,7 +2092,7 @@ void MetaBmpExScaleAction::Scale( double fScaleX, double fScaleY )
maSz = aRectangle.GetSize();
}
-// ------------------------------------------------------------------------
+
bool MetaBmpExScaleAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2101,7 +2101,7 @@ bool MetaBmpExScaleAction::Compare( const MetaAction& rMetaAction ) const
( maSz == ((MetaBmpExScaleAction&)rMetaAction).maSz );
}
-// ------------------------------------------------------------------------
+
void MetaBmpExScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2114,7 +2114,7 @@ void MetaBmpExScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
}
}
-// ------------------------------------------------------------------------
+
void MetaBmpExScaleAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2128,7 +2128,7 @@ void MetaBmpExScaleAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( BmpExScalePart, META_BMPEXSCALEPART_ACTION )
-// ------------------------------------------------------------------------
+
MetaBmpExScalePartAction::MetaBmpExScalePartAction( const Point& rDstPt, const Size& rDstSz,
const Point& rSrcPt, const Size& rSrcSz,
@@ -2142,14 +2142,14 @@ MetaBmpExScalePartAction::MetaBmpExScalePartAction( const Point& rDstPt, const S
{
}
-// ------------------------------------------------------------------------
+
void MetaBmpExScalePartAction::Execute( OutputDevice* pOut )
{
pOut->DrawBitmapEx( maDstPt, maDstSz, maSrcPt, maSrcSz, maBmpEx );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaBmpExScalePartAction::Clone()
{
@@ -2158,14 +2158,14 @@ MetaAction* MetaBmpExScalePartAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaBmpExScalePartAction::Move( long nHorzMove, long nVertMove )
{
maDstPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaBmpExScalePartAction::Scale( double fScaleX, double fScaleY )
{
@@ -2175,7 +2175,7 @@ void MetaBmpExScalePartAction::Scale( double fScaleX, double fScaleY )
maDstSz = aRectangle.GetSize();
}
-// ------------------------------------------------------------------------
+
bool MetaBmpExScalePartAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2186,7 +2186,7 @@ bool MetaBmpExScalePartAction::Compare( const MetaAction& rMetaAction ) const
( maSrcSz == ((MetaBmpExScalePartAction&)rMetaAction).maSrcSz );
}
-// ------------------------------------------------------------------------
+
void MetaBmpExScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2201,7 +2201,7 @@ void MetaBmpExScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData
}
}
-// ------------------------------------------------------------------------
+
void MetaBmpExScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2217,7 +2217,7 @@ void MetaBmpExScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Mask, META_MASK_ACTION )
-// ------------------------------------------------------------------------
+
MetaMaskAction::MetaMaskAction( const Point& rPt,
const Bitmap& rBmp,
@@ -2229,14 +2229,14 @@ MetaMaskAction::MetaMaskAction( const Point& rPt,
{
}
-// ------------------------------------------------------------------------
+
void MetaMaskAction::Execute( OutputDevice* pOut )
{
pOut->DrawMask( maPt, maBmp, maColor );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaMaskAction::Clone()
{
@@ -2245,21 +2245,21 @@ MetaAction* MetaMaskAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaMaskAction::Move( long nHorzMove, long nVertMove )
{
maPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaMaskAction::Scale( double fScaleX, double fScaleY )
{
ImplScalePoint( maPt, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaMaskAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2268,7 +2268,7 @@ bool MetaMaskAction::Compare( const MetaAction& rMetaAction ) const
( maPt == ((MetaMaskAction&)rMetaAction).maPt );
}
-// ------------------------------------------------------------------------
+
void MetaMaskAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2280,7 +2280,7 @@ void MetaMaskAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
}
}
-// ------------------------------------------------------------------------
+
void MetaMaskAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2293,7 +2293,7 @@ void MetaMaskAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( MaskScale, META_MASKSCALE_ACTION )
-// ------------------------------------------------------------------------
+
MetaMaskScaleAction::MetaMaskScaleAction( const Point& rPt, const Size& rSz,
const Bitmap& rBmp,
@@ -2306,14 +2306,14 @@ MetaMaskScaleAction::MetaMaskScaleAction( const Point& rPt, const Size& rSz,
{
}
-// ------------------------------------------------------------------------
+
void MetaMaskScaleAction::Execute( OutputDevice* pOut )
{
pOut->DrawMask( maPt, maSz, maBmp, maColor );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaMaskScaleAction::Clone()
{
@@ -2322,14 +2322,14 @@ MetaAction* MetaMaskScaleAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaMaskScaleAction::Move( long nHorzMove, long nVertMove )
{
maPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaMaskScaleAction::Scale( double fScaleX, double fScaleY )
{
@@ -2339,7 +2339,7 @@ void MetaMaskScaleAction::Scale( double fScaleX, double fScaleY )
maSz = aRectangle.GetSize();
}
-// ------------------------------------------------------------------------
+
bool MetaMaskScaleAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2349,7 +2349,7 @@ bool MetaMaskScaleAction::Compare( const MetaAction& rMetaAction ) const
( maSz == ((MetaMaskScaleAction&)rMetaAction).maSz );
}
-// ------------------------------------------------------------------------
+
void MetaMaskScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2362,7 +2362,7 @@ void MetaMaskScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
}
}
-// ------------------------------------------------------------------------
+
void MetaMaskScaleAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2376,7 +2376,7 @@ void MetaMaskScaleAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( MaskScalePart, META_MASKSCALEPART_ACTION )
-// ------------------------------------------------------------------------
+
MetaMaskScalePartAction::MetaMaskScalePartAction( const Point& rDstPt, const Size& rDstSz,
const Point& rSrcPt, const Size& rSrcSz,
@@ -2392,14 +2392,14 @@ MetaMaskScalePartAction::MetaMaskScalePartAction( const Point& rDstPt, const Siz
{
}
-// ------------------------------------------------------------------------
+
void MetaMaskScalePartAction::Execute( OutputDevice* pOut )
{
pOut->DrawMask( maDstPt, maDstSz, maSrcPt, maSrcSz, maBmp, maColor );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaMaskScalePartAction::Clone()
{
@@ -2408,14 +2408,14 @@ MetaAction* MetaMaskScalePartAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaMaskScalePartAction::Move( long nHorzMove, long nVertMove )
{
maDstPt.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaMaskScalePartAction::Scale( double fScaleX, double fScaleY )
{
@@ -2425,7 +2425,7 @@ void MetaMaskScalePartAction::Scale( double fScaleX, double fScaleY )
maDstSz = aRectangle.GetSize();
}
-// ------------------------------------------------------------------------
+
bool MetaMaskScalePartAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2437,7 +2437,7 @@ bool MetaMaskScalePartAction::Compare( const MetaAction& rMetaAction ) const
( maSrcSz == ((MetaMaskScalePartAction&)rMetaAction).maSrcSz );
}
-// ------------------------------------------------------------------------
+
void MetaMaskScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2453,7 +2453,7 @@ void MetaMaskScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
}
}
-// ------------------------------------------------------------------------
+
void MetaMaskScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2470,7 +2470,7 @@ void MetaMaskScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Gradient, META_GRADIENT_ACTION )
-// ------------------------------------------------------------------------
+
MetaGradientAction::MetaGradientAction( const Rectangle& rRect, const Gradient& rGradient ) :
MetaAction ( META_GRADIENT_ACTION ),
@@ -2479,14 +2479,14 @@ MetaGradientAction::MetaGradientAction( const Rectangle& rRect, const Gradient&
{
}
-// ------------------------------------------------------------------------
+
void MetaGradientAction::Execute( OutputDevice* pOut )
{
pOut->DrawGradient( maRect, maGradient );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaGradientAction::Clone()
{
@@ -2495,21 +2495,21 @@ MetaAction* MetaGradientAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaGradientAction::Move( long nHorzMove, long nVertMove )
{
maRect.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaGradientAction::Scale( double fScaleX, double fScaleY )
{
ImplScaleRect( maRect, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaGradientAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2517,7 +2517,7 @@ bool MetaGradientAction::Compare( const MetaAction& rMetaAction ) const
( maGradient == ((MetaGradientAction&)rMetaAction).maGradient );
}
-// ------------------------------------------------------------------------
+
void MetaGradientAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2526,7 +2526,7 @@ void MetaGradientAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WriteGradient( rOStm, maGradient );
}
-// ------------------------------------------------------------------------
+
void MetaGradientAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2542,7 +2542,7 @@ MetaGradientExAction::MetaGradientExAction() :
{
}
-// ------------------------------------------------------------------------
+
MetaGradientExAction::MetaGradientExAction( const PolyPolygon& rPolyPoly, const Gradient& rGradient ) :
MetaAction ( META_GRADIENTEX_ACTION ),
@@ -2551,13 +2551,13 @@ MetaGradientExAction::MetaGradientExAction( const PolyPolygon& rPolyPoly, const
{
}
-// ------------------------------------------------------------------------
+
MetaGradientExAction::~MetaGradientExAction()
{
}
-// ------------------------------------------------------------------------
+
void MetaGradientExAction::Execute( OutputDevice* pOut )
{
@@ -2568,7 +2568,7 @@ void MetaGradientExAction::Execute( OutputDevice* pOut )
}
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaGradientExAction::Clone()
{
@@ -2577,14 +2577,14 @@ MetaAction* MetaGradientExAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaGradientExAction::Move( long nHorzMove, long nVertMove )
{
maPolyPoly.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaGradientExAction::Scale( double fScaleX, double fScaleY )
{
@@ -2592,7 +2592,7 @@ void MetaGradientExAction::Scale( double fScaleX, double fScaleY )
ImplScalePoly( maPolyPoly[ i ], fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaGradientExAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2600,7 +2600,7 @@ bool MetaGradientExAction::Compare( const MetaAction& rMetaAction ) const
( maGradient == ((MetaGradientExAction&)rMetaAction).maGradient );
}
-// ------------------------------------------------------------------------
+
void MetaGradientExAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2614,7 +2614,7 @@ void MetaGradientExAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WriteGradient( rOStm, maGradient );
}
-// ------------------------------------------------------------------------
+
void MetaGradientExAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2627,7 +2627,7 @@ void MetaGradientExAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Hatch, META_HATCH_ACTION )
-// ------------------------------------------------------------------------
+
MetaHatchAction::MetaHatchAction( const PolyPolygon& rPolyPoly, const Hatch& rHatch ) :
MetaAction ( META_HATCH_ACTION ),
@@ -2636,14 +2636,14 @@ MetaHatchAction::MetaHatchAction( const PolyPolygon& rPolyPoly, const Hatch& rHa
{
}
-// ------------------------------------------------------------------------
+
void MetaHatchAction::Execute( OutputDevice* pOut )
{
pOut->DrawHatch( maPolyPoly, maHatch );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaHatchAction::Clone()
{
@@ -2652,14 +2652,14 @@ MetaAction* MetaHatchAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaHatchAction::Move( long nHorzMove, long nVertMove )
{
maPolyPoly.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaHatchAction::Scale( double fScaleX, double fScaleY )
{
@@ -2667,7 +2667,7 @@ void MetaHatchAction::Scale( double fScaleX, double fScaleY )
ImplScalePoly( maPolyPoly[ i ], fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaHatchAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2675,7 +2675,7 @@ bool MetaHatchAction::Compare( const MetaAction& rMetaAction ) const
( maHatch == ((MetaHatchAction&)rMetaAction).maHatch );
}
-// ------------------------------------------------------------------------
+
void MetaHatchAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2689,7 +2689,7 @@ void MetaHatchAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WriteHatch( rOStm, maHatch );
}
-// ------------------------------------------------------------------------
+
void MetaHatchAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2702,7 +2702,7 @@ void MetaHatchAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Wallpaper, META_WALLPAPER_ACTION )
-// ------------------------------------------------------------------------
+
MetaWallpaperAction::MetaWallpaperAction( const Rectangle& rRect,
const Wallpaper& rPaper ) :
@@ -2712,14 +2712,14 @@ MetaWallpaperAction::MetaWallpaperAction( const Rectangle& rRect,
{
}
-// ------------------------------------------------------------------------
+
void MetaWallpaperAction::Execute( OutputDevice* pOut )
{
pOut->DrawWallpaper( maRect, maWallpaper );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaWallpaperAction::Clone()
{
@@ -2728,21 +2728,21 @@ MetaAction* MetaWallpaperAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaWallpaperAction::Move( long nHorzMove, long nVertMove )
{
maRect.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaWallpaperAction::Scale( double fScaleX, double fScaleY )
{
ImplScaleRect( maRect, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaWallpaperAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2750,7 +2750,7 @@ bool MetaWallpaperAction::Compare( const MetaAction& rMetaAction ) const
( maWallpaper == ((MetaWallpaperAction&)rMetaAction).maWallpaper );
}
-// ------------------------------------------------------------------------
+
void MetaWallpaperAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2758,7 +2758,7 @@ void MetaWallpaperAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WriteWallpaper( rOStm, maWallpaper );
}
-// ------------------------------------------------------------------------
+
void MetaWallpaperAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2770,7 +2770,7 @@ void MetaWallpaperAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( ClipRegion, META_CLIPREGION_ACTION )
-// ------------------------------------------------------------------------
+
MetaClipRegionAction::MetaClipRegionAction( const Region& rRegion, bool bClip ) :
MetaAction ( META_CLIPREGION_ACTION ),
@@ -2779,7 +2779,7 @@ MetaClipRegionAction::MetaClipRegionAction( const Region& rRegion, bool bClip )
{
}
-// ------------------------------------------------------------------------
+
void MetaClipRegionAction::Execute( OutputDevice* pOut )
{
@@ -2789,7 +2789,7 @@ void MetaClipRegionAction::Execute( OutputDevice* pOut )
pOut->SetClipRegion();
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaClipRegionAction::Clone()
{
@@ -2798,21 +2798,21 @@ MetaAction* MetaClipRegionAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaClipRegionAction::Move( long nHorzMove, long nVertMove )
{
maRegion.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaClipRegionAction::Scale( double fScaleX, double fScaleY )
{
maRegion.Scale( fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaClipRegionAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -2820,7 +2820,7 @@ bool MetaClipRegionAction::Compare( const MetaAction& rMetaAction ) const
( mbClip == ((MetaClipRegionAction&)rMetaAction).mbClip );
}
-// ------------------------------------------------------------------------
+
void MetaClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2829,7 +2829,7 @@ void MetaClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUChar( mbClip );
}
-// ------------------------------------------------------------------------
+
void MetaClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2842,7 +2842,7 @@ void MetaClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( ISectRectClipRegion, META_ISECTRECTCLIPREGION_ACTION )
-// ------------------------------------------------------------------------
+
MetaISectRectClipRegionAction::MetaISectRectClipRegionAction( const Rectangle& rRect ) :
MetaAction ( META_ISECTRECTCLIPREGION_ACTION ),
@@ -2850,14 +2850,14 @@ MetaISectRectClipRegionAction::MetaISectRectClipRegionAction( const Rectangle& r
{
}
-// ------------------------------------------------------------------------
+
void MetaISectRectClipRegionAction::Execute( OutputDevice* pOut )
{
pOut->IntersectClipRegion( maRect );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaISectRectClipRegionAction::Clone()
{
@@ -2866,28 +2866,28 @@ MetaAction* MetaISectRectClipRegionAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaISectRectClipRegionAction::Move( long nHorzMove, long nVertMove )
{
maRect.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaISectRectClipRegionAction::Scale( double fScaleX, double fScaleY )
{
ImplScaleRect( maRect, fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaISectRectClipRegionAction::Compare( const MetaAction& rMetaAction ) const
{
return maRect == ((MetaISectRectClipRegionAction&)rMetaAction).maRect;
}
-// ------------------------------------------------------------------------
+
void MetaISectRectClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2895,7 +2895,7 @@ void MetaISectRectClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* p
WriteRectangle( rOStm, maRect );
}
-// ------------------------------------------------------------------------
+
void MetaISectRectClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2907,7 +2907,7 @@ void MetaISectRectClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( ISectRegionClipRegion, META_ISECTREGIONCLIPREGION_ACTION )
-// ------------------------------------------------------------------------
+
MetaISectRegionClipRegionAction::MetaISectRegionClipRegionAction( const Region& rRegion ) :
MetaAction ( META_ISECTREGIONCLIPREGION_ACTION ),
@@ -2915,14 +2915,14 @@ MetaISectRegionClipRegionAction::MetaISectRegionClipRegionAction( const Region&
{
}
-// ------------------------------------------------------------------------
+
void MetaISectRegionClipRegionAction::Execute( OutputDevice* pOut )
{
pOut->IntersectClipRegion( maRegion );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaISectRegionClipRegionAction::Clone()
{
@@ -2931,28 +2931,28 @@ MetaAction* MetaISectRegionClipRegionAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaISectRegionClipRegionAction::Move( long nHorzMove, long nVertMove )
{
maRegion.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaISectRegionClipRegionAction::Scale( double fScaleX, double fScaleY )
{
maRegion.Scale( fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaISectRegionClipRegionAction::Compare( const MetaAction& rMetaAction ) const
{
return maRegion == ((MetaISectRegionClipRegionAction&)rMetaAction).maRegion;
}
-// ------------------------------------------------------------------------
+
void MetaISectRegionClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -2960,7 +2960,7 @@ void MetaISectRegionClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData*
WriteRegion( rOStm, maRegion );
}
-// ------------------------------------------------------------------------
+
void MetaISectRegionClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -2972,7 +2972,7 @@ void MetaISectRegionClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( MoveClipRegion, META_MOVECLIPREGION_ACTION )
-// ------------------------------------------------------------------------
+
MetaMoveClipRegionAction::MetaMoveClipRegionAction( long nHorzMove, long nVertMove ) :
MetaAction ( META_MOVECLIPREGION_ACTION ),
@@ -2981,14 +2981,14 @@ MetaMoveClipRegionAction::MetaMoveClipRegionAction( long nHorzMove, long nVertMo
{
}
-// ------------------------------------------------------------------------
+
void MetaMoveClipRegionAction::Execute( OutputDevice* pOut )
{
pOut->MoveClipRegion( mnHorzMove, mnVertMove );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaMoveClipRegionAction::Clone()
{
@@ -2997,7 +2997,7 @@ MetaAction* MetaMoveClipRegionAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaMoveClipRegionAction::Scale( double fScaleX, double fScaleY )
{
@@ -3005,7 +3005,7 @@ void MetaMoveClipRegionAction::Scale( double fScaleX, double fScaleY )
mnVertMove = FRound( mnVertMove * fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaMoveClipRegionAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -3013,7 +3013,7 @@ bool MetaMoveClipRegionAction::Compare( const MetaAction& rMetaAction ) const
( mnVertMove == ((MetaMoveClipRegionAction&)rMetaAction).mnVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaMoveClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3022,7 +3022,7 @@ void MetaMoveClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData
rOStm.WriteInt32( sal::static_int_cast<sal_Int32>(mnHorzMove) ).WriteInt32( sal::static_int_cast<sal_Int32>(mnVertMove) );
}
-// ------------------------------------------------------------------------
+
void MetaMoveClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3038,7 +3038,7 @@ void MetaMoveClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( LineColor, META_LINECOLOR_ACTION )
-// ------------------------------------------------------------------------
+
MetaLineColorAction::MetaLineColorAction( const Color& rColor, bool bSet ) :
MetaAction ( META_LINECOLOR_ACTION ),
@@ -3047,7 +3047,7 @@ MetaLineColorAction::MetaLineColorAction( const Color& rColor, bool bSet ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaLineColorAction::Execute( OutputDevice* pOut )
{
@@ -3057,7 +3057,7 @@ void MetaLineColorAction::Execute( OutputDevice* pOut )
pOut->SetLineColor();
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaLineColorAction::Clone()
{
@@ -3066,7 +3066,7 @@ MetaAction* MetaLineColorAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaLineColorAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -3074,7 +3074,7 @@ bool MetaLineColorAction::Compare( const MetaAction& rMetaAction ) const
( mbSet == ((MetaLineColorAction&)rMetaAction).mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaLineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3083,7 +3083,7 @@ void MetaLineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUChar( mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaLineColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3096,7 +3096,7 @@ void MetaLineColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( FillColor, META_FILLCOLOR_ACTION )
-// ------------------------------------------------------------------------
+
MetaFillColorAction::MetaFillColorAction( const Color& rColor, bool bSet ) :
MetaAction ( META_FILLCOLOR_ACTION ),
@@ -3105,7 +3105,7 @@ MetaFillColorAction::MetaFillColorAction( const Color& rColor, bool bSet ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaFillColorAction::Execute( OutputDevice* pOut )
{
@@ -3115,7 +3115,7 @@ void MetaFillColorAction::Execute( OutputDevice* pOut )
pOut->SetFillColor();
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaFillColorAction::Clone()
{
@@ -3124,7 +3124,7 @@ MetaAction* MetaFillColorAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaFillColorAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -3132,7 +3132,7 @@ bool MetaFillColorAction::Compare( const MetaAction& rMetaAction ) const
( mbSet == ((MetaFillColorAction&)rMetaAction).mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaFillColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3141,7 +3141,7 @@ void MetaFillColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUChar( mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaFillColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3154,7 +3154,7 @@ void MetaFillColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( TextColor, META_TEXTCOLOR_ACTION )
-// ------------------------------------------------------------------------
+
MetaTextColorAction::MetaTextColorAction( const Color& rColor ) :
MetaAction ( META_TEXTCOLOR_ACTION ),
@@ -3162,14 +3162,14 @@ MetaTextColorAction::MetaTextColorAction( const Color& rColor ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaTextColorAction::Execute( OutputDevice* pOut )
{
pOut->SetTextColor( maColor );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaTextColorAction::Clone()
{
@@ -3178,14 +3178,14 @@ MetaAction* MetaTextColorAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaTextColorAction::Compare( const MetaAction& rMetaAction ) const
{
return maColor == ((MetaTextColorAction&)rMetaAction).maColor;
}
-// ------------------------------------------------------------------------
+
void MetaTextColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3193,7 +3193,7 @@ void MetaTextColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
maColor.Write( rOStm, true );
}
-// ------------------------------------------------------------------------
+
void MetaTextColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3205,7 +3205,7 @@ void MetaTextColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( TextFillColor, META_TEXTFILLCOLOR_ACTION )
-// ------------------------------------------------------------------------
+
MetaTextFillColorAction::MetaTextFillColorAction( const Color& rColor, bool bSet ) :
MetaAction ( META_TEXTFILLCOLOR_ACTION ),
@@ -3214,7 +3214,7 @@ MetaTextFillColorAction::MetaTextFillColorAction( const Color& rColor, bool bSet
{
}
-// ------------------------------------------------------------------------
+
void MetaTextFillColorAction::Execute( OutputDevice* pOut )
{
@@ -3224,7 +3224,7 @@ void MetaTextFillColorAction::Execute( OutputDevice* pOut )
pOut->SetTextFillColor();
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaTextFillColorAction::Clone()
{
@@ -3233,7 +3233,7 @@ MetaAction* MetaTextFillColorAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaTextFillColorAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -3241,7 +3241,7 @@ bool MetaTextFillColorAction::Compare( const MetaAction& rMetaAction ) const
( mbSet == ((MetaTextFillColorAction&)rMetaAction).mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaTextFillColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3250,7 +3250,7 @@ void MetaTextFillColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUChar( mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaTextFillColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3263,7 +3263,7 @@ void MetaTextFillColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( TextLineColor, META_TEXTLINECOLOR_ACTION )
-// ------------------------------------------------------------------------
+
MetaTextLineColorAction::MetaTextLineColorAction( const Color& rColor, bool bSet ) :
MetaAction ( META_TEXTLINECOLOR_ACTION ),
@@ -3272,7 +3272,7 @@ MetaTextLineColorAction::MetaTextLineColorAction( const Color& rColor, bool bSet
{
}
-// ------------------------------------------------------------------------
+
void MetaTextLineColorAction::Execute( OutputDevice* pOut )
{
@@ -3282,7 +3282,7 @@ void MetaTextLineColorAction::Execute( OutputDevice* pOut )
pOut->SetTextLineColor();
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaTextLineColorAction::Clone()
{
@@ -3291,7 +3291,7 @@ MetaAction* MetaTextLineColorAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaTextLineColorAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -3299,7 +3299,7 @@ bool MetaTextLineColorAction::Compare( const MetaAction& rMetaAction ) const
( mbSet == ((MetaTextLineColorAction&)rMetaAction).mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaTextLineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3308,7 +3308,7 @@ void MetaTextLineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUChar( mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaTextLineColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3321,7 +3321,7 @@ void MetaTextLineColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( OverlineColor, META_OVERLINECOLOR_ACTION )
-// ------------------------------------------------------------------------
+
MetaOverlineColorAction::MetaOverlineColorAction( const Color& rColor, bool bSet ) :
MetaAction ( META_OVERLINECOLOR_ACTION ),
@@ -3330,7 +3330,7 @@ MetaOverlineColorAction::MetaOverlineColorAction( const Color& rColor, bool bSet
{
}
-// ------------------------------------------------------------------------
+
void MetaOverlineColorAction::Execute( OutputDevice* pOut )
{
@@ -3340,7 +3340,7 @@ void MetaOverlineColorAction::Execute( OutputDevice* pOut )
pOut->SetOverlineColor();
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaOverlineColorAction::Clone()
{
@@ -3349,7 +3349,7 @@ MetaAction* MetaOverlineColorAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaOverlineColorAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -3357,7 +3357,7 @@ bool MetaOverlineColorAction::Compare( const MetaAction& rMetaAction ) const
( mbSet == ((MetaOverlineColorAction&)rMetaAction).mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaOverlineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3366,7 +3366,7 @@ void MetaOverlineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUChar( mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaOverlineColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3379,7 +3379,7 @@ void MetaOverlineColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( TextAlign, META_TEXTALIGN_ACTION )
-// ------------------------------------------------------------------------
+
MetaTextAlignAction::MetaTextAlignAction( TextAlign aAlign ) :
MetaAction ( META_TEXTALIGN_ACTION ),
@@ -3387,14 +3387,14 @@ MetaTextAlignAction::MetaTextAlignAction( TextAlign aAlign ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaTextAlignAction::Execute( OutputDevice* pOut )
{
pOut->SetTextAlign( maAlign );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaTextAlignAction::Clone()
{
@@ -3403,14 +3403,14 @@ MetaAction* MetaTextAlignAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaTextAlignAction::Compare( const MetaAction& rMetaAction ) const
{
return maAlign == ((MetaTextAlignAction&)rMetaAction).maAlign;
}
-// ------------------------------------------------------------------------
+
void MetaTextAlignAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3418,7 +3418,7 @@ void MetaTextAlignAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUInt16( (sal_uInt16) maAlign );
}
-// ------------------------------------------------------------------------
+
void MetaTextAlignAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3432,7 +3432,7 @@ void MetaTextAlignAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( MapMode, META_MAPMODE_ACTION )
-// ------------------------------------------------------------------------
+
MetaMapModeAction::MetaMapModeAction( const MapMode& rMapMode ) :
MetaAction ( META_MAPMODE_ACTION ),
@@ -3440,14 +3440,14 @@ MetaMapModeAction::MetaMapModeAction( const MapMode& rMapMode ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaMapModeAction::Execute( OutputDevice* pOut )
{
pOut->SetMapMode( maMapMode );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaMapModeAction::Clone()
{
@@ -3456,7 +3456,7 @@ MetaAction* MetaMapModeAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaMapModeAction::Scale( double fScaleX, double fScaleY )
{
@@ -3466,14 +3466,14 @@ void MetaMapModeAction::Scale( double fScaleX, double fScaleY )
maMapMode.SetOrigin( aPoint );
}
-// ------------------------------------------------------------------------
+
bool MetaMapModeAction::Compare( const MetaAction& rMetaAction ) const
{
return maMapMode == ((MetaMapModeAction&)rMetaAction).maMapMode;
}
-// ------------------------------------------------------------------------
+
void MetaMapModeAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3481,7 +3481,7 @@ void MetaMapModeAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WriteMapMode( rOStm, maMapMode );
}
-// ------------------------------------------------------------------------
+
void MetaMapModeAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3493,7 +3493,7 @@ void MetaMapModeAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Font, META_FONT_ACTION )
-// ------------------------------------------------------------------------
+
MetaFontAction::MetaFontAction( const Font& rFont ) :
MetaAction ( META_FONT_ACTION ),
@@ -3510,14 +3510,14 @@ MetaFontAction::MetaFontAction( const Font& rFont ) :
}
}
-// ------------------------------------------------------------------------
+
void MetaFontAction::Execute( OutputDevice* pOut )
{
pOut->SetFont( maFont );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaFontAction::Clone()
{
@@ -3526,7 +3526,7 @@ MetaAction* MetaFontAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaFontAction::Scale( double fScaleX, double fScaleY )
{
@@ -3536,14 +3536,14 @@ void MetaFontAction::Scale( double fScaleX, double fScaleY )
maFont.SetSize( aSize );
}
-// ------------------------------------------------------------------------
+
bool MetaFontAction::Compare( const MetaAction& rMetaAction ) const
{
return maFont == ((MetaFontAction&)rMetaAction).maFont;
}
-// ------------------------------------------------------------------------
+
void MetaFontAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3554,7 +3554,7 @@ void MetaFontAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
pData->meActualCharSet = osl_getThreadTextEncoding();
}
-// ------------------------------------------------------------------------
+
void MetaFontAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
@@ -3569,7 +3569,7 @@ void MetaFontAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
IMPL_META_ACTION( Push, META_PUSH_ACTION )
-// ------------------------------------------------------------------------
+
MetaPushAction::MetaPushAction( sal_uInt16 nFlags ) :
MetaAction ( META_PUSH_ACTION ),
@@ -3577,14 +3577,14 @@ MetaPushAction::MetaPushAction( sal_uInt16 nFlags ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaPushAction::Execute( OutputDevice* pOut )
{
pOut->Push( mnFlags );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaPushAction::Clone()
{
@@ -3593,14 +3593,14 @@ MetaAction* MetaPushAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaPushAction::Compare( const MetaAction& rMetaAction ) const
{
return mnFlags == ((MetaPushAction&)rMetaAction).mnFlags;
}
-// ------------------------------------------------------------------------
+
void MetaPushAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3608,7 +3608,7 @@ void MetaPushAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUInt16( mnFlags );
}
-// ------------------------------------------------------------------------
+
void MetaPushAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3620,14 +3620,14 @@ void MetaPushAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Pop, META_POP_ACTION )
-// ------------------------------------------------------------------------
+
void MetaPopAction::Execute( OutputDevice* pOut )
{
pOut->Pop();
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaPopAction::Clone()
{
@@ -3636,14 +3636,14 @@ MetaAction* MetaPopAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaPopAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
}
-// ------------------------------------------------------------------------
+
void MetaPopAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3654,7 +3654,7 @@ void MetaPopAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( RasterOp, META_RASTEROP_ACTION )
-// ------------------------------------------------------------------------
+
MetaRasterOpAction::MetaRasterOpAction( RasterOp eRasterOp ) :
MetaAction ( META_RASTEROP_ACTION ),
@@ -3662,14 +3662,14 @@ MetaRasterOpAction::MetaRasterOpAction( RasterOp eRasterOp ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaRasterOpAction::Execute( OutputDevice* pOut )
{
pOut->SetRasterOp( meRasterOp );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaRasterOpAction::Clone()
{
@@ -3678,14 +3678,14 @@ MetaAction* MetaRasterOpAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaRasterOpAction::Compare( const MetaAction& rMetaAction ) const
{
return meRasterOp == ((MetaRasterOpAction&)rMetaAction).meRasterOp;
}
-// ------------------------------------------------------------------------
+
void MetaRasterOpAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3693,7 +3693,7 @@ void MetaRasterOpAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUInt16( (sal_uInt16) meRasterOp );
}
-// ------------------------------------------------------------------------
+
void MetaRasterOpAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3707,7 +3707,7 @@ void MetaRasterOpAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( Transparent, META_TRANSPARENT_ACTION )
-// ------------------------------------------------------------------------
+
MetaTransparentAction::MetaTransparentAction( const PolyPolygon& rPolyPoly, sal_uInt16 nTransPercent ) :
MetaAction ( META_TRANSPARENT_ACTION ),
@@ -3716,14 +3716,14 @@ MetaTransparentAction::MetaTransparentAction( const PolyPolygon& rPolyPoly, sal_
{
}
-// ------------------------------------------------------------------------
+
void MetaTransparentAction::Execute( OutputDevice* pOut )
{
pOut->DrawTransparent( maPolyPoly, mnTransPercent );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaTransparentAction::Clone()
{
@@ -3732,14 +3732,14 @@ MetaAction* MetaTransparentAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaTransparentAction::Move( long nHorzMove, long nVertMove )
{
maPolyPoly.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaTransparentAction::Scale( double fScaleX, double fScaleY )
{
@@ -3747,7 +3747,7 @@ void MetaTransparentAction::Scale( double fScaleX, double fScaleY )
ImplScalePoly( maPolyPoly[ i ], fScaleX, fScaleY );
}
-// ------------------------------------------------------------------------
+
bool MetaTransparentAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -3755,7 +3755,7 @@ bool MetaTransparentAction::Compare( const MetaAction& rMetaAction ) const
( mnTransPercent == ((MetaTransparentAction&)rMetaAction).mnTransPercent );
}
-// ------------------------------------------------------------------------
+
void MetaTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3777,7 +3777,7 @@ void MetaTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUInt16( mnTransPercent );
}
-// ------------------------------------------------------------------------
+
void MetaTransparentAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3790,7 +3790,7 @@ void MetaTransparentAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( FloatTransparent, META_FLOATTRANSPARENT_ACTION )
-// ------------------------------------------------------------------------
+
MetaFloatTransparentAction::MetaFloatTransparentAction( const GDIMetaFile& rMtf, const Point& rPos,
const Size& rSize, const Gradient& rGradient ) :
@@ -3802,14 +3802,14 @@ MetaFloatTransparentAction::MetaFloatTransparentAction( const GDIMetaFile& rMtf,
{
}
-// ------------------------------------------------------------------------
+
void MetaFloatTransparentAction::Execute( OutputDevice* pOut )
{
pOut->DrawTransparent( maMtf, maPoint, maSize, maGradient );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaFloatTransparentAction::Clone()
{
@@ -3818,14 +3818,14 @@ MetaAction* MetaFloatTransparentAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaFloatTransparentAction::Move( long nHorzMove, long nVertMove )
{
maPoint.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaFloatTransparentAction::Scale( double fScaleX, double fScaleY )
{
@@ -3835,7 +3835,7 @@ void MetaFloatTransparentAction::Scale( double fScaleX, double fScaleY )
maSize = aRectangle.GetSize();
}
-// ------------------------------------------------------------------------
+
bool MetaFloatTransparentAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -3845,7 +3845,7 @@ bool MetaFloatTransparentAction::Compare( const MetaAction& rMetaAction ) const
( maGradient == ((MetaFloatTransparentAction&)rMetaAction).maGradient );
}
-// ------------------------------------------------------------------------
+
void MetaFloatTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3857,7 +3857,7 @@ void MetaFloatTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pDat
WriteGradient( rOStm, maGradient );
}
-// ------------------------------------------------------------------------
+
void MetaFloatTransparentAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3872,7 +3872,7 @@ void MetaFloatTransparentAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( EPS, META_EPS_ACTION )
-// ------------------------------------------------------------------------
+
MetaEPSAction::MetaEPSAction( const Point& rPoint, const Size& rSize,
const GfxLink& rGfxLink, const GDIMetaFile& rSubst ) :
@@ -3884,14 +3884,14 @@ MetaEPSAction::MetaEPSAction( const Point& rPoint, const Size& rSize,
{
}
-// ------------------------------------------------------------------------
+
void MetaEPSAction::Execute( OutputDevice* pOut )
{
pOut->DrawEPS( maPoint, maSize, maGfxLink, &maSubst );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaEPSAction::Clone()
{
@@ -3900,14 +3900,14 @@ MetaAction* MetaEPSAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
void MetaEPSAction::Move( long nHorzMove, long nVertMove )
{
maPoint.Move( nHorzMove, nVertMove );
}
-// ------------------------------------------------------------------------
+
void MetaEPSAction::Scale( double fScaleX, double fScaleY )
{
@@ -3917,7 +3917,7 @@ void MetaEPSAction::Scale( double fScaleX, double fScaleY )
maSize = aRectangle.GetSize();
}
-// ------------------------------------------------------------------------
+
bool MetaEPSAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -3927,7 +3927,7 @@ bool MetaEPSAction::Compare( const MetaAction& rMetaAction ) const
( maSize == ((MetaEPSAction&)rMetaAction).maSize );
}
-// ------------------------------------------------------------------------
+
void MetaEPSAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3938,7 +3938,7 @@ void MetaEPSAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
maSubst.Write( rOStm );
}
-// ------------------------------------------------------------------------
+
void MetaEPSAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -3953,7 +3953,7 @@ void MetaEPSAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( RefPoint, META_REFPOINT_ACTION )
-// ------------------------------------------------------------------------
+
MetaRefPointAction::MetaRefPointAction( const Point& rRefPoint, bool bSet ) :
MetaAction ( META_REFPOINT_ACTION ),
@@ -3962,7 +3962,7 @@ MetaRefPointAction::MetaRefPointAction( const Point& rRefPoint, bool bSet ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaRefPointAction::Execute( OutputDevice* pOut )
{
@@ -3972,7 +3972,7 @@ void MetaRefPointAction::Execute( OutputDevice* pOut )
pOut->SetRefPoint();
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaRefPointAction::Clone()
{
@@ -3981,7 +3981,7 @@ MetaAction* MetaRefPointAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaRefPointAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -3989,7 +3989,7 @@ bool MetaRefPointAction::Compare( const MetaAction& rMetaAction ) const
( mbSet == ((MetaRefPointAction&)rMetaAction).mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaRefPointAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -3998,7 +3998,7 @@ void MetaRefPointAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUChar( mbSet );
}
-// ------------------------------------------------------------------------
+
void MetaRefPointAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -4015,7 +4015,7 @@ MetaCommentAction::MetaCommentAction( sal_Int32 nValue ) :
ImplInitDynamicData( NULL, 0UL );
}
-// ------------------------------------------------------------------------
+
MetaCommentAction::MetaCommentAction( const MetaCommentAction& rAct ) :
MetaAction ( META_COMMENT_ACTION ),
@@ -4025,7 +4025,7 @@ MetaCommentAction::MetaCommentAction( const MetaCommentAction& rAct ) :
ImplInitDynamicData( rAct.mpData, rAct.mnDataSize );
}
-// ------------------------------------------------------------------------
+
MetaCommentAction::MetaCommentAction( const OString& rComment, sal_Int32 nValue, const sal_uInt8* pData, sal_uInt32 nDataSize ) :
MetaAction ( META_COMMENT_ACTION ),
@@ -4035,7 +4035,7 @@ MetaCommentAction::MetaCommentAction( const OString& rComment, sal_Int32 nValue,
ImplInitDynamicData( pData, nDataSize );
}
-// ------------------------------------------------------------------------
+
MetaCommentAction::~MetaCommentAction()
{
@@ -4043,7 +4043,7 @@ MetaCommentAction::~MetaCommentAction()
delete[] mpData;
}
-// ------------------------------------------------------------------------
+
void MetaCommentAction::ImplInitDynamicData( const sal_uInt8* pData, sal_uInt32 nDataSize )
{
@@ -4059,7 +4059,7 @@ void MetaCommentAction::ImplInitDynamicData( const sal_uInt8* pData, sal_uInt32
}
}
-// ------------------------------------------------------------------------
+
void MetaCommentAction::Execute( OutputDevice* pOut )
{
@@ -4070,7 +4070,7 @@ void MetaCommentAction::Execute( OutputDevice* pOut )
}
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaCommentAction::Clone()
{
@@ -4131,7 +4131,7 @@ void MetaCommentAction::Move( long nXMove, long nYMove )
}
}
-// ------------------------------------------------------------------------
+
// SJ: 25.07.06 #i56656# we are not able to mirrorcertain kind of
// comments properly, especially the XPATHSTROKE and XPATHFILL lead to
// problems, so it is better to remove these comments when mirroring
@@ -4197,7 +4197,7 @@ void MetaCommentAction::Scale( double fXScale, double fYScale )
}
}
-// ------------------------------------------------------------------------
+
bool MetaCommentAction::Compare( const MetaAction& rMetaAction ) const
{
@@ -4207,7 +4207,7 @@ bool MetaCommentAction::Compare( const MetaAction& rMetaAction ) const
( memcmp( mpData, ((MetaCommentAction&)rMetaAction).mpData, mnDataSize ) == 0 );
}
-// ------------------------------------------------------------------------
+
void MetaCommentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -4219,7 +4219,7 @@ void MetaCommentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.Write( mpData, mnDataSize );
}
-// ------------------------------------------------------------------------
+
void MetaCommentAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -4244,7 +4244,7 @@ void MetaCommentAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( LayoutMode, META_LAYOUTMODE_ACTION )
-// ------------------------------------------------------------------------
+
MetaLayoutModeAction::MetaLayoutModeAction( sal_uInt32 nLayoutMode ) :
MetaAction ( META_LAYOUTMODE_ACTION ),
@@ -4252,14 +4252,14 @@ MetaLayoutModeAction::MetaLayoutModeAction( sal_uInt32 nLayoutMode ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaLayoutModeAction::Execute( OutputDevice* pOut )
{
pOut->SetLayoutMode( mnLayoutMode );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaLayoutModeAction::Clone()
{
@@ -4268,14 +4268,14 @@ MetaAction* MetaLayoutModeAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaLayoutModeAction::Compare( const MetaAction& rMetaAction ) const
{
return mnLayoutMode == ((MetaLayoutModeAction&)rMetaAction).mnLayoutMode;
}
-// ------------------------------------------------------------------------
+
void MetaLayoutModeAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -4283,7 +4283,7 @@ void MetaLayoutModeAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUInt32( mnLayoutMode );
}
-// ------------------------------------------------------------------------
+
void MetaLayoutModeAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
@@ -4295,7 +4295,7 @@ void MetaLayoutModeAction::Read( SvStream& rIStm, ImplMetaReadData* )
IMPL_META_ACTION( TextLanguage, META_TEXTLANGUAGE_ACTION )
-// ------------------------------------------------------------------------
+
MetaTextLanguageAction::MetaTextLanguageAction( LanguageType eTextLanguage ) :
MetaAction ( META_TEXTLANGUAGE_ACTION ),
@@ -4303,14 +4303,14 @@ MetaTextLanguageAction::MetaTextLanguageAction( LanguageType eTextLanguage ) :
{
}
-// ------------------------------------------------------------------------
+
void MetaTextLanguageAction::Execute( OutputDevice* pOut )
{
pOut->SetDigitLanguage( meTextLanguage );
}
-// ------------------------------------------------------------------------
+
MetaAction* MetaTextLanguageAction::Clone()
{
@@ -4319,14 +4319,14 @@ MetaAction* MetaTextLanguageAction::Clone()
return pClone;
}
-// ------------------------------------------------------------------------
+
bool MetaTextLanguageAction::Compare( const MetaAction& rMetaAction ) const
{
return meTextLanguage == ((MetaTextLanguageAction&)rMetaAction).meTextLanguage;
}
-// ------------------------------------------------------------------------
+
void MetaTextLanguageAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
@@ -4334,7 +4334,7 @@ void MetaTextLanguageAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm.WriteUInt16( meTextLanguage );
}
-// ------------------------------------------------------------------------
+
void MetaTextLanguageAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
diff --git a/vcl/source/gdi/octree.cxx b/vcl/source/gdi/octree.cxx
index 0a6a8c1ddc13..4e7222cdb2f5 100644
--- a/vcl/source/gdi/octree.cxx
+++ b/vcl/source/gdi/octree.cxx
@@ -25,15 +25,15 @@
#include "octree.hxx"
-// ---------
+
// - pMask -
-// ---------
+
static const sal_uInt8 pImplMask[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
-// -------------
+
// - NodeCache -
-// -------------
+
ImpNodeCache::ImpNodeCache( const sal_uLong nInitSize ) :
pActNode( NULL )
@@ -49,7 +49,7 @@ ImpNodeCache::ImpNodeCache( const sal_uLong nInitSize ) :
}
}
-// ------------------------------------------------------------------------
+
ImpNodeCache::~ImpNodeCache()
{
@@ -62,9 +62,9 @@ ImpNodeCache::~ImpNodeCache()
}
}
-// ----------
+
// - Octree -
-// ----------
+
Octree::Octree( const BitmapReadAccess& rReadAcc, sal_uLong nColors ) :
nMax ( nColors ),
@@ -77,7 +77,7 @@ Octree::Octree( const BitmapReadAccess& rReadAcc, sal_uLong nColors ) :
ImplCreateOctree();
}
-// ------------------------------------------------------------------------
+
Octree::~Octree()
{
@@ -85,7 +85,7 @@ Octree::~Octree()
delete pNodeCache;
}
-// ------------------------------------------------------------------------
+
void Octree::ImplCreateOctree()
{
@@ -131,7 +131,7 @@ void Octree::ImplCreateOctree()
}
}
-// ------------------------------------------------------------------------
+
void Octree::ImplDeleteOctree( PPNODE ppNode )
{
@@ -145,7 +145,7 @@ void Octree::ImplDeleteOctree( PPNODE ppNode )
*ppNode = NULL;
}
-// ------------------------------------------------------------------------
+
void Octree::ImplAdd( PPNODE ppNode )
{
@@ -184,7 +184,7 @@ void Octree::ImplAdd( PPNODE ppNode )
}
}
-// ------------------------------------------------------------------------
+
void Octree::ImplReduce()
{
@@ -224,7 +224,7 @@ void Octree::ImplReduce()
nLeafCount -= --nChildren;
}
-// ------------------------------------------------------------------------
+
void Octree::CreatePalette( PNODE pNode )
{
@@ -241,7 +241,7 @@ void Octree::CreatePalette( PNODE pNode )
}
-// ------------------------------------------------------------------------
+
void Octree::GetPalIndex( PNODE pNode )
{
@@ -259,9 +259,9 @@ void Octree::GetPalIndex( PNODE pNode )
}
}
-// -------------------
+
// - InverseColorMap -
-// -------------------
+
InverseColorMap::InverseColorMap( const BitmapPalette& rPal ) :
nBits( 8 - OCTREE_BITS )
@@ -315,7 +315,7 @@ InverseColorMap::InverseColorMap( const BitmapPalette& rPal ) :
}
}
-// ------------------------------------------------------------------------
+
InverseColorMap::~InverseColorMap()
{
@@ -323,7 +323,7 @@ InverseColorMap::~InverseColorMap()
rtl_freeMemory( pMap );
}
-// ------------------------------------------------------------------------
+
void InverseColorMap::ImplCreateBuffers( const sal_uLong nMax )
{
diff --git a/vcl/source/gdi/outdev2.cxx b/vcl/source/gdi/outdev2.cxx
index 111fdf652a8a..a5e2c57e6f0d 100644
--- a/vcl/source/gdi/outdev2.cxx
+++ b/vcl/source/gdi/outdev2.cxx
@@ -660,7 +660,7 @@ void OutputDevice::DrawBitmapEx( const Point& rDestPt, const Size& rDestSize,
}
}
-// ------------------------------------------------------------------
+
void OutputDevice::DrawTransformedBitmapEx(
const basegfx::B2DHomMatrix& rTransformation,
diff --git a/vcl/source/gdi/outdev5.cxx b/vcl/source/gdi/outdev5.cxx
index 4c522a94f76a..830a1ee3748e 100644
--- a/vcl/source/gdi/outdev5.cxx
+++ b/vcl/source/gdi/outdev5.cxx
@@ -92,7 +92,7 @@ void OutputDevice::DrawRect( const Rectangle& rRect,
mpAlphaVDev->DrawRect( rRect, nHorzRound, nVertRound );
}
-// -----------------------------------------------------------------------
+
void OutputDevice::DrawEllipse( const Rectangle& rRect )
{
@@ -140,7 +140,7 @@ void OutputDevice::DrawEllipse( const Rectangle& rRect )
mpAlphaVDev->DrawEllipse( rRect );
}
-// -----------------------------------------------------------------------
+
void OutputDevice::DrawArc( const Rectangle& rRect,
const Point& rStartPt, const Point& rEndPt )
@@ -185,7 +185,7 @@ void OutputDevice::DrawArc( const Rectangle& rRect,
mpAlphaVDev->DrawArc( rRect, rStartPt, rEndPt );
}
-// -----------------------------------------------------------------------
+
void OutputDevice::DrawPie( const Rectangle& rRect,
const Point& rStartPt, const Point& rEndPt )
@@ -237,7 +237,7 @@ void OutputDevice::DrawPie( const Rectangle& rRect,
mpAlphaVDev->DrawPie( rRect, rStartPt, rEndPt );
}
-// -----------------------------------------------------------------------
+
void OutputDevice::DrawChord( const Rectangle& rRect,
const Point& rStartPt, const Point& rEndPt )
diff --git a/vcl/source/gdi/outdev6.cxx b/vcl/source/gdi/outdev6.cxx
index 9d785e2610f9..e61e6bf58f12 100644
--- a/vcl/source/gdi/outdev6.cxx
+++ b/vcl/source/gdi/outdev6.cxx
@@ -175,7 +175,7 @@ void OutputDevice::DrawGrid( const Rectangle& rRect, const Size& rDist, sal_uLon
mpAlphaVDev->DrawGrid( rRect, rDist, nFlags );
}
-// ------------------------------------------------------------------------
+
// Caution: This method is nearly the same as
// void OutputDevice::DrawPolyPolygon( const basegfx::B2DPolyPolygon& rB2DPolyPoly )
// so when changes are made here do not forget to make change sthere, too
@@ -240,7 +240,7 @@ void OutputDevice::DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly,
DrawTransparent(toPolyPolygon(rB2DPolyPoly), static_cast<sal_uInt16>(fTransparency * 100.0));
}
-// ------------------------------------------------------------------------
+
void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
sal_uInt16 nTransparencePercent )
@@ -635,7 +635,7 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
}
}
-// -----------------------------------------------------------------------
+
void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos,
const Size& rSize, const Gradient& rTransparenceGradient )
@@ -796,7 +796,7 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos,
}
}
-// -----------------------------------------------------------------------
+
void OutputDevice::ImplDrawColorWallpaper( long nX, long nY,
long nWidth, long nHeight,
@@ -815,7 +815,7 @@ void OutputDevice::ImplDrawColorWallpaper( long nX, long nY,
EnableMapMode( bMap );
}
-// -----------------------------------------------------------------------
+
void OutputDevice::ImplDrawBitmapWallpaper( long nX, long nY,
long nWidth, long nHeight,
@@ -1058,7 +1058,7 @@ void OutputDevice::ImplDrawBitmapWallpaper( long nX, long nY,
mpMetaFile = pOldMetaFile;
}
-// -----------------------------------------------------------------------
+
void OutputDevice::ImplDrawGradientWallpaper( long nX, long nY,
long nWidth, long nHeight,
@@ -1103,7 +1103,7 @@ void OutputDevice::ImplDrawGradientWallpaper( long nX, long nY,
mpMetaFile = pOldMetaFile;
}
-// -----------------------------------------------------------------------
+
void OutputDevice::ImplDrawWallpaper( long nX, long nY,
long nWidth, long nHeight,
@@ -1117,7 +1117,7 @@ void OutputDevice::ImplDrawWallpaper( long nX, long nY,
ImplDrawColorWallpaper( nX, nY, nWidth, nHeight, rWallpaper );
}
-// -----------------------------------------------------------------------
+
void OutputDevice::DrawWallpaper( const Rectangle& rRect,
const Wallpaper& rWallpaper )
@@ -1144,7 +1144,7 @@ void OutputDevice::DrawWallpaper( const Rectangle& rRect,
mpAlphaVDev->DrawWallpaper( rRect, rWallpaper );
}
-// -----------------------------------------------------------------------
+
void OutputDevice::Erase()
{
@@ -1184,7 +1184,7 @@ void OutputDevice::Erase()
mpAlphaVDev->Erase();
}
-// -----------------------------------------------------------------------
+
bool OutputDevice::DrawEPS( const Point& rPoint, const Size& rSize,
const GfxLink& rGfxLink, GDIMetaFile* pSubst )
@@ -1242,7 +1242,7 @@ bool OutputDevice::DrawEPS( const Point& rPoint, const Size& rSize,
return bDrawn;
}
-// -----------------------------------------------------------------------
+
void OutputDevice::DrawCheckered(const Point& rPos, const Size& rSize, sal_uInt32 nLen, Color aStart, Color aEnd)
{
diff --git a/vcl/source/gdi/outdevnative.cxx b/vcl/source/gdi/outdevnative.cxx
index 9e310c7ab9ac..33296903fbb2 100644
--- a/vcl/source/gdi/outdevnative.cxx
+++ b/vcl/source/gdi/outdevnative.cxx
@@ -25,7 +25,7 @@
#include "salgdi.hxx"
-// -----------------------------------------------------------------------
+
static bool lcl_enableNativeWidget( const OutputDevice& i_rDevice )
{
@@ -140,12 +140,12 @@ PushButtonValue* PushButtonValue::clone() const
return new PushButtonValue( *this );
}
-// -----------------------------------------------------------------------
+
// These functions are mainly passthrough functions that allow access to
// the SalFrame behind a Window object for native widget rendering purposes.
-// -----------------------------------------------------------------------
-// -----------------------------------------------------------------------
+
+
bool OutputDevice::IsNativeControlSupported( ControlType nType, ControlPart nPart ) const
{
@@ -160,7 +160,7 @@ bool OutputDevice::IsNativeControlSupported( ControlType nType, ControlPart nPar
}
-// -----------------------------------------------------------------------
+
bool OutputDevice::HitTestNativeControl( ControlType nType,
ControlPart nPart,
@@ -183,7 +183,7 @@ bool OutputDevice::HitTestNativeControl( ControlType nType,
rIsInside, this ) );
}
-// -----------------------------------------------------------------------
+
static boost::shared_ptr< ImplControlValue > lcl_transformControlValue( const ImplControlValue& rVal, const OutputDevice& rDev )
{
@@ -303,7 +303,7 @@ bool OutputDevice::DrawNativeControl( ControlType nType,
return bRet;
}
-// -----------------------------------------------------------------------
+
bool OutputDevice::GetNativeControlRegion( ControlType nType,
ControlPart nPart,
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index 2a805f6d5a67..5d632fcd02ba 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -49,7 +49,7 @@ using namespace com::sun::star::beans;
static bool lcl_canUsePDFAxialShading(const Gradient& rGradient);
-// -----------------------------------------------------------------------------
+
void PDFWriterImpl::implWriteGradient( const PolyPolygon& i_rPolyPoly, const Gradient& i_rGradient,
VirtualDevice* i_pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& i_rContext )
@@ -64,7 +64,7 @@ void PDFWriterImpl::implWriteGradient( const PolyPolygon& i_rPolyPoly, const Gra
m_rOuterFace.Pop();
}
-// -----------------------------------------------------------------------------
+
void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSize, const BitmapEx& i_rBitmapEx,
VirtualDevice* i_pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& i_rContext )
@@ -243,7 +243,7 @@ void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSiz
}
-// -----------------------------------------------------------------------------
+
void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevData* i_pOutDevData, const vcl::PDFWriter::PlayMetafileContext& i_rContext, VirtualDevice* pDummyVDev )
{
diff --git a/vcl/source/gdi/regband.cxx b/vcl/source/gdi/regband.cxx
index 699ef39df805..f7e0820f9c17 100644
--- a/vcl/source/gdi/regband.cxx
+++ b/vcl/source/gdi/regband.cxx
@@ -42,7 +42,7 @@
// converted to rectangles and the points in the list are deleted.
//
//
-// -----------------------------------------------------------------------
+
ImplRegionBand::ImplRegionBand( long nTop, long nBottom )
{
@@ -58,7 +58,7 @@ ImplRegionBand::ImplRegionBand( long nTop, long nBottom )
mbTouched = false;
}
-// -----------------------------------------------------------------------
+
ImplRegionBand::ImplRegionBand(
const ImplRegionBand& rRegionBand,
@@ -120,7 +120,7 @@ ImplRegionBand::ImplRegionBand(
}
}
-// -----------------------------------------------------------------------
+
ImplRegionBand::~ImplRegionBand()
{
@@ -145,7 +145,7 @@ ImplRegionBand::~ImplRegionBand()
}
}
-// -----------------------------------------------------------------------
+
//
// generate separations from lines and process union with existing
// separations
@@ -198,7 +198,7 @@ void ImplRegionBand::ProcessPoints()
mpFirstBandPoint = NULL;
}
-// -----------------------------------------------------------------------
+
//
// generate separations from lines and process union with existing
// separations
@@ -311,7 +311,7 @@ bool ImplRegionBand::InsertPoint( long nX, long nLineId,
return true;
}
-// -----------------------------------------------------------------------
+
void ImplRegionBand::MoveX( long nHorzMove )
{
@@ -325,7 +325,7 @@ void ImplRegionBand::MoveX( long nHorzMove )
}
}
-// -----------------------------------------------------------------------
+
void ImplRegionBand::ScaleX( double fHorzScale )
{
@@ -338,7 +338,7 @@ void ImplRegionBand::ScaleX( double fHorzScale )
}
}
-// -----------------------------------------------------------------------
+
//
// combine overlaping sparations
@@ -383,7 +383,7 @@ bool ImplRegionBand::OptimizeBand()
return true;
}
-// -----------------------------------------------------------------------
+
void ImplRegionBand::Union( long nXLeft, long nXRight )
{
@@ -457,7 +457,7 @@ void ImplRegionBand::Union( long nXLeft, long nXRight )
OptimizeBand();
}
-// -----------------------------------------------------------------------
+
void ImplRegionBand::Intersect( long nXLeft, long nXRight )
{
@@ -504,7 +504,7 @@ void ImplRegionBand::Intersect( long nXLeft, long nXRight )
OptimizeBand();
}
-// -----------------------------------------------------------------------
+
void ImplRegionBand::Exclude( long nXLeft, long nXRight )
{
@@ -584,7 +584,7 @@ void ImplRegionBand::Exclude( long nXLeft, long nXRight )
OptimizeBand();
}
-// -----------------------------------------------------------------------
+
void ImplRegionBand::XOr( long nXLeft, long nXRight )
{
@@ -831,7 +831,7 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight )
OptimizeBand();
}
-// -----------------------------------------------------------------------
+
bool ImplRegionBand::IsInside( long nX )
{
@@ -847,7 +847,7 @@ bool ImplRegionBand::IsInside( long nX )
return false;
}
-// -----------------------------------------------------------------------
+
bool ImplRegionBand::IsOver( long nLeft, long nRight )
{
@@ -863,7 +863,7 @@ bool ImplRegionBand::IsOver( long nLeft, long nRight )
return false;
}
-// -----------------------------------------------------------------------
+
bool ImplRegionBand::IsInside( long nLeft, long nRight )
{
@@ -879,7 +879,7 @@ bool ImplRegionBand::IsInside( long nLeft, long nRight )
return false;
}
-// -----------------------------------------------------------------------
+
long ImplRegionBand::GetXLeftBoundary() const
{
@@ -888,7 +888,7 @@ long ImplRegionBand::GetXLeftBoundary() const
return mpFirstSep->mnXLeft;
}
-// -----------------------------------------------------------------------
+
long ImplRegionBand::GetXRightBoundary() const
{
@@ -901,7 +901,7 @@ long ImplRegionBand::GetXRightBoundary() const
return pSep->mnXRight;
}
-// -----------------------------------------------------------------------
+
bool ImplRegionBand::operator==( const ImplRegionBand& rRegionBand ) const
{
@@ -934,7 +934,7 @@ bool ImplRegionBand::operator==( const ImplRegionBand& rRegionBand ) const
return true;
}
-// -----------------------------------------------------------------------
+
ImplRegionBand* ImplRegionBand::SplitBand (const sal_Int32 nY)
{
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index 6e3f7fe06d3d..8c536275a5ed 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -1419,7 +1419,7 @@ bool Region::IsInside( const Rectangle& rRect ) const
return aRegion.IsEmpty();
}
-// -----------------------------------------------------------------------
+
bool Region::IsOver( const Rectangle& rRect ) const
{
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 90e6d2996c85..c2bb8b7422b7 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -215,14 +215,14 @@ int GetVerticalFlags( sal_UCS4 nChar )
return GF_NONE; // not rotated as default
}
-// -----------------------------------------------------------------------
+
sal_UCS4 GetVerticalChar( sal_UCS4 )
{
return 0; // #i14788# input method is responsible vertical char changes
}
-// -----------------------------------------------------------------------
+
VCL_DLLPUBLIC sal_UCS4 GetMirroredChar( sal_UCS4 nChar )
{
@@ -230,7 +230,7 @@ VCL_DLLPUBLIC sal_UCS4 GetMirroredChar( sal_UCS4 nChar )
return nChar;
}
-// -----------------------------------------------------------------------
+
VCL_DLLPUBLIC sal_UCS4 GetLocalizedChar( sal_UCS4 nChar, LanguageType eLang )
{
@@ -324,7 +324,7 @@ VCL_DLLPUBLIC sal_UCS4 GetLocalizedChar( sal_UCS4 nChar, LanguageType eLang )
return nChar;
}
-// -----------------------------------------------------------------------
+
inline bool IsControlChar( sal_UCS4 cChar )
{
@@ -376,7 +376,7 @@ bool ImplLayoutRuns::AddPos( int nCharPos, bool bRTL )
return true;
}
-// -----------------------------------------------------------------------
+
bool ImplLayoutRuns::AddRun( int nCharPos0, int nCharPos1, bool bRTL )
{
@@ -397,7 +397,7 @@ bool ImplLayoutRuns::AddRun( int nCharPos0, int nCharPos1, bool bRTL )
return true;
}
-// -----------------------------------------------------------------------
+
bool ImplLayoutRuns::PosIsInRun( int nCharPos ) const
{
@@ -441,7 +441,7 @@ bool ImplLayoutRuns::PosIsInAnyRun( int nCharPos ) const
}
-// -----------------------------------------------------------------------
+
bool ImplLayoutRuns::GetNextPos( int* nCharPos, bool* bRightToLeft )
{
@@ -487,7 +487,7 @@ bool ImplLayoutRuns::GetNextPos( int* nCharPos, bool* bRightToLeft )
return true;
}
-// -----------------------------------------------------------------------
+
bool ImplLayoutRuns::GetRun( int* nMinRunPos, int* nEndRunPos, bool* bRightToLeft ) const
{
@@ -583,7 +583,7 @@ ImplLayoutArgs::ImplLayoutArgs( const sal_Unicode* pStr, int nLen,
maRuns.ResetPos();
}
-// -----------------------------------------------------------------------
+
// add a run after splitting it up to get rid of control chars
void ImplLayoutArgs::AddRun( int nCharPos0, int nCharPos1, bool bRTL )
@@ -616,7 +616,7 @@ void ImplLayoutArgs::AddRun( int nCharPos0, int nCharPos1, bool bRTL )
maRuns.AddRun( nCharPos0, nCharPos1, bRTL );
}
-// -----------------------------------------------------------------------
+
bool ImplLayoutArgs::PrepareFallback()
{
@@ -665,7 +665,7 @@ bool ImplLayoutArgs::PrepareFallback()
return true;
}
-// -----------------------------------------------------------------------
+
bool ImplLayoutArgs::GetNextRun( int* nMinRunPos, int* nEndRunPos, bool* bRTL )
{
@@ -686,12 +686,12 @@ SalLayout::SalLayout()
maDrawOffset( 0, 0 )
{}
-// -----------------------------------------------------------------------
+
SalLayout::~SalLayout()
{}
-// -----------------------------------------------------------------------
+
void SalLayout::AdjustLayout( ImplLayoutArgs& rArgs )
{
@@ -701,7 +701,7 @@ void SalLayout::AdjustLayout( ImplLayoutArgs& rArgs )
mnOrientation = rArgs.mnOrientation;
}
-// -----------------------------------------------------------------------
+
void SalLayout::Release() const
{
@@ -712,7 +712,7 @@ void SalLayout::Release() const
delete const_cast<SalLayout*>(this);
}
-// -----------------------------------------------------------------------
+
Point SalLayout::GetDrawPosition( const Point& rRelative ) const
{
@@ -744,7 +744,7 @@ Point SalLayout::GetDrawPosition( const Point& rRelative ) const
return aPos;
}
-// -----------------------------------------------------------------------
+
// returns asian kerning values in quarter of character width units
// to enable automatic halfwidth substitution for fullwidth punctuation
@@ -787,7 +787,7 @@ int SalLayout::CalcAsianKerning( sal_UCS4 c, bool bLeft, bool /*TODO:? bVertical
return nResult;
}
-// -----------------------------------------------------------------------
+
bool SalLayout::GetOutline( SalGraphics& rSalGraphics,
::basegfx::B2DPolyPolygonVector& rVector ) const
@@ -823,7 +823,7 @@ bool SalLayout::GetOutline( SalGraphics& rSalGraphics,
return (bAllOk && bOneOk);
}
-// -----------------------------------------------------------------------
+
bool SalLayout::GetBoundRect( SalGraphics& rSalGraphics, Rectangle& rRect ) const
{
@@ -854,7 +854,7 @@ bool SalLayout::GetBoundRect( SalGraphics& rSalGraphics, Rectangle& rRect ) cons
return bRet;
}
-// -----------------------------------------------------------------------
+
bool SalLayout::IsSpacingGlyph( sal_GlyphId nGlyph ) const
{
@@ -877,19 +877,19 @@ bool SalLayout::IsSpacingGlyph( sal_GlyphId nGlyph ) const
GenericSalLayout::GenericSalLayout()
{}
-// -----------------------------------------------------------------------
+
GenericSalLayout::~GenericSalLayout()
{}
-// -----------------------------------------------------------------------
+
void GenericSalLayout::AppendGlyph( const GlyphItem& rGlyphItem )
{
m_GlyphItems.push_back(rGlyphItem);
}
-// -----------------------------------------------------------------------
+
bool GenericSalLayout::GetCharWidths( sal_Int32* pCharWidths ) const
{
@@ -965,7 +965,7 @@ bool GenericSalLayout::GetCharWidths( sal_Int32* pCharWidths ) const
return true;
}
-// -----------------------------------------------------------------------
+
long GenericSalLayout::FillDXArray( sal_Int32* pCharWidths ) const
{
@@ -977,7 +977,7 @@ long GenericSalLayout::FillDXArray( sal_Int32* pCharWidths ) const
return nWidth;
}
-// -----------------------------------------------------------------------
+
// the text width is the maximum logical extent of all glyphs
long GenericSalLayout::GetTextWidth() const
@@ -1004,7 +1004,7 @@ long GenericSalLayout::GetTextWidth() const
return nWidth;
}
-// -----------------------------------------------------------------------
+
void GenericSalLayout::AdjustLayout( ImplLayoutArgs& rArgs )
{
@@ -1016,7 +1016,7 @@ void GenericSalLayout::AdjustLayout( ImplLayoutArgs& rArgs )
Justify( rArgs.mnLayoutWidth );
}
-// -----------------------------------------------------------------------
+
// This DXArray thing is one of the stupidest ideas I have ever seen (I've been
// told that it probably a one-to-one mapping of some Windows 3.1 API, which is
@@ -1144,7 +1144,7 @@ void GenericSalLayout::ApplyDXArray( ImplLayoutArgs& rArgs )
}
}
-// -----------------------------------------------------------------------
+
void GenericSalLayout::Justify( long nNewWidth )
{
@@ -1222,7 +1222,7 @@ void GenericSalLayout::Justify( long nNewWidth )
}
}
-// -----------------------------------------------------------------------
+
void GenericSalLayout::ApplyAsianKerning( const sal_Unicode* pStr, int nLength )
{
@@ -1264,7 +1264,7 @@ void GenericSalLayout::ApplyAsianKerning( const sal_Unicode* pStr, int nLength )
}
}
-// -----------------------------------------------------------------------
+
void GenericSalLayout::KashidaJustify( long nKashidaIndex, int nKashidaWidth )
{
@@ -1317,7 +1317,7 @@ void GenericSalLayout::KashidaJustify( long nKashidaIndex, int nKashidaWidth )
}
}
-// -----------------------------------------------------------------------
+
void GenericSalLayout::GetCaretPositions( int nMaxIndex, sal_Int32* pCaretXArray ) const
{
@@ -1349,7 +1349,7 @@ void GenericSalLayout::GetCaretPositions( int nMaxIndex, sal_Int32* pCaretXArray
}
}
-// -----------------------------------------------------------------------
+
sal_Int32 GenericSalLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nFactor ) const
{
@@ -1370,7 +1370,7 @@ sal_Int32 GenericSalLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int n
return -1;
}
-// -----------------------------------------------------------------------
+
int GenericSalLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos,
int& nStart, sal_Int32* pGlyphAdvAry, int* pCharPosAry,
@@ -1458,7 +1458,7 @@ int GenericSalLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos
return nCount;
}
-// -----------------------------------------------------------------------
+
void GenericSalLayout::MoveGlyph( int nStart, long nNewXPos )
{
@@ -1485,7 +1485,7 @@ void GenericSalLayout::MoveGlyph( int nStart, long nNewXPos )
}
}
-// -----------------------------------------------------------------------
+
void GenericSalLayout::DropGlyph( int nStart )
{
@@ -1498,7 +1498,7 @@ void GenericSalLayout::DropGlyph( int nStart )
pG->mnCharPos = -1;
}
-// -----------------------------------------------------------------------
+
void GenericSalLayout::Simplify( bool bIsBase )
{
@@ -1520,7 +1520,7 @@ void GenericSalLayout::Simplify( bool bIsBase )
m_GlyphItems.erase(m_GlyphItems.begin() + j, m_GlyphItems.end());
}
-// -----------------------------------------------------------------------
+
// make sure GlyphItems are sorted left to right
void GenericSalLayout::SortGlyphItems()
@@ -1576,7 +1576,7 @@ void MultiSalLayout::SetInComplete(bool bInComplete)
maFallbackRuns[mnLevel-1] = ImplLayoutRuns();
}
-// -----------------------------------------------------------------------
+
MultiSalLayout::~MultiSalLayout()
{
@@ -1584,7 +1584,7 @@ MultiSalLayout::~MultiSalLayout()
mpLayouts[ i ]->Release();
}
-// -----------------------------------------------------------------------
+
bool MultiSalLayout::AddFallback( SalLayout& rFallback,
ImplLayoutRuns& rFallbackRuns, const PhysicalFontFace* pFallbackFont )
@@ -1599,7 +1599,7 @@ bool MultiSalLayout::AddFallback( SalLayout& rFallback,
return true;
}
-// -----------------------------------------------------------------------
+
bool MultiSalLayout::LayoutText( ImplLayoutArgs& rArgs )
{
@@ -1610,7 +1610,7 @@ bool MultiSalLayout::LayoutText( ImplLayoutArgs& rArgs )
return true;
}
-// -----------------------------------------------------------------------
+
void MultiSalLayout::AdjustLayout( ImplLayoutArgs& rArgs )
{
@@ -1979,7 +1979,7 @@ void MultiSalLayout::AdjustLayout( ImplLayoutArgs& rArgs )
mpLayouts[n]->DisableGlyphInjection( false );
}
-// -----------------------------------------------------------------------
+
void MultiSalLayout::InitFont() const
{
@@ -1987,7 +1987,7 @@ void MultiSalLayout::InitFont() const
mpLayouts[0]->InitFont();
}
-// -----------------------------------------------------------------------
+
void MultiSalLayout::DrawText( SalGraphics& rGraphics ) const
{
@@ -2004,7 +2004,7 @@ void MultiSalLayout::DrawText( SalGraphics& rGraphics ) const
// NOTE: now the baselevel font is active again
}
- // -----------------------------------------------------------------------
+
sal_Int32 MultiSalLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nFactor ) const
{
@@ -2043,7 +2043,7 @@ sal_Int32 MultiSalLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nFa
return -1;
}
-// -----------------------------------------------------------------------
+
long MultiSalLayout::FillDXArray( sal_Int32* pCharWidths ) const
{
@@ -2091,7 +2091,7 @@ long MultiSalLayout::FillDXArray( sal_Int32* pCharWidths ) const
return nMaxWidth;
}
-// -----------------------------------------------------------------------
+
void MultiSalLayout::GetCaretPositions( int nMaxIndex, sal_Int32* pCaretXArray ) const
{
@@ -2117,7 +2117,7 @@ void MultiSalLayout::GetCaretPositions( int nMaxIndex, sal_Int32* pCaretXArray )
}
}
-// -----------------------------------------------------------------------
+
int MultiSalLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphIdxAry, Point& rPos,
int& nStart, sal_Int32* pGlyphAdvAry, int* pCharPosAry,
@@ -2167,7 +2167,7 @@ int MultiSalLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphIdxAry, Point& r
return 0;
}
-// -----------------------------------------------------------------------
+
bool MultiSalLayout::GetOutline( SalGraphics& rGraphics,
::basegfx::B2DPolyPolygonVector& rPPV ) const
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index 2602dbc3d7f8..2d774a58b7f9 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -122,7 +122,7 @@ void VirtualDevice::ImplInitVirDev( const OutputDevice* pOutDev,
pSVData->maGDIData.mpFirstVirDev = this;
}
-// -----------------------------------------------------------------------
+
VirtualDevice::VirtualDevice( sal_uInt16 nBitCount )
: mpVirDev( NULL ),
@@ -135,7 +135,7 @@ VirtualDevice::VirtualDevice( sal_uInt16 nBitCount )
ImplInitVirDev( Application::GetDefaultDevice(), 1, 1, nBitCount );
}
-// -----------------------------------------------------------------------
+
VirtualDevice::VirtualDevice( const OutputDevice& rCompDev, sal_uInt16 nBitCount )
: mpVirDev( NULL ),
@@ -148,7 +148,7 @@ VirtualDevice::VirtualDevice( const OutputDevice& rCompDev, sal_uInt16 nBitCount
ImplInitVirDev( &rCompDev, 1, 1, nBitCount );
}
-// -----------------------------------------------------------------------
+
VirtualDevice::VirtualDevice( const OutputDevice& rCompDev, sal_uInt16 nBitCount, sal_uInt16 nAlphaBitCount )
: mpVirDev( NULL ),
@@ -165,7 +165,7 @@ VirtualDevice::VirtualDevice( const OutputDevice& rCompDev, sal_uInt16 nBitCount
mnAlphaDepth = sal::static_int_cast<sal_Int8>(nAlphaBitCount);
}
-// -----------------------------------------------------------------------
+
VirtualDevice::VirtualDevice( const SystemGraphicsData *pData, sal_uInt16 nBitCount )
: mpVirDev( NULL ),
@@ -176,7 +176,7 @@ VirtualDevice::VirtualDevice( const SystemGraphicsData *pData, sal_uInt16 nBitCo
ImplInitVirDev( Application::GetDefaultDevice(), 1, 1, nBitCount, pData );
}
-// -----------------------------------------------------------------------
+
VirtualDevice::~VirtualDevice()
{
@@ -201,7 +201,7 @@ VirtualDevice::~VirtualDevice()
pSVData->maGDIData.mpLastVirDev = mpPrev;
}
-// -----------------------------------------------------------------------
+
bool VirtualDevice::InnerImplSetOutputSizePixel( const Size& rNewSize, bool bErase, const basebmp::RawMemorySharedArray &pBuffer )
{
@@ -303,7 +303,7 @@ bool VirtualDevice::InnerImplSetOutputSizePixel( const Size& rNewSize, bool bEra
return bRet;
}
-// -----------------------------------------------------------------------
+
// #i32109#: Fill opaque areas correctly (without relying on
// fill/linecolor state)
@@ -319,7 +319,7 @@ void VirtualDevice::ImplFillOpaqueRectangle( const Rectangle& rRect )
Pop();
}
-// -----------------------------------------------------------------------
+
bool VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, bool bErase, const basebmp::RawMemorySharedArray &pBuffer )
{
@@ -373,7 +373,7 @@ bool VirtualDevice::SetOutputSizePixelScaleOffsetAndBuffer( const Size& rNewSize
return ImplSetOutputSizePixel( rNewSize, true, pBuffer);
}
-// -----------------------------------------------------------------------
+
void VirtualDevice::SetReferenceDevice( RefDevMode i_eRefDevMode )
{
@@ -455,13 +455,13 @@ void VirtualDevice::ImplSetReferenceDevice( RefDevMode i_eRefDevMode, sal_Int32
mpFontCache = new ImplFontCache();
}
-// -----------------------------------------------------------------------
+
void VirtualDevice::Compat_ZeroExtleadBug()
{
meRefDevMode = (sal_uInt8)meRefDevMode | REFDEV_FORCE_ZERO_EXTLEAD;
}
-// -----------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/gdi/wall.cxx b/vcl/source/gdi/wall.cxx
index 7c08e016b5cb..af7a3a0f20b6 100644
--- a/vcl/source/gdi/wall.cxx
+++ b/vcl/source/gdi/wall.cxx
@@ -28,7 +28,7 @@
#include <vcl/dibtools.hxx>
#include <vcl/settings.hxx>
-// -----------------------------------------------------------------------
+
ImplWallpaper::ImplWallpaper() :
maColor( COL_TRANSPARENT )
@@ -41,7 +41,7 @@ ImplWallpaper::ImplWallpaper() :
meStyle = WALLPAPER_NULL;
}
-// -----------------------------------------------------------------------
+
ImplWallpaper::ImplWallpaper( const ImplWallpaper& rImplWallpaper ) :
maColor( rImplWallpaper.maColor )
@@ -67,7 +67,7 @@ ImplWallpaper::ImplWallpaper( const ImplWallpaper& rImplWallpaper ) :
mpRect = NULL;
}
-// -----------------------------------------------------------------------
+
ImplWallpaper::~ImplWallpaper()
{
@@ -77,7 +77,7 @@ ImplWallpaper::~ImplWallpaper()
delete mpRect;
}
-// -----------------------------------------------------------------------
+
void ImplWallpaper::ImplSetCachedBitmap( BitmapEx& rBmp )
{
@@ -87,7 +87,7 @@ void ImplWallpaper::ImplSetCachedBitmap( BitmapEx& rBmp )
*mpCache = rBmp;
}
-// -----------------------------------------------------------------------
+
void ImplWallpaper::ImplReleaseCachedBitmap()
{
@@ -95,7 +95,7 @@ void ImplWallpaper::ImplReleaseCachedBitmap()
mpCache = NULL;
}
-// -----------------------------------------------------------------------
+
SvStream& ReadImplWallpaper( SvStream& rIStm, ImplWallpaper& rImplWallpaper )
{
@@ -150,7 +150,7 @@ SvStream& ReadImplWallpaper( SvStream& rIStm, ImplWallpaper& rImplWallpaper )
return rIStm;
}
-// -----------------------------------------------------------------------
+
SvStream& WriteImplWallpaper( SvStream& rOStm, const ImplWallpaper& rImplWallpaper )
{
@@ -182,7 +182,7 @@ SvStream& WriteImplWallpaper( SvStream& rOStm, const ImplWallpaper& rImplWallpap
return rOStm;
}
-// -----------------------------------------------------------------------
+
inline void Wallpaper::ImplMakeUnique( bool bReleaseCache )
{
@@ -198,7 +198,7 @@ inline void Wallpaper::ImplMakeUnique( bool bReleaseCache )
mpImplWallpaper->ImplReleaseCachedBitmap();
}
-// -----------------------------------------------------------------------
+
Wallpaper::Wallpaper()
{
@@ -209,7 +209,7 @@ Wallpaper::Wallpaper()
mpImplWallpaper = &aStaticImplWallpaper;
}
-// -----------------------------------------------------------------------
+
Wallpaper::Wallpaper( const Wallpaper& rWallpaper )
{
@@ -222,7 +222,7 @@ Wallpaper::Wallpaper( const Wallpaper& rWallpaper )
mpImplWallpaper->mnRefCount++;
}
-// -----------------------------------------------------------------------
+
Wallpaper::Wallpaper( const Color& rColor )
{
@@ -232,7 +232,7 @@ Wallpaper::Wallpaper( const Color& rColor )
mpImplWallpaper->meStyle = WALLPAPER_TILE;
}
-// -----------------------------------------------------------------------
+
Wallpaper::Wallpaper( const BitmapEx& rBmpEx )
{
@@ -242,7 +242,7 @@ Wallpaper::Wallpaper( const BitmapEx& rBmpEx )
mpImplWallpaper->meStyle = WALLPAPER_TILE;
}
-// -----------------------------------------------------------------------
+
Wallpaper::Wallpaper( const Gradient& rGradient )
{
@@ -252,7 +252,7 @@ Wallpaper::Wallpaper( const Gradient& rGradient )
mpImplWallpaper->meStyle = WALLPAPER_TILE;
}
-// -----------------------------------------------------------------------
+
Wallpaper::~Wallpaper()
{
@@ -267,7 +267,7 @@ Wallpaper::~Wallpaper()
}
}
-// -----------------------------------------------------------------------
+
void Wallpaper::SetColor( const Color& rColor )
{
@@ -279,7 +279,7 @@ void Wallpaper::SetColor( const Color& rColor )
mpImplWallpaper->meStyle = WALLPAPER_TILE;
}
-// -----------------------------------------------------------------------
+
const Color& Wallpaper::GetColor() const
{
@@ -287,7 +287,7 @@ const Color& Wallpaper::GetColor() const
return mpImplWallpaper->maColor;
}
-// -----------------------------------------------------------------------
+
void Wallpaper::SetStyle( WallpaperStyle eStyle )
{
@@ -302,7 +302,7 @@ void Wallpaper::SetStyle( WallpaperStyle eStyle )
mpImplWallpaper->meStyle = eStyle;
}
-// -----------------------------------------------------------------------
+
WallpaperStyle Wallpaper::GetStyle() const
{
@@ -310,7 +310,7 @@ WallpaperStyle Wallpaper::GetStyle() const
return mpImplWallpaper->meStyle;
}
-// -----------------------------------------------------------------------
+
void Wallpaper::SetBitmap( const BitmapEx& rBitmap )
{
@@ -337,7 +337,7 @@ void Wallpaper::SetBitmap( const BitmapEx& rBitmap )
mpImplWallpaper->meStyle = WALLPAPER_TILE;
}
-// -----------------------------------------------------------------------
+
BitmapEx Wallpaper::GetBitmap() const
{
@@ -351,7 +351,7 @@ BitmapEx Wallpaper::GetBitmap() const
}
}
-// -----------------------------------------------------------------------
+
bool Wallpaper::IsBitmap() const
{
@@ -360,7 +360,7 @@ bool Wallpaper::IsBitmap() const
}
-// -----------------------------------------------------------------------
+
void Wallpaper::SetGradient( const Gradient& rGradient )
{
@@ -376,7 +376,7 @@ void Wallpaper::SetGradient( const Gradient& rGradient )
mpImplWallpaper->meStyle = WALLPAPER_TILE;
}
-// -----------------------------------------------------------------------
+
Gradient Wallpaper::GetGradient() const
{
@@ -392,7 +392,7 @@ Gradient Wallpaper::GetGradient() const
}
}
-// -----------------------------------------------------------------------
+
bool Wallpaper::IsGradient() const
{
@@ -401,7 +401,7 @@ bool Wallpaper::IsGradient() const
}
-// -----------------------------------------------------------------------
+
Gradient Wallpaper::ImplGetApplicationGradient() const
{
@@ -417,7 +417,7 @@ Gradient Wallpaper::ImplGetApplicationGradient() const
return g;
}
-// -----------------------------------------------------------------------
+
void Wallpaper::SetRect( const Rectangle& rRect )
{
@@ -441,7 +441,7 @@ void Wallpaper::SetRect( const Rectangle& rRect )
}
}
-// -----------------------------------------------------------------------
+
Rectangle Wallpaper::GetRect() const
{
@@ -455,7 +455,7 @@ Rectangle Wallpaper::GetRect() const
}
}
-// -----------------------------------------------------------------------
+
bool Wallpaper::IsRect() const
{
@@ -464,7 +464,7 @@ bool Wallpaper::IsRect() const
}
-// -----------------------------------------------------------------------
+
bool Wallpaper::IsFixed() const
{
@@ -474,7 +474,7 @@ bool Wallpaper::IsFixed() const
return (!mpImplWallpaper->mpBitmap && !mpImplWallpaper->mpGradient);
}
-// -----------------------------------------------------------------------
+
bool Wallpaper::IsScrollable() const
{
@@ -488,7 +488,7 @@ bool Wallpaper::IsScrollable() const
return false;
}
-// -----------------------------------------------------------------------
+
Wallpaper& Wallpaper::operator=( const Wallpaper& rWallpaper )
{
@@ -513,7 +513,7 @@ Wallpaper& Wallpaper::operator=( const Wallpaper& rWallpaper )
return *this;
}
-// -----------------------------------------------------------------------
+
bool Wallpaper::operator==( const Wallpaper& rWallpaper ) const
{
@@ -546,7 +546,7 @@ bool Wallpaper::operator==( const Wallpaper& rWallpaper ) const
return true;
}
-// -----------------------------------------------------------------------
+
SvStream& ReadWallpaper( SvStream& rIStm, Wallpaper& rWallpaper )
{
@@ -554,7 +554,7 @@ SvStream& ReadWallpaper( SvStream& rIStm, Wallpaper& rWallpaper )
return ReadImplWallpaper( rIStm, *rWallpaper.mpImplWallpaper );
}
-// -----------------------------------------------------------------------
+
SvStream& WriteWallpaper( SvStream& rOStm, const Wallpaper& rWallpaper )
{
diff --git a/vcl/source/window/accel.cxx b/vcl/source/window/accel.cxx
index 4ded993eb491..61b5763f6646 100644
--- a/vcl/source/window/accel.cxx
+++ b/vcl/source/window/accel.cxx
@@ -95,7 +95,7 @@ sal_uInt16 ImplAccelEntryGetIndex( ImplAccelList* pList, sal_uInt16 nId,
return ACCELENTRY_NOTFOUND;
}
-// -----------------------------------------------------------------------
+
static void ImplAccelEntryInsert( ImplAccelList* pList, ImplAccelEntry* pEntry )
{
@@ -134,7 +134,7 @@ static void ImplAccelEntryInsert( ImplAccelList* pList, ImplAccelEntry* pEntry )
}
}
-// -----------------------------------------------------------------------
+
static sal_uInt16 ImplAccelEntryGetFirstPos( ImplAccelList* pList, sal_uInt16 nId )
{
@@ -165,7 +165,7 @@ void Accelerator::ImplInit()
mpDel = NULL;
}
-// -----------------------------------------------------------------------
+
ImplAccelEntry* Accelerator::ImplGetAccelData( const KeyCode& rKeyCode ) const
{
@@ -176,7 +176,7 @@ ImplAccelEntry* Accelerator::ImplGetAccelData( const KeyCode& rKeyCode ) const
return NULL;
}
-// -----------------------------------------------------------------------
+
void Accelerator::ImplCopyData( ImplAccelData& rAccelData )
{
@@ -199,7 +199,7 @@ void Accelerator::ImplCopyData( ImplAccelData& rAccelData )
}
}
-// -----------------------------------------------------------------------
+
void Accelerator::ImplDeleteData()
{
@@ -214,7 +214,7 @@ void Accelerator::ImplDeleteData()
mpData->maIdList.clear();
}
-// -----------------------------------------------------------------------
+
void Accelerator::ImplInsertAccel( sal_uInt16 nItemId, const KeyCode& rKeyCode,
bool bEnable, Accelerator* pAutoAccel )
@@ -269,7 +269,7 @@ void Accelerator::ImplInsertAccel( sal_uInt16 nItemId, const KeyCode& rKeyCode,
ImplAccelEntryInsert( &(mpData->maIdList), pEntry );
}
-// -----------------------------------------------------------------------
+
Accelerator::Accelerator()
{
@@ -278,7 +278,7 @@ Accelerator::Accelerator()
mpData = new ImplAccelData;
}
-// -----------------------------------------------------------------------
+
Accelerator::Accelerator( const Accelerator& rAccel ) :
Resource(),
@@ -291,7 +291,7 @@ Accelerator::Accelerator( const Accelerator& rAccel ) :
ImplCopyData( *((ImplAccelData*)(rAccel.mpData)) );
}
-// -----------------------------------------------------------------------
+
Accelerator::Accelerator( const ResId& rResId )
{
@@ -302,7 +302,7 @@ Accelerator::Accelerator( const ResId& rResId )
ImplLoadRes( rResId );
}
-// -----------------------------------------------------------------------
+
void Accelerator::ImplLoadRes( const ResId& rResId )
{
@@ -318,7 +318,7 @@ void Accelerator::ImplLoadRes( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
Accelerator::~Accelerator()
{
@@ -331,35 +331,35 @@ Accelerator::~Accelerator()
delete mpData;
}
-// -----------------------------------------------------------------------
+
void Accelerator::Activate()
{
maActivateHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void Accelerator::Deactivate()
{
maDeactivateHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void Accelerator::Select()
{
maSelectHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void Accelerator::InsertItem( sal_uInt16 nItemId, const KeyCode& rKeyCode )
{
ImplInsertAccel( nItemId, rKeyCode, true, NULL );
}
-// -----------------------------------------------------------------------
+
void Accelerator::InsertItem( const ResId& rResId )
{
@@ -393,7 +393,7 @@ void Accelerator::InsertItem( const ResId& rResId )
ImplInsertAccel( nAccelKeyId, aKeyCode, !bDisable, pAutoAccel );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 Accelerator::GetItemCount() const
{
@@ -401,7 +401,7 @@ sal_uInt16 Accelerator::GetItemCount() const
return (sal_uInt16)mpData->maIdList.size();
}
-// -----------------------------------------------------------------------
+
KeyCode Accelerator::GetKeyCode( sal_uInt16 nItemId ) const
{
@@ -413,7 +413,7 @@ KeyCode Accelerator::GetKeyCode( sal_uInt16 nItemId ) const
return KeyCode();
}
-// -----------------------------------------------------------------------
+
sal_uInt16 Accelerator::GetItemId( sal_uInt16 nPos ) const
{
@@ -425,7 +425,7 @@ sal_uInt16 Accelerator::GetItemId( sal_uInt16 nPos ) const
return 0;
}
-// -----------------------------------------------------------------------
+
Accelerator* Accelerator::GetAccel( sal_uInt16 nItemId ) const
{
@@ -437,7 +437,7 @@ Accelerator* Accelerator::GetAccel( sal_uInt16 nItemId ) const
return NULL;
}
-// -----------------------------------------------------------------------
+
Accelerator& Accelerator::operator=( const Accelerator& rAccel )
{
diff --git a/vcl/source/window/accmgr.cxx b/vcl/source/window/accmgr.cxx
index 5fe29c0e3341..66ce04be9c19 100644
--- a/vcl/source/window/accmgr.cxx
+++ b/vcl/source/window/accmgr.cxx
@@ -35,7 +35,7 @@ ImplAccelManager::~ImplAccelManager()
delete mpSequenceList;
}
-// -----------------------------------------------------------------------
+
bool ImplAccelManager::InsertAccel( Accelerator* pAccel )
{
@@ -53,7 +53,7 @@ bool ImplAccelManager::InsertAccel( Accelerator* pAccel )
return true;
}
-// -----------------------------------------------------------------------
+
void ImplAccelManager::RemoveAccel( Accelerator* pAccel )
{
@@ -90,7 +90,7 @@ void ImplAccelManager::RemoveAccel( Accelerator* pAccel )
}
}
-// -----------------------------------------------------------------------
+
void ImplAccelManager::EndSequence( bool bCancel )
{
@@ -118,7 +118,7 @@ void ImplAccelManager::EndSequence( bool bCancel )
mpSequenceList = NULL;
}
-// -----------------------------------------------------------------------
+
bool ImplAccelManager::IsAccelKey( const KeyCode& rKeyCode, sal_uInt16 nRepeat )
{
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index b68b4ab9ae51..27eafacfaac5 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -79,7 +79,7 @@ static void ImplGetPinImage( sal_uInt16 nStyle, bool bPinIn, Image& rImage )
rImage = pSVData->maCtrlData.mpPinImgList->GetImage( nId );
}
-// -----------------------------------------------------------------------
+
void Window::ImplCalcSymbolRect( Rectangle& rRect )
{
@@ -99,7 +99,7 @@ void Window::ImplCalcSymbolRect( Rectangle& rRect )
rRect.Bottom() -= nExtraHeight;
}
-// -----------------------------------------------------------------------
+
static void ImplDrawBrdWinSymbol( OutputDevice* pDev,
const Rectangle& rRect, SymbolType eSymbol )
@@ -112,7 +112,7 @@ static void ImplDrawBrdWinSymbol( OutputDevice* pDev,
pDev->GetSettings().GetStyleSettings().GetButtonTextColor(), 0 );
}
-// -----------------------------------------------------------------------
+
static void ImplDrawBrdWinSymbolButton( OutputDevice* pDev,
const Rectangle& rRect,
@@ -151,50 +151,50 @@ static void ImplDrawBrdWinSymbolButton( OutputDevice* pDev,
// =======================================================================
-// ------------------------
+
// - ImplBorderWindowView -
-// ------------------------
+
ImplBorderWindowView::~ImplBorderWindowView()
{
}
-// -----------------------------------------------------------------------
+
bool ImplBorderWindowView::MouseMove( const MouseEvent& )
{
return false;
}
-// -----------------------------------------------------------------------
+
bool ImplBorderWindowView::MouseButtonDown( const MouseEvent& )
{
return false;
}
-// -----------------------------------------------------------------------
+
bool ImplBorderWindowView::Tracking( const TrackingEvent& )
{
return false;
}
-// -----------------------------------------------------------------------
+
OUString ImplBorderWindowView::RequestHelp( const Point&, Rectangle& )
{
return OUString();
}
-// -----------------------------------------------------------------------
+
Rectangle ImplBorderWindowView::GetMenuRect() const
{
return Rectangle();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindowView::ImplInitTitle( ImplBorderFrameData* pData )
{
@@ -230,7 +230,7 @@ void ImplBorderWindowView::ImplInitTitle( ImplBorderFrameData* pData )
}
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ImplBorderWindowView::ImplHitTest( ImplBorderFrameData* pData, const Point& rPos )
{
@@ -309,7 +309,7 @@ sal_uInt16 ImplBorderWindowView::ImplHitTest( ImplBorderFrameData* pData, const
return 0;
}
-// -----------------------------------------------------------------------
+
bool ImplBorderWindowView::ImplMouseMove( ImplBorderFrameData* pData, const MouseEvent& rMEvt )
{
@@ -351,7 +351,7 @@ bool ImplBorderWindowView::ImplMouseMove( ImplBorderFrameData* pData, const Mous
return true;
}
-// -----------------------------------------------------------------------
+
bool ImplBorderWindowView::ImplMouseButtonDown( ImplBorderFrameData* pData, const MouseEvent& rMEvt )
{
@@ -471,7 +471,7 @@ bool ImplBorderWindowView::ImplMouseButtonDown( ImplBorderFrameData* pData, cons
return true;
}
-// -----------------------------------------------------------------------
+
bool ImplBorderWindowView::ImplTracking( ImplBorderFrameData* pData, const TrackingEvent& rTEvt )
{
@@ -924,7 +924,7 @@ bool ImplBorderWindowView::ImplTracking( ImplBorderFrameData* pData, const Track
return true;
}
-// -----------------------------------------------------------------------
+
OUString ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData* pData,
const Point& rPos,
@@ -995,7 +995,7 @@ OUString ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData* pData,
return aHelpStr;
}
-// -----------------------------------------------------------------------
+
long ImplBorderWindowView::ImplCalcTitleWidth( const ImplBorderFrameData* pData ) const
{
@@ -1018,21 +1018,21 @@ long ImplBorderWindowView::ImplCalcTitleWidth( const ImplBorderFrameData* pData
// =======================================================================
-// --------------------------
+
// - ImplNoBorderWindowView -
-// --------------------------
+
ImplNoBorderWindowView::ImplNoBorderWindowView( ImplBorderWindow* )
{
}
-// -----------------------------------------------------------------------
+
void ImplNoBorderWindowView::Init( OutputDevice*, long, long )
{
}
-// -----------------------------------------------------------------------
+
void ImplNoBorderWindowView::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const
@@ -1043,14 +1043,14 @@ void ImplNoBorderWindowView::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopB
rBottomBorder = 0;
}
-// -----------------------------------------------------------------------
+
long ImplNoBorderWindowView::CalcTitleWidth() const
{
return 0;
}
-// -----------------------------------------------------------------------
+
void ImplNoBorderWindowView::DrawWindow( sal_uInt16, OutputDevice*, const Point* )
{
@@ -1058,9 +1058,9 @@ void ImplNoBorderWindowView::DrawWindow( sal_uInt16, OutputDevice*, const Point*
// =======================================================================
-// -----------------------------
+
// - ImplSmallBorderWindowView -
-// -----------------------------
+
// =======================================================================
@@ -1073,7 +1073,7 @@ ImplSmallBorderWindowView::ImplSmallBorderWindowView( ImplBorderWindow* pBorderW
{
}
-// -----------------------------------------------------------------------
+
void ImplSmallBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHeight )
{
@@ -1234,7 +1234,7 @@ void ImplSmallBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHei
}
}
-// -----------------------------------------------------------------------
+
void ImplSmallBorderWindowView::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const
@@ -1245,14 +1245,14 @@ void ImplSmallBorderWindowView::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rT
rBottomBorder = mnBottomBorder;
}
-// -----------------------------------------------------------------------
+
long ImplSmallBorderWindowView::CalcTitleWidth() const
{
return 0;
}
-// -----------------------------------------------------------------------
+
void ImplSmallBorderWindowView::DrawWindow( sal_uInt16 nDrawFlags, OutputDevice*, const Point* )
{
@@ -1416,9 +1416,9 @@ void ImplSmallBorderWindowView::DrawWindow( sal_uInt16 nDrawFlags, OutputDevice*
// =======================================================================
-// ---------------------------
+
// - ImplStdBorderWindowView -
-// ---------------------------
+
ImplStdBorderWindowView::ImplStdBorderWindowView( ImplBorderWindow* pBorderWindow )
{
@@ -1438,7 +1438,7 @@ ImplStdBorderWindowView::ImplStdBorderWindowView( ImplBorderWindow* pBorderWindo
mpDTitleVirDev = NULL;
}
-// -----------------------------------------------------------------------
+
ImplStdBorderWindowView::~ImplStdBorderWindowView()
{
@@ -1446,42 +1446,42 @@ ImplStdBorderWindowView::~ImplStdBorderWindowView()
delete mpDTitleVirDev;
}
-// -----------------------------------------------------------------------
+
bool ImplStdBorderWindowView::MouseMove( const MouseEvent& rMEvt )
{
return ImplMouseMove( &maFrameData, rMEvt );
}
-// -----------------------------------------------------------------------
+
bool ImplStdBorderWindowView::MouseButtonDown( const MouseEvent& rMEvt )
{
return ImplMouseButtonDown( &maFrameData, rMEvt );
}
-// -----------------------------------------------------------------------
+
bool ImplStdBorderWindowView::Tracking( const TrackingEvent& rTEvt )
{
return ImplTracking( &maFrameData, rTEvt );
}
-// -----------------------------------------------------------------------
+
OUString ImplStdBorderWindowView::RequestHelp( const Point& rPos, Rectangle& rHelpRect )
{
return ImplRequestHelp( &maFrameData, rPos, rHelpRect );
}
-// -----------------------------------------------------------------------
+
Rectangle ImplStdBorderWindowView::GetMenuRect() const
{
return maFrameData.maMenuRect;
}
-// -----------------------------------------------------------------------
+
void ImplStdBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHeight )
{
@@ -1629,7 +1629,7 @@ void ImplStdBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHeigh
}
}
-// -----------------------------------------------------------------------
+
void ImplStdBorderWindowView::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const
@@ -1640,14 +1640,14 @@ void ImplStdBorderWindowView::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTop
rBottomBorder = maFrameData.mnBottomBorder;
}
-// -----------------------------------------------------------------------
+
long ImplStdBorderWindowView::CalcTitleWidth() const
{
return ImplCalcTitleWidth( &maFrameData );
}
-// -----------------------------------------------------------------------
+
void ImplStdBorderWindowView::DrawWindow( sal_uInt16 nDrawFlags, OutputDevice* pOutDev, const Point* pOffset )
{
@@ -1943,7 +1943,7 @@ ImplBorderWindow::ImplBorderWindow( Window* pParent,
ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData );
}
-// -----------------------------------------------------------------------
+
ImplBorderWindow::ImplBorderWindow( Window* pParent, WinBits nStyle ,
sal_uInt16 nTypeStyle ) :
@@ -1952,35 +1952,35 @@ ImplBorderWindow::ImplBorderWindow( Window* pParent, WinBits nStyle ,
ImplInit( pParent, nStyle, nTypeStyle, ::com::sun::star::uno::Any() );
}
-// -----------------------------------------------------------------------
+
ImplBorderWindow::~ImplBorderWindow()
{
delete mpBorderView;
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::MouseMove( const MouseEvent& rMEvt )
{
mpBorderView->MouseMove( rMEvt );
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::MouseButtonDown( const MouseEvent& rMEvt )
{
mpBorderView->MouseButtonDown( rMEvt );
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::Tracking( const TrackingEvent& rTEvt )
{
mpBorderView->Tracking( rTEvt );
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::Paint( const Rectangle& )
{
@@ -1992,7 +1992,7 @@ void ImplBorderWindow::Draw( const Rectangle&, OutputDevice* pOutDev, const Poin
mpBorderView->DrawWindow( BORDERWINDOW_DRAW_ALL, pOutDev, &rPos );
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::Activate()
{
@@ -2000,7 +2000,7 @@ void ImplBorderWindow::Activate()
Window::Activate();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::Deactivate()
{
@@ -2011,7 +2011,7 @@ void ImplBorderWindow::Deactivate()
Window::Deactivate();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::RequestHelp( const HelpEvent& rHEvt )
{
@@ -2037,7 +2037,7 @@ void ImplBorderWindow::RequestHelp( const HelpEvent& rHEvt )
Window::RequestHelp( rHEvt );
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::Resize()
{
@@ -2091,7 +2091,7 @@ void ImplBorderWindow::Resize()
Window::Resize();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::StateChanged( StateChangedType nType )
{
@@ -2111,7 +2111,7 @@ void ImplBorderWindow::StateChanged( StateChangedType nType )
Window::StateChanged( nType );
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -2127,7 +2127,7 @@ void ImplBorderWindow::DataChanged( const DataChangedEvent& rDCEvt )
Window::DataChanged( rDCEvt );
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::InitView()
{
@@ -2148,7 +2148,7 @@ void ImplBorderWindow::InitView()
mpBorderView->Init( this, aSize.Width(), aSize.Height() );
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::UpdateView( bool bNewView, const Size& rNewOutSize )
{
@@ -2191,7 +2191,7 @@ void ImplBorderWindow::UpdateView( bool bNewView, const Size& rNewOutSize )
}
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::InvalidateBorder()
{
@@ -2224,7 +2224,7 @@ void ImplBorderWindow::InvalidateBorder()
}
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetDisplayActive( bool bActive )
{
@@ -2236,7 +2236,7 @@ void ImplBorderWindow::SetDisplayActive( bool bActive )
}
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetTitleType( sal_uInt16 nTitleType, const Size& rSize )
{
@@ -2244,7 +2244,7 @@ void ImplBorderWindow::SetTitleType( sal_uInt16 nTitleType, const Size& rSize )
UpdateView( false, rSize );
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetBorderStyle( sal_uInt16 nStyle )
{
@@ -2255,7 +2255,7 @@ void ImplBorderWindow::SetBorderStyle( sal_uInt16 nStyle )
}
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetPin( bool bPin )
{
@@ -2263,7 +2263,7 @@ void ImplBorderWindow::SetPin( bool bPin )
InvalidateBorder();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetRollUp( bool bRollUp, const Size& rSize )
{
@@ -2272,7 +2272,7 @@ void ImplBorderWindow::SetRollUp( bool bRollUp, const Size& rSize )
UpdateView( false, rSize );
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetCloser()
{
@@ -2282,7 +2282,7 @@ void ImplBorderWindow::SetCloser()
InvalidateBorder();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetDockButton( bool bDockButton )
{
@@ -2292,7 +2292,7 @@ void ImplBorderWindow::SetDockButton( bool bDockButton )
InvalidateBorder();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetHideButton( bool bHideButton )
{
@@ -2302,7 +2302,7 @@ void ImplBorderWindow::SetHideButton( bool bHideButton )
InvalidateBorder();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetMenuButton( bool bMenuButton )
{
@@ -2312,14 +2312,14 @@ void ImplBorderWindow::SetMenuButton( bool bMenuButton )
InvalidateBorder();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::UpdateMenuHeight()
{
Resize();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetMenuBarWindow( Window* pWindow )
{
@@ -2329,7 +2329,7 @@ void ImplBorderWindow::SetMenuBarWindow( Window* pWindow )
pWindow->Show();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::SetMenuBarMode( bool bHide )
{
@@ -2337,7 +2337,7 @@ void ImplBorderWindow::SetMenuBarMode( bool bHide )
UpdateMenuHeight();
}
-// -----------------------------------------------------------------------
+
void ImplBorderWindow::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const
@@ -2347,7 +2347,7 @@ void ImplBorderWindow::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
rTopBorder += mpMenuBarWindow->GetSizePixel().Height();
}
-// -----------------------------------------------------------------------
+
long ImplBorderWindow::CalcTitleWidth() const
{
diff --git a/vcl/source/window/cmdevt.cxx b/vcl/source/window/cmdevt.cxx
index 9f1b4677403a..9c7f010931c7 100644
--- a/vcl/source/window/cmdevt.cxx
+++ b/vcl/source/window/cmdevt.cxx
@@ -39,7 +39,7 @@ CommandExtTextInputData::CommandExtTextInputData( const OUString& rText,
mbOnlyCursor = bOnlyCursor;
}
-// -----------------------------------------------------------------------
+
CommandExtTextInputData::CommandExtTextInputData( const CommandExtTextInputData& rData ) :
maText( rData.maText )
@@ -56,7 +56,7 @@ CommandExtTextInputData::CommandExtTextInputData( const CommandExtTextInputData&
mbOnlyCursor = rData.mbOnlyCursor;
}
-// -----------------------------------------------------------------------
+
CommandExtTextInputData::~CommandExtTextInputData()
{
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index 64c3ee9b2e8f..bfd3cb5ea2c0 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -120,7 +120,7 @@ static void ImplCursorInvert( ImplCursorData* pData )
pWindow->EnableMapMode( bMapMode );
}
-// -----------------------------------------------------------------------
+
void Cursor::ImplDraw()
{
@@ -150,7 +150,7 @@ void Cursor::ImplDraw()
}
}
-// -----------------------------------------------------------------------
+
void Cursor::ImplRestore()
{
@@ -260,7 +260,7 @@ void Cursor::ImplNew()
}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(Cursor, ImplTimerHdl)
{
@@ -285,7 +285,7 @@ Cursor::Cursor()
mbVisible = false;
}
-// -----------------------------------------------------------------------
+
Cursor::Cursor( const Cursor& rCursor ) :
maSize( rCursor.maSize ),
@@ -300,7 +300,7 @@ Cursor::Cursor( const Cursor& rCursor ) :
mbVisible = rCursor.mbVisible;
}
-// -----------------------------------------------------------------------
+
Cursor::~Cursor()
{
@@ -313,7 +313,7 @@ Cursor::~Cursor()
}
}
-// -----------------------------------------------------------------------
+
void Cursor::SetStyle( sal_uInt16 nStyle )
{
@@ -324,7 +324,7 @@ void Cursor::SetStyle( sal_uInt16 nStyle )
}
}
-// -----------------------------------------------------------------------
+
void Cursor::Show()
{
@@ -335,7 +335,7 @@ void Cursor::Show()
}
}
-// -----------------------------------------------------------------------
+
void Cursor::Hide()
{
@@ -346,7 +346,7 @@ void Cursor::Hide()
}
}
-// -----------------------------------------------------------------------
+
void Cursor::SetWindow( Window* pWindow )
{
@@ -357,7 +357,7 @@ void Cursor::SetWindow( Window* pWindow )
}
}
-// -----------------------------------------------------------------------
+
void Cursor::SetPos( const Point& rPoint )
{
@@ -368,7 +368,7 @@ void Cursor::SetPos( const Point& rPoint )
}
}
-// -----------------------------------------------------------------------
+
void Cursor::SetSize( const Size& rSize )
{
@@ -379,7 +379,7 @@ void Cursor::SetSize( const Size& rSize )
}
}
-// -----------------------------------------------------------------------
+
void Cursor::SetWidth( long nNewWidth )
{
@@ -390,7 +390,7 @@ void Cursor::SetWidth( long nNewWidth )
}
}
-// -----------------------------------------------------------------------
+
void Cursor::SetOrientation( short nNewOrientation )
{
@@ -401,7 +401,7 @@ void Cursor::SetOrientation( short nNewOrientation )
}
}
-// -----------------------------------------------------------------------
+
void Cursor::SetDirection( unsigned char nNewDirection )
{
@@ -412,7 +412,7 @@ void Cursor::SetDirection( unsigned char nNewDirection )
}
}
-// -----------------------------------------------------------------------
+
Cursor& Cursor::operator=( const Cursor& rCursor )
{
@@ -427,7 +427,7 @@ Cursor& Cursor::operator=( const Cursor& rCursor )
return *this;
}
-// -----------------------------------------------------------------------
+
bool Cursor::operator==( const Cursor& rCursor ) const
{
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx
index 169aeb2dea96..adcc3bd49292 100644
--- a/vcl/source/window/decoview.cxx
+++ b/vcl/source/window/decoview.cxx
@@ -830,7 +830,7 @@ void ImplDrawFrame( OutputDevice *const pDev, Rectangle& rRect,
}
-// -----------------------------------------------------------------------
+
void DecorationView::DrawSymbol( const Rectangle& rRect, SymbolType eType,
const Color& rColor, sal_uInt16 nStyle )
@@ -1056,7 +1056,7 @@ Rectangle DecorationView::DrawButton( const Rectangle& rRect, sal_uInt16 nStyle
return aRect;
}
-// -----------------------------------------------------------------------
+
void DecorationView::DrawSeparator( const Point& rStart, const Point& rStop, bool bVertical )
{
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index e2a18ba7f977..334a155a5f80 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -108,7 +108,7 @@ static bool ImplIsMnemonicCtrl( Window* pWindow )
return false;
}
-// -----------------------------------------------------------------------
+
// Called by native error dialog popup implementations
void ImplHideSplash()
@@ -182,7 +182,7 @@ Window * firstLogicalChildOfParent(Window *pTopLevel)
return pChild;
}
-// -----------------------------------------------------------------------
+
void ImplWindowAutoMnemonic( Window* pWindow )
{
@@ -281,7 +281,7 @@ static PushButton* ImplGetDefaultButton( Dialog* pDialog )
return NULL;
}
-// -----------------------------------------------------------------------
+
static PushButton* ImplGetOKButton( Dialog* pDialog )
{
@@ -297,7 +297,7 @@ static PushButton* ImplGetOKButton( Dialog* pDialog )
return NULL;
}
-// -----------------------------------------------------------------------
+
static PushButton* ImplGetCancelButton( Dialog* pDialog )
{
@@ -314,7 +314,7 @@ static PushButton* ImplGetCancelButton( Dialog* pDialog )
return NULL;
}
-// -----------------------------------------------------------------------
+
static void ImplMouseAutoPos( Dialog* pDialog )
{
@@ -371,7 +371,7 @@ void Dialog::ImplInitDialogData()
maLayoutTimer.SetTimeoutHdl( LINK( this, Dialog, ImplHandleLayoutTimerHdl ) );
}
-// -----------------------------------------------------------------------
+
void Dialog::ImplInit( Window* pParent, WinBits nStyle )
{
@@ -456,7 +456,7 @@ void Dialog::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings();
}
-// -----------------------------------------------------------------------
+
void Dialog::ImplInitSettings()
{
@@ -474,7 +474,7 @@ void Dialog::ImplInitSettings()
SetBackground( GetSettings().GetStyleSettings().GetDialogColor() );
}
-// -----------------------------------------------------------------------
+
Dialog::Dialog( WindowType nType )
: SystemWindow( nType )
@@ -537,7 +537,7 @@ Dialog::Dialog(Window* pParent, const OString& rID, const OUString& rUIXMLDescri
}
-// -----------------------------------------------------------------------
+
Dialog::Dialog( Window* pParent, WinBits nStyle )
: SystemWindow( WINDOW_DIALOG )
@@ -577,7 +577,7 @@ void Dialog::set_content_area(VclBox* pContentArea)
mpContentArea = pContentArea;
}
-// -----------------------------------------------------------------------
+
Dialog::~Dialog()
{
@@ -586,7 +586,7 @@ Dialog::~Dialog()
mpDialogImpl = NULL;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(Dialog, ImplAsyncCloseHdl)
{
@@ -594,7 +594,7 @@ IMPL_LINK_NOARG(Dialog, ImplAsyncCloseHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
bool Dialog::Notify( NotifyEvent& rNEvt )
{
@@ -698,7 +698,7 @@ void Dialog::setOptimalLayoutSize()
setPosSizeOnContainee(aSize, *pBox);
}
-// -----------------------------------------------------------------------
+
void Dialog::StateChanged( StateChangedType nType )
{
@@ -737,7 +737,7 @@ void Dialog::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void Dialog::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -751,7 +751,7 @@ void Dialog::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
bool Dialog::Close()
{
@@ -801,7 +801,7 @@ bool Dialog::Close()
}
}
-// -----------------------------------------------------------------------
+
bool Dialog::ImplStartExecuteModal()
{
@@ -880,7 +880,7 @@ bool Dialog::ImplStartExecuteModal()
return true;
}
-// -----------------------------------------------------------------------
+
void Dialog::ImplEndExecuteModal()
{
@@ -888,7 +888,7 @@ void Dialog::ImplEndExecuteModal()
pSVData->maAppData.mnModalMode--;
}
-// -----------------------------------------------------------------------
+
short Dialog::Execute()
{
@@ -989,7 +989,7 @@ short Dialog::Execute()
#endif
}
-// -----------------------------------------------------------------------
+
// virtual
void Dialog::StartExecuteModal( const Link& rEndDialogHdl )
@@ -1001,7 +1001,7 @@ void Dialog::StartExecuteModal( const Link& rEndDialogHdl )
mpDialogImpl->mbStartedModal = true;
}
-// -----------------------------------------------------------------------
+
void Dialog::EndDialog( long nResult )
{
@@ -1059,14 +1059,14 @@ void Dialog::EndDialog( long nResult )
}
}
-// -----------------------------------------------------------------------
+
long Dialog::GetResult() const
{
return mpDialogImpl->mnResult;
}
-// -----------------------------------------------------------------------
+
void Dialog::EndAllDialogs( Window* pParent )
{
@@ -1085,7 +1085,7 @@ void Dialog::EndAllDialogs( Window* pParent )
}
}
-// -----------------------------------------------------------------------
+
void Dialog::SetModalInputMode( bool bModal )
{
@@ -1153,7 +1153,7 @@ void Dialog::SetModalInputMode( bool bModal )
}
}
-// -----------------------------------------------------------------------
+
void Dialog::SetModalInputMode( bool bModal, bool bSubModalDialogs )
{
@@ -1172,7 +1172,7 @@ void Dialog::SetModalInputMode( bool bModal, bool bSubModalDialogs )
SetModalInputMode( bModal );
}
-// -----------------------------------------------------------------------
+
void Dialog::GrabFocusToFirstControl()
{
@@ -1345,7 +1345,7 @@ VclBuilderContainer::~VclBuilderContainer()
delete m_pUIBuilder;
}
-// -----------------------------------------------------------------------
+
ModelessDialog::ModelessDialog( Window* pParent, const ResId& rResId ) :
Dialog( WINDOW_MODELESSDIALOG )
@@ -1371,7 +1371,7 @@ ModalDialog::ModalDialog( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
ModalDialog::ModalDialog( Window* pParent, const ResId& rResId ) :
Dialog( WINDOW_MODALDIALOG )
diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index 0fc9c9617f89..5874e24dc603 100644
--- a/vcl/source/window/dlgctrl.cxx
+++ b/vcl/source/window/dlgctrl.cxx
@@ -50,7 +50,7 @@ static bool ImplHasIndirectTabParent( Window* pWindow )
&& ( pNonLayoutParent->ImplGetWindow()->GetStyle() & WB_CHILDDLGCTRL ) );
}
-// -----------------------------------------------------------------------
+
static Window* ImplGetTopParentOfTabHierarchy( Window* pParent )
{
@@ -73,7 +73,7 @@ static Window* ImplGetTopParentOfTabHierarchy( Window* pParent )
return pResult;
}
-// -----------------------------------------------------------------------
+
static Window* ImplGetSubChildWindow( Window* pParent, sal_uInt16 n, sal_uInt16& nIndex )
{
@@ -149,7 +149,7 @@ static Window* ImplGetSubChildWindow( Window* pParent, sal_uInt16 n, sal_uInt16&
return pFoundWindow;
}
-// -----------------------------------------------------------------------
+
static Window* ImplGetChildWindow( Window* pParent, sal_uInt16 n, sal_uInt16& nIndex, bool bTestEnable )
{
@@ -183,7 +183,7 @@ static Window* ImplGetChildWindow( Window* pParent, sal_uInt16 n, sal_uInt16& nI
return pWindow;
}
-// -----------------------------------------------------------------------
+
static Window* ImplGetNextWindow( Window* pParent, sal_uInt16 n, sal_uInt16& nIndex, bool bTestEnable )
{
@@ -196,7 +196,7 @@ static Window* ImplGetNextWindow( Window* pParent, sal_uInt16 n, sal_uInt16& nIn
return pWindow;
}
-// -----------------------------------------------------------------------
+
Window* Window::ImplGetDlgWindow( sal_uInt16 nIndex, sal_uInt16 nType,
sal_uInt16 nFormStart, sal_uInt16 nFormEnd,
@@ -302,7 +302,7 @@ Window* Window::ImplGetDlgWindow( sal_uInt16 nIndex, sal_uInt16 nType,
return pWindow;
}
-// -----------------------------------------------------------------------
+
static Window* ImplFindDlgCtrlWindow( Window* pParent, Window* pWindow, sal_uInt16& rIndex,
sal_uInt16& rFormStart, sal_uInt16& rFormEnd )
@@ -400,7 +400,7 @@ static Window* ImplFindDlgCtrlWindow( Window* pParent, Window* pWindow, sal_uInt
return pSWindow;
}
-// -----------------------------------------------------------------------
+
static Window* ImplFindAccelWindow( Window* pParent, sal_uInt16& rIndex, sal_Unicode cCharCode,
sal_uInt16 nFormStart, sal_uInt16 nFormEnd, bool bCheckEnable = true )
@@ -492,7 +492,7 @@ static Window* ImplFindAccelWindow( Window* pParent, sal_uInt16& rIndex, sal_Uni
return NULL;
}
-// -----------------------------------------------------------------------
+
void Window::ImplControlFocus( sal_uInt16 nFlags )
{
@@ -535,7 +535,7 @@ void Window::ImplControlFocus( sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
namespace
{
@@ -969,7 +969,7 @@ bool Window::ImplDlgCtrl( const KeyEvent& rKEvt, bool bKeyInput )
return false;
}
-// -----------------------------------------------------------------------
+
// checks if this window has dialog control
bool Window::ImplHasDlgCtrl()
@@ -1020,7 +1020,7 @@ if ( !pDlgCtrlParent || (GetStyle() & WB_NODIALOGCONTROL) || ((pDlgCtrlParent->G
pWindow->ImplControlFocus();
}
-// -----------------------------------------------------------------------
+
static void ImplDlgCtrlUpdateDefButton( Window* pParent, Window* pFocusWindow,
bool bGetFocus )
@@ -1079,7 +1079,7 @@ static void ImplDlgCtrlUpdateDefButton( Window* pParent, Window* pFocusWindow,
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplDlgCtrlFocusChanged( Window* pWindow, bool bGetFocus )
{
@@ -1092,7 +1092,7 @@ void Window::ImplDlgCtrlFocusChanged( Window* pWindow, bool bGetFocus )
ImplDlgCtrlUpdateDefButton( this, pWindow, bGetFocus );
}
-// -----------------------------------------------------------------------
+
Window* Window::ImplFindDlgCtrlWindow( Window* pWindow )
{
@@ -1105,21 +1105,21 @@ Window* Window::ImplFindDlgCtrlWindow( Window* pWindow )
}
-// -----------------------------------------------------------------------
+
Window* Window::GetParentLabelFor( const Window* ) const
{
return NULL;
}
-// -----------------------------------------------------------------------
+
Window* Window::GetParentLabeledBy( const Window* ) const
{
return NULL;
}
-// -----------------------------------------------------------------------
+
static sal_Unicode getAccel( const OUString& rStr )
{
@@ -1222,7 +1222,7 @@ Window* Window::getLegacyNonLayoutAccessibleRelationLabelFor() const
return pWindow;
}
-// -----------------------------------------------------------------------
+
static Window* ImplGetLabeledBy( Window* pFrameWindow, WindowType nMyType, Window* pLabeled )
{
@@ -1364,7 +1364,7 @@ Window* Window::getLegacyNonLayoutAccessibleRelationMemberOf() const
return pWindow;
}
-// -----------------------------------------------------------------------
+
KeyEvent Window::GetActivationKey() const
{
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx
index 13bca4abecd9..22d91bdf9ab0 100644
--- a/vcl/source/window/dockingarea.cxx
+++ b/vcl/source/window/dockingarea.cxx
@@ -96,7 +96,7 @@ DockingAreaWindow::~DockingAreaWindow()
delete mpImplData;
}
-// -----------------------------------------------------------------------
+
void DockingAreaWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -109,7 +109,7 @@ void DockingAreaWindow::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
static void ImplInvalidateMenubar( DockingAreaWindow* pThis )
{
@@ -138,7 +138,7 @@ void DockingAreaWindow::StateChanged( StateChangedType nType )
ImplInvalidateMenubar( this );
}
-// -----------------------------------------------------------------------
+
bool DockingAreaWindow::IsHorizontal() const
{
@@ -160,7 +160,7 @@ WindowAlign DockingAreaWindow::GetAlign() const
return mpImplData->meAlign;
}
-// -----------------------------------------------------------------------
+
void DockingAreaWindow::Paint( const Rectangle& )
{
@@ -263,6 +263,6 @@ void DockingAreaWindow::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx
index cb5fd3334170..0e80b6dbb827 100644
--- a/vcl/source/window/dockmgr.cxx
+++ b/vcl/source/window/dockmgr.cxx
@@ -110,7 +110,7 @@ ImplDockFloatWin2::ImplDockFloatWin2( Window* pParent, WinBits nWinBits,
maEndDockTimer.SetTimeout( 50 );
}
-// -----------------------------------------------------------------------
+
ImplDockFloatWin2::~ImplDockFloatWin2()
{
@@ -118,7 +118,7 @@ ImplDockFloatWin2::~ImplDockFloatWin2()
Application::RemoveUserEvent( mnLastUserEvent );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ImplDockFloatWin2, DockTimerHdl)
{
@@ -240,7 +240,7 @@ IMPL_LINK_NOARG(ImplDockFloatWin2, DockingHdl)
mbInMove = false;
return 0;
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin2::Move()
{
@@ -264,7 +264,7 @@ void ImplDockFloatWin2::Move()
mnLastUserEvent = Application::PostUserEvent( LINK( this, ImplDockFloatWin2, DockingHdl ) );
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin2::Resize()
{
@@ -284,7 +284,7 @@ void ImplDockFloatWin2::setPosSizePixel( long nX, long nY,
FloatingWindow::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin2::TitleButtonClick( sal_uInt16 nButton )
@@ -293,7 +293,7 @@ void ImplDockFloatWin2::TitleButtonClick( sal_uInt16 nButton )
mpDockWin->TitleButtonClick( nButton );
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin2::Pin()
{
@@ -301,7 +301,7 @@ void ImplDockFloatWin2::Pin()
mpDockWin->Pin();
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin2::Roll()
{
@@ -309,7 +309,7 @@ void ImplDockFloatWin2::Roll()
mpDockWin->Roll();
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin2::PopupModeEnd()
{
@@ -317,7 +317,7 @@ void ImplDockFloatWin2::PopupModeEnd()
mpDockWin->PopupModeEnd();
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin2::Resizing( Size& rSize )
{
@@ -325,7 +325,7 @@ void ImplDockFloatWin2::Resizing( Size& rSize )
mpDockWin->Resizing( rSize );
}
-// -----------------------------------------------------------------------
+
bool ImplDockFloatWin2::Close()
{
@@ -437,7 +437,7 @@ bool DockingManager::IsInPopupMode( const Window *pWindow )
return false;
}
-// -----------------------------------------------------------------------
+
void DockingManager::EndPopupMode( const Window *pWin )
{
@@ -446,7 +446,7 @@ void DockingManager::EndPopupMode( const Window *pWin )
pWrapper->GetFloatingWindow()->EndPopupMode();
}
-// -----------------------------------------------------------------------
+
void DockingManager::AddWindow( const Window *pWindow )
{
@@ -866,7 +866,7 @@ ImplDockingWindowWrapper::~ImplDockingWindowWrapper()
}
}
-// -----------------------------------------------------------------------
+
bool ImplDockingWindowWrapper::ImplStartDocking( const Point& rPos )
{
@@ -943,7 +943,7 @@ void ImplDockingWindowWrapper::ImplInitData()
maMaxOutSize = Size( SHRT_MAX, SHRT_MAX );
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::Tracking( const TrackingEvent& rTEvt )
{
@@ -1035,7 +1035,7 @@ void ImplDockingWindowWrapper::Tracking( const TrackingEvent& rTEvt )
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::StartDocking( const Point& rPoint, Rectangle& rRect )
{
@@ -1045,7 +1045,7 @@ void ImplDockingWindowWrapper::StartDocking( const Point& rPoint, Rectangle& rRe
mbDocking = true;
}
-// -----------------------------------------------------------------------
+
bool ImplDockingWindowWrapper::Docking( const Point& rPoint, Rectangle& rRect )
{
@@ -1056,7 +1056,7 @@ bool ImplDockingWindowWrapper::Docking( const Point& rPoint, Rectangle& rRect )
return data.mbFloating;
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::EndDocking( const Rectangle& rRect, bool bFloatMode )
{
@@ -1097,7 +1097,7 @@ void ImplDockingWindowWrapper::EndDocking( const Rectangle& rRect, bool bFloatMo
mbStartDockingEnabled = false;
}
-// -----------------------------------------------------------------------
+
bool ImplDockingWindowWrapper::PrepareToggleFloatingMode()
{
@@ -1106,7 +1106,7 @@ bool ImplDockingWindowWrapper::PrepareToggleFloatingMode()
return bFloating;
}
-// -----------------------------------------------------------------------
+
bool ImplDockingWindowWrapper::Close()
{
@@ -1114,7 +1114,7 @@ bool ImplDockingWindowWrapper::Close()
return true;
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::ToggleFloatingMode()
{
@@ -1131,7 +1131,7 @@ void ImplDockingWindowWrapper::ToggleFloatingMode()
mbStartDockingEnabled = false;
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::TitleButtonClick( sal_uInt16 nType )
{
@@ -1149,28 +1149,28 @@ void ImplDockingWindowWrapper::TitleButtonClick( sal_uInt16 nType )
}
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::Pin()
{
// TODO: send event
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::Roll()
{
// TODO: send event
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::PopupModeEnd()
{
// TODO: send event
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::Resizing( Size& rSize )
{
@@ -1180,7 +1180,7 @@ void ImplDockingWindowWrapper::Resizing( Size& rSize )
pDockingWindow->Resizing( rSize );
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::ShowTitleButton( sal_uInt16 nButton, bool bVisible )
{
@@ -1195,7 +1195,7 @@ void ImplDockingWindowWrapper::ShowTitleButton( sal_uInt16 nButton, bool bVisibl
}
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::StartPopupMode( ToolBox *pParentToolBox, sal_uLong nFlags )
{
@@ -1299,7 +1299,7 @@ bool ImplDockingWindowWrapper::IsInPopupMode() const
return false;
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::SetFloatingMode( bool bFloatMode )
{
@@ -1414,21 +1414,21 @@ void ImplDockingWindowWrapper::SetFloatingMode( bool bFloatMode )
}
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::SetFloatStyle( WinBits nStyle )
{
mnFloatBits = nStyle;
}
-// -----------------------------------------------------------------------
+
WinBits ImplDockingWindowWrapper::GetFloatStyle() const
{
return mnFloatBits;
}
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::setPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
@@ -1440,7 +1440,7 @@ void ImplDockingWindowWrapper::setPosSizePixel( long nX, long nY,
GetWindow()->setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
-// -----------------------------------------------------------------------
+
Point ImplDockingWindowWrapper::GetPosPixel() const
{
@@ -1450,7 +1450,7 @@ Point ImplDockingWindowWrapper::GetPosPixel() const
return mpDockingWindow->GetPosPixel();
}
-// -----------------------------------------------------------------------
+
Size ImplDockingWindowWrapper::GetSizePixel() const
{
@@ -1460,9 +1460,9 @@ Size ImplDockingWindowWrapper::GetSizePixel() const
return mpDockingWindow->GetSizePixel();
}
-// -----------------------------------------------------------------------
+
// old inlines from DockingWindow
-// -----------------------------------------------------------------------
+
void ImplDockingWindowWrapper::SetMinOutputSizePixel( const Size& rSize )
{
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index 3346751b751c..f733b53b4ed6 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -41,7 +41,7 @@
// =======================================================================
-// -----------------------------------------------------------------------
+
class DockingWindow::ImplData
{
@@ -63,7 +63,7 @@ DockingWindow::ImplData::~ImplData()
{
}
-// -----------------------------------------------------------------------
+
class ImplDockFloatWin : public FloatingWindow
{
@@ -121,7 +121,7 @@ ImplDockFloatWin::ImplDockFloatWin( Window* pParent, WinBits nWinBits,
maDockTimer.SetTimeout( 50 );
}
-// -----------------------------------------------------------------------
+
ImplDockFloatWin::~ImplDockFloatWin()
{
@@ -129,7 +129,7 @@ ImplDockFloatWin::~ImplDockFloatWin()
Application::RemoveUserEvent( mnLastUserEvent );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ImplDockFloatWin, DockTimerHdl)
{
@@ -196,7 +196,7 @@ IMPL_LINK_NOARG(ImplDockFloatWin, DockingHdl)
mbInMove = false;
return 0;
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin::Move()
{
@@ -220,7 +220,7 @@ void ImplDockFloatWin::Move()
mnLastUserEvent = Application::PostUserEvent( LINK( this, ImplDockFloatWin, DockingHdl ) );
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin::Resize()
{
@@ -229,7 +229,7 @@ void ImplDockFloatWin::Resize()
mpDockWin->ImplPosSizeWindow( 0, 0, aSize.Width(), aSize.Height(), WINDOW_POSSIZE_POSSIZE );
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin::TitleButtonClick( sal_uInt16 nButton )
{
@@ -237,7 +237,7 @@ void ImplDockFloatWin::TitleButtonClick( sal_uInt16 nButton )
mpDockWin->TitleButtonClick( nButton );
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin::Pin()
{
@@ -245,7 +245,7 @@ void ImplDockFloatWin::Pin()
mpDockWin->Pin();
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin::Roll()
{
@@ -253,7 +253,7 @@ void ImplDockFloatWin::Roll()
mpDockWin->Roll();
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin::PopupModeEnd()
{
@@ -261,7 +261,7 @@ void ImplDockFloatWin::PopupModeEnd()
mpDockWin->PopupModeEnd();
}
-// -----------------------------------------------------------------------
+
void ImplDockFloatWin::Resizing( Size& rSize )
{
@@ -269,7 +269,7 @@ void ImplDockFloatWin::Resizing( Size& rSize )
mpDockWin->Resizing( rSize );
}
-// -----------------------------------------------------------------------
+
bool ImplDockFloatWin::Close()
{
@@ -349,7 +349,7 @@ void DockingWindow::ImplInitDockingWindowData()
mbHideBtn = false;
}
-// -----------------------------------------------------------------------
+
void DockingWindow::ImplInit( Window* pParent, WinBits nStyle )
{
@@ -368,7 +368,7 @@ void DockingWindow::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings();
}
-// -----------------------------------------------------------------------
+
void DockingWindow::ImplInitSettings()
{
@@ -389,7 +389,7 @@ void DockingWindow::ImplInitSettings()
}
}
-// -----------------------------------------------------------------------
+
void DockingWindow::ImplLoadRes( const ResId& rResId )
{
@@ -429,7 +429,7 @@ void DockingWindow::ImplLoadRes( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
DockingWindow::DockingWindow( WindowType nType ) :
Window( nType )
@@ -437,7 +437,7 @@ DockingWindow::DockingWindow( WindowType nType ) :
ImplInitDockingWindowData();
}
-// -----------------------------------------------------------------------
+
DockingWindow::DockingWindow( Window* pParent, WinBits nStyle ) :
Window( WINDOW_DOCKINGWINDOW )
@@ -446,7 +446,7 @@ DockingWindow::DockingWindow( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
DockingWindow::DockingWindow( Window* pParent, const ResId& rResId ) :
Window( WINDOW_DOCKINGWINDOW )
@@ -461,7 +461,7 @@ DockingWindow::DockingWindow( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
DockingWindow::~DockingWindow()
{
@@ -473,7 +473,7 @@ DockingWindow::~DockingWindow()
delete mpImplData;
}
-// -----------------------------------------------------------------------
+
void DockingWindow::Tracking( const TrackingEvent& rTEvt )
{
@@ -595,7 +595,7 @@ void DockingWindow::Tracking( const TrackingEvent& rTEvt )
}
}
-// -----------------------------------------------------------------------
+
bool DockingWindow::Notify( NotifyEvent& rNEvt )
{
@@ -649,21 +649,21 @@ bool DockingWindow::Notify( NotifyEvent& rNEvt )
return Window::Notify( rNEvt );
}
-// -----------------------------------------------------------------------
+
void DockingWindow::StartDocking()
{
mbDocking = true;
}
-// -----------------------------------------------------------------------
+
bool DockingWindow::Docking( const Point&, Rectangle& )
{
return IsFloatingMode();
}
-// -----------------------------------------------------------------------
+
void DockingWindow::EndDocking( const Rectangle& rRect, sal_Bool bFloatMode )
{
@@ -691,14 +691,14 @@ void DockingWindow::EndDocking( const Rectangle& rRect, sal_Bool bFloatMode )
mbDocking = false;
}
-// -----------------------------------------------------------------------
+
bool DockingWindow::PrepareToggleFloatingMode()
{
return true;
}
-// -----------------------------------------------------------------------
+
bool DockingWindow::Close()
{
@@ -716,43 +716,43 @@ bool DockingWindow::Close()
return true;
}
-// -----------------------------------------------------------------------
+
void DockingWindow::ToggleFloatingMode()
{
}
-// -----------------------------------------------------------------------
+
void DockingWindow::TitleButtonClick( sal_uInt16 )
{
}
-// -----------------------------------------------------------------------
+
void DockingWindow::Pin()
{
}
-// -----------------------------------------------------------------------
+
void DockingWindow::Roll()
{
}
-// -----------------------------------------------------------------------
+
void DockingWindow::PopupModeEnd()
{
}
-// -----------------------------------------------------------------------
+
void DockingWindow::Resizing( Size& )
{
}
-// -----------------------------------------------------------------------
+
void DockingWindow::StateChanged( StateChangedType nType )
{
@@ -774,7 +774,7 @@ void DockingWindow::StateChanged( StateChangedType nType )
Window::StateChanged( nType );
}
-// -----------------------------------------------------------------------
+
void DockingWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -788,7 +788,7 @@ void DockingWindow::DataChanged( const DataChangedEvent& rDCEvt )
Window::DataChanged( rDCEvt );
}
-// -----------------------------------------------------------------------
+
void DockingWindow::SetFloatingMode( bool bFloatMode )
{
@@ -896,7 +896,7 @@ void DockingWindow::SetFloatingMode( bool bFloatMode )
}
}
-// -----------------------------------------------------------------------
+
void DockingWindow::SetFloatStyle( WinBits nStyle )
{
@@ -910,7 +910,7 @@ void DockingWindow::SetFloatStyle( WinBits nStyle )
mnFloatBits = nStyle;
}
-// -----------------------------------------------------------------------
+
WinBits DockingWindow::GetFloatStyle() const
{
@@ -923,7 +923,7 @@ WinBits DockingWindow::GetFloatStyle() const
return mnFloatBits;
}
-// -----------------------------------------------------------------------
+
void DockingWindow::setPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
@@ -945,7 +945,7 @@ void DockingWindow::setPosSizePixel( long nX, long nY,
Window::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags );
}
-// -----------------------------------------------------------------------
+
Point DockingWindow::GetPosPixel() const
{
@@ -964,7 +964,7 @@ Point DockingWindow::GetPosPixel() const
return Window::GetPosPixel();
}
-// -----------------------------------------------------------------------
+
Size DockingWindow::GetSizePixel() const
{
@@ -983,7 +983,7 @@ Size DockingWindow::GetSizePixel() const
return Window::GetSizePixel();
}
-// -----------------------------------------------------------------------
+
void DockingWindow::SetOutputSizePixel( const Size& rNewSize )
{
@@ -1003,7 +1003,7 @@ void DockingWindow::SetOutputSizePixel( const Size& rNewSize )
Window::SetOutputSizePixel( rNewSize );
}
-// -----------------------------------------------------------------------
+
Size DockingWindow::GetOutputSizePixel() const
{
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index 8aa30f8bf7fc..285b161b2a70 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -138,7 +138,7 @@ void FloatingWindow::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings();
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::ImplInitSettings()
{
@@ -162,7 +162,7 @@ FloatingWindow::FloatingWindow( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
FloatingWindow::FloatingWindow( Window* pParent, const ResId& rResId ) :
SystemWindow( WINDOW_FLOATINGWINDOW )
@@ -176,7 +176,7 @@ FloatingWindow::FloatingWindow( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::ImplLoadRes( const ResId& rResId )
{
@@ -208,7 +208,7 @@ void FloatingWindow::ImplLoadRes( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
FloatingWindow::~FloatingWindow()
{
@@ -226,14 +226,14 @@ FloatingWindow::~FloatingWindow()
delete mpImplData;
}
-// -----------------------------------------------------------------------
+
Point FloatingWindow::CalcFloatingPosition( Window* pWindow, const Rectangle& rRect, sal_uLong nFlags, sal_uInt16& rArrangeIndex )
{
return ImplCalcPos( pWindow, rRect, nFlags, rArrangeIndex );
}
-// -----------------------------------------------------------------------
+
Point FloatingWindow::ImplCalcPos( Window* pWindow,
const Rectangle& rRect, sal_uLong nFlags,
@@ -447,7 +447,7 @@ Point FloatingWindow::ImplCalcPos( Window* pWindow,
return pW->OutputToScreenPixel( aPos );
}
-// -----------------------------------------------------------------------
+
FloatingWindow* FloatingWindow::ImplFloatHitTest( Window* pReference, const Point& rPos, sal_uInt16& rHitTest )
{
@@ -505,7 +505,7 @@ FloatingWindow* FloatingWindow::ImplFloatHitTest( Window* pReference, const Poin
return NULL;
}
-// -----------------------------------------------------------------------
+
FloatingWindow* FloatingWindow::ImplFindLastLevelFloat()
{
@@ -524,7 +524,7 @@ FloatingWindow* FloatingWindow::ImplFindLastLevelFloat()
return pLastFoundWin;
}
-// -----------------------------------------------------------------------
+
bool FloatingWindow::ImplIsFloatPopupModeWindow( const Window* pWindow )
{
@@ -542,7 +542,7 @@ bool FloatingWindow::ImplIsFloatPopupModeWindow( const Window* pWindow )
return false;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(FloatingWindow, ImplEndPopupModeHdl)
{
@@ -553,7 +553,7 @@ IMPL_LINK_NOARG(FloatingWindow, ImplEndPopupModeHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
bool FloatingWindow::Notify( NotifyEvent& rNEvt )
{
@@ -578,7 +578,7 @@ bool FloatingWindow::Notify( NotifyEvent& rNEvt )
return nRet;
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::StateChanged( StateChangedType nType )
{
@@ -591,7 +591,7 @@ void FloatingWindow::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -605,7 +605,7 @@ void FloatingWindow::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::ImplCallPopupModeEnd()
{
@@ -617,14 +617,14 @@ void FloatingWindow::ImplCallPopupModeEnd()
Application::PostUserEvent( mnPostId, LINK( this, FloatingWindow, ImplEndPopupModeHdl ) );
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::PopupModeEnd()
{
maPopupModeEndHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::SetTitleType( sal_uInt16 nTitle )
{
@@ -646,7 +646,7 @@ void FloatingWindow::SetTitleType( sal_uInt16 nTitle )
}
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::StartPopupMode( const Rectangle& rRect, sal_uLong nFlags )
{
@@ -729,7 +729,7 @@ void FloatingWindow::StartPopupMode( const Rectangle& rRect, sal_uLong nFlags )
Show( true, SHOW_NOACTIVATE );
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::StartPopupMode( ToolBox* pBox, sal_uLong nFlags )
{
@@ -776,7 +776,7 @@ void FloatingWindow::StartPopupMode( ToolBox* pBox, sal_uLong nFlags )
StartPopupMode( aRect, nFlags );
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::ImplEndPopupMode( sal_uInt16 nFlags, sal_uLong nFocusId )
{
@@ -852,14 +852,14 @@ void FloatingWindow::ImplEndPopupMode( sal_uInt16 nFlags, sal_uLong nFocusId )
mbInCleanUp = false;
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::EndPopupMode( sal_uInt16 nFlags )
{
ImplEndPopupMode( nFlags );
}
-// -----------------------------------------------------------------------
+
void FloatingWindow::AddPopupModeWindow( Window* pWindow )
{
diff --git a/vcl/source/window/introwin.cxx b/vcl/source/window/introwin.cxx
index 36dc800c9fcd..10baa88203f0 100644
--- a/vcl/source/window/introwin.cxx
+++ b/vcl/source/window/introwin.cxx
@@ -36,7 +36,7 @@ void IntroWindow::ImplInitIntroWindowData()
pSVData->mpIntroWindow = this;
}
-// -----------------------------------------------------------------------
+
IntroWindow::IntroWindow( ) :
WorkWindow( WINDOW_INTROWINDOW )
@@ -45,7 +45,7 @@ IntroWindow::IntroWindow( ) :
WorkWindow::ImplInit( 0, WB_INTROWIN, NULL );
}
-// -----------------------------------------------------------------------
+
IntroWindow::~IntroWindow()
{
diff --git a/vcl/source/window/keycod.cxx b/vcl/source/window/keycod.cxx
index df81d987cc73..8e1f439a6f0e 100644
--- a/vcl/source/window/keycod.cxx
+++ b/vcl/source/window/keycod.cxx
@@ -52,7 +52,7 @@ static const sal_uInt16 aImplKeyFuncTab[(KEYFUNC_FRONT+1)*4] =
0, 0, 0, 0 // KEYFUNC_FRONT
};
-// -----------------------------------------------------------------------
+
void ImplGetKeyCode( KeyFuncType eFunc, sal_uInt16& rCode1, sal_uInt16& rCode2, sal_uInt16& rCode3, sal_uInt16& rCode4 )
{
@@ -73,7 +73,7 @@ KeyCode::KeyCode( KeyFuncType eFunction )
eFunc = eFunction;
}
-// -----------------------------------------------------------------------
+
KeyCode::KeyCode( const ResId& rResId )
{
@@ -99,7 +99,7 @@ KeyCode::KeyCode( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
OUString KeyCode::GetName( Window* pWindow ) const
{
@@ -108,7 +108,7 @@ OUString KeyCode::GetName( Window* pWindow ) const
return pWindow ? pWindow->ImplGetFrame()->GetKeyName( GetFullCode() ) : "";
}
-// -----------------------------------------------------------------------
+
KeyFuncType KeyCode::GetFunction() const
{
diff --git a/vcl/source/window/keyevent.cxx b/vcl/source/window/keyevent.cxx
index b90b1a20b766..bc84e210c550 100644
--- a/vcl/source/window/keyevent.cxx
+++ b/vcl/source/window/keyevent.cxx
@@ -65,7 +65,7 @@ KeyEvent KeyEvent::LogicalTextDirectionality (TextDirectionality eMode) const
}
-// -------------------------------------------------------
+
const Point& HelpEvent::GetMousePosPixel() const
{
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index e4b1998d445f..bdd52f3d016e 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -478,9 +478,9 @@ size_t MenuItemList::GetItemCount( KeyCode aKeyCode ) const
}
-// ----------------------
+
// - MenuFloatingWindow -
-// ----------------------
+
class MenuFloatingWindow : public FloatingWindow
{
@@ -2358,7 +2358,7 @@ bool Menu::ImplGetNativeSubmenuArrowSize( Window* pWin, Size& rArrowSize, long&
return false;
}
-// -----------------------------------------------------------------------
+
void Menu::ImplAddDel( ImplMenuDelData& rDel )
{
@@ -2371,7 +2371,7 @@ void Menu::ImplAddDel( ImplMenuDelData& rDel )
}
}
-// -----------------------------------------------------------------------
+
void Menu::ImplRemoveDel( ImplMenuDelData& rDel )
{
@@ -2392,7 +2392,7 @@ void Menu::ImplRemoveDel( ImplMenuDelData& rDel )
}
}
-// -----------------------------------------------------------------------
+
Size Menu::ImplCalcSize( const Window* pWin )
{
@@ -3273,9 +3273,9 @@ void Menu::HighlightItem( sal_uInt16 nItemPos )
}
-// -----------
+
// - MenuBar -
-// -----------
+
MenuBar::MenuBar() : Menu( true )
{
@@ -3377,7 +3377,7 @@ bool MenuBar::ImplHandleKeyEvent( const KeyEvent& rKEvent, bool bFromMenu )
return bDone;
}
-// -----------------------------------------------------------------------
+
void MenuBar::SelectEntry( sal_uInt16 nId )
{
@@ -3400,7 +3400,7 @@ void MenuBar::SelectEntry( sal_uInt16 nId )
}
}
-// -----------------------------------------------------------------------
+
// handler for native menu selection and command events
@@ -3501,7 +3501,7 @@ bool MenuBar::HandleMenuButtonEvent( Menu *, sal_uInt16 i_nButtonId ) const
return static_cast<MenuBarWindow*>(pWindow)->HandleMenuButtonEvent( i_nButtonId );
}
-// -----------------------------------------------------------------------
+
// sal_Bool PopupMenu::bAnyPopupInExecute = sal_False;
diff --git a/vcl/source/window/mnemonic.cxx b/vcl/source/window/mnemonic.cxx
index 2fe22fbee90c..800ee0983849 100644
--- a/vcl/source/window/mnemonic.cxx
+++ b/vcl/source/window/mnemonic.cxx
@@ -37,7 +37,7 @@ MnemonicGenerator::MnemonicGenerator()
memset( maMnemonics, 1, sizeof( maMnemonics ) );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 MnemonicGenerator::ImplGetMnemonicIndex( sal_Unicode c )
{
@@ -62,7 +62,7 @@ sal_uInt16 MnemonicGenerator::ImplGetMnemonicIndex( sal_Unicode c )
return MNEMONIC_INDEX_NOTFOUND;
}
-// -----------------------------------------------------------------------
+
sal_Unicode MnemonicGenerator::ImplFindMnemonic( const OUString& rKey )
{
@@ -78,7 +78,7 @@ sal_Unicode MnemonicGenerator::ImplFindMnemonic( const OUString& rKey )
return 0;
}
-// -----------------------------------------------------------------------
+
void MnemonicGenerator::RegisterMnemonic( const OUString& rKey )
{
@@ -121,7 +121,7 @@ void MnemonicGenerator::RegisterMnemonic( const OUString& rKey )
}
}
-// -----------------------------------------------------------------------
+
OUString MnemonicGenerator::CreateMnemonic( const OUString& _rKey )
{
@@ -345,7 +345,7 @@ OUString MnemonicGenerator::CreateMnemonic( const OUString& _rKey )
return rKey;
}
-// -----------------------------------------------------------------------
+
uno::Reference< i18n::XCharacterClassification > MnemonicGenerator::GetCharClass()
{
@@ -354,7 +354,7 @@ uno::Reference< i18n::XCharacterClassification > MnemonicGenerator::GetCharClass
return mxCharClass;
}
-// -----------------------------------------------------------------------
+
OUString MnemonicGenerator::EraseAllMnemonicChars( const OUString& rStr )
{
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx
index 3a700f10e711..780283efc064 100644
--- a/vcl/source/window/msgbox.cxx
+++ b/vcl/source/window/msgbox.cxx
@@ -65,7 +65,7 @@ void MessBox::ImplInitMessBoxData()
mbCheck = false;
}
-// -----------------------------------------------------------------------
+
void MessBox::ImplInitButtons()
{
@@ -144,7 +144,7 @@ void MessBox::ImplInitButtons()
}
}
-// -----------------------------------------------------------------------
+
MessBox::MessBox( Window* pParent, WinBits nStyle,
const OUString& rTitle, const OUString& rMessage ) :
@@ -159,7 +159,7 @@ MessBox::MessBox( Window* pParent, WinBits nStyle,
SetText( rTitle );
}
-// -----------------------------------------------------------------------
+
MessBox::MessBox( Window* pParent, const ResId& rResId ) :
ButtonDialog( WINDOW_MESSBOX )
@@ -182,7 +182,7 @@ MessBox::MessBox( Window* pParent, const ResId& rResId ) :
ImplInitButtons();
}
-// -----------------------------------------------------------------------
+
void MessBox::ImplLoadRes( const ResId& )
{
@@ -191,7 +191,7 @@ void MessBox::ImplLoadRes( const ResId& )
SetHelpText( ReadStringRes() );
}
-// -----------------------------------------------------------------------
+
MessBox::~MessBox()
{
@@ -200,7 +200,7 @@ MessBox::~MessBox()
delete mpCheckBox;
}
-// -----------------------------------------------------------------------
+
void MessBox::ImplPosControls()
{
@@ -398,7 +398,7 @@ void MessBox::ImplPosControls()
SetPageSizePixel( aPageSize );
}
-// -----------------------------------------------------------------------
+
void MessBox::StateChanged( StateChangedType nType )
{
@@ -409,14 +409,14 @@ void MessBox::StateChanged( StateChangedType nType )
ButtonDialog::StateChanged( nType );
}
-// -----------------------------------------------------------------------
+
bool MessBox::GetCheckBoxState() const
{
return mpCheckBox ? mpCheckBox->IsChecked() : mbCheck;
}
-// -----------------------------------------------------------------------
+
void MessBox::SetCheckBoxState( bool bCheck )
{
@@ -424,7 +424,7 @@ void MessBox::SetCheckBoxState( bool bCheck )
mbCheck = bCheck;
}
-// -----------------------------------------------------------------------
+
Size MessBox::GetOptimalSize() const
{
@@ -443,7 +443,7 @@ void InfoBox::ImplInitInfoBoxData()
SetImage( InfoBox::GetStandardImage() );
}
-// -----------------------------------------------------------------------
+
InfoBox::InfoBox( Window* pParent, const OUString& rMessage ) :
MessBox( pParent, WB_OK | WB_DEF_OK, OUString(), rMessage )
@@ -451,7 +451,7 @@ InfoBox::InfoBox( Window* pParent, const OUString& rMessage ) :
ImplInitInfoBoxData();
}
-// -----------------------------------------------------------------------
+
InfoBox::InfoBox( Window* pParent, const ResId & rResId ) :
MessBox( pParent, rResId.SetRT( RSC_INFOBOX ) )
@@ -459,7 +459,7 @@ InfoBox::InfoBox( Window* pParent, const ResId & rResId ) :
ImplInitInfoBoxData();
}
-// -----------------------------------------------------------------------
+
InfoBox::InfoBox( Window* pParent, WinBits nStyle, const OUString& rMessage ) :
MessBox( pParent, nStyle, OUString(), rMessage )
@@ -467,7 +467,7 @@ InfoBox::InfoBox( Window* pParent, WinBits nStyle, const OUString& rMessage ) :
ImplInitInfoBoxData();
}
-// -----------------------------------------------------------------------
+
Image InfoBox::GetStandardImage()
{
@@ -486,7 +486,7 @@ void WarningBox::ImplInitWarningBoxData()
SetImage( WarningBox::GetStandardImage() );
}
-// -----------------------------------------------------------------------
+
WarningBox::WarningBox( Window* pParent, WinBits nStyle,
const OUString& rMessage ) :
@@ -495,7 +495,7 @@ WarningBox::WarningBox( Window* pParent, WinBits nStyle,
ImplInitWarningBoxData();
}
-// -----------------------------------------------------------------------
+
WarningBox::WarningBox( Window* pParent, const ResId& rResId ) :
MessBox( pParent, rResId.SetRT( RSC_WARNINGBOX ) )
@@ -503,7 +503,7 @@ WarningBox::WarningBox( Window* pParent, const ResId& rResId ) :
ImplInitWarningBoxData();
}
-// -----------------------------------------------------------------------
+
void WarningBox::SetDefaultCheckBoxText()
{
@@ -512,7 +512,7 @@ void WarningBox::SetDefaultCheckBoxText()
maCheckBoxText = ResId(SV_STDTEXT_DONTWARNAGAIN, *pResMgr).toString();
}
-// -----------------------------------------------------------------------
+
Image WarningBox::GetStandardImage()
{
@@ -531,7 +531,7 @@ void ErrorBox::ImplInitErrorBoxData()
SetImage( ErrorBox::GetStandardImage() );
}
-// -----------------------------------------------------------------------
+
ErrorBox::ErrorBox( Window* pParent, WinBits nStyle,
const OUString& rMessage ) :
@@ -540,7 +540,7 @@ ErrorBox::ErrorBox( Window* pParent, WinBits nStyle,
ImplInitErrorBoxData();
}
-// -----------------------------------------------------------------------
+
ErrorBox::ErrorBox( Window* pParent, const ResId& rResId ) :
MessBox( pParent, rResId.SetRT( RSC_ERRORBOX ) )
@@ -548,7 +548,7 @@ ErrorBox::ErrorBox( Window* pParent, const ResId& rResId ) :
ImplInitErrorBoxData();
}
-// -----------------------------------------------------------------------
+
Image ErrorBox::GetStandardImage()
{
@@ -576,7 +576,7 @@ void QueryBox::ImplInitQueryBoxData()
SetImage( QueryBox::GetStandardImage() );
}
-// -----------------------------------------------------------------------
+
QueryBox::QueryBox( Window* pParent, WinBits nStyle, const OUString& rMessage ) :
MessBox( pParent, nStyle, OUString(), rMessage )
@@ -584,7 +584,7 @@ QueryBox::QueryBox( Window* pParent, WinBits nStyle, const OUString& rMessage )
ImplInitQueryBoxData();
}
-// -----------------------------------------------------------------------
+
QueryBox::QueryBox( Window* pParent, const ResId& rResId ) :
MessBox( pParent, rResId.SetRT( RSC_QUERYBOX ) )
@@ -592,7 +592,7 @@ QueryBox::QueryBox( Window* pParent, const ResId& rResId ) :
ImplInitQueryBoxData();
}
-// -----------------------------------------------------------------------
+
void QueryBox::SetDefaultCheckBoxText()
{
@@ -601,7 +601,7 @@ void QueryBox::SetDefaultCheckBoxText()
maCheckBoxText = ResId(SV_STDTEXT_DONTASKAGAIN, *pResMgr).toString();
}
-// -----------------------------------------------------------------------
+
Image QueryBox::GetStandardImage()
{
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 371fceab8a6d..6de81b334fbc 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -1839,11 +1839,11 @@ void PrintDialog::previewBackward()
mpPageEdit->Down();
}
-// -----------------------------------------------------------------------------
+
//
// PrintProgressDialog
//
-// -----------------------------------------------------------------------------
+
PrintProgressDialog::PrintProgressDialog(Window* i_pParent, int i_nMax)
: ModelessDialog(i_pParent, "PrintProgressDialog",
diff --git a/vcl/source/window/split.cxx b/vcl/source/window/split.cxx
index 5b2480e50747..7fff5407523c 100644
--- a/vcl/source/window/split.cxx
+++ b/vcl/source/window/split.cxx
@@ -64,7 +64,7 @@ void Splitter::ImplInitSplitterData()
mnKeyboardStepSize = SPLITTER_DEFAULTSTEPSIZE;
}
-// -----------------------------------------------------------------------
+
// Should only be called from a ImplInit method for initialization or
// after checking bNew is different from the current mbHorzSplit value.
@@ -90,7 +90,7 @@ void Splitter::ImplInitHorVer(bool bNew)
SetPointer( Pointer( ePointerStyle ) );
}
-// -----------------------------------------------------------------------
+
void Splitter::ImplInit( Window* pParent, WinBits nWinStyle )
{
@@ -109,7 +109,7 @@ void Splitter::ImplInit( Window* pParent, WinBits nWinStyle )
pTList->AddWindow( this );
}
-// -----------------------------------------------------------------------
+
void Splitter::ImplSplitMousePos( Point& rPos )
{
@@ -129,7 +129,7 @@ void Splitter::ImplSplitMousePos( Point& rPos )
}
}
-// -----------------------------------------------------------------------
+
void Splitter::ImplDrawSplitter()
{
@@ -149,7 +149,7 @@ void Splitter::ImplDrawSplitter()
mpRefWin->InvertTracking( mpRefWin->PixelToLogic(aInvRect), SHOWTRACK_SPLIT );
}
-// -----------------------------------------------------------------------
+
Splitter::Splitter( Window* pParent, WinBits nStyle ) :
Window( WINDOW_SPLITTER )
@@ -161,7 +161,7 @@ Splitter::Splitter( Window* pParent, WinBits nStyle ) :
SetFillColor();
}
-// -----------------------------------------------------------------------
+
Splitter::Splitter( Window* pParent, const ResId& rResId ) :
Window( WINDOW_SPLITTER )
@@ -179,7 +179,7 @@ Splitter::Splitter( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
Splitter::~Splitter()
{
@@ -187,7 +187,7 @@ Splitter::~Splitter()
pTList->RemoveWindow( this );
}
-// -----------------------------------------------------------------------
+
void Splitter::SetHorizontal(bool bNew)
{
@@ -197,14 +197,14 @@ void Splitter::SetHorizontal(bool bNew)
}
}
-// -----------------------------------------------------------------------
+
void Splitter::SetKeyboardStepSize( long nStepSize )
{
mnKeyboardStepSize = nStepSize;
}
-// -----------------------------------------------------------------------
+
Splitter* Splitter::ImplFindSibling()
{
@@ -224,7 +224,7 @@ Splitter* Splitter::ImplFindSibling()
return NULL;
}
-// -----------------------------------------------------------------------
+
bool Splitter::ImplSplitterActive()
{
@@ -249,7 +249,7 @@ bool Splitter::ImplSplitterActive()
return bActive;
}
-// -----------------------------------------------------------------------
+
void Splitter::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -280,7 +280,7 @@ void Splitter::MouseButtonDown( const MouseEvent& rMEvt )
StartDrag();
}
-// -----------------------------------------------------------------------
+
void Splitter::Tracking( const TrackingEvent& rTEvt )
{
@@ -356,7 +356,7 @@ void Splitter::Tracking( const TrackingEvent& rTEvt )
}
}
-// -----------------------------------------------------------------------
+
void Splitter::ImplKbdTracking( KeyCode aKeyCode )
{
@@ -473,21 +473,21 @@ void Splitter::ImplKbdTracking( KeyCode aKeyCode )
}
}
-// -----------------------------------------------------------------------
+
void Splitter::StartSplit()
{
maStartSplitHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void Splitter::Split()
{
maSplitHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void Splitter::EndSplit()
{
@@ -495,13 +495,13 @@ void Splitter::EndSplit()
maEndSplitHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void Splitter::Splitting( Point& /* rSplitPos */ )
{
}
-// -----------------------------------------------------------------------
+
void Splitter::SetDragRectPixel( const Rectangle& rDragRect, Window* _pRefWin )
{
@@ -512,14 +512,14 @@ void Splitter::SetDragRectPixel( const Rectangle& rDragRect, Window* _pRefWin )
mpRefWin = _pRefWin;
}
-// -----------------------------------------------------------------------
+
void Splitter::SetSplitPosPixel( long nNewPos )
{
mnSplitPos = nNewPos;
}
-// -----------------------------------------------------------------------
+
void Splitter::StartDrag()
{
@@ -547,7 +547,7 @@ void Splitter::StartDrag()
}
-// -----------------------------------------------------------------------
+
void Splitter::ImplStartKbdSplitting()
{
@@ -577,7 +577,7 @@ void Splitter::ImplStartKbdSplitting()
mnStartSplitPos = maDragPos.Y();
}
-// -----------------------------------------------------------------------
+
void Splitter::ImplRestoreSplitter()
{
@@ -608,7 +608,7 @@ void Splitter::ImplRestoreSplitter()
}
-// -----------------------------------------------------------------------
+
void Splitter::GetFocus()
{
@@ -618,7 +618,7 @@ void Splitter::GetFocus()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void Splitter::LoseFocus()
{
@@ -631,7 +631,7 @@ void Splitter::LoseFocus()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void Splitter::KeyInput( const KeyEvent& rKEvt )
{
@@ -732,14 +732,14 @@ void Splitter::KeyInput( const KeyEvent& rKEvt )
mbInKeyEvent = 0;
}
-// -----------------------------------------------------------------------
+
bool Splitter::Notify( NotifyEvent& rNEvt )
{
return Window::Notify( rNEvt );
}
-// -----------------------------------------------------------------------
+
void Splitter::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -762,7 +762,7 @@ void Splitter::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
void Splitter::Paint( const Rectangle& rPaintRect )
{
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 5cac8f0da7ff..834a8131ed15 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -42,7 +42,7 @@
#define STATUSBAR_PRGS_COUNT 100
#define STATUSBAR_PRGS_MIN 5
-// -----------------------------------------------------------------------
+
class StatusBar::ImplData
{
@@ -91,7 +91,7 @@ inline long ImplCalcProgessWidth( sal_uInt16 nMax, long nSize )
return ((nMax*(nSize+(nSize/2)))-(nSize/2)+(STATUSBAR_PRGS_OFFSET*2));
}
-// -----------------------------------------------------------------------
+
static Point ImplGetItemTextPos( const Size& rRectSize, const Size& rTextSize,
sal_uInt16 nStyle )
@@ -112,7 +112,7 @@ static Point ImplGetItemTextPos( const Size& rRectSize, const Size& rTextSize,
return Point( nX, nY );
}
-// -----------------------------------------------------------------------
+
bool StatusBar::ImplIsItemUpdate()
{
@@ -122,7 +122,7 @@ bool StatusBar::ImplIsItemUpdate()
return false;
}
-// -----------------------------------------------------------------------
+
void StatusBar::ImplInit( Window* pParent, WinBits nStyle )
{
@@ -155,7 +155,7 @@ void StatusBar::ImplInit( Window* pParent, WinBits nStyle )
SetOutputSizePixel( CalcWindowSizePixel() );
}
-// -----------------------------------------------------------------------
+
StatusBar::StatusBar( Window* pParent, WinBits nStyle ) :
Window( WINDOW_STATUSBAR )
@@ -163,7 +163,7 @@ StatusBar::StatusBar( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
StatusBar::~StatusBar()
{
@@ -178,7 +178,7 @@ StatusBar::~StatusBar()
delete mpImplData;
}
-// -----------------------------------------------------------------------
+
void StatusBar::ImplInitSettings( bool bFont,
bool bForeground, bool bBackground )
@@ -233,7 +233,7 @@ void StatusBar::ImplInitSettings( bool bFont,
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::ImplFormat()
{
@@ -309,7 +309,7 @@ void StatusBar::ImplFormat()
mbFormat = false;
}
-// -----------------------------------------------------------------------
+
Rectangle StatusBar::ImplGetItemRectPos( sal_uInt16 nPos ) const
{
@@ -330,7 +330,7 @@ Rectangle StatusBar::ImplGetItemRectPos( sal_uInt16 nPos ) const
return aRect;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 StatusBar::ImplGetFirstVisiblePos() const
{
@@ -349,7 +349,7 @@ sal_uInt16 StatusBar::ImplGetFirstVisiblePos() const
return ~0;
}
-// -----------------------------------------------------------------------
+
void StatusBar::ImplDrawText( bool bOffScreen, long nOldTextWidth )
{
@@ -386,7 +386,7 @@ void StatusBar::ImplDrawText( bool bOffScreen, long nOldTextWidth )
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::ImplDrawItem( bool bOffScreen, sal_uInt16 nPos, bool bDrawText, bool bDrawFrame )
{
@@ -487,7 +487,7 @@ void StatusBar::ImplDrawItem( bool bOffScreen, sal_uInt16 nPos, bool bDrawText,
ImplCallEventListeners( VCLEVENT_STATUSBAR_DRAWITEM, (void*) sal_IntPtr(pItem->mnId) );
}
-// -----------------------------------------------------------------------
+
void DrawProgress( Window* pWindow, const Point& rPos,
long nOffset, long nPrgsWidth, long nPrgsHeight,
@@ -605,7 +605,7 @@ void DrawProgress( Window* pWindow, const Point& rPos,
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::ImplDrawProgress( bool bPaint,
sal_uInt16 nPercent1, sal_uInt16 nPercent2 )
@@ -634,7 +634,7 @@ void StatusBar::ImplDrawProgress( bool bPaint,
nPercent1*100, nPercent2*100, mnPercentCount, maPrgsFrameRect );
}
-// -----------------------------------------------------------------------
+
void StatusBar::ImplCalcProgressRect()
{
@@ -688,7 +688,7 @@ void StatusBar::ImplCalcProgressRect()
maPrgsTxtPos.Y() = mnTextY;
}
-// -----------------------------------------------------------------------
+
void StatusBar::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -727,7 +727,7 @@ void StatusBar::MouseButtonDown( const MouseEvent& rMEvt )
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::Paint( const Rectangle& )
{
@@ -759,14 +759,14 @@ void StatusBar::Paint( const Rectangle& )
DrawLine( Point( 0, 0 ), Point( mnDX-1, 0 ) );
}
-// -----------------------------------------------------------------------
+
void StatusBar::Move()
{
Window::Move();
}
-// -----------------------------------------------------------------------
+
void StatusBar::Resize()
{
@@ -788,7 +788,7 @@ void StatusBar::Resize()
Invalidate();
}
-// -----------------------------------------------------------------------
+
void StatusBar::RequestHelp( const HelpEvent& rHEvt )
{
@@ -855,7 +855,7 @@ void StatusBar::RequestHelp( const HelpEvent& rHEvt )
Window::RequestHelp( rHEvt );
}
-// -----------------------------------------------------------------------
+
void StatusBar::StateChanged( StateChangedType nType )
{
@@ -884,7 +884,7 @@ void StatusBar::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -917,7 +917,7 @@ void StatusBar::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::Click()
{
@@ -925,7 +925,7 @@ void StatusBar::Click()
maClickHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void StatusBar::DoubleClick()
{
@@ -933,13 +933,13 @@ void StatusBar::DoubleClick()
maDoubleClickHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void StatusBar::UserDraw( const UserDrawEvent& )
{
}
-// -----------------------------------------------------------------------
+
void StatusBar::InsertItem( sal_uInt16 nItemId, sal_uLong nWidth,
StatusBarItemBits nBits,
@@ -979,7 +979,7 @@ void StatusBar::InsertItem( sal_uInt16 nItemId, sal_uLong nWidth,
ImplCallEventListeners( VCLEVENT_STATUSBAR_ITEMADDED, (void*) sal_IntPtr(nItemId) );
}
-// -----------------------------------------------------------------------
+
void StatusBar::RemoveItem( sal_uInt16 nItemId )
{
@@ -997,7 +997,7 @@ void StatusBar::RemoveItem( sal_uInt16 nItemId )
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::ShowItem( sal_uInt16 nItemId )
{
@@ -1019,7 +1019,7 @@ void StatusBar::ShowItem( sal_uInt16 nItemId )
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::HideItem( sal_uInt16 nItemId )
{
@@ -1041,7 +1041,7 @@ void StatusBar::HideItem( sal_uInt16 nItemId )
}
}
-// -----------------------------------------------------------------------
+
bool StatusBar::IsItemVisible( sal_uInt16 nItemId ) const
{
@@ -1068,14 +1068,14 @@ void StatusBar::Clear()
ImplCallEventListeners( VCLEVENT_STATUSBAR_ALLITEMSREMOVED );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 StatusBar::GetItemCount() const
{
return (sal_uInt16)mpItemList->size();
}
-// -----------------------------------------------------------------------
+
sal_uInt16 StatusBar::GetItemId( sal_uInt16 nPos ) const
{
@@ -1084,7 +1084,7 @@ sal_uInt16 StatusBar::GetItemId( sal_uInt16 nPos ) const
return 0;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 StatusBar::GetItemPos( sal_uInt16 nItemId ) const
{
@@ -1097,7 +1097,7 @@ sal_uInt16 StatusBar::GetItemPos( sal_uInt16 nItemId ) const
return STATUSBAR_ITEM_NOTFOUND;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 StatusBar::GetItemId( const Point& rPos ) const
{
@@ -1117,7 +1117,7 @@ sal_uInt16 StatusBar::GetItemId( const Point& rPos ) const
return 0;
}
-// -----------------------------------------------------------------------
+
Rectangle StatusBar::GetItemRect( sal_uInt16 nItemId ) const
{
@@ -1142,7 +1142,7 @@ Rectangle StatusBar::GetItemRect( sal_uInt16 nItemId ) const
return aRect;
}
-// -----------------------------------------------------------------------
+
Point StatusBar::GetItemTextPos( sal_uInt16 nItemId ) const
{
@@ -1172,7 +1172,7 @@ Point StatusBar::GetItemTextPos( sal_uInt16 nItemId ) const
return Point();
}
-// -----------------------------------------------------------------------
+
sal_uLong StatusBar::GetItemWidth( sal_uInt16 nItemId ) const
{
@@ -1184,7 +1184,7 @@ sal_uLong StatusBar::GetItemWidth( sal_uInt16 nItemId ) const
return 0;
}
-// -----------------------------------------------------------------------
+
StatusBarItemBits StatusBar::GetItemBits( sal_uInt16 nItemId ) const
{
@@ -1196,7 +1196,7 @@ StatusBarItemBits StatusBar::GetItemBits( sal_uInt16 nItemId ) const
return 0;
}
-// -----------------------------------------------------------------------
+
long StatusBar::GetItemOffset( sal_uInt16 nItemId ) const
{
@@ -1208,7 +1208,7 @@ long StatusBar::GetItemOffset( sal_uInt16 nItemId ) const
return 0;
}
-// -----------------------------------------------------------------------
+
void StatusBar::SetItemText( sal_uInt16 nItemId, const OUString& rText )
{
@@ -1244,7 +1244,7 @@ void StatusBar::SetItemText( sal_uInt16 nItemId, const OUString& rText )
}
}
-// -----------------------------------------------------------------------
+
const OUString& StatusBar::GetItemText( sal_uInt16 nItemId ) const
{
@@ -1255,7 +1255,7 @@ const OUString& StatusBar::GetItemText( sal_uInt16 nItemId ) const
return (*mpItemList)[ nPos ]->maText;
}
-// -----------------------------------------------------------------------
+
void StatusBar::SetItemCommand( sal_uInt16 nItemId, const OUString& rCommand )
{
@@ -1270,7 +1270,7 @@ void StatusBar::SetItemCommand( sal_uInt16 nItemId, const OUString& rCommand )
}
}
-// -----------------------------------------------------------------------
+
const OUString StatusBar::GetItemCommand( sal_uInt16 nItemId )
{
@@ -1282,7 +1282,7 @@ const OUString StatusBar::GetItemCommand( sal_uInt16 nItemId )
return OUString();
}
-// -----------------------------------------------------------------------
+
void StatusBar::SetItemData( sal_uInt16 nItemId, void* pNewData )
{
@@ -1333,7 +1333,7 @@ void StatusBar::RedrawItem( sal_uInt16 nItemId )
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::SetHelpText( sal_uInt16 nItemId, const OUString& rText )
{
@@ -1343,7 +1343,7 @@ void StatusBar::SetHelpText( sal_uInt16 nItemId, const OUString& rText )
(*mpItemList)[ nPos ]->maHelpText = rText;
}
-// -----------------------------------------------------------------------
+
const OUString& StatusBar::GetHelpText( sal_uInt16 nItemId ) const
{
@@ -1367,7 +1367,7 @@ const OUString& StatusBar::GetHelpText( sal_uInt16 nItemId ) const
return pItem->maHelpText;
}
-// -----------------------------------------------------------------------
+
void StatusBar::SetQuickHelpText( sal_uInt16 nItemId, const OUString& rText )
{
@@ -1377,7 +1377,7 @@ void StatusBar::SetQuickHelpText( sal_uInt16 nItemId, const OUString& rText )
(*mpItemList)[ nPos ]->maQuickHelpText = rText;
}
-// -----------------------------------------------------------------------
+
const OUString& StatusBar::GetQuickHelpText( sal_uInt16 nItemId ) const
{
@@ -1389,7 +1389,7 @@ const OUString& StatusBar::GetQuickHelpText( sal_uInt16 nItemId ) const
return pItem->maQuickHelpText;
}
-// -----------------------------------------------------------------------
+
void StatusBar::SetHelpId( sal_uInt16 nItemId, const OString& rHelpId )
{
@@ -1399,7 +1399,7 @@ void StatusBar::SetHelpId( sal_uInt16 nItemId, const OString& rHelpId )
(*mpItemList)[ nPos ]->maHelpId = rHelpId;
}
-// -----------------------------------------------------------------------
+
OString StatusBar::GetHelpId( sal_uInt16 nItemId ) const
{
@@ -1444,7 +1444,7 @@ void StatusBar::StartProgressMode( const OUString& rText )
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::SetProgressValue( sal_uInt16 nNewPercent )
{
@@ -1463,7 +1463,7 @@ void StatusBar::SetProgressValue( sal_uInt16 nNewPercent )
mnPercent = nNewPercent;
}
-// -----------------------------------------------------------------------
+
void StatusBar::EndProgressMode()
{
@@ -1482,7 +1482,7 @@ void StatusBar::EndProgressMode()
}
}
-// -----------------------------------------------------------------------
+
void StatusBar::SetText( const OUString& rText )
{
@@ -1517,7 +1517,7 @@ void StatusBar::SetText( const OUString& rText )
Window::SetText( rText );
}
-// -----------------------------------------------------------------------
+
Size StatusBar::CalcWindowSizePixel() const
{
@@ -1574,7 +1574,7 @@ Size StatusBar::CalcWindowSizePixel() const
}
-// -----------------------------------------------------------------------
+
void StatusBar::SetAccessibleName( sal_uInt16 nItemId, const OUString& rName )
{
@@ -1592,7 +1592,7 @@ void StatusBar::SetAccessibleName( sal_uInt16 nItemId, const OUString& rName )
}
}
-// -----------------------------------------------------------------------
+
const OUString& StatusBar::GetAccessibleName( sal_uInt16 nItemId ) const
{
@@ -1603,6 +1603,6 @@ const OUString& StatusBar::GetAccessibleName( sal_uInt16 nItemId ) const
return (*mpItemList)[ nPos ]->maAccessibleName;
}
-// -----------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/window/syschild.cxx b/vcl/source/window/syschild.cxx
index 203ccc5e70c7..a871d2db2914 100644
--- a/vcl/source/window/syschild.cxx
+++ b/vcl/source/window/syschild.cxx
@@ -127,7 +127,7 @@ void SystemChildWindow::ImplInitSysChild( Window* pParent, WinBits nStyle, Syste
}
}
-// -----------------------------------------------------------------------
+
SystemChildWindow::SystemChildWindow( Window* pParent, WinBits nStyle ) :
Window( WINDOW_SYSTEMCHILDWINDOW )
@@ -135,7 +135,7 @@ SystemChildWindow::SystemChildWindow( Window* pParent, WinBits nStyle ) :
ImplInitSysChild( pParent, nStyle, NULL );
}
-// -----------------------------------------------------------------------
+
SystemChildWindow::SystemChildWindow( Window* pParent, WinBits nStyle, SystemWindowData *pData, bool bShow ) :
Window( WINDOW_SYSTEMCHILDWINDOW )
@@ -143,7 +143,7 @@ SystemChildWindow::SystemChildWindow( Window* pParent, WinBits nStyle, SystemWin
ImplInitSysChild( pParent, nStyle, pData, bShow );
}
-// -----------------------------------------------------------------------
+
SystemChildWindow::~SystemChildWindow()
{
@@ -155,7 +155,7 @@ SystemChildWindow::~SystemChildWindow()
}
}
-// -----------------------------------------------------------------------
+
const SystemEnvData* SystemChildWindow::GetSystemData() const
{
@@ -165,7 +165,7 @@ const SystemEnvData* SystemChildWindow::GetSystemData() const
return NULL;
}
-// -----------------------------------------------------------------------
+
void SystemChildWindow::EnableEraseBackground( bool bEnable )
{
@@ -173,7 +173,7 @@ void SystemChildWindow::EnableEraseBackground( bool bEnable )
mpWindowImpl->mpSysObj->EnableEraseBackground( bEnable );
}
-// -----------------------------------------------------------------------
+
void SystemChildWindow::ImplTestJavaException( void* pEnv )
{
@@ -213,7 +213,7 @@ void SystemChildWindow::SetForwardKey( bool bEnable )
mpWindowImpl->mpSysObj->SetForwardKey( bEnable );
}
-// -----------------------------------------------------------------------
+
sal_IntPtr SystemChildWindow::GetParentWindowHandle( bool bUseJava )
{
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index 94ae46949227..fb87f72f0a76 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -87,7 +87,7 @@ SystemWindow::~SystemWindow()
mpImplData = NULL;
}
-// -----------------------------------------------------------------------
+
bool SystemWindow::Notify( NotifyEvent& rNEvt )
{
@@ -108,7 +108,7 @@ bool SystemWindow::Notify( NotifyEvent& rNEvt )
return Window::Notify( rNEvt );
}
-// -----------------------------------------------------------------------
+
bool SystemWindow::PreNotify( NotifyEvent& rNEvt )
{
@@ -152,7 +152,7 @@ bool SystemWindow::PreNotify( NotifyEvent& rNEvt )
return Window::PreNotify( rNEvt );
}
-// -----------------------------------------------------------------------
+
TaskPaneList* SystemWindow::GetTaskPaneList()
{
@@ -174,7 +174,7 @@ TaskPaneList* SystemWindow::GetTaskPaneList()
}
}
-// -----------------------------------------------------------------------
+
bool SystemWindow::Close()
{
@@ -203,31 +203,31 @@ bool SystemWindow::Close()
return true;
}
-// -----------------------------------------------------------------------
+
void SystemWindow::TitleButtonClick( sal_uInt16 )
{
}
-// -----------------------------------------------------------------------
+
void SystemWindow::Pin()
{
}
-// -----------------------------------------------------------------------
+
void SystemWindow::Roll()
{
}
-// -----------------------------------------------------------------------
+
void SystemWindow::Resizing( Size& )
{
}
-// -----------------------------------------------------------------------
+
void SystemWindow::SetRepresentedURL( const OUString& i_rURL )
{
@@ -244,7 +244,7 @@ void SystemWindow::SetRepresentedURL( const OUString& i_rURL )
}
}
-// -----------------------------------------------------------------------
+
void SystemWindow::SetIcon( sal_uInt16 nIcon )
{
@@ -264,7 +264,7 @@ void SystemWindow::SetIcon( sal_uInt16 nIcon )
}
}
-// -----------------------------------------------------------------------
+
void SystemWindow::EnableSaveBackground( bool bSave )
{
@@ -282,7 +282,7 @@ void SystemWindow::EnableSaveBackground( bool bSave )
}
}
-// -----------------------------------------------------------------------
+
bool SystemWindow::IsSaveBackgroundEnabled() const
{
@@ -295,7 +295,7 @@ bool SystemWindow::IsSaveBackgroundEnabled() const
return false;
}
-// -----------------------------------------------------------------------
+
void SystemWindow::ShowTitleButton( sal_uInt16 nButton, bool bVisible )
{
@@ -326,7 +326,7 @@ void SystemWindow::ShowTitleButton( sal_uInt16 nButton, bool bVisible )
return;
}
-// -----------------------------------------------------------------------
+
bool SystemWindow::IsTitleButtonVisible( sal_uInt16 nButton ) const
{
@@ -336,7 +336,7 @@ bool SystemWindow::IsTitleButtonVisible( sal_uInt16 nButton ) const
return mbHideBtn;
}
-// -----------------------------------------------------------------------
+
void SystemWindow::SetPin( bool bPin )
{
@@ -348,7 +348,7 @@ void SystemWindow::SetPin( bool bPin )
}
}
-// -----------------------------------------------------------------------
+
void SystemWindow::RollUp()
{
@@ -368,7 +368,7 @@ void SystemWindow::RollUp()
}
}
-// -----------------------------------------------------------------------
+
void SystemWindow::RollDown()
{
@@ -382,7 +382,7 @@ void SystemWindow::RollDown()
}
}
-// -----------------------------------------------------------------------
+
void SystemWindow::SetMinOutputSizePixel( const Size& rSize )
{
@@ -397,7 +397,7 @@ void SystemWindow::SetMinOutputSizePixel( const Size& rSize )
mpWindowImpl->mpFrame->SetMinClientSize( rSize.Width(), rSize.Height() );
}
-// -----------------------------------------------------------------------
+
void SystemWindow::SetMaxOutputSizePixel( const Size& rSize )
{
@@ -422,7 +422,7 @@ const Size& SystemWindow::GetMaxOutputSizePixel() const
{
return mpImplData->maMaxOutSize;
}
-// -----------------------------------------------------------------------
+
Size SystemWindow::GetResizeOutputSizePixel() const
{
@@ -434,7 +434,7 @@ Size SystemWindow::GetResizeOutputSizePixel() const
return aSize;
}
-// -----------------------------------------------------------------------
+
static void ImplWindowStateFromStr(WindowStateData& rData,
const OString& rStr)
@@ -550,7 +550,7 @@ static void ImplWindowStateFromStr(WindowStateData& rData,
rData.SetMask( nValidMask );
}
-// -----------------------------------------------------------------------
+
static OString ImplWindowStateToStr(const WindowStateData& rData)
{
@@ -596,7 +596,7 @@ static OString ImplWindowStateToStr(const WindowStateData& rData)
return rStrBuf.makeStringAndClear();
}
-// -----------------------------------------------------------------------
+
void SystemWindow::ImplMoveToScreen( long& io_rX, long& io_rY, long i_nWidth, long i_nHeight, Window* i_pConfigureWin )
{
@@ -806,7 +806,7 @@ void SystemWindow::SetWindowStateData( const WindowStateData& rData )
}
}
-// -----------------------------------------------------------------------
+
void SystemWindow::GetWindowStateData( WindowStateData& rData ) const
{
@@ -893,7 +893,7 @@ void SystemWindow::GetWindowStateData( WindowStateData& rData ) const
}
}
-// -----------------------------------------------------------------------
+
void SystemWindow::SetWindowState(const OString& rStr)
{
@@ -905,7 +905,7 @@ void SystemWindow::SetWindowState(const OString& rStr)
SetWindowStateData( aData );
}
-// -----------------------------------------------------------------------
+
OString SystemWindow::GetWindowState( sal_uLong nMask ) const
{
@@ -916,7 +916,7 @@ OString SystemWindow::GetWindowState( sal_uLong nMask ) const
return ImplWindowStateToStr(aData);
}
-// -----------------------------------------------------------------------
+
void SystemWindow::SetMenuBar( MenuBar* pMenuBar )
{
@@ -980,7 +980,7 @@ void SystemWindow::SetMenuBar( MenuBar* pMenuBar )
}
}
-// -----------------------------------------------------------------------
+
void SystemWindow::SetMenuBarMode( sal_uInt16 nMode )
{
@@ -997,7 +997,7 @@ void SystemWindow::SetMenuBarMode( sal_uInt16 nMode )
}
}
-// -----------------------------------------------------------------------
+
bool SystemWindow::ImplIsInTaskPaneList( Window* pWin )
{
diff --git a/vcl/source/window/tabdlg.cxx b/vcl/source/window/tabdlg.cxx
index 9bb2f242abc8..b2f8d718fda9 100644
--- a/vcl/source/window/tabdlg.cxx
+++ b/vcl/source/window/tabdlg.cxx
@@ -35,7 +35,7 @@ void TabDialog::ImplInitTabDialogData()
mbPosControls = true;
}
-// -----------------------------------------------------------------------
+
void TabDialog::ImplPosControls()
{
@@ -212,7 +212,7 @@ void TabDialog::ImplPosControls()
mbPosControls = false;
}
-// -----------------------------------------------------------------------
+
TabDialog::TabDialog( Window* pParent, WinBits nStyle ) :
Dialog( WINDOW_TABDIALOG )
@@ -221,7 +221,7 @@ TabDialog::TabDialog( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
TabDialog::TabDialog( Window* pParent, const ResId& rResId ) :
Dialog( WINDOW_TABDIALOG )
@@ -237,14 +237,14 @@ TabDialog::TabDialog( Window* pParent, const OString& rID, const OUString& rUIXM
ImplInitTabDialogData();
}
-// -----------------------------------------------------------------------
+
TabDialog::~TabDialog()
{
delete mpFixedLine;
}
-// -----------------------------------------------------------------------
+
void TabDialog::StateChanged( StateChangedType nType )
{
@@ -257,7 +257,7 @@ void TabDialog::StateChanged( StateChangedType nType )
Dialog::StateChanged( nType );
}
-// -----------------------------------------------------------------------
+
void TabDialog::AdjustLayout()
{
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index 8c64ba7e20e2..a8cbdb528404 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -49,7 +49,7 @@ void TabPage::ImplInit( Window* pParent, WinBits nStyle )
EnableChildTransparentMode( true );
}
-// -----------------------------------------------------------------------
+
void TabPage::ImplInitSettings()
{
@@ -74,7 +74,7 @@ void TabPage::ImplInitSettings()
}
}
-// -----------------------------------------------------------------------
+
TabPage::TabPage( Window* pParent, WinBits nStyle ) :
Window( WINDOW_TABPAGE )
@@ -82,7 +82,7 @@ TabPage::TabPage( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
TabPage::TabPage( Window* pParent, const ResId& rResId ) :
Window( WINDOW_TABPAGE )
@@ -103,7 +103,7 @@ TabPage::TabPage(Window *pParent, const OString& rID, const OUString& rUIXMLDesc
m_pUIBuilder = new VclBuilder(this, getUIRootDir(), rUIXMLDescription, rID);
}
-// -----------------------------------------------------------------------
+
void TabPage::StateChanged( StateChangedType nType )
{
@@ -123,7 +123,7 @@ void TabPage::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void TabPage::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -137,7 +137,7 @@ void TabPage::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
void TabPage::Paint( const Rectangle& )
{
@@ -161,7 +161,7 @@ void TabPage::Paint( const Rectangle& )
}
}
-// -----------------------------------------------------------------------
+
void TabPage::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong )
{
Point aPos = pDev->LogicToPixel( rPos );
@@ -189,13 +189,13 @@ void TabPage::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sa
pDev->Pop();
}
-// -----------------------------------------------------------------------
+
void TabPage::ActivatePage()
{
}
-// -----------------------------------------------------------------------
+
void TabPage::DeactivatePage()
{
diff --git a/vcl/source/window/taskpanelist.cxx b/vcl/source/window/taskpanelist.cxx
index b111106dac21..da13a444f259 100644
--- a/vcl/source/window/taskpanelist.cxx
+++ b/vcl/source/window/taskpanelist.cxx
@@ -75,7 +75,7 @@ struct LTRSortBackward : public ::std::binary_function< const Window*, const Win
}
};
-// --------------------------------------------------
+
static void ImplTaskPaneListGrabFocus( Window *pWindow, bool bForward )
{
@@ -86,7 +86,7 @@ static void ImplTaskPaneListGrabFocus( Window *pWindow, bool bForward )
pWindow->ImplGrabFocus( GETFOCUS_F6 | (bForward ? GETFOCUS_FORWARD : GETFOCUS_BACKWARD));
}
-// --------------------------------------------------
+
TaskPaneList::TaskPaneList()
{
@@ -96,7 +96,7 @@ TaskPaneList::~TaskPaneList()
{
}
-// --------------------------------------------------
+
void TaskPaneList::AddWindow( Window *pWindow )
{
@@ -136,7 +136,7 @@ void TaskPaneList::AddWindow( Window *pWindow )
}
}
-// --------------------------------------------------
+
void TaskPaneList::RemoveWindow( Window *pWindow )
{
@@ -149,7 +149,7 @@ void TaskPaneList::RemoveWindow( Window *pWindow )
}
}
-// --------------------------------------------------
+
bool TaskPaneList::IsInList( Window *pWindow )
{
@@ -161,7 +161,7 @@ bool TaskPaneList::IsInList( Window *pWindow )
return false;
}
-// --------------------------------------------------
+
bool TaskPaneList::HandleKeyEvent( KeyEvent aKeyEvent )
{
@@ -249,7 +249,7 @@ bool TaskPaneList::HandleKeyEvent( KeyEvent aKeyEvent )
return false;
}
-// --------------------------------------------------
+
// returns next splitter
Window* TaskPaneList::FindNextSplitter( Window *pWindow, bool bForward )
@@ -288,7 +288,7 @@ Window* TaskPaneList::FindNextSplitter( Window *pWindow, bool bForward )
return pWindow;
}
-// --------------------------------------------------
+
// returns first valid item (regardless of type) if pWindow==0, otherwise returns next valid float
Window* TaskPaneList::FindNextFloat( Window *pWindow, bool bForward )
@@ -332,6 +332,6 @@ Window* TaskPaneList::FindNextFloat( Window *pWindow, bool bForward )
return pWindow;
}
-// --------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index c89bb59c9298..175af19aa236 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -60,7 +60,7 @@
#define SMALLBUTTON_OFF_NORMAL_X 3
#define SMALLBUTTON_OFF_NORMAL_Y 3
-// -----------------------------------------------------------------------
+
#define TB_TEXTOFFSET 2
#define TB_IMAGETEXTOFFSET 3
@@ -91,9 +91,9 @@
#define DOCK_LINEOFFSET 3
-// -----------------------------------------------------------------------
+
static void ImplDrawButton( ToolBox* pThis, const Rectangle &rRect, sal_uInt16 highlight, bool bChecked, bool bEnabled, bool bIsWindow );
-// -----------------------------------------------------------------------
+
typedef ::std::vector< ToolBox* > ImplTBList;
@@ -149,7 +149,7 @@ public:
bool IsResizeMode() { return mbResizeMode; }
};
-// -----------------------------------------------------------------------
+
static ImplTBDragMgr* ImplGetTBDragMgr()
{
@@ -159,7 +159,7 @@ static ImplTBDragMgr* ImplGetTBDragMgr()
return pSVData->maCtrlData.mpTBDragMgr;
}
-// -----------------------------------------------------------------------
+
int ToolBox::ImplGetDragWidth( ToolBox* pThis )
{
@@ -198,7 +198,7 @@ ButtonType determineButtonType( ImplToolItem* pItem, ButtonType defaultType )
return tmpButtonType;
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplUpdateDragArea( ToolBox *pThis )
{
@@ -217,7 +217,7 @@ void ToolBox::ImplUpdateDragArea( ToolBox *pThis )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplCalcBorder( WindowAlign eAlign, long& rLeft, long& rTop,
long& rRight, long& rBottom, const ToolBox *pThis )
@@ -267,7 +267,7 @@ void ToolBox::ImplCalcBorder( WindowAlign eAlign, long& rLeft, long& rTop,
}
}
-// -----------------------------------------------------------------------
+
static void ImplCheckUpdate( ToolBox *pThis )
{
@@ -281,7 +281,7 @@ static void ImplCheckUpdate( ToolBox *pThis )
pThis->Update();
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplDrawGrip( ToolBox* pThis )
{
@@ -663,7 +663,7 @@ void ToolBox::ImplDrawBorder( ToolBox* pWin )
}
}
-// -----------------------------------------------------------------------
+
static bool ImplIsFixedControl( const ImplToolItem *pItem )
{
@@ -673,7 +673,7 @@ static bool ImplIsFixedControl( const ImplToolItem *pItem )
pItem->mpWindow->GetType() == WINDOW_GROUPBOX) );
}
-// -----------------------------------------------------------------------
+
const ImplToolItem *ToolBox::ImplGetFirstClippedItem( const ToolBox* pThis )
{
@@ -688,7 +688,7 @@ const ImplToolItem *ToolBox::ImplGetFirstClippedItem( const ToolBox* pThis )
return NULL;
}
-// -----------------------------------------------------------------------
+
Size ToolBox::ImplCalcSize( const ToolBox* pThis, sal_uInt16 nCalcLines, sal_uInt16 nCalcMode )
{
@@ -806,7 +806,7 @@ Size ToolBox::ImplCalcSize( const ToolBox* pThis, sal_uInt16 nCalcLines, sal_uIn
return aSize;
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplCalcFloatSizes( ToolBox* pThis )
{
@@ -873,7 +873,7 @@ void ToolBox::ImplCalcFloatSizes( ToolBox* pThis )
}
}
-// -----------------------------------------------------------------------
+
Size ToolBox::ImplCalcFloatSize( ToolBox* pThis, sal_uInt16& rLines )
{
@@ -900,7 +900,7 @@ Size ToolBox::ImplCalcFloatSize( ToolBox* pThis, sal_uInt16& rLines )
return aSize;
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplCalcMinMaxFloatSize( ToolBox* pThis, Size& rMinSize, Size& rMaxSize )
{
@@ -942,7 +942,7 @@ void ToolBox::ImplSetMinMaxFloatSize( ToolBox *pThis )
}
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ToolBox::ImplCalcLines( ToolBox* pThis, long nToolSize )
@@ -976,7 +976,7 @@ sal_uInt16 ToolBox::ImplCalcLines( ToolBox* pThis, long nToolSize )
return static_cast<sal_uInt16>(nLines);
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ToolBox::ImplTestLineSize( ToolBox* pThis, const Point& rPos )
{
@@ -1010,7 +1010,7 @@ sal_uInt16 ToolBox::ImplTestLineSize( ToolBox* pThis, const Point& rPos )
return 0;
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplLineSizing( ToolBox* pThis, const Point& rPos, Rectangle& rRect,
sal_uInt16 nLineMode )
@@ -1106,7 +1106,7 @@ void ToolBox::ImplLineSizing( ToolBox* pThis, const Point& rPos, Rectangle& rRec
pThis->mnDockLines = i;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ToolBox::ImplFindItemPos( ToolBox* pBox, const Point& rPos )
{
@@ -1170,7 +1170,7 @@ sal_uInt16 ToolBox::ImplFindItemPos( ToolBox* pBox, const Point& rPos )
return nPos;
}
-// -----------------------------------------------------------------------
+
ImplTBDragMgr::ImplTBDragMgr()
{
@@ -1187,14 +1187,14 @@ ImplTBDragMgr::ImplTBDragMgr()
maAccel.SetSelectHdl( LINK( this, ImplTBDragMgr, SelectHdl ) );
}
-// -----------------------------------------------------------------------
+
ImplTBDragMgr::~ImplTBDragMgr()
{
delete mpBoxList;
}
-// -----------------------------------------------------------------------
+
ToolBox* ImplTBDragMgr::FindToolBox( const Rectangle& rRect )
{
@@ -1225,7 +1225,7 @@ ToolBox* ImplTBDragMgr::FindToolBox( const Rectangle& rRect )
return NULL;
}
-// -----------------------------------------------------------------------
+
void ImplTBDragMgr::StartDragging( ToolBox* pToolBox,
const Point& rPos, const Rectangle& rRect,
@@ -1270,7 +1270,7 @@ void ImplTBDragMgr::StartDragging( ToolBox* pToolBox,
pToolBox->ShowTracking( maRect );
}
-// -----------------------------------------------------------------------
+
void ImplTBDragMgr::Dragging( const Point& rPos )
{
@@ -1304,7 +1304,7 @@ void ImplTBDragMgr::Dragging( const Point& rPos )
}
}
-// -----------------------------------------------------------------------
+
void ImplTBDragMgr::EndDragging( bool bOK )
{
@@ -1392,7 +1392,7 @@ void ImplTBDragMgr::EndDragging( bool bOK )
mpDragBox = NULL;
}
-// -----------------------------------------------------------------------
+
void ImplTBDragMgr::UpdateDragRect()
{
@@ -1403,7 +1403,7 @@ void ImplTBDragMgr::UpdateDragRect()
mpDragBox->ShowTracking( maRect );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( ImplTBDragMgr, SelectHdl, Accelerator*, pAccel )
{
@@ -1415,7 +1415,7 @@ IMPL_LINK( ImplTBDragMgr, SelectHdl, Accelerator*, pAccel )
return sal_True;
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplInit( Window* pParent, WinBits nStyle )
{
@@ -1496,7 +1496,7 @@ void ToolBox::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings( true, true, true );
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplInitSettings( bool bFont,
bool bForeground, bool bBackground )
@@ -1563,7 +1563,7 @@ void ToolBox::ImplInitSettings( bool bFont,
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplLoadRes( const ResId& rResId )
{
@@ -1620,7 +1620,7 @@ void ToolBox::ImplLoadRes( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
ToolBox::ToolBox( Window* pParent, WinBits nStyle ) :
DockingWindow( WINDOW_TOOLBOX )
@@ -1628,7 +1628,7 @@ ToolBox::ToolBox( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-// -----------------------------------------------------------------------
+
ToolBox::ToolBox( Window* pParent, const ResId& rResId ) :
DockingWindow( WINDOW_TOOLBOX )
@@ -1651,7 +1651,7 @@ ToolBox::ToolBox( Window* pParent, const ResId& rResId ) :
Show();
}
-// -----------------------------------------------------------------------
+
ToolBox::~ToolBox()
{
@@ -1688,7 +1688,7 @@ ToolBox::~ToolBox()
}
}
-// -----------------------------------------------------------------------
+
ImplToolItem* ToolBox::ImplGetItem( sal_uInt16 nItemId ) const
{
@@ -1702,7 +1702,7 @@ ImplToolItem* ToolBox::ImplGetItem( sal_uInt16 nItemId ) const
return NULL;
}
-// -----------------------------------------------------------------------
+
static void ImplAddButtonBorder( long &rWidth, long& rHeight, bool bNativeButtons )
{
@@ -1717,7 +1717,7 @@ static void ImplAddButtonBorder( long &rWidth, long& rHeight, bool bNativeButton
}
}
-// -----------------------------------------------------------------------
+
bool ToolBox::ImplCalcItem()
{
@@ -2005,7 +2005,7 @@ bool ToolBox::ImplCalcItem()
return false;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ToolBox::ImplCalcBreaks( long nWidth, long* pMaxLineWidth, bool bCalcHorz )
{
@@ -2156,7 +2156,7 @@ sal_uInt16 ToolBox::ImplCalcBreaks( long nWidth, long* pMaxLineWidth, bool bCalc
return nLines;
}
-// -----------------------------------------------------------------------
+
Size ToolBox::ImplGetOptimalFloatingSize()
{
@@ -2708,7 +2708,7 @@ void ToolBox::ImplFormat( bool bResize )
mbFormat = false;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ToolBox, ImplDropdownLongClickHdl)
{
@@ -2739,7 +2739,7 @@ IMPL_LINK_NOARG(ToolBox, ImplDropdownLongClickHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ToolBox, ImplUpdateHdl)
{
@@ -2750,7 +2750,7 @@ IMPL_LINK_NOARG(ToolBox, ImplUpdateHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
static void ImplDrawMoreIndicator( ToolBox *pBox, const Rectangle& rRect, bool bSetColor, bool bRotate )
{
Color aOldFillColor = pBox->GetFillColor();
@@ -2878,7 +2878,7 @@ static void ImplDrawDropdownArrow( ToolBox *pBox, const Rectangle& rDropDownRect
pBox->SetLineColor( );
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplDrawMenubutton( ToolBox *pThis, bool bHighlight )
{
@@ -2920,7 +2920,7 @@ void ToolBox::ImplDrawMenubutton( ToolBox *pThis, bool bHighlight )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplDrawSpin( bool bUpperIn, bool bLowerIn )
{
@@ -2951,7 +2951,7 @@ void ToolBox::ImplDrawSpin( bool bUpperIn, bool bLowerIn )
bUpperIn, bLowerIn, bTmpUpper, bTmpLower, !mbHorz );
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplDrawSeparator( sal_uInt16 nPos, Rectangle rRect )
{
@@ -3000,7 +3000,7 @@ void ToolBox::ImplDrawSeparator( sal_uInt16 nPos, Rectangle rRect )
}
}
-// -----------------------------------------------------------------------
+
static void ImplDrawButton( ToolBox* pThis, const Rectangle &rRect, sal_uInt16 highlight, bool bChecked, bool bEnabled, bool bIsWindow )
{
@@ -3356,7 +3356,7 @@ void ToolBox::ImplDrawItem( sal_uInt16 nPos, sal_uInt16 nHighlight, bool bPaint,
pMgr->UpdateDragRect();
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplDrawFloatwinBorder( ImplToolItem* pItem )
{
@@ -3431,7 +3431,7 @@ void ToolBox::ImplFloatControl( bool bStart, FloatingWindow* pFloatWindow )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::ShowLine( bool bNext )
{
@@ -3466,7 +3466,7 @@ void ToolBox::ShowLine( bool bNext )
ImplFormat();
}
-// -----------------------------------------------------------------------
+
bool ToolBox::ImplHandleMouseMove( const MouseEvent& rMEvt, bool bRepeat )
{
@@ -3528,7 +3528,7 @@ bool ToolBox::ImplHandleMouseMove( const MouseEvent& rMEvt, bool bRepeat )
return false;
}
-// -----------------------------------------------------------------------
+
bool ToolBox::ImplHandleMouseButtonUp( const MouseEvent& rMEvt, bool bCancel )
{
@@ -3646,7 +3646,7 @@ bool ToolBox::ImplHandleMouseButtonUp( const MouseEvent& rMEvt, bool bCancel )
return false;
}
-// -----------------------------------------------------------------------
+
void ToolBox::MouseMove( const MouseEvent& rMEvt )
{
@@ -3867,7 +3867,7 @@ void ToolBox::MouseMove( const MouseEvent& rMEvt )
DockingWindow::MouseMove( rMEvt );
}
-// -----------------------------------------------------------------------
+
void ToolBox::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -4093,7 +4093,7 @@ void ToolBox::MouseButtonDown( const MouseEvent& rMEvt )
DockingWindow::MouseButtonDown( rMEvt );
}
-// -----------------------------------------------------------------------
+
void ToolBox::MouseButtonUp( const MouseEvent& rMEvt )
{
@@ -4111,7 +4111,7 @@ void ToolBox::MouseButtonUp( const MouseEvent& rMEvt )
DockingWindow::MouseButtonUp( rMEvt );
}
-// -----------------------------------------------------------------------
+
void ToolBox::Tracking( const TrackingEvent& rTEvt )
{
@@ -4130,7 +4130,7 @@ void ToolBox::Tracking( const TrackingEvent& rTEvt )
DockingWindow::Tracking( rTEvt );
}
-// -----------------------------------------------------------------------
+
void ToolBox::Paint( const Rectangle& rPaintRect )
{
@@ -4185,14 +4185,14 @@ void ToolBox::Paint( const Rectangle& rPaintRect )
ImplShowFocus();
}
-// -----------------------------------------------------------------------
+
void ToolBox::Move()
{
DockingWindow::Move();
}
-// -----------------------------------------------------------------------
+
void ToolBox::Resize()
{
@@ -4302,7 +4302,7 @@ void ToolBox::Resize()
}
}
-// -----------------------------------------------------------------------
+
const OUString& ToolBox::ImplGetHelpText( sal_uInt16 nItemId ) const
{
ImplToolItem* pItem = ImplGetItem( nItemId );
@@ -4324,7 +4324,7 @@ const OUString& ToolBox::ImplGetHelpText( sal_uInt16 nItemId ) const
return pItem->maHelpText;
}
-// -----------------------------------------------------------------------
+
void ToolBox::RequestHelp( const HelpEvent& rHEvt )
{
@@ -4401,7 +4401,7 @@ void ToolBox::RequestHelp( const HelpEvent& rHEvt )
DockingWindow::RequestHelp( rHEvt );
}
-// -----------------------------------------------------------------------
+
bool ToolBox::Notify( NotifyEvent& rNEvt )
{
@@ -4486,7 +4486,7 @@ bool ToolBox::Notify( NotifyEvent& rNEvt )
return DockingWindow::Notify( rNEvt );
}
-// -----------------------------------------------------------------------
+
void ToolBox::Command( const CommandEvent& rCEvt )
{
@@ -4552,7 +4552,7 @@ void ToolBox::Command( const CommandEvent& rCEvt )
DockingWindow::Command( rCEvt );
}
-// -----------------------------------------------------------------------
+
void ToolBox::StateChanged( StateChangedType nType )
{
@@ -4590,7 +4590,7 @@ void ToolBox::StateChanged( StateChangedType nType )
maStateChangedHandler.Call( &nType );
}
-// -----------------------------------------------------------------------
+
void ToolBox::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -4612,14 +4612,14 @@ void ToolBox::DataChanged( const DataChangedEvent& rDCEvt )
maDataChangedHandler.Call( (void*)&rDCEvt );
}
-// -----------------------------------------------------------------------
+
bool ToolBox::PrepareToggleFloatingMode()
{
return DockingWindow::PrepareToggleFloatingMode();
}
-// -----------------------------------------------------------------------
+
void ToolBox::ToggleFloatingMode()
{
@@ -4663,7 +4663,7 @@ void ToolBox::ToggleFloatingMode()
ImplFormat();
}
-// -----------------------------------------------------------------------
+
void ToolBox::StartDocking()
{
@@ -4673,7 +4673,7 @@ void ToolBox::StartDocking()
DockingWindow::StartDocking();
}
-// -----------------------------------------------------------------------
+
bool ToolBox::Docking( const Point& rPos, Rectangle& rRect )
{
@@ -4799,7 +4799,7 @@ bool ToolBox::Docking( const Point& rPos, Rectangle& rRect )
return bFloatMode;
}
-// -----------------------------------------------------------------------
+
void ToolBox::EndDocking( const Rectangle& rRect, sal_Bool bFloatMode )
{
@@ -4814,7 +4814,7 @@ void ToolBox::EndDocking( const Rectangle& rRect, sal_Bool bFloatMode )
DockingWindow::EndDocking( rRect, bFloatMode );
}
-// -----------------------------------------------------------------------
+
void ToolBox::Resizing( Size& rSize )
{
@@ -4960,7 +4960,7 @@ Size ToolBox::CalcFloatingWindowSizePixel( sal_uInt16 nCalcLines ) const
return aSize;
}
-// -----------------------------------------------------------------------
+
Size ToolBox::CalcMinimumWindowSizePixel() const
{
@@ -5003,7 +5003,7 @@ Size ToolBox::CalcMinimumWindowSizePixel() const
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::EnableCustomize( bool bEnable )
{
@@ -5019,14 +5019,14 @@ void ToolBox::EnableCustomize( bool bEnable )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::GetFocus()
{
DockingWindow::GetFocus();
}
-// -----------------------------------------------------------------------
+
void ToolBox::LoseFocus()
{
@@ -5035,7 +5035,7 @@ void ToolBox::LoseFocus()
DockingWindow::LoseFocus();
}
-// -----------------------------------------------------------------------
+
// performs the action associated with an item, ie simulates clicking the item
void ToolBox::TriggerItem( sal_uInt16 nItemId, bool bShift, bool bCtrl )
@@ -5050,7 +5050,7 @@ void ToolBox::TriggerItem( sal_uInt16 nItemId, bool bShift, bool bCtrl )
ImplActivateItem( aKeyCode );
}
-// -----------------------------------------------------------------------
+
// calls the button's action handler
// returns sal_True if action was called
@@ -5114,7 +5114,7 @@ bool ToolBox::ImplActivateItem( KeyCode aKeyCode )
return bRet;
}
-// -----------------------------------------------------------------------
+
bool ImplCloseLastPopup( Window *pParent )
{
@@ -5181,7 +5181,7 @@ bool ToolBox::ImplOpenItem( KeyCode aKeyCode )
return bRet;
}
-// -----------------------------------------------------------------------
+
void ToolBox::KeyInput( const KeyEvent& rKEvt )
{
@@ -5371,7 +5371,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
DockingWindow::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
+
// returns the current toolbox line of the item
sal_uInt16 ToolBox::ImplGetItemLine( ImplToolItem* pCurrentItem )
@@ -5421,7 +5421,7 @@ ImplToolItem* ToolBox::ImplGetFirstValidItem( sal_uInt16 nLine )
return (it == mpData->m_aItems.end()) ? NULL : &(*it);
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ToolBox::ImplFindItemPos( const ImplToolItem* pItem, const std::vector< ImplToolItem >& rList )
{
@@ -5519,7 +5519,7 @@ void ToolBox::ImplChangeHighlight( ImplToolItem* pItem, bool bNoGrabFocus )
mbChangingHighlight = false;
}
-// -----------------------------------------------------------------------
+
// check for keyboard accessible items
static bool ImplIsValidItem( const ImplToolItem* pItem, bool bNotClipped )
@@ -5530,7 +5530,7 @@ static bool ImplIsValidItem( const ImplToolItem* pItem, bool bNotClipped )
return bValid;
}
-// -----------------------------------------------------------------------
+
bool ToolBox::ImplChangeHighlightUpDn( bool bUp, bool bNoCycle )
{
@@ -5693,7 +5693,7 @@ bool ToolBox::ImplChangeHighlightUpDn( bool bUp, bool bNoCycle )
return true;
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplShowFocus()
{
@@ -5709,7 +5709,7 @@ void ToolBox::ImplShowFocus()
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplHideFocus()
{
@@ -5731,7 +5731,7 @@ void ToolBox::ImplHideFocus()
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplDisableFlatButtons()
{
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 72039beca9bc..f1aad48bcf7b 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -60,7 +60,7 @@ using namespace com::sun::star;
#define TB_SEP_SIZE 8
-// -----------------------------------------------------------------------
+
ImplToolBoxPrivateData::ImplToolBoxPrivateData() :
m_pLayoutData( NULL ),
@@ -97,7 +97,7 @@ ImplToolBoxPrivateData::~ImplToolBoxPrivateData()
delete mpMenu;
}
-// -----------------------------------------------------------------------
+
void ImplToolItem::init(sal_uInt16 nItemId, ToolBoxItemBits nItemBits,
bool bEmptyBtn)
{
@@ -125,7 +125,7 @@ ImplToolItem::ImplToolItem()
init(0, 0, true);
}
-// -----------------------------------------------------------------------
+
ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const Image& rImage,
ToolBoxItemBits nItemBits ) :
@@ -134,7 +134,7 @@ ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const Image& rImage,
init(nItemId, nItemBits, false);
}
-// -----------------------------------------------------------------------
+
ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const OUString& rText,
ToolBoxItemBits nItemBits ) :
@@ -143,7 +143,7 @@ ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const OUString& rText,
init(nItemId, nItemBits, false);
}
-// -----------------------------------------------------------------------
+
ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const Image& rImage,
const OUString& rText, ToolBoxItemBits nItemBits ) :
@@ -153,7 +153,7 @@ ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const Image& rImage,
init(nItemId, nItemBits, false);
}
-// -----------------------------------------------------------------------
+
ImplToolItem::ImplToolItem( const ImplToolItem& rItem ) :
mpWindow ( rItem.mpWindow ),
@@ -188,13 +188,13 @@ ImplToolItem::ImplToolItem( const ImplToolItem& rItem ) :
{
}
-// -----------------------------------------------------------------------
+
ImplToolItem::~ImplToolItem()
{
}
-// -----------------------------------------------------------------------
+
ImplToolItem& ImplToolItem::operator=( const ImplToolItem& rItem )
{
@@ -230,7 +230,7 @@ ImplToolItem& ImplToolItem::operator=( const ImplToolItem& rItem )
return *this;
}
-// -----------------------------------------------------------------------
+
Size ImplToolItem::GetSize( bool bHorz, bool bCheckMaxWidth, long maxWidth, const Size& rDefaultSize )
{
@@ -284,7 +284,7 @@ Size ImplToolItem::GetSize( bool bHorz, bool bCheckMaxWidth, long maxWidth, cons
return aSize;
}
-// -----------------------------------------------------------------------
+
void ImplToolItem::DetermineButtonDrawStyle( ButtonType eButtonType, bool& rbImage, bool& rbText ) const
{
@@ -344,7 +344,7 @@ void ImplToolItem::DetermineButtonDrawStyle( ButtonType eButtonType, bool& rbIma
}
}
-// -----------------------------------------------------------------------
+
Rectangle ImplToolItem::GetDropDownRect( bool bHorz ) const
{
@@ -362,22 +362,22 @@ Rectangle ImplToolItem::GetDropDownRect( bool bHorz ) const
return aRect;
}
-// -----------------------------------------------------------------------
+
bool ImplToolItem::IsClipped() const
{
return ( meType == TOOLBOXITEM_BUTTON && mbVisible && maRect.IsEmpty() );
}
-// -----------------------------------------------------------------------
+
bool ImplToolItem::IsItemHidden() const
{
return ( meType == TOOLBOXITEM_BUTTON && !mbVisible );
}
-// -----------------------------------------------------------------------
-// -----------------------------------------------------------------------
+
+
const OUString ToolBox::ImplConvertMenuString( const OUString& rStr )
{
@@ -388,7 +388,7 @@ const OUString ToolBox::ImplConvertMenuString( const OUString& rStr )
return aCvtStr;
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplInvalidate( bool bNewCalc, bool bFullPaint )
{
@@ -425,7 +425,7 @@ void ToolBox::ImplInvalidate( bool bNewCalc, bool bFullPaint )
ImplCallEventListeners( VCLEVENT_TOOLBOX_FORMATCHANGED );
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplUpdateItem( sal_uInt16 nIndex )
{
@@ -451,7 +451,7 @@ void ToolBox::ImplUpdateItem( sal_uInt16 nIndex )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::Click()
{
@@ -459,7 +459,7 @@ void ToolBox::Click()
maClickHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void ToolBox::DoubleClick()
{
@@ -467,7 +467,7 @@ void ToolBox::DoubleClick()
maDoubleClickHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void ToolBox::Activate()
{
@@ -476,7 +476,7 @@ void ToolBox::Activate()
maActivateHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void ToolBox::Deactivate()
{
@@ -485,7 +485,7 @@ void ToolBox::Deactivate()
maDeactivateHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void ToolBox::Highlight()
{
@@ -493,7 +493,7 @@ void ToolBox::Highlight()
maHighlightHdl.Call( this );
}
-// -----------------------------------------------------------------------
+
void ToolBox::Select()
{
@@ -513,19 +513,19 @@ void ToolBox::Select()
pWrapper->GetFloatingWindow()->EndPopupMode();
}
-// -----------------------------------------------------------------------
+
void ToolBox::Customize( const ToolBoxCustomizeEvent& )
{
}
-// -----------------------------------------------------------------------
+
void ToolBox::UserDraw( const UserDrawEvent& )
{
}
-// -----------------------------------------------------------------------
+
void ToolBox::InsertItem( const ResId& rResId, sal_uInt16 nPos )
{
@@ -618,7 +618,7 @@ void ToolBox::InsertItem( const ResId& rResId, sal_uInt16 nPos )
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
}
-// -----------------------------------------------------------------------
+
void ToolBox::InsertItem( sal_uInt16 nItemId, const Image& rImage,
ToolBoxItemBits nBits, sal_uInt16 nPos )
@@ -639,7 +639,7 @@ void ToolBox::InsertItem( sal_uInt16 nItemId, const Image& rImage,
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >(nNewPos ) );
}
-// -----------------------------------------------------------------------
+
void ToolBox::InsertItem( sal_uInt16 nItemId, const Image& rImage,
const OUString& rText,
@@ -661,7 +661,7 @@ void ToolBox::InsertItem( sal_uInt16 nItemId, const Image& rImage,
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
}
-// -----------------------------------------------------------------------
+
void ToolBox::InsertItem( sal_uInt16 nItemId, const OUString& rText,
ToolBoxItemBits nBits, sal_uInt16 nPos )
@@ -798,7 +798,7 @@ void ToolBox::InsertItem(const OUString& rCommand, const uno::Reference<frame::X
pItem->maMinimalItemSize = rRequestedSize;
}
-// -----------------------------------------------------------------------
+
void ToolBox::InsertWindow( sal_uInt16 nItemId, Window* pWindow,
ToolBoxItemBits nBits, sal_uInt16 nPos )
@@ -826,7 +826,7 @@ void ToolBox::InsertWindow( sal_uInt16 nItemId, Window* pWindow,
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
}
-// -----------------------------------------------------------------------
+
void ToolBox::InsertSpace( sal_uInt16 nPos )
{
@@ -844,7 +844,7 @@ void ToolBox::InsertSpace( sal_uInt16 nPos )
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
}
-// -----------------------------------------------------------------------
+
void ToolBox::InsertSeparator( sal_uInt16 nPos, sal_uInt16 nPixSize )
{
@@ -864,7 +864,7 @@ void ToolBox::InsertSeparator( sal_uInt16 nPos, sal_uInt16 nPixSize )
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
}
-// -----------------------------------------------------------------------
+
void ToolBox::InsertBreak( sal_uInt16 nPos )
{
@@ -882,7 +882,7 @@ void ToolBox::InsertBreak( sal_uInt16 nPos )
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
}
-// -----------------------------------------------------------------------
+
void ToolBox::RemoveItem( sal_uInt16 nPos )
{
@@ -916,7 +916,7 @@ void ToolBox::RemoveItem( sal_uInt16 nPos )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::CopyItem( const ToolBox& rToolBox, sal_uInt16 nItemId,
sal_uInt16 nNewPos )
@@ -946,7 +946,7 @@ void ToolBox::CopyItem( const ToolBox& rToolBox, sal_uInt16 nItemId,
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::Clear()
{
@@ -963,7 +963,7 @@ void ToolBox::Clear()
ImplCallEventListeners( VCLEVENT_TOOLBOX_ALLITEMSCHANGED );
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetButtonType( ButtonType eNewType )
{
@@ -977,7 +977,7 @@ void ToolBox::SetButtonType( ButtonType eNewType )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetToolboxButtonSize( ToolBoxButtonSize eSize )
{
@@ -994,7 +994,7 @@ ToolBoxButtonSize ToolBox::GetToolboxButtonSize() const
return mpData->meButtonSize;
}
-// -----------------------------------------------------------------------
+
/*static*/ Size
ToolBox::GetDefaultImageSize(bool bLarge)
@@ -1013,7 +1013,7 @@ Size ToolBox::GetDefaultImageSize() const
return GetDefaultImageSize( GetToolboxButtonSize() == TOOLBOX_BUTTONSIZE_LARGE );
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetAlign( WindowAlign eNewAlign )
{
@@ -1041,7 +1041,7 @@ void ToolBox::SetAlign( WindowAlign eNewAlign )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetLineCount( sal_uInt16 nNewLines )
{
@@ -1058,28 +1058,28 @@ void ToolBox::SetLineCount( sal_uInt16 nNewLines )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetPageScroll( bool b )
{
mpData->mbPageScroll = b;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ToolBox::GetItemCount() const
{
return (sal_uInt16)mpData->m_aItems.size();
}
-// -----------------------------------------------------------------------
+
ToolBoxItemType ToolBox::GetItemType( sal_uInt16 nPos ) const
{
return (nPos < mpData->m_aItems.size()) ? mpData->m_aItems[nPos].meType : TOOLBOXITEM_DONTKNOW;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ToolBox::GetItemPos( sal_uInt16 nItemId ) const
{
@@ -1091,7 +1091,7 @@ sal_uInt16 ToolBox::GetItemPos( sal_uInt16 nItemId ) const
return TOOLBOX_ITEM_NOTFOUND;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ToolBox::GetItemPos( const Point& rPos ) const
{
@@ -1115,14 +1115,14 @@ sal_uInt16 ToolBox::GetItemPos( const Point& rPos ) const
return nRet;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ToolBox::GetItemId( sal_uInt16 nPos ) const
{
return (nPos < mpData->m_aItems.size()) ? mpData->m_aItems[nPos].mnId : 0;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 ToolBox::GetItemId( const Point& rPos ) const
{
@@ -1156,7 +1156,7 @@ sal_uInt16 ToolBox::GetItemId(const OUString &rCommand) const
return 0;
}
-// -----------------------------------------------------------------------
+
Point ToolBox::ImplGetPopupPosition( const Rectangle& rRect, const Size& rSize ) const
{
@@ -1218,7 +1218,7 @@ Point ToolBox::GetItemPopupPosition( sal_uInt16 nItemId, const Size& rSize ) con
return ImplGetPopupPosition( GetItemRect( nItemId ), rSize );
}
-// -----------------------------------------------------------------------
+
Rectangle ToolBox::GetItemRect( sal_uInt16 nItemId ) const
{
@@ -1229,7 +1229,7 @@ Rectangle ToolBox::GetItemRect( sal_uInt16 nItemId ) const
return GetItemPosRect( nPos );
}
-// -----------------------------------------------------------------------
+
Rectangle ToolBox::GetItemPosRect( sal_uInt16 nPos ) const
{
@@ -1254,7 +1254,7 @@ Size ToolBox::GetItemContentSize( sal_uInt16 nItemId ) const
return Size();
}
-// -----------------------------------------------------------------------
+
bool ToolBox::ImplHasExternalMenubutton()
{
@@ -1269,7 +1269,7 @@ bool ToolBox::ImplHasExternalMenubutton()
}
return bRet;
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetItemBits( sal_uInt16 nItemId, ToolBoxItemBits nBits )
{
@@ -1288,7 +1288,7 @@ void ToolBox::SetItemBits( sal_uInt16 nItemId, ToolBoxItemBits nBits )
}
}
-// -----------------------------------------------------------------------
+
ToolBoxItemBits ToolBox::GetItemBits( sal_uInt16 nItemId ) const
{
@@ -1313,7 +1313,7 @@ void ToolBox::SetItemExpand( sal_uInt16 nItemId, bool bExpand )
}
}
-// -----------------------------------------------------------------------
+
bool ToolBox::GetItemExpand( sal_uInt16 nItemId ) const
{
@@ -1323,7 +1323,7 @@ bool ToolBox::GetItemExpand( sal_uInt16 nItemId ) const
return pItem->mbExpand;
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetItemData( sal_uInt16 nItemId, void* pNewData )
{
@@ -1336,7 +1336,7 @@ void ToolBox::SetItemData( sal_uInt16 nItemId, void* pNewData )
}
}
-// -----------------------------------------------------------------------
+
void* ToolBox::GetItemData( sal_uInt16 nItemId ) const
{
@@ -1348,7 +1348,7 @@ void* ToolBox::GetItemData( sal_uInt16 nItemId ) const
return NULL;
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage )
{
@@ -1388,7 +1388,7 @@ void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetImageList( const ImageList& rImageList )
{
@@ -1405,7 +1405,7 @@ void ToolBox::SetImageList( const ImageList& rImageList )
}
}
-// -----------------------------------------------------------------------
+
static Image ImplRotImage( const Image& rImage, long nAngle10 )
{
@@ -1448,7 +1448,7 @@ void ToolBox::SetItemImageAngle( sal_uInt16 nItemId, long nAngle10 )
}
}
-// -----------------------------------------------------------------------
+
static Image ImplMirrorImage( const Image& rImage )
{
@@ -1486,7 +1486,7 @@ void ToolBox::SetItemImageMirrorMode( sal_uInt16 nItemId, bool bMirror )
}
}
-// -----------------------------------------------------------------------
+
Image ToolBox::GetItemImage( sal_uInt16 nItemId ) const
{
@@ -1498,7 +1498,7 @@ Image ToolBox::GetItemImage( sal_uInt16 nItemId ) const
return Image();
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetItemText( sal_uInt16 nItemId, const OUString& rText )
{
@@ -1530,7 +1530,7 @@ void ToolBox::SetItemText( sal_uInt16 nItemId, const OUString& rText )
}
}
-// -----------------------------------------------------------------------
+
const OUString& ToolBox::GetItemText( sal_uInt16 nItemId ) const
{
@@ -1542,7 +1542,7 @@ const OUString& ToolBox::GetItemText( sal_uInt16 nItemId ) const
return pItem->maText;
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetItemWindow( sal_uInt16 nItemId, Window* pNewWindow )
{
@@ -1559,7 +1559,7 @@ void ToolBox::SetItemWindow( sal_uInt16 nItemId, Window* pNewWindow )
}
}
-// -----------------------------------------------------------------------
+
Window* ToolBox::GetItemWindow( sal_uInt16 nItemId ) const
{
@@ -1571,7 +1571,7 @@ Window* ToolBox::GetItemWindow( sal_uInt16 nItemId ) const
return NULL;
}
-// -----------------------------------------------------------------------
+
void ToolBox::StartSelection()
{
@@ -1587,7 +1587,7 @@ void ToolBox::StartSelection()
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::EndSelection()
{
@@ -1612,7 +1612,7 @@ void ToolBox::EndSelection()
mnMouseModifier = 0;
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetItemDown( sal_uInt16 nItemId, bool bDown, bool bRelease )
{
@@ -1658,7 +1658,7 @@ void ToolBox::SetItemDown( sal_uInt16 nItemId, bool bDown, bool bRelease )
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetItemState( sal_uInt16 nItemId, TriState eState )
{
@@ -1721,7 +1721,7 @@ void ToolBox::SetItemState( sal_uInt16 nItemId, TriState eState )
}
}
-// -----------------------------------------------------------------------
+
TriState ToolBox::GetItemState( sal_uInt16 nItemId ) const
{
@@ -1733,7 +1733,7 @@ TriState ToolBox::GetItemState( sal_uInt16 nItemId ) const
return STATE_NOCHECK;
}
-// -----------------------------------------------------------------------
+
void ToolBox::EnableItem( sal_uInt16 nItemId, bool bEnable )
{
@@ -1765,7 +1765,7 @@ void ToolBox::EnableItem( sal_uInt16 nItemId, bool bEnable )
}
}
-// -----------------------------------------------------------------------
+
bool ToolBox::IsItemEnabled( sal_uInt16 nItemId ) const
{
@@ -1777,7 +1777,7 @@ bool ToolBox::IsItemEnabled( sal_uInt16 nItemId ) const
return false;
}
-// -----------------------------------------------------------------------
+
void ToolBox::ShowItem( sal_uInt16 nItemId, bool bVisible )
{
@@ -1795,7 +1795,7 @@ void ToolBox::ShowItem( sal_uInt16 nItemId, bool bVisible )
}
}
-// -----------------------------------------------------------------------
+
bool ToolBox::IsItemVisible( sal_uInt16 nItemId ) const
{
@@ -1807,7 +1807,7 @@ bool ToolBox::IsItemVisible( sal_uInt16 nItemId ) const
return false;
}
-// -----------------------------------------------------------------------
+
bool ToolBox::IsItemReallyVisible( sal_uInt16 nItemId ) const
{
@@ -1825,7 +1825,7 @@ bool ToolBox::IsItemReallyVisible( sal_uInt16 nItemId ) const
return bRet;
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetItemCommand(sal_uInt16 nItemId, const OUString& rCommand)
{
@@ -1835,7 +1835,7 @@ void ToolBox::SetItemCommand(sal_uInt16 nItemId, const OUString& rCommand)
pItem->maCommandStr = rCommand;
}
-// -----------------------------------------------------------------------
+
const OUString ToolBox::GetItemCommand( sal_uInt16 nItemId ) const
{
@@ -1847,7 +1847,7 @@ const OUString ToolBox::GetItemCommand( sal_uInt16 nItemId ) const
return OUString();
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetQuickHelpText( sal_uInt16 nItemId, const OUString& rText )
{
@@ -1857,7 +1857,7 @@ void ToolBox::SetQuickHelpText( sal_uInt16 nItemId, const OUString& rText )
pItem->maQuickHelpText = rText;
}
-// -----------------------------------------------------------------------
+
const OUString& ToolBox::GetQuickHelpText( sal_uInt16 nItemId ) const
{
@@ -1871,7 +1871,7 @@ const OUString& ToolBox::GetQuickHelpText( sal_uInt16 nItemId ) const
return sEmpty;
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetHelpText( sal_uInt16 nItemId, const OUString& rText )
{
@@ -1881,14 +1881,14 @@ void ToolBox::SetHelpText( sal_uInt16 nItemId, const OUString& rText )
pItem->maHelpText = rText;
}
-// -----------------------------------------------------------------------
+
const OUString& ToolBox::GetHelpText( sal_uInt16 nItemId ) const
{
return ImplGetHelpText( nItemId );
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetHelpId( sal_uInt16 nItemId, const OString& rHelpId )
{
@@ -1898,7 +1898,7 @@ void ToolBox::SetHelpId( sal_uInt16 nItemId, const OString& rHelpId )
pItem->maHelpId = rHelpId;
}
-// -----------------------------------------------------------------------
+
OString ToolBox::GetHelpId( sal_uInt16 nItemId ) const
{
@@ -1917,7 +1917,7 @@ OString ToolBox::GetHelpId( sal_uInt16 nItemId ) const
return aRet;
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetOutStyle( sal_uInt16 nNewStyle )
{
@@ -1940,7 +1940,7 @@ void ToolBox::SetOutStyle( sal_uInt16 nNewStyle )
}
}
-// -----------------------------------------------------------------------
+
// disable key input if all items are disabled
@@ -1959,7 +1959,7 @@ void ToolBox::ImplUpdateInputEnable()
mpData->mbKeyInputDisabled = true;
}
-// -----------------------------------------------------------------------
+
void ToolBox::ImplFillLayoutData() const
{
@@ -1976,7 +1976,7 @@ void ToolBox::ImplFillLayoutData() const
}
}
-// -----------------------------------------------------------------------
+
OUString ToolBox::GetDisplayText() const
{
@@ -1985,7 +1985,7 @@ OUString ToolBox::GetDisplayText() const
return mpData->m_pLayoutData ? OUString(mpData->m_pLayoutData->m_aDisplayText) : OUString();
}
-// -----------------------------------------------------------------------
+
Rectangle ToolBox::GetCharacterBounds( sal_uInt16 nItemID, long nIndex ) const
{
@@ -2006,7 +2006,7 @@ Rectangle ToolBox::GetCharacterBounds( sal_uInt16 nItemID, long nIndex ) const
return (mpData->m_pLayoutData && nItemIndex != -1) ? mpData->m_pLayoutData->GetCharacterBounds( nItemIndex+nIndex ) : Rectangle();
}
-// -----------------------------------------------------------------------
+
long ToolBox::GetIndexForPoint( const Point& rPoint, sal_uInt16& rItemID ) const
{
@@ -2030,7 +2030,7 @@ long ToolBox::GetIndexForPoint( const Point& rPoint, sal_uInt16& rItemID ) const
return nIndex;
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetDropdownClickHdl( const Link& rLink )
{
@@ -2042,7 +2042,7 @@ const Link& ToolBox::GetDropdownClickHdl() const
return mpData->maDropdownClickHdl;
}
-// -----------------------------------------------------------------------
+
void ToolBox::SetMenuType( sal_uInt16 aType )
{
@@ -2089,7 +2089,7 @@ void ToolBox::SetMenuButtonHdl( const Link& rLink )
mpData->maMenuButtonHdl = rLink;
}
-// -----------------------------------------------------------------------
+
bool ToolBox::ImplHasClippedItems()
{
@@ -2250,7 +2250,7 @@ void ToolBox::ExecuteCustomMenu()
}
}
-// -----------------------------------------------------------------------
+
// checks override first, useful during calculation of sizes
bool ToolBox::ImplIsFloatingMode() const
@@ -2278,7 +2278,7 @@ bool ToolBox::ImplIsInPopupMode() const
}
}
-// -----------------------------------------------------------------------
+
void ToolBox::Lock( bool bLock )
{
@@ -2298,7 +2298,7 @@ void ToolBox::Lock( bool bLock )
}
}
-// -----------------------------------------------------------------------
+
bool ToolBox::AlwaysLocked()
{
@@ -2372,6 +2372,6 @@ void ToolBox::SetImageListProvider(vcl::IImageListProvider* _pProvider)
mpData->mpImageListProvider = _pProvider;
ImplUpdateImageList();
}
-// -----------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 8a3f00645e13..d68ec89ffa0f 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -117,7 +117,7 @@ using ::com::sun::star::awt::XTopWindow;
#define IMPL_PAINT_ERASE ((sal_uInt16)0x0010)
#define IMPL_PAINT_CHECKRTL ((sal_uInt16)0x0020)
-// -----------------------------------------------------------------------
+
struct ImplCalcToTopData
{
@@ -142,7 +142,7 @@ ImplAccessibleInfos::~ImplAccessibleInfos()
delete pAccessibleDescription;
}
-// -----------------------------------------------------------------------
+
WindowImpl::WindowImpl( WindowType nType )
{
@@ -303,7 +303,7 @@ WindowImpl::~WindowImpl()
}
-// -----------------------------------------------------------------------
+
// helper method to allow inline constructor even for pWindow!=NULL case
void ImplDelData::AttachToWindow( const Window* pWindow )
@@ -312,7 +312,7 @@ void ImplDelData::AttachToWindow( const Window* pWindow )
const_cast<Window*>(pWindow)->ImplAddDel( this );
}
-// -----------------------------------------------------------------------
+
// define dtor for ImplDelData
ImplDelData::~ImplDelData()
@@ -327,7 +327,7 @@ ImplDelData::~ImplDelData()
}
}
-// -----------------------------------------------------------------------
+
#ifdef DBG_UTIL
const char* ImplDbgCheckWindow( const void* pObj )
@@ -405,7 +405,7 @@ void Window::ImplInitAppFontData( Window* pWindow )
pSVData->maGDIData.mnAppFontX += (pSVData->maGDIData.mnAppFontX*pSVData->maAppData.mnDialogScaleX)/100;
}
-// -----------------------------------------------------------------------
+
bool Window::ImplCheckUIFont( const Font& rFont )
{
@@ -448,7 +448,7 @@ bool Window::ImplCheckUIFont( const Font& rFont )
return bUIFontOk;
}
-// -----------------------------------------------------------------------
+
void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl )
{
@@ -699,7 +699,7 @@ void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl )
GetpApp()->OverrideSystemSettings( rSettings );
}
-// -----------------------------------------------------------------------
+
MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, Window* pSource, Window* pDest )
{
@@ -708,7 +708,7 @@ MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, Window* pSource, Windo
return MouseEvent( aPos, rE.GetClicks(), rE.GetMode(), rE.GetButtons(), rE.GetModifier() );
}
-// -----------------------------------------------------------------------
+
CommandEvent ImplTranslateCommandEvent( const CommandEvent& rCEvt, Window* pSource, Window* pDest )
{
@@ -738,7 +738,7 @@ void Window::ImplInitWindowData( WindowType nType )
mbEnableRTL = Application::GetSettings().GetLayoutRTL(); // true: this outdev will be mirrored if RTL window layout (UI mirroring) is globally active
}
-// -----------------------------------------------------------------------
+
void Window::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSystemParentData )
{
@@ -1021,7 +1021,7 @@ void Window::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSyste
GetAccessibleParentWindow()->ImplCallEventListeners( VCLEVENT_WINDOW_CHILDCREATED, this );
}
-// -----------------------------------------------------------------------
+
void Window::ImplSetFrameParent( const Window* pParent )
{
@@ -1041,7 +1041,7 @@ void Window::ImplSetFrameParent( const Window* pParent )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplInsertWindow( Window* pParent )
{
@@ -1092,7 +1092,7 @@ void Window::ImplInsertWindow( Window* pParent )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplRemoveWindow( bool bRemoveFrameData )
{
@@ -1176,7 +1176,7 @@ void Window::reorderWithinParent(sal_uInt16 nNewPosition)
mpWindowImpl->mpParent->mpWindowImpl->mpFirstChild = this;
}
-// -----------------------------------------------------------------------
+
void Window::ImplCallResize()
{
@@ -1192,7 +1192,7 @@ void Window::ImplCallResize()
ImplCallEventListeners( VCLEVENT_WINDOW_RESIZE );
}
-// -----------------------------------------------------------------------
+
void Window::ImplCallMove()
{
@@ -1236,7 +1236,7 @@ void Window::ImplCallMove()
ImplCallEventListeners( VCLEVENT_WINDOW_MOVE );
}
-// -----------------------------------------------------------------------
+
static OString ImplAutoHelpID( ResMgr* pResMgr )
{
@@ -1248,7 +1248,7 @@ static OString ImplAutoHelpID( ResMgr* pResMgr )
return aRet;
}
-// -----------------------------------------------------------------------
+
WinBits Window::ImplInitRes( const ResId& rResId )
{
@@ -1261,7 +1261,7 @@ WinBits Window::ImplInitRes( const ResId& rResId )
return nStyle;
}
-// -----------------------------------------------------------------------
+
WindowResHeader Window::ImplLoadResHeader( const ResId& rResId )
{
@@ -1373,7 +1373,7 @@ void Window::ImplLoadRes( const ResId& rResId )
}
}
-// -----------------------------------------------------------------------
+
ImplWinData* Window::ImplGetWinData() const
{
@@ -1399,7 +1399,7 @@ ImplWinData* Window::ImplGetWinData() const
return mpWindowImpl->mpWinData;
}
-// -----------------------------------------------------------------------
+
SalGraphics* Window::ImplGetFrameGraphics() const
{
@@ -1416,7 +1416,7 @@ SalGraphics* Window::ImplGetFrameGraphics() const
return mpWindowImpl->mpFrameWindow->mpGraphics;
}
-// -----------------------------------------------------------------------
+
Window* Window::ImplFindWindow( const Point& rFramePos )
{
@@ -1459,7 +1459,7 @@ Window* Window::ImplFindWindow( const Point& rFramePos )
return NULL;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 Window::ImplHitTest( const Point& rFramePos )
{
@@ -1488,7 +1488,7 @@ sal_uInt16 Window::ImplHitTest( const Point& rFramePos )
return nHitTest;
}
-// -----------------------------------------------------------------------
+
bool Window::ImplIsRealParentPath( const Window* pWindow ) const
{
@@ -1503,7 +1503,7 @@ bool Window::ImplIsRealParentPath( const Window* pWindow ) const
return false;
}
-// -----------------------------------------------------------------------
+
bool Window::ImplIsChild( const Window* pWindow, bool bSystemWindow ) const
{
@@ -1522,7 +1522,7 @@ bool Window::ImplIsChild( const Window* pWindow, bool bSystemWindow ) const
return false;
}
-// -----------------------------------------------------------------------
+
bool Window::ImplIsWindowOrChild( const Window* pWindow, bool bSystemWindow ) const
{
@@ -1531,7 +1531,7 @@ bool Window::ImplIsWindowOrChild( const Window* pWindow, bool bSystemWindow ) co
return ImplIsChild( pWindow, bSystemWindow );
}
-// -----------------------------------------------------------------------
+
int Window::ImplTestMousePointerSet()
{
@@ -1547,7 +1547,7 @@ int Window::ImplTestMousePointerSet()
return sal_False;
}
-// -----------------------------------------------------------------------
+
PointerStyle Window::ImplGetMousePointer() const
{
@@ -1591,7 +1591,7 @@ PointerStyle Window::ImplGetMousePointer() const
return ePointerStyle;
}
-// -----------------------------------------------------------------------
+
void Window::ImplResetReallyVisible()
{
@@ -1626,7 +1626,7 @@ void Window::ImplResetReallyVisible()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplSetReallyVisible()
{
@@ -1668,7 +1668,7 @@ void Window::ImplSetReallyVisible()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplCallInitShow()
{
@@ -1694,7 +1694,7 @@ void Window::ImplCallInitShow()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplAddDel( ImplDelData* pDel ) // TODO: make "const" when incompatiblity ok
{
@@ -1707,7 +1707,7 @@ void Window::ImplAddDel( ImplDelData* pDel ) // TODO: make "const" when incompat
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplRemoveDel( ImplDelData* pDel ) // TODO: make "const" when incompatiblity ok
{
@@ -1723,7 +1723,7 @@ void Window::ImplRemoveDel( ImplDelData* pDel ) // TODO: make "const" when incom
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplInitResolutionSettings()
{
@@ -1757,7 +1757,7 @@ void Window::ImplInitResolutionSettings()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplPointToLogic( Font& rFont ) const
{
@@ -1784,7 +1784,7 @@ void Window::ImplPointToLogic( Font& rFont ) const
rFont.SetSize( aSize );
}
-// -----------------------------------------------------------------------
+
void Window::ImplLogicToPoint( Font& rFont ) const
{
@@ -1811,7 +1811,7 @@ void Window::ImplLogicToPoint( Font& rFont ) const
rFont.SetSize( aSize );
}
-// -----------------------------------------------------------------------
+
bool Window::ImplSysObjClip( const Region* pOldRegion )
{
@@ -1900,7 +1900,7 @@ bool Window::ImplSysObjClip( const Region* pOldRegion )
return bUpdate;
}
-// -----------------------------------------------------------------------
+
void Window::ImplUpdateSysObjChildrenClip()
{
@@ -1915,7 +1915,7 @@ void Window::ImplUpdateSysObjChildrenClip()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplUpdateSysObjOverlapsClip()
{
@@ -1929,7 +1929,7 @@ void Window::ImplUpdateSysObjOverlapsClip()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplUpdateSysObjClip()
{
@@ -1952,7 +1952,7 @@ void Window::ImplUpdateSysObjClip()
mpWindowImpl->mpFrameWindow->ImplUpdateSysObjOverlapsClip();
}
-// -----------------------------------------------------------------------
+
bool Window::ImplSetClipFlagChildren( bool bSysObjOnlySmaller )
{
@@ -1999,7 +1999,7 @@ bool Window::ImplSetClipFlagChildren( bool bSysObjOnlySmaller )
return bUpdate;
}
-// -----------------------------------------------------------------------
+
bool Window::ImplSetClipFlagOverlapWindows( bool bSysObjOnlySmaller )
{
@@ -2016,7 +2016,7 @@ bool Window::ImplSetClipFlagOverlapWindows( bool bSysObjOnlySmaller )
return bUpdate;
}
-// -----------------------------------------------------------------------
+
bool Window::ImplSetClipFlag( bool bSysObjOnlySmaller )
{
@@ -2050,7 +2050,7 @@ bool Window::ImplSetClipFlag( bool bSysObjOnlySmaller )
return mpWindowImpl->mpFrameWindow->ImplSetClipFlagOverlapWindows( bSysObjOnlySmaller );
}
-// -----------------------------------------------------------------------
+
void Window::ImplIntersectWindowClipRegion( Region& rRegion )
{
@@ -2060,7 +2060,7 @@ void Window::ImplIntersectWindowClipRegion( Region& rRegion )
rRegion.Intersect( mpWindowImpl->maWinClipRegion );
}
-// -----------------------------------------------------------------------
+
void Window::ImplIntersectWindowRegion( Region& rRegion )
{
@@ -2070,7 +2070,7 @@ void Window::ImplIntersectWindowRegion( Region& rRegion )
rRegion.Intersect( ImplPixelToDevicePixel( mpWindowImpl->maWinRegion ) );
}
-// -----------------------------------------------------------------------
+
void Window::ImplExcludeWindowRegion( Region& rRegion )
{
@@ -2090,7 +2090,7 @@ void Window::ImplExcludeWindowRegion( Region& rRegion )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplExcludeOverlapWindows( Region& rRegion )
{
@@ -2107,7 +2107,7 @@ void Window::ImplExcludeOverlapWindows( Region& rRegion )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplExcludeOverlapWindows2( Region& rRegion )
{
@@ -2117,7 +2117,7 @@ void Window::ImplExcludeOverlapWindows2( Region& rRegion )
ImplExcludeOverlapWindows( rRegion );
}
-// -----------------------------------------------------------------------
+
void Window::ImplClipBoundaries( Region& rRegion, bool bThis, bool bOverlaps )
{
@@ -2152,7 +2152,7 @@ void Window::ImplClipBoundaries( Region& rRegion, bool bThis, bool bOverlaps )
ImplGetParent()->ImplIntersectWindowClipRegion( rRegion );
}
-// -----------------------------------------------------------------------
+
bool Window::ImplClipChildren( Region& rRegion )
{
@@ -2177,7 +2177,7 @@ bool Window::ImplClipChildren( Region& rRegion )
return bOtherClip;
}
-// -----------------------------------------------------------------------
+
void Window::ImplClipAllChildren( Region& rRegion )
{
@@ -2190,7 +2190,7 @@ void Window::ImplClipAllChildren( Region& rRegion )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplClipSiblings( Region& rRegion )
{
@@ -2207,7 +2207,7 @@ void Window::ImplClipSiblings( Region& rRegion )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplInitWinClipRegion()
{
@@ -2231,7 +2231,7 @@ void Window::ImplInitWinClipRegion()
mpWindowImpl->mbInitWinClipRegion = false;
}
-// -----------------------------------------------------------------------
+
void Window::ImplInitWinChildClipRegion()
{
@@ -2256,7 +2256,7 @@ void Window::ImplInitWinChildClipRegion()
mpWindowImpl->mbInitChildRegion = false;
}
-// -----------------------------------------------------------------------
+
Region* Window::ImplGetWinChildClipRegion()
{
@@ -2270,7 +2270,7 @@ Region* Window::ImplGetWinChildClipRegion()
return &mpWindowImpl->maWinClipRegion;
}
-// -----------------------------------------------------------------------
+
void Window::ImplIntersectAndUnionOverlapWindows( const Region& rInterRegion, Region& rRegion )
{
@@ -2289,7 +2289,7 @@ void Window::ImplIntersectAndUnionOverlapWindows( const Region& rInterRegion, Re
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplIntersectAndUnionOverlapWindows2( const Region& rInterRegion, Region& rRegion )
{
@@ -2303,7 +2303,7 @@ void Window::ImplIntersectAndUnionOverlapWindows2( const Region& rInterRegion, R
ImplIntersectAndUnionOverlapWindows( rInterRegion, rRegion );
}
-// -----------------------------------------------------------------------
+
void Window::ImplCalcOverlapRegionOverlaps( const Region& rInterRegion, Region& rRegion )
{
@@ -2331,7 +2331,7 @@ void Window::ImplCalcOverlapRegionOverlaps( const Region& rInterRegion, Region&
ImplIntersectAndUnionOverlapWindows( rInterRegion, rRegion );
}
-// -----------------------------------------------------------------------
+
void Window::ImplCalcOverlapRegion( const Rectangle& rSourceRect, Region& rRegion,
bool bChildren, bool bParent, bool bSiblings )
@@ -2403,7 +2403,7 @@ void Window::ImplCalcOverlapRegion( const Rectangle& rSourceRect, Region& rRegio
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplCallPaint( const Region* pRegion, sal_uInt16 nPaintFlags )
{
@@ -2563,7 +2563,7 @@ void Window::ImplCallPaint( const Region* pRegion, sal_uInt16 nPaintFlags )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplCallOverlapPaint()
{
@@ -2585,7 +2585,7 @@ void Window::ImplCallOverlapPaint()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplPostPaint()
{
@@ -2593,7 +2593,7 @@ void Window::ImplPostPaint()
mpWindowImpl->mpFrameData->maPaintTimer.Start();
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(Window, ImplHandlePaintHdl)
{
@@ -2612,7 +2612,7 @@ IMPL_LINK_NOARG(Window, ImplHandlePaintHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(Window, ImplHandleResizeTimerHdl)
{
@@ -2629,7 +2629,7 @@ IMPL_LINK_NOARG(Window, ImplHandleResizeTimerHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
void Window::ImplInvalidateFrameRegion( const Region* pRegion, sal_uInt16 nFlags )
{
@@ -2688,7 +2688,7 @@ void Window::ImplInvalidateFrameRegion( const Region* pRegion, sal_uInt16 nFlags
ImplPostPaint();
}
-// -----------------------------------------------------------------------
+
void Window::ImplInvalidateOverlapFrameRegion( const Region& rRegion )
{
@@ -2709,7 +2709,7 @@ void Window::ImplInvalidateOverlapFrameRegion( const Region& rRegion )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplInvalidateParentFrameRegion( Region& rRegion )
{
@@ -2722,7 +2722,7 @@ void Window::ImplInvalidateParentFrameRegion( Region& rRegion )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplInvalidate( const Region* pRegion, sal_uInt16 nFlags )
{
@@ -2810,7 +2810,7 @@ void Window::ImplInvalidate( const Region* pRegion, sal_uInt16 nFlags )
pOpaqueWindow->Update(); // start painting at the opaque parent
}
-// -----------------------------------------------------------------------
+
void Window::ImplMoveInvalidateRegion( const Rectangle& rRect,
long nHorzScroll, long nVertScroll,
@@ -2835,7 +2835,7 @@ void Window::ImplMoveInvalidateRegion( const Rectangle& rRect,
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplMoveAllInvalidateRegions( const Rectangle& rRect,
long nHorzScroll, long nVertScroll,
@@ -2874,7 +2874,7 @@ void Window::ImplMoveAllInvalidateRegions( const Rectangle& rRect,
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplValidateFrameRegion( const Region* pRegion, sal_uInt16 nFlags )
{
@@ -2918,7 +2918,7 @@ void Window::ImplValidateFrameRegion( const Region* pRegion, sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplValidate( const Region* pRegion, sal_uInt16 nFlags )
{
@@ -2959,7 +2959,7 @@ void Window::ImplValidate( const Region* pRegion, sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplScroll( const Rectangle& rRect,
long nHorzScroll, long nVertScroll, sal_uInt16 nFlags )
@@ -3130,7 +3130,7 @@ void Window::ImplScroll( const Rectangle& rRect,
mpWindowImpl->mpCursor->ImplResume();
}
-// -----------------------------------------------------------------------
+
void Window::ImplUpdateAll( bool bOverlapWindows )
{
@@ -3162,7 +3162,7 @@ void Window::ImplUpdateAll( bool bOverlapWindows )
Flush();
}
-// -----------------------------------------------------------------------
+
void Window::ImplUpdateWindowPtr( Window* pWindow )
{
@@ -3189,7 +3189,7 @@ void Window::ImplUpdateWindowPtr( Window* pWindow )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplUpdateWindowPtr()
{
@@ -3201,7 +3201,7 @@ void Window::ImplUpdateWindowPtr()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplUpdateOverlapWindowPtr( bool bNewFrame )
{
@@ -3230,7 +3230,7 @@ void Window::ImplUpdateOverlapWindowPtr( bool bNewFrame )
Show( true );
}
-// -----------------------------------------------------------------------
+
bool Window::ImplUpdatePos()
{
@@ -3263,7 +3263,7 @@ bool Window::ImplUpdatePos()
return bSysChild;
}
-// -----------------------------------------------------------------------
+
void Window::ImplUpdateSysObjPos()
{
@@ -3277,7 +3277,7 @@ void Window::ImplUpdateSysObjPos()
pChild = pChild->mpWindowImpl->mpNext;
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplPosSizeWindow( long nX, long nY,
long nWidth, long nHeight, sal_uInt16 nFlags )
@@ -3583,7 +3583,7 @@ void Window::ImplPosSizeWindow( long nX, long nY,
delete pOldRegion;
}
-// -----------------------------------------------------------------------
+
void Window::ImplToBottomChild()
{
@@ -3602,7 +3602,7 @@ void Window::ImplToBottomChild()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplCalcToTop( ImplCalcToTopData* pPrevData )
{
@@ -3631,7 +3631,7 @@ void Window::ImplCalcToTop( ImplCalcToTopData* pPrevData )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplToTop( sal_uInt16 nFlags )
{
@@ -3723,7 +3723,7 @@ void Window::ImplToTop( sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplStartToTop( sal_uInt16 nFlags )
{
@@ -3778,7 +3778,7 @@ void Window::ImplStartToTop( sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplFocusToTop( sal_uInt16 nFlags, bool bReallyVisible )
{
@@ -3807,7 +3807,7 @@ void Window::ImplFocusToTop( sal_uInt16 nFlags, bool bReallyVisible )
ImplGenerateMouseMove();
}
-// -----------------------------------------------------------------------
+
void Window::ImplShowAllOverlaps()
{
@@ -3824,7 +3824,7 @@ void Window::ImplShowAllOverlaps()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplHideAllOverlaps()
{
@@ -3841,7 +3841,7 @@ void Window::ImplHideAllOverlaps()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplCallMouseMove( sal_uInt16 nMouseCode, bool bModChanged )
{
@@ -3868,7 +3868,7 @@ void Window::ImplCallMouseMove( sal_uInt16 nMouseCode, bool bModChanged )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplGenerateMouseMove()
{
@@ -3876,7 +3876,7 @@ void Window::ImplGenerateMouseMove()
Application::PostUserEvent( mpWindowImpl->mpFrameData->mnMouseMoveId, LINK( mpWindowImpl->mpFrameWindow, Window, ImplGenerateMouseMoveHdl ) );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(Window, ImplGenerateMouseMoveHdl)
{
@@ -3891,14 +3891,14 @@ IMPL_LINK_NOARG(Window, ImplGenerateMouseMoveHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
void Window::ImplInvertFocus( const Rectangle& rRect )
{
InvertTracking( rRect, SHOWTRACK_SMALL | SHOWTRACK_WINDOW );
}
-// -----------------------------------------------------------------------
+
void Window::ImplCallFocusChangeActivate( Window* pNewOverlapWindow,
Window* pOldOverlapWindow )
@@ -3991,7 +3991,7 @@ static bool IsWindowFocused(const WindowImpl& rWinImpl)
return false;
}
-// -----------------------------------------------------------------------
+
void Window::ImplGrabFocus( sal_uInt16 nFlags )
{
// #143570# no focus for destructing windows
@@ -4210,7 +4210,7 @@ void Window::ImplGrabFocusToDocument( sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplNewInputContext()
{
@@ -4257,14 +4257,14 @@ void Window::ImplNewInputContext()
pFocusWin->mpFontCache->Release( pFontEntry );
}
-// -----------------------------------------------------------------------
+
Window::Window( WindowType nType )
{
ImplInitWindowData( nType );
}
-// -----------------------------------------------------------------------
+
Window::Window( Window* pParent, WinBits nStyle )
{
@@ -4273,7 +4273,7 @@ Window::Window( Window* pParent, WinBits nStyle )
ImplInit( pParent, nStyle, NULL );
}
-// -----------------------------------------------------------------------
+
Window::Window( Window* pParent, const ResId& rResId )
: mpWindowImpl(NULL)
@@ -4288,7 +4288,7 @@ Window::Window( Window* pParent, const ResId& rResId )
Show();
}
-// -----------------------------------------------------------------------
+
#if OSL_DEBUG_LEVEL > 0
namespace
{
@@ -4311,7 +4311,7 @@ namespace
}
}
#endif
-// -----------------------------------------------------------------------
+
Window::~Window()
{
@@ -4753,7 +4753,7 @@ Window::~Window()
delete mpWindowImpl; mpWindowImpl = NULL;
}
-// -----------------------------------------------------------------------
+
void Window::doLazyDelete()
{
SystemWindow* pSysWin = dynamic_cast<SystemWindow*>(this);
@@ -4776,7 +4776,7 @@ void Window::SimulateKeyPress( sal_uInt16 nKeyCode ) const
mpWindowImpl->mpFrame->SimulateKeyPress(nKeyCode);
}
-// -----------------------------------------------------------------------
+
void Window::MouseMove( const MouseEvent& rMEvt )
{
@@ -4785,7 +4785,7 @@ void Window::MouseMove( const MouseEvent& rMEvt )
mpWindowImpl->mbMouseMove = true;
}
-// -----------------------------------------------------------------------
+
void Window::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -4794,7 +4794,7 @@ void Window::MouseButtonDown( const MouseEvent& rMEvt )
mpWindowImpl->mbMouseButtonDown = true;
}
-// -----------------------------------------------------------------------
+
void Window::MouseButtonUp( const MouseEvent& rMEvt )
{
@@ -4803,7 +4803,7 @@ void Window::MouseButtonUp( const MouseEvent& rMEvt )
mpWindowImpl->mbMouseButtonUp = true;
}
-// -----------------------------------------------------------------------
+
void Window::KeyInput( const KeyEvent& rKEvt )
{
@@ -4812,7 +4812,7 @@ void Window::KeyInput( const KeyEvent& rKEvt )
mpWindowImpl->mbKeyInput = true;
}
-// -----------------------------------------------------------------------
+
void Window::KeyUp( const KeyEvent& rKEvt )
{
@@ -4821,26 +4821,26 @@ void Window::KeyUp( const KeyEvent& rKEvt )
mpWindowImpl->mbKeyUp = true;
}
-// -----------------------------------------------------------------------
+
void Window::PrePaint()
{
}
-// -----------------------------------------------------------------------
+
void Window::Paint( const Rectangle& rRect )
{
ImplCallEventListeners( VCLEVENT_WINDOW_PAINT, (void*)&rRect );
}
-// -----------------------------------------------------------------------
+
void Window::PostPaint()
{
}
-// -----------------------------------------------------------------------
+
void Window::Draw( OutputDevice*, const Point&, const Size&, sal_uLong )
{
@@ -4868,7 +4868,7 @@ void Window::GetFocus()
Notify( aNEvt );
}
-// -----------------------------------------------------------------------
+
void Window::LoseFocus()
{
@@ -4876,7 +4876,7 @@ void Window::LoseFocus()
Notify( aNEvt );
}
-// -----------------------------------------------------------------------
+
void Window::RequestHelp( const HelpEvent& rHEvt )
{
@@ -4928,7 +4928,7 @@ void Window::RequestHelp( const HelpEvent& rHEvt )
}
}
-// -----------------------------------------------------------------------
+
void Window::Command( const CommandEvent& rCEvt )
{
@@ -4939,7 +4939,7 @@ void Window::Command( const CommandEvent& rCEvt )
mpWindowImpl->mbCommand = true;
}
-// -----------------------------------------------------------------------
+
void Window::Tracking( const TrackingEvent& rTEvt )
{
@@ -4949,13 +4949,13 @@ void Window::Tracking( const TrackingEvent& rTEvt )
pWrapper->Tracking( rTEvt );
}
-// -----------------------------------------------------------------------
+
void Window::UserEvent( sal_uLong, void* )
{
}
-// -----------------------------------------------------------------------
+
void Window::StateChanged( StateChangedType eType )
{
@@ -4980,13 +4980,13 @@ void Window::StateChanged( StateChangedType eType )
}
}
-// -----------------------------------------------------------------------
+
void Window::DataChanged( const DataChangedEvent& )
{
}
-// -----------------------------------------------------------------------
+
void Window::ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt )
{
@@ -5087,7 +5087,7 @@ void Window::ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt )
}
}
-// -----------------------------------------------------------------------
+
bool Window::PreNotify( NotifyEvent& rNEvt )
{
@@ -5130,7 +5130,7 @@ bool Window::PreNotify( NotifyEvent& rNEvt )
return bDone;
}
-// -----------------------------------------------------------------------
+
bool Window::Notify( NotifyEvent& rNEvt )
{
@@ -5239,7 +5239,7 @@ bool Window::Notify( NotifyEvent& rNEvt )
return nRet;
}
-// -----------------------------------------------------------------------
+
void Window::ImplCallEventListeners( sal_uLong nEvent, void* pData )
{
@@ -5252,7 +5252,7 @@ void Window::ImplCallEventListeners( sal_uLong nEvent, void* pData )
CallEventListeners( nEvent, pData );
}
-// -----------------------------------------------------------------------
+
void Window::CallEventListeners( sal_uLong nEvent, void* pData )
{
@@ -5294,35 +5294,35 @@ void Window::FireVclEvent( VclSimpleEvent* pEvent )
ImplGetSVData()->mpApp->ImplCallEventListeners(pEvent);
}
-// -----------------------------------------------------------------------
+
void Window::AddEventListener( const Link& rEventListener )
{
mpWindowImpl->maEventListeners.addListener( rEventListener );
}
-// -----------------------------------------------------------------------
+
void Window::RemoveEventListener( const Link& rEventListener )
{
mpWindowImpl->maEventListeners.removeListener( rEventListener );
}
-// -----------------------------------------------------------------------
+
void Window::AddChildEventListener( const Link& rEventListener )
{
mpWindowImpl->maChildEventListeners.addListener( rEventListener );
}
-// -----------------------------------------------------------------------
+
void Window::RemoveChildEventListener( const Link& rEventListener )
{
mpWindowImpl->maChildEventListeners.removeListener( rEventListener );
}
-// -----------------------------------------------------------------------
+
sal_uLong Window::PostUserEvent( const Link& rLink, void* pCaller )
{
@@ -5331,9 +5331,9 @@ sal_uLong Window::PostUserEvent( const Link& rLink, void* pCaller )
return nEventId;
}
-// -----------------------------------------------------------------------
-// -----------------------------------------------------------------------
+
+
bool Window::PostUserEvent( sal_uLong& rEventId, const Link& rLink, void* pCaller )
{
@@ -5357,7 +5357,7 @@ bool Window::PostUserEvent( sal_uLong& rEventId, const Link& rLink, void* pCalle
}
}
-// -----------------------------------------------------------------------
+
void Window::RemoveUserEvent( sal_uLong nUserEvent )
{
@@ -5378,7 +5378,7 @@ void Window::RemoveUserEvent( sal_uLong nUserEvent )
pSVEvent->mbCall = false;
}
-// -----------------------------------------------------------------------
+
bool Window::IsLocked( bool bChildren ) const
{
@@ -5399,7 +5399,7 @@ bool Window::IsLocked( bool bChildren ) const
return false;
}
-// -----------------------------------------------------------------------
+
void Window::SetStyle( WinBits nStyle )
{
@@ -5412,7 +5412,7 @@ void Window::SetStyle( WinBits nStyle )
}
}
-// -----------------------------------------------------------------------
+
void Window::SetExtendedStyle( WinBits nExtendedStyle )
{
@@ -5438,7 +5438,7 @@ void Window::SetExtendedStyle( WinBits nExtendedStyle )
}
}
-// -----------------------------------------------------------------------
+
SystemWindow* Window::GetSystemWindow() const
{
@@ -5449,7 +5449,7 @@ SystemWindow* Window::GetSystemWindow() const
return (SystemWindow*)pWin;
}
-// -----------------------------------------------------------------------
+
void Window::SetBorderStyle( sal_uInt16 nBorderStyle )
{
@@ -5491,7 +5491,7 @@ void Window::SetBorderStyle( sal_uInt16 nBorderStyle )
}
}
-// -----------------------------------------------------------------------
+
sal_uInt16 Window::GetBorderStyle() const
{
@@ -5507,7 +5507,7 @@ sal_uInt16 Window::GetBorderStyle() const
return 0;
}
-// -----------------------------------------------------------------------
+
long Window::CalcTitleWidth() const
{
@@ -5537,7 +5537,7 @@ long Window::CalcTitleWidth() const
return 0;
}
-// -----------------------------------------------------------------------
+
void Window::EnableClipSiblings( bool bClipSiblings )
{
@@ -5548,7 +5548,7 @@ void Window::EnableClipSiblings( bool bClipSiblings )
mpWindowImpl->mbClipSiblings = bClipSiblings;
}
-// -----------------------------------------------------------------------
+
void Window::SetMouseTransparent( bool bTransparent )
{
@@ -5562,7 +5562,7 @@ void Window::SetMouseTransparent( bool bTransparent )
mpWindowImpl->mbMouseTransparent = bTransparent;
}
-// -----------------------------------------------------------------------
+
void Window::SetPaintTransparent( bool bTransparent )
{
@@ -5577,7 +5577,7 @@ void Window::SetPaintTransparent( bool bTransparent )
mpWindowImpl->mbPaintTransparent = bTransparent;
}
-// -----------------------------------------------------------------------
+
void Window::SetInputContext( const InputContext& rInputContext )
{
@@ -5587,7 +5587,7 @@ void Window::SetInputContext( const InputContext& rInputContext )
ImplNewInputContext();
}
-// -----------------------------------------------------------------------
+
void Window::EndExtTextInput( sal_uInt16 nFlags )
{
@@ -5596,7 +5596,7 @@ void Window::EndExtTextInput( sal_uInt16 nFlags )
ImplGetFrame()->EndExtTextInput( nFlags );
}
-// -----------------------------------------------------------------------
+
void Window::SetCursorRect( const Rectangle* pRect, long nExtTextInputWidth )
{
@@ -5622,7 +5622,7 @@ void Window::SetCursorRect( const Rectangle* pRect, long nExtTextInputWidth )
}
-// -----------------------------------------------------------------------
+
const Rectangle* Window::GetCursorRect() const
{
@@ -5631,7 +5631,7 @@ const Rectangle* Window::GetCursorRect() const
return pWinData->mpCursorRect;
}
-// -----------------------------------------------------------------------
+
long Window::GetCursorExtTextInputWidth() const
{
@@ -5640,7 +5640,7 @@ long Window::GetCursorExtTextInputWidth() const
return pWinData->mnCursorExtWidth;
}
-// -----------------------------------------------------------------------
+
void Window::SetCompositionCharRect( const Rectangle* pRect, long nCompositionLength, bool bVertical ) {
@@ -5657,7 +5657,7 @@ void Window::SetCompositionCharRect( const Rectangle* pRect, long nCompositionLe
}
}
-// -----------------------------------------------------------------------
+
void Window::SetSettings( const AllSettings& rSettings )
{
SetSettings( rSettings, sal_False );
@@ -5698,7 +5698,7 @@ void Window::SetSettings( const AllSettings& rSettings, sal_Bool bChild )
}
}
-// -----------------------------------------------------------------------
+
void Window::UpdateSettings( const AllSettings& rSettings, bool bChild )
{
@@ -5768,7 +5768,7 @@ void Window::UpdateSettings( const AllSettings& rSettings, bool bChild )
}
}
-// -----------------------------------------------------------------------
+
void Window::NotifyAllChildren( DataChangedEvent& rDCEvt )
{
@@ -5783,7 +5783,7 @@ void Window::NotifyAllChildren( DataChangedEvent& rDCEvt )
}
}
-// -----------------------------------------------------------------------
+
void Window::SetPointFont( const Font& rFont )
{
@@ -5793,7 +5793,7 @@ void Window::SetPointFont( const Font& rFont )
SetFont( aFont );
}
-// -----------------------------------------------------------------------
+
Font Window::GetPointFont() const
{
@@ -5803,7 +5803,7 @@ Font Window::GetPointFont() const
return aFont;
}
-// -----------------------------------------------------------------------
+
void Window::SetParentClipMode( sal_uInt16 nMode )
{
@@ -5821,7 +5821,7 @@ void Window::SetParentClipMode( sal_uInt16 nMode )
}
}
-// -----------------------------------------------------------------------
+
sal_uInt16 Window::GetParentClipMode() const
{
@@ -5832,7 +5832,7 @@ sal_uInt16 Window::GetParentClipMode() const
return mpWindowImpl->mnParentClipMode;
}
-// -----------------------------------------------------------------------
+
void Window::SetWindowRegionPixel()
{
@@ -5868,7 +5868,7 @@ void Window::SetWindowRegionPixel()
}
}
-// -----------------------------------------------------------------------
+
void Window::SetWindowRegionPixel( const Region& rRegion )
{
@@ -5956,7 +5956,7 @@ void Window::SetWindowRegionPixel( const Region& rRegion )
}
}
-// -----------------------------------------------------------------------
+
const Region& Window::GetWindowRegionPixel() const
{
@@ -5967,7 +5967,7 @@ const Region& Window::GetWindowRegionPixel() const
return mpWindowImpl->maWinRegion;
}
-// -----------------------------------------------------------------------
+
bool Window::IsWindowRegionPixel() const
{
@@ -5978,7 +5978,7 @@ bool Window::IsWindowRegionPixel() const
return mpWindowImpl->mbWinRegion;
}
-// -----------------------------------------------------------------------
+
Region Window::GetWindowClipRegionPixel( sal_uInt16 nFlags ) const
{
@@ -6017,7 +6017,7 @@ Region Window::GetWindowClipRegionPixel( sal_uInt16 nFlags ) const
return aWinClipRegion;
}
-// -----------------------------------------------------------------------
+
Region Window::GetPaintRegion() const
{
@@ -6035,7 +6035,7 @@ Region Window::GetPaintRegion() const
}
}
-// -----------------------------------------------------------------------
+
void Window::ExpandPaintClipRegion( const Region& rRegion )
{
@@ -6061,7 +6061,7 @@ void Window::ExpandPaintClipRegion( const Region& rRegion )
}
}
-// -----------------------------------------------------------------------
+
static SystemWindow *ImplGetLastSystemWindow( Window *pWin )
{
@@ -6245,7 +6245,7 @@ void Window::SetParent( Window* pNewParent )
Show( true, SHOW_NOFOCUSCHANGE | SHOW_NOACTIVATE );
}
-// -----------------------------------------------------------------------
+
void Window::Show( bool bVisible, sal_uInt16 nFlags )
{
@@ -6497,7 +6497,7 @@ void Window::Show( bool bVisible, sal_uInt16 nFlags )
*/
}
-// -----------------------------------------------------------------------
+
Size Window::GetSizePixel() const
{
@@ -6531,7 +6531,7 @@ void Window::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
}
-// -----------------------------------------------------------------------
+
void Window::Enable( bool bEnable, bool bChild )
{
@@ -6593,7 +6593,7 @@ void Window::Enable( bool bEnable, bool bChild )
ImplGenerateMouseMove();
}
-// -----------------------------------------------------------------------
+
void Window::SetCallHandlersOnInputDisabled( bool bCall )
{
@@ -6607,14 +6607,14 @@ void Window::SetCallHandlersOnInputDisabled( bool bCall )
}
}
-// -----------------------------------------------------------------------
+
bool Window::IsCallHandlersOnInputDisabled() const
{
return mpWindowImpl->mbCallHandlersDuringInputDisabled ? true : false;
}
-// -----------------------------------------------------------------------
+
void Window::EnableInput( bool bEnable, bool bChild )
{
@@ -6679,7 +6679,7 @@ void Window::EnableInput( bool bEnable, bool bChild )
}
}
-// -----------------------------------------------------------------------
+
void Window::EnableInput( bool bEnable, bool bChild, bool bSysWin,
const Window* pExcludeWindow )
@@ -6745,7 +6745,7 @@ void Window::EnableInput( bool bEnable, bool bChild, bool bSysWin,
}
}
-// -----------------------------------------------------------------------
+
void Window::AlwaysEnableInput( bool bAlways, bool bChild )
{
@@ -6776,7 +6776,7 @@ void Window::AlwaysEnableInput( bool bAlways, bool bChild )
}
}
-// -----------------------------------------------------------------------
+
void Window::AlwaysDisableInput( bool bAlways, bool bChild )
{
@@ -6807,7 +6807,7 @@ void Window::AlwaysDisableInput( bool bAlways, bool bChild )
}
}
-// -----------------------------------------------------------------------
+
void Window::SetActivateMode( sal_uInt16 nMode )
{
@@ -6840,7 +6840,7 @@ void Window::SetActivateMode( sal_uInt16 nMode )
}
}
-// -----------------------------------------------------------------------
+
void Window::ToTop( sal_uInt16 nFlags )
{
@@ -6849,7 +6849,7 @@ void Window::ToTop( sal_uInt16 nFlags )
ImplFocusToTop( nFlags, IsReallyVisible() );
}
-// -----------------------------------------------------------------------
+
void Window::SetZOrder( Window* pRefWindow, sal_uInt16 nFlags )
{
@@ -7024,7 +7024,7 @@ void Window::SetZOrder( Window* pRefWindow, sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void Window::EnableAlwaysOnTop( bool bEnable )
{
@@ -7040,7 +7040,7 @@ void Window::EnableAlwaysOnTop( bool bEnable )
mpWindowImpl->mpFrame->SetAlwaysOnTop( bEnable );
}
-// -----------------------------------------------------------------------
+
void Window::setPosSizePixel( long nX, long nY,
long nWidth, long nHeight, sal_uInt16 nFlags )
@@ -7171,14 +7171,14 @@ void Window::setPosSizePixel( long nX, long nY,
}
}
-// -----------------------------------------------------------------------
+
Point Window::GetPosPixel() const
{
return mpWindowImpl->maPos;
}
-// -----------------------------------------------------------------------
+
Rectangle Window::GetDesktopRectPixel() const
{
@@ -7187,7 +7187,7 @@ Rectangle Window::GetDesktopRectPixel() const
return rRect;
}
-// -----------------------------------------------------------------------
+
Point Window::OutputToScreenPixel( const Point& rPos ) const
{
@@ -7195,7 +7195,7 @@ Point Window::OutputToScreenPixel( const Point& rPos ) const
return Point( rPos.X()+mnOutOffX, rPos.Y()+mnOutOffY );
}
-// -----------------------------------------------------------------------
+
Point Window::ScreenToOutputPixel( const Point& rPos ) const
{
@@ -7203,7 +7203,7 @@ Point Window::ScreenToOutputPixel( const Point& rPos ) const
return Point( rPos.X()-mnOutOffX, rPos.Y()-mnOutOffY );
}
-// -----------------------------------------------------------------------
+
long Window::ImplGetUnmirroredOutOffX()
{
@@ -7242,7 +7242,7 @@ Point Window::NormalizedScreenToOutputPixel( const Point& rPos ) const
return Point( rPos.X()-offx, rPos.Y()-mnOutOffY );
}
-// -----------------------------------------------------------------------
+
Point Window::OutputToAbsoluteScreenPixel( const Point& rPos ) const
{
@@ -7254,7 +7254,7 @@ Point Window::OutputToAbsoluteScreenPixel( const Point& rPos ) const
return p;
}
-// -----------------------------------------------------------------------
+
Point Window::AbsoluteScreenToOutputPixel( const Point& rPos ) const
{
@@ -7266,7 +7266,7 @@ Point Window::AbsoluteScreenToOutputPixel( const Point& rPos ) const
return p;
}
-// -----------------------------------------------------------------------
+
Rectangle Window::ImplOutputToUnmirroredAbsoluteScreenPixel( const Rectangle &rRect ) const
{
@@ -7286,7 +7286,7 @@ Rectangle Window::ImplOutputToUnmirroredAbsoluteScreenPixel( const Rectangle &rR
}
-// -----------------------------------------------------------------------
+
Rectangle Window::GetWindowExtentsRelative( Window *pRelativeWindow ) const
{
@@ -7300,7 +7300,7 @@ Rectangle Window::GetClientWindowExtentsRelative( Window *pRelativeWindow ) cons
return ImplGetWindowExtentsRelative( pRelativeWindow, true );
}
-// -----------------------------------------------------------------------
+
Rectangle Window::ImplGetWindowExtentsRelative( Window *pRelativeWindow, bool bClientOnly ) const
{
@@ -7330,7 +7330,7 @@ Rectangle Window::ImplGetWindowExtentsRelative( Window *pRelativeWindow, bool bC
return Rectangle( aPos, aSize );
}
-// -----------------------------------------------------------------------
+
void Window::Scroll( long nHorzScroll, long nVertScroll, sal_uInt16 nFlags )
{
@@ -7340,7 +7340,7 @@ void Window::Scroll( long nHorzScroll, long nVertScroll, sal_uInt16 nFlags )
nHorzScroll, nVertScroll, nFlags & ~SCROLL_CLIP );
}
-// -----------------------------------------------------------------------
+
void Window::Scroll( long nHorzScroll, long nVertScroll,
const Rectangle& rRect, sal_uInt16 nFlags )
@@ -7353,7 +7353,7 @@ void Window::Scroll( long nHorzScroll, long nVertScroll,
ImplScroll( aRect, nHorzScroll, nVertScroll, nFlags );
}
-// -----------------------------------------------------------------------
+
void Window::Invalidate( sal_uInt16 nFlags )
{
@@ -7364,7 +7364,7 @@ void Window::Invalidate( sal_uInt16 nFlags )
ImplInvalidate( NULL, nFlags );
}
-// -----------------------------------------------------------------------
+
void Window::Invalidate( const Rectangle& rRect, sal_uInt16 nFlags )
{
@@ -7382,7 +7382,7 @@ void Window::Invalidate( const Rectangle& rRect, sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void Window::Invalidate( const Region& rRegion, sal_uInt16 nFlags )
{
@@ -7400,7 +7400,7 @@ void Window::Invalidate( const Region& rRegion, sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void Window::Validate( sal_uInt16 nFlags )
{
@@ -7411,7 +7411,7 @@ void Window::Validate( sal_uInt16 nFlags )
ImplValidate( NULL, nFlags );
}
-// -----------------------------------------------------------------------
+
bool Window::HasPaintEvent() const
{
@@ -7440,7 +7440,7 @@ bool Window::HasPaintEvent() const
return false;
}
-// -----------------------------------------------------------------------
+
void Window::Update()
{
@@ -7509,7 +7509,7 @@ void Window::Update()
Flush();
}
-// -----------------------------------------------------------------------
+
void Window::Flush()
{
@@ -7518,7 +7518,7 @@ void Window::Flush()
mpWindowImpl->mpFrame->Flush( aWinRect );
}
-// -----------------------------------------------------------------------
+
void Window::Sync()
{
@@ -7526,7 +7526,7 @@ void Window::Sync()
mpWindowImpl->mpFrame->Sync();
}
-// -----------------------------------------------------------------------
+
void Window::SetUpdateMode( bool bUpdate )
{
@@ -7535,7 +7535,7 @@ void Window::SetUpdateMode( bool bUpdate )
StateChanged( STATE_CHANGE_UPDATEMODE );
}
-// -----------------------------------------------------------------------
+
void Window::GrabFocus()
{
@@ -7543,7 +7543,7 @@ void Window::GrabFocus()
ImplGrabFocus( 0 );
}
-// -----------------------------------------------------------------------
+
bool Window::HasFocus() const
{
@@ -7563,7 +7563,7 @@ bool Window::HasFocus() const
return (this == ImplGetSVData()->maWinData.mpFocusWin);
}
-// -----------------------------------------------------------------------
+
void Window::GrabFocusToDocument()
{
@@ -7575,7 +7575,7 @@ void Window::SetFakeFocus( bool bFocus )
ImplGetWindowImpl()->mbFakeFocusSet = bFocus;
}
-// -----------------------------------------------------------------------
+
bool Window::HasChildPathFocus( bool bSystemWindow ) const
{
@@ -7595,7 +7595,7 @@ bool Window::HasChildPathFocus( bool bSystemWindow ) const
return false;
}
-// -----------------------------------------------------------------------
+
void Window::CaptureMouse()
{
@@ -7616,7 +7616,7 @@ void Window::CaptureMouse()
}
}
-// -----------------------------------------------------------------------
+
void Window::ReleaseMouse()
{
@@ -7634,7 +7634,7 @@ void Window::ReleaseMouse()
}
}
-// -----------------------------------------------------------------------
+
bool Window::IsMouseCaptured() const
{
@@ -7642,7 +7642,7 @@ bool Window::IsMouseCaptured() const
return (this == ImplGetSVData()->maWinData.mpCaptureWin);
}
-// -----------------------------------------------------------------------
+
void Window::SetPointer( const Pointer& rPointer )
{
@@ -7657,7 +7657,7 @@ void Window::SetPointer( const Pointer& rPointer )
mpWindowImpl->mpFrame->SetPointer( ImplGetMousePointer() );
}
-// -----------------------------------------------------------------------
+
void Window::EnableChildPointerOverwrite( bool bOverwrite )
{
@@ -7672,7 +7672,7 @@ void Window::EnableChildPointerOverwrite( bool bOverwrite )
mpWindowImpl->mpFrame->SetPointer( ImplGetMousePointer() );
}
-// -----------------------------------------------------------------------
+
void Window::SetPointerPosPixel( const Point& rPos )
{
@@ -7695,7 +7695,7 @@ void Window::SetPointerPosPixel( const Point& rPos )
mpWindowImpl->mpFrame->SetPointerPos( aPos.X(), aPos.Y() );
}
-// -----------------------------------------------------------------------
+
Point Window::GetPointerPosPixel()
{
@@ -7710,7 +7710,7 @@ Point Window::GetPointerPosPixel()
return ImplFrameToOutput( aPos );
}
-// -----------------------------------------------------------------------
+
Point Window::GetLastPointerPosPixel()
{
@@ -7725,7 +7725,7 @@ Point Window::GetLastPointerPosPixel()
return ImplFrameToOutput( aPos );
}
-// -----------------------------------------------------------------------
+
void Window::ShowPointer( bool bVisible )
{
@@ -7740,7 +7740,7 @@ void Window::ShowPointer( bool bVisible )
}
}
-// -----------------------------------------------------------------------
+
Window::PointerState Window::GetPointerState()
{
@@ -7764,14 +7764,14 @@ Window::PointerState Window::GetPointerState()
return aState;
}
-// -----------------------------------------------------------------------
+
bool Window::IsMouseOver()
{
return ImplGetWinData()->mbMouseOver;
}
-// -----------------------------------------------------------------------
+
void Window::EnterWait()
{
@@ -7786,7 +7786,7 @@ void Window::EnterWait()
}
}
-// -----------------------------------------------------------------------
+
void Window::LeaveWait()
{
@@ -7804,7 +7804,7 @@ void Window::LeaveWait()
}
}
-// -----------------------------------------------------------------------
+
void Window::SetCursor( Cursor* pCursor )
{
@@ -7819,7 +7819,7 @@ void Window::SetCursor( Cursor* pCursor )
}
}
-// -----------------------------------------------------------------------
+
void Window::SetText( const OUString& rStr )
{
@@ -7851,7 +7851,7 @@ void Window::SetText( const OUString& rStr )
StateChanged( STATE_CHANGE_TEXT );
}
-// -----------------------------------------------------------------------
+
OUString Window::GetText() const
{
@@ -7859,7 +7859,7 @@ OUString Window::GetText() const
return mpWindowImpl->maText;
}
-// -----------------------------------------------------------------------
+
OUString Window::GetDisplayText() const
{
@@ -7867,7 +7867,7 @@ OUString Window::GetDisplayText() const
return GetText();
}
-// -----------------------------------------------------------------------
+
const Wallpaper& Window::GetDisplayBackground() const
{
@@ -7895,7 +7895,7 @@ const Wallpaper& Window::GetDisplayBackground() const
return rBack;
}
-// -----------------------------------------------------------------------
+
const OUString& Window::GetHelpText() const
{
@@ -7932,7 +7932,7 @@ const OUString& Window::GetHelpText() const
return mpWindowImpl->maHelpText;
}
-// -----------------------------------------------------------------------
+
Window* Window::FindWindow( const Point& rPos ) const
{
@@ -7941,7 +7941,7 @@ Window* Window::FindWindow( const Point& rPos ) const
return ((Window*)this)->ImplFindWindow( aPos );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 Window::GetChildCount() const
{
@@ -7957,7 +7957,7 @@ sal_uInt16 Window::GetChildCount() const
return nChildCount;
}
-// -----------------------------------------------------------------------
+
Window* Window::GetChild( sal_uInt16 nChild ) const
{
@@ -7975,7 +7975,7 @@ Window* Window::GetChild( sal_uInt16 nChild ) const
return NULL;
}
-// -----------------------------------------------------------------------
+
Window* Window::GetWindow( sal_uInt16 nType ) const
{
@@ -8066,7 +8066,7 @@ Window* Window::GetWindow( sal_uInt16 nType ) const
return NULL;
}
-// -----------------------------------------------------------------------
+
bool Window::IsChild( const Window* pWindow, bool bSystemWindow ) const
{
@@ -8086,7 +8086,7 @@ bool Window::IsChild( const Window* pWindow, bool bSystemWindow ) const
return false;
}
-// -----------------------------------------------------------------------
+
bool Window::IsWindowOrChild( const Window* pWindow, bool bSystemWindow ) const
{
@@ -8096,7 +8096,7 @@ bool Window::IsWindowOrChild( const Window* pWindow, bool bSystemWindow ) const
return ImplIsChild( pWindow, bSystemWindow );
}
-// -----------------------------------------------------------------------
+
const SystemEnvData* Window::GetSystemData() const
{
@@ -8116,7 +8116,7 @@ const SystemEnvData* Window::GetSystemData() const
return aRet;
}
-// -----------------------------------------------------------------------
+
void Window::SetWindowPeer( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xPeer, VCLXWindow* pVCLXWindow )
{
@@ -8128,7 +8128,7 @@ void Window::SetWindowPeer( ::com::sun::star::uno::Reference< ::com::sun::star::
mpWindowImpl->mpVCLXWindow = pVCLXWindow;
}
-// -----------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > Window::GetComponentInterface( sal_Bool bCreate )
{
@@ -8141,7 +8141,7 @@ void Window::SetWindowPeer( ::com::sun::star::uno::Reference< ::com::sun::star::
return mpWindowImpl->mxWindowPeer;
}
-// -----------------------------------------------------------------------
+
void Window::SetComponentInterface( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xIFace )
{
@@ -8151,7 +8151,7 @@ void Window::SetComponentInterface( ::com::sun::star::uno::Reference< ::com::sun
pWrapper->SetWindowInterface( this, xIFace );
}
-// -----------------------------------------------------------------------
+
void Window::ImplCallDeactivateListeners( Window *pNew )
{
@@ -8170,7 +8170,7 @@ void Window::ImplCallDeactivateListeners( Window *pNew )
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplCallActivateListeners( Window *pOld )
{
@@ -8202,7 +8202,7 @@ void Window::ImplCallActivateListeners( Window *pOld )
}
}
-// -----------------------------------------------------------------------
+
bool Window::ImplStopDnd()
{
@@ -8218,14 +8218,14 @@ bool Window::ImplStopDnd()
return bRet;
}
-// -----------------------------------------------------------------------
+
void Window::ImplStartDnd()
{
GetDropTarget();
}
-// -----------------------------------------------------------------------
+
uno::Reference< XDropTarget > Window::GetDropTarget()
{
@@ -8285,7 +8285,7 @@ uno::Reference< XDropTarget > Window::GetDropTarget()
return uno::Reference< XDropTarget > ( mpWindowImpl->mxDNDListenerContainer, UNO_QUERY );
}
-// -----------------------------------------------------------------------
+
uno::Reference< XDragSource > Window::GetDragSource()
{
@@ -8352,14 +8352,14 @@ uno::Reference< XDragSource > Window::GetDragSource()
return uno::Reference< XDragSource > ();
}
-// -----------------------------------------------------------------------
+
uno::Reference< XDragGestureRecognizer > Window::GetDragGestureRecognizer()
{
return uno::Reference< XDragGestureRecognizer > ( GetDropTarget(), UNO_QUERY );
}
-// -----------------------------------------------------------------------
+
uno::Reference< XClipboard > Window::GetClipboard()
{
@@ -8388,7 +8388,7 @@ uno::Reference< XClipboard > Window::GetClipboard()
return static_cast < XClipboard * > (0);
}
-// -----------------------------------------------------------------------
+
uno::Reference< XClipboard > Window::GetPrimarySelection()
{
@@ -8433,9 +8433,9 @@ uno::Reference< XClipboard > Window::GetPrimarySelection()
return static_cast < XClipboard * > (0);
}
-// -----------------------------------------------------------------------
+
// Accessibility
-// -----------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > Window::GetAccessible( bool bCreate )
{
@@ -9054,7 +9054,7 @@ void Window::RecordLayoutData( vcl::ControlLayoutData* pLayout, const Rectangle&
mpOutDevData->mpRecordLayout = NULL;
}
-// -----------------------------------------------------------------------
+
void Window::DrawSelectionBackground( const Rectangle& rRect, sal_uInt16 highlight, bool bChecked, bool bDrawBorder, bool bDrawExtBorderOnly )
{
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 05c237571eea..6214e9017857 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -192,7 +192,7 @@ void Window::ImplSaveOverlapBackground()
}
}
-// -----------------------------------------------------------------------
+
bool Window::ImplRestoreOverlapBackground( Region& rInvRegion )
{
@@ -233,7 +233,7 @@ bool Window::ImplRestoreOverlapBackground( Region& rInvRegion )
return false;
}
-// -----------------------------------------------------------------------
+
void Window::ImplDeleteOverlapBackground()
{
@@ -262,7 +262,7 @@ void Window::ImplDeleteOverlapBackground()
}
}
-// -----------------------------------------------------------------------
+
void Window::ImplInvalidateAllOverlapBackgrounds()
{
@@ -295,7 +295,7 @@ void Window::ImplInvalidateAllOverlapBackgrounds()
}
}
-// -----------------------------------------------------------------------
+
void Window::ShowFocus( const Rectangle& rRect )
{
@@ -342,7 +342,7 @@ void Window::ShowFocus( const Rectangle& rRect )
mpWindowImpl->mbInShowFocus = false;
}
-// -----------------------------------------------------------------------
+
void Window::HideFocus()
{
@@ -377,7 +377,7 @@ void Window::HideFocus()
mpWindowImpl->mbInHideFocus = false;
}
-// -----------------------------------------------------------------------
+
void Window::Invert( const Rectangle& rRect, sal_uInt16 nFlags )
{
@@ -412,7 +412,7 @@ void Window::Invert( const Rectangle& rRect, sal_uInt16 nFlags )
mpGraphics->Invert( aRect.Left(), aRect.Top(), aRect.GetWidth(), aRect.GetHeight(), nSalFlags, this );
}
-// -----------------------------------------------------------------------
+
void Window::Invert( const Polygon& rPoly, sal_uInt16 nFlags )
{
@@ -449,7 +449,7 @@ void Window::Invert( const Polygon& rPoly, sal_uInt16 nFlags )
mpGraphics->Invert( nPoints, pPtAry, nSalFlags, this );
}
-// -----------------------------------------------------------------------
+
void Window::ShowTracking( const Rectangle& rRect, sal_uInt16 nFlags )
{
@@ -477,7 +477,7 @@ void Window::ShowTracking( const Rectangle& rRect, sal_uInt16 nFlags )
mpWindowImpl->mbTrackVisible = true;
}
-// -----------------------------------------------------------------------
+
void Window::HideTracking()
{
@@ -490,7 +490,7 @@ void Window::HideTracking()
}
}
-// -----------------------------------------------------------------------
+
void Window::InvertTracking( const Rectangle& rRect, sal_uInt16 nFlags )
{
@@ -554,7 +554,7 @@ void Window::InvertTracking( const Rectangle& rRect, sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void Window::InvertTracking( const Polygon& rPoly, sal_uInt16 nFlags )
{
@@ -607,7 +607,7 @@ void Window::InvertTracking( const Polygon& rPoly, sal_uInt16 nFlags )
pGraphics->Invert( nPoints, pPtAry, SAL_INVERT_TRACKFRAME, this );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( Window, ImplTrackTimerHdl, Timer*, pTimer )
{
@@ -634,7 +634,7 @@ IMPL_LINK( Window, ImplTrackTimerHdl, Timer*, pTimer )
return 0;
}
-// -----------------------------------------------------------------------
+
void Window::StartTracking( sal_uInt16 nFlags )
{
@@ -663,7 +663,7 @@ void Window::StartTracking( sal_uInt16 nFlags )
CaptureMouse();
}
-// -----------------------------------------------------------------------
+
void Window::EndTracking( sal_uInt16 nFlags )
{
@@ -706,14 +706,14 @@ void Window::EndTracking( sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
bool Window::IsTracking() const
{
return (ImplGetSVData()->maWinData.mpTrackWin == this);
}
-// -----------------------------------------------------------------------
+
void Window::StartAutoScroll( sal_uInt16 nFlags )
{
@@ -730,7 +730,7 @@ void Window::StartAutoScroll( sal_uInt16 nFlags )
pSVData->maAppData.mpWheelWindow = new ImplWheelWindow( this );
}
-// -----------------------------------------------------------------------
+
void Window::EndAutoScroll()
{
@@ -746,7 +746,7 @@ void Window::EndAutoScroll()
}
}
-// -----------------------------------------------------------------------
+
void Window::SaveBackground( const Point& rPos, const Size& rSize,
const Point& rDestOff, VirtualDevice& rSaveDevice )
@@ -780,7 +780,7 @@ void Window::SaveBackground( const Point& rPos, const Size& rSize,
rSaveDevice.DrawOutDev( rDestOff, rSize, rPos, rSize, *this );
}
-// -----------------------------------------------------------------------
+
sal_uIntPtr Window::SaveFocus()
{
@@ -796,7 +796,7 @@ sal_uIntPtr Window::SaveFocus()
return 0;
}
-// -----------------------------------------------------------------------
+
bool Window::EndSaveFocus( sal_uIntPtr nSaveId, bool bRestore )
{
@@ -819,7 +819,7 @@ bool Window::EndSaveFocus( sal_uIntPtr nSaveId, bool bRestore )
}
}
-// -----------------------------------------------------------------------
+
void Window::SetZoom( const Fraction& rZoom )
{
@@ -830,14 +830,14 @@ void Window::SetZoom( const Fraction& rZoom )
}
}
-// -----------------------------------------------------------------------
+
inline long WinFloatRound( double fVal )
{
return( fVal > 0.0 ? (long) ( fVal + 0.5 ) : -(long) ( -fVal + 0.5 ) );
}
-// -----------------------------------------------------------------------
+
void Window::SetZoomedPointFont( const Font& rFont )
{
@@ -877,7 +877,7 @@ void Window::SetZoomedPointFont( const Font& rFont )
SetPointFont( rFont );
}
-// -----------------------------------------------------------------------
+
long Window::CalcZoom( long nCalc ) const
{
@@ -893,7 +893,7 @@ long Window::CalcZoom( long nCalc ) const
return nCalc;
}
-// -----------------------------------------------------------------------
+
void Window::SetControlFont()
{
@@ -905,7 +905,7 @@ void Window::SetControlFont()
}
}
-// -----------------------------------------------------------------------
+
void Window::SetControlFont( const Font& rFont )
{
@@ -927,7 +927,7 @@ void Window::SetControlFont( const Font& rFont )
StateChanged( STATE_CHANGE_CONTROLFONT );
}
-// -----------------------------------------------------------------------
+
Font Window::GetControlFont() const
{
@@ -940,7 +940,7 @@ Font Window::GetControlFont() const
}
}
-// -----------------------------------------------------------------------
+
void Window::SetControlForeground()
{
@@ -952,7 +952,7 @@ void Window::SetControlForeground()
}
}
-// -----------------------------------------------------------------------
+
void Window::SetControlForeground( const Color& rColor )
{
@@ -976,7 +976,7 @@ void Window::SetControlForeground( const Color& rColor )
}
}
-// -----------------------------------------------------------------------
+
void Window::SetControlBackground()
{
@@ -988,7 +988,7 @@ void Window::SetControlBackground()
}
}
-// -----------------------------------------------------------------------
+
void Window::SetControlBackground( const Color& rColor )
{
@@ -1012,7 +1012,7 @@ void Window::SetControlBackground( const Color& rColor )
}
}
-// -----------------------------------------------------------------------
+
Size Window::CalcWindowSize( const Size& rOutSz ) const
{
@@ -1022,7 +1022,7 @@ Size Window::CalcWindowSize( const Size& rOutSz ) const
return aSz;
}
-// -----------------------------------------------------------------------
+
Size Window::CalcOutputSize( const Size& rWinSz ) const
{
@@ -1032,7 +1032,7 @@ Size Window::CalcOutputSize( const Size& rWinSz ) const
return aSz;
}
-// -----------------------------------------------------------------------
+
Font Window::GetDrawPixelFont( OutputDevice* pDev ) const
{
@@ -1044,7 +1044,7 @@ Font Window::GetDrawPixelFont( OutputDevice* pDev ) const
return aFont;
}
-// -----------------------------------------------------------------------
+
long Window::GetDrawPixel( OutputDevice* pDev, long nPixels ) const
{
@@ -1060,7 +1060,7 @@ long Window::GetDrawPixel( OutputDevice* pDev, long nPixels ) const
return nP;
}
-// -----------------------------------------------------------------------
+
static void lcl_HandleScrollHelper( ScrollBar* pScrl, long nN, bool isMultiplyByLineSize )
{
@@ -1252,7 +1252,7 @@ bool Window::HandleScrollCommand( const CommandEvent& rCmd,
return bRet;
}
-// -----------------------------------------------------------------------
+
diff --git a/vcl/source/window/window3.cxx b/vcl/source/window/window3.cxx
index 00919acce11a..88430780f077 100644
--- a/vcl/source/window/window3.cxx
+++ b/vcl/source/window/window3.cxx
@@ -22,7 +22,7 @@
#include "vcl/waitobj.hxx"
#include "vcl/button.hxx"
-// -----------------------------------------------------------------------
+
WaitObject::~WaitObject()
{
@@ -30,14 +30,14 @@ WaitObject::~WaitObject()
mpWindow->LeaveWait();
}
-// -----------------------------------------------------------------------
+
Size Window::GetOptimalSize() const
{
return Size();
}
-// -----------------------------------------------------------------------
+
void Window::ImplAdjustNWFSizes()
{
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 5a9e2f14cfbd..69f2db6f02b7 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -168,7 +168,7 @@ static bool ImplHandleMouseFloatMode( Window* pChild, const Point& rMousePos,
return false;
}
-// -----------------------------------------------------------------------
+
static void ImplHandleMouseHelpRequest( Window* pChild, const Point& rMousePos )
{
@@ -200,7 +200,7 @@ static void ImplHandleMouseHelpRequest( Window* pChild, const Point& rMousePos )
}
}
-// -----------------------------------------------------------------------
+
static void ImplSetMousePointer( Window* pChild )
{
@@ -211,7 +211,7 @@ static void ImplSetMousePointer( Window* pChild )
pChild->ImplGetFrame()->SetPointer( pChild->ImplGetMousePointer() );
}
-// -----------------------------------------------------------------------
+
static bool ImplCallCommand( Window* pChild, sal_uInt16 nEvt, void* pData = NULL,
bool bMouse = false, Point* pPos = NULL )
@@ -254,7 +254,7 @@ static bool ImplCallCommand( Window* pChild, sal_uInt16 nEvt, void* pData = NULL
return false;
}
-// -----------------------------------------------------------------------
+
/* #i34277# delayed context menu activation;
* necessary if there already was a popup menu running.
@@ -854,7 +854,7 @@ bool ImplHandleMouseEvent( Window* pWindow, sal_uInt16 nSVEvent, bool bMouseLeav
return bRet;
}
-// -----------------------------------------------------------------------
+
static Window* ImplGetKeyInputWindow( Window* pWindow )
{
@@ -897,7 +897,7 @@ static Window* ImplGetKeyInputWindow( Window* pWindow )
return pChild;
}
-// -----------------------------------------------------------------------
+
static bool ImplHandleKey( Window* pWindow, sal_uInt16 nSVEvent,
sal_uInt16 nKeyCode, sal_uInt16 nCharCode, sal_uInt16 nRepeat, bool bForward )
@@ -1187,7 +1187,7 @@ static bool ImplHandleKey( Window* pWindow, sal_uInt16 nSVEvent,
return nRet;
}
-// -----------------------------------------------------------------------
+
static bool ImplHandleExtTextInput( Window* pWindow,
const OUString& rText,
@@ -1282,7 +1282,7 @@ static bool ImplHandleExtTextInput( Window* pWindow,
return !ImplCallCommand( pChild, COMMAND_EXTTEXTINPUT, &aData );
}
-// -----------------------------------------------------------------------
+
static bool ImplHandleEndExtTextInput( Window* /* pWindow */ )
{
@@ -1311,7 +1311,7 @@ static bool ImplHandleEndExtTextInput( Window* /* pWindow */ )
return nRet;
}
-// -----------------------------------------------------------------------
+
static void ImplHandleExtTextInputPos( Window* pWindow,
Rectangle& rRect, long& rInputWidth,
@@ -1359,7 +1359,7 @@ static void ImplHandleExtTextInputPos( Window* pWindow,
= pChild != 0 && pChild->GetInputContext().GetFont().IsVertical();
}
-// -----------------------------------------------------------------------
+
static bool ImplHandleInputContextChange( Window* pWindow, LanguageType eNewLang )
{
@@ -1368,7 +1368,7 @@ static bool ImplHandleInputContextChange( Window* pWindow, LanguageType eNewLang
return !ImplCallCommand( pChild, COMMAND_INPUTCONTEXTCHANGE, &aData );
}
-// -----------------------------------------------------------------------
+
static bool ImplCallWheelCommand( Window* pWindow, const Point& rPos,
const CommandWheelData* pWheelData )
@@ -1392,7 +1392,7 @@ static bool ImplCallWheelCommand( Window* pWindow, const Point& rPos,
return false;
}
-// -----------------------------------------------------------------------
+
static bool ImplHandleWheelEvent( Window* pWindow, const SalWheelMouseEvent& rEvt, bool scaleDirectly = false )
{
@@ -1499,7 +1499,7 @@ static bool ImplHandleWheelEvent( Window* pWindow, const SalWheelMouseEvent& rEv
return !bRet;
}
-// -----------------------------------------------------------------------
+
#define IMPL_PAINT_CHECKRTL ((sal_uInt16)0x0020)
static void ImplHandlePaint( Window* pWindow, const Rectangle& rBoundRect, bool bImmediateUpdate )
@@ -1532,7 +1532,7 @@ static void ImplHandlePaint( Window* pWindow, const Rectangle& rBoundRect, bool
}
}
-// -----------------------------------------------------------------------
+
static void KillOwnPopups( Window* pWindow )
{
@@ -1546,7 +1546,7 @@ static void KillOwnPopups( Window* pWindow )
}
}
-// -----------------------------------------------------------------------
+
void ImplHandleResize( Window* pWindow, long nNewWidth, long nNewHeight )
{
@@ -1615,7 +1615,7 @@ void ImplHandleResize( Window* pWindow, long nNewWidth, long nNewHeight )
pWindow->ImplGetWindowImpl()->mpFrameData->mbMinimized = bMinimized;
}
-// -----------------------------------------------------------------------
+
static void ImplHandleMove( Window* pWindow )
{
@@ -1642,7 +1642,7 @@ static void ImplHandleMove( Window* pWindow )
}
-// -----------------------------------------------------------------------
+
static void ImplHandleMoveResize( Window* pWindow, long nNewWidth, long nNewHeight )
{
@@ -1650,7 +1650,7 @@ static void ImplHandleMoveResize( Window* pWindow, long nNewWidth, long nNewHeig
ImplHandleResize( pWindow, nNewWidth, nNewHeight );
}
-// -----------------------------------------------------------------------
+
static void ImplActivateFloatingWindows( Window* pWindow, bool bActive )
{
@@ -1671,7 +1671,7 @@ static void ImplActivateFloatingWindows( Window* pWindow, bool bActive )
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(Window, ImplAsyncFocusHdl)
{
@@ -1781,7 +1781,7 @@ IMPL_LINK_NOARG(Window, ImplAsyncFocusHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
static void ImplHandleGetFocus( Window* pWindow )
{
@@ -1800,7 +1800,7 @@ static void ImplHandleGetFocus( Window* pWindow )
}
}
-// -----------------------------------------------------------------------
+
static void ImplHandleLoseFocus( Window* pWindow )
{
@@ -1840,7 +1840,7 @@ static void ImplHandleLoseFocus( Window* pWindow )
pFocusWin->ImplGetWindowImpl()->mpCursor->ImplHide( true );
}
-// -----------------------------------------------------------------------
+
struct DelayedCloseEvent
{
Window* pWindow;
@@ -1920,7 +1920,7 @@ void ImplHandleClose( Window* pWindow )
}
}
-// -----------------------------------------------------------------------
+
static void ImplHandleUserEvent( ImplSVEvent* pSVEvent )
{
@@ -1964,7 +1964,7 @@ static sal_uInt16 ImplGetMouseMoveMode( SalMouseEvent* pEvent )
return nMode;
}
-// -----------------------------------------------------------------------
+
static sal_uInt16 ImplGetMouseButtonMode( SalMouseEvent* pEvent )
{
@@ -1982,7 +1982,7 @@ static sal_uInt16 ImplGetMouseButtonMode( SalMouseEvent* pEvent )
return nMode;
}
-// -----------------------------------------------------------------------
+
inline bool ImplHandleSalMouseLeave( Window* pWindow, SalMouseEvent* pEvent )
{
@@ -1992,7 +1992,7 @@ inline bool ImplHandleSalMouseLeave( Window* pWindow, SalMouseEvent* pEvent )
ImplGetMouseMoveMode( pEvent ) );
}
-// -----------------------------------------------------------------------
+
inline bool ImplHandleSalMouseMove( Window* pWindow, SalMouseEvent* pEvent )
{
@@ -2002,7 +2002,7 @@ inline bool ImplHandleSalMouseMove( Window* pWindow, SalMouseEvent* pEvent )
ImplGetMouseMoveMode( pEvent ) );
}
-// -----------------------------------------------------------------------
+
inline bool ImplHandleSalMouseButtonDown( Window* pWindow, SalMouseEvent* pEvent )
{
@@ -2017,7 +2017,7 @@ inline bool ImplHandleSalMouseButtonDown( Window* pWindow, SalMouseEvent* pEvent
ImplGetMouseButtonMode( pEvent ) );
}
-// -----------------------------------------------------------------------
+
inline bool ImplHandleSalMouseButtonUp( Window* pWindow, SalMouseEvent* pEvent )
{
@@ -2032,14 +2032,14 @@ inline bool ImplHandleSalMouseButtonUp( Window* pWindow, SalMouseEvent* pEvent )
ImplGetMouseButtonMode( pEvent ) );
}
-// -----------------------------------------------------------------------
+
static bool ImplHandleSalMouseActivate( Window* /*pWindow*/, SalMouseActivateEvent* /*pEvent*/ )
{
return false;
}
-// -----------------------------------------------------------------------
+
static bool ImplHandleMenuEvent( Window* pWindow, SalMenuEvent* pEvent, sal_uInt16 nEvent )
{
@@ -2082,7 +2082,7 @@ static bool ImplHandleMenuEvent( Window* pWindow, SalMenuEvent* pEvent, sal_uInt
return nRet;
}
-// -----------------------------------------------------------------------
+
static void ImplHandleSalKeyMod( Window* pWindow, SalKeyModEvent* pEvent )
{
@@ -2121,7 +2121,7 @@ static void ImplHandleSalKeyMod( Window* pWindow, SalKeyModEvent* pEvent )
}
}
-// -----------------------------------------------------------------------
+
static void ImplHandleInputLanguageChange( Window* pWindow )
{
@@ -2133,7 +2133,7 @@ static void ImplHandleInputLanguageChange( Window* pWindow )
ImplCallCommand( pChild, COMMAND_INPUTLANGUAGECHANGE );
}
-// -----------------------------------------------------------------------
+
static void ImplHandleSalSettings( sal_uInt16 nEvent )
{
@@ -2187,7 +2187,7 @@ static void ImplHandleSalSettings( sal_uInt16 nEvent )
}
}
-// -----------------------------------------------------------------------
+
static void ImplHandleSalExtTextInputPos( Window* pWindow, SalExtTextInputPosEvent* pEvt )
{
@@ -2209,7 +2209,7 @@ static void ImplHandleSalExtTextInputPos( Window* pWindow, SalExtTextInputPosEve
}
}
-// -----------------------------------------------------------------------
+
static bool ImplHandleShowDialog( Window* pWindow, int nDialogId )
{
@@ -2226,7 +2226,7 @@ static bool ImplHandleShowDialog( Window* pWindow, int nDialogId )
return ImplCallCommand( pWindow, COMMAND_SHOWDIALOG, &aCmdData );
}
-// -----------------------------------------------------------------------
+
static void ImplHandleSurroundingTextRequest( Window *pWindow,
OUString& rText,
@@ -2249,7 +2249,7 @@ static void ImplHandleSurroundingTextRequest( Window *pWindow,
}
}
-// -----------------------------------------------------------------------
+
static void ImplHandleSalSurroundingTextRequest( Window *pWindow,
SalSurroundingTextRequestEvent *pEvt )
@@ -2274,7 +2274,7 @@ static void ImplHandleSalSurroundingTextRequest( Window *pWindow,
pEvt->mnEnd = aSelRange.Max();
}
-// -----------------------------------------------------------------------
+
static void ImplHandleSurroundingTextSelectionChange( Window *pWindow,
sal_uLong nStart,
@@ -2288,7 +2288,7 @@ static void ImplHandleSurroundingTextSelectionChange( Window *pWindow,
}
}
-// -----------------------------------------------------------------------
+
static void ImplHandleStartReconversion( Window *pWindow )
{
@@ -2297,7 +2297,7 @@ static void ImplHandleStartReconversion( Window *pWindow )
ImplCallCommand( pChild, COMMAND_PREPARERECONVERSION );
}
-// -----------------------------------------------------------------------
+
static void ImplHandleSalQueryCharPosition( Window *pWindow,
SalQueryCharPositionEvent *pEvt )
@@ -2342,7 +2342,7 @@ static void ImplHandleSalQueryCharPosition( Window *pWindow,
}
}
-// -----------------------------------------------------------------------
+
bool ImplWindowFrameProc( Window* pWindow, SalFrame* /*pFrame*/,
sal_uInt16 nEvent, const void* pEvent )
diff --git a/vcl/source/window/wrkwin.cxx b/vcl/source/window/wrkwin.cxx
index 4f6eee505780..3f29acade5bd 100644
--- a/vcl/source/window/wrkwin.cxx
+++ b/vcl/source/window/wrkwin.cxx
@@ -47,7 +47,7 @@ void WorkWindow::ImplInitWorkWindowData()
mbFullScreenMode = false;
}
-// -----------------------------------------------------------------------
+
void WorkWindow::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSystemParentData )
{
@@ -73,7 +73,7 @@ void WorkWindow::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pS
SetActivateMode( ACTIVATE_MODE_GRABFOCUS );
}
-// -----------------------------------------------------------------------
+
void WorkWindow::ImplInit( Window* pParent, WinBits nStyle, const ::com::sun::star::uno::Any& aSystemWorkWindowToken )
{
@@ -90,7 +90,7 @@ void WorkWindow::ImplInit( Window* pParent, WinBits nStyle, const ::com::sun::st
ImplInit( pParent, nStyle, NULL );
}
-// -----------------------------------------------------------------------
+
WorkWindow::WorkWindow( WindowType nType ) :
SystemWindow( nType )
@@ -98,7 +98,7 @@ WorkWindow::WorkWindow( WindowType nType ) :
ImplInitWorkWindowData();
}
-// -----------------------------------------------------------------------
+
WorkWindow::WorkWindow( Window* pParent, WinBits nStyle ) :
SystemWindow( WINDOW_WORKWINDOW )
@@ -107,7 +107,7 @@ WorkWindow::WorkWindow( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle, NULL );
}
-// -----------------------------------------------------------------------
+
WorkWindow::WorkWindow( Window* pParent, const ::com::sun::star::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) :
SystemWindow( WINDOW_WORKWINDOW )
@@ -117,7 +117,7 @@ WorkWindow::WorkWindow( Window* pParent, const ::com::sun::star::uno::Any& aSyst
ImplInit( pParent, nStyle, aSystemWorkWindowToken );
}
-// -----------------------------------------------------------------------
+
WorkWindow::WorkWindow( SystemParentData* pParent ) :
SystemWindow( WINDOW_WORKWINDOW )
@@ -127,7 +127,7 @@ WorkWindow::WorkWindow( SystemParentData* pParent ) :
ImplInit( NULL, 0, pParent );
}
-// -----------------------------------------------------------------------
+
WorkWindow::~WorkWindow()
{
@@ -139,7 +139,7 @@ WorkWindow::~WorkWindow()
}
}
-// -----------------------------------------------------------------------
+
void WorkWindow::ShowFullScreenMode( bool bFullScreenMode )
{
@@ -171,7 +171,7 @@ void WorkWindow::ShowFullScreenMode( bool bFullScreenMode, sal_Int32 nDisplayScr
}
}
-// -----------------------------------------------------------------------
+
void WorkWindow::StartPresentationMode( bool bPresentation, sal_uInt16 nFlags )
{
@@ -222,7 +222,7 @@ void WorkWindow::StartPresentationMode( bool bPresentation, sal_uInt16 nFlags, s
}
}
-// -----------------------------------------------------------------------
+
bool WorkWindow::IsMinimized() const
{
@@ -232,7 +232,7 @@ bool WorkWindow::IsMinimized() const
return (( aState.mnState & WINDOWSTATE_STATE_MINIMIZED ) != 0);
}
-// -----------------------------------------------------------------------
+
bool WorkWindow::SetPluginParent( SystemParentData* pParent )
{
diff --git a/vcl/unx/generic/app/i18n_cb.cxx b/vcl/unx/generic/app/i18n_cb.cxx
index b5c2f7775050..1c798ae8ec6a 100644
--- a/vcl/unx/generic/app/i18n_cb.cxx
+++ b/vcl/unx/generic/app/i18n_cb.cxx
@@ -38,11 +38,11 @@
#include "unx/i18n_im.hxx"
#include "salframe.hxx"
-// -------------------------------------------------------------------------
+
//
// i. preedit start callback
//
-// -------------------------------------------------------------------------
+
int
PreeditStartCallback ( XIC, XPointer client_data, XPointer )
@@ -58,11 +58,11 @@ PreeditStartCallback ( XIC, XPointer client_data, XPointer )
return -1;
}
-// -------------------------------------------------------------------------
+
//
// ii. preedit done callback
//
-// -------------------------------------------------------------------------
+
void
PreeditDoneCallback ( XIC, XPointer client_data, XPointer )
@@ -76,11 +76,11 @@ PreeditDoneCallback ( XIC, XPointer client_data, XPointer )
pPreeditData->eState = ePreeditStatusStartPending;
}
-// -------------------------------------------------------------------------
+
//
// iii. preedit draw callback
//
-// -------------------------------------------------------------------------
+
//
// Handle deletion of text in a preedit_draw_callback
@@ -423,11 +423,11 @@ GetPreeditSpotLocation(XIC ic, XPointer client_data)
return;
}
-// -------------------------------------------------------------------------
+
//
// iv. preedit caret callback
//
-// -------------------------------------------------------------------------
+
#if OSL_DEBUG_LEVEL > 1
void
@@ -472,12 +472,12 @@ PreeditCaretCallback ( XIC, XPointer,XIMPreeditCaretCallbackStruct* )
#endif
}
-// -----------------------------------------------------------------------
+
//
// v. commit string callback: convert an extended text input (iiimp ... )
// into an ordinary key-event
//
-// -----------------------------------------------------------------------
+
Bool
IsControlCode(sal_Unicode nChar)
@@ -488,11 +488,11 @@ IsControlCode(sal_Unicode nChar)
return False;
}
-// ----------------------------------------------------------------------------------
+
//
// vi. status callbacks: for now these are empty, they are just needed for turbo linux
//
-// ----------------------------------------------------------------------------------
+
void
StatusStartCallback (XIC, XPointer, XPointer)
@@ -557,11 +557,11 @@ SwitchIMCallback (XIC, XPointer, XPointer call_data)
::vcl::I18NStatus::get().changeIM( OStringToOUString(pCallData->to->name, RTL_TEXTENCODING_UTF8) );
}
-// ----------------------------------------------------------------------------------
+
//
// vii. destroy callbacks: internally disable all IC/IM calls
//
-// ----------------------------------------------------------------------------------
+
void
IC_IMDestroyCallback (XIM, XPointer client_data, XPointer)
diff --git a/vcl/unx/generic/app/i18n_ic.cxx b/vcl/unx/generic/app/i18n_ic.cxx
index 84d2e441a436..d486066e82b8 100644
--- a/vcl/unx/generic/app/i18n_ic.cxx
+++ b/vcl/unx/generic/app/i18n_ic.cxx
@@ -56,12 +56,12 @@ static void sendEmptyCommit( SalFrame* pFrame )
pFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, NULL );
}
-// ---------------------------------------------------------------------------
+
//
// Constructor / Destructor, the InputContext is bound to the SalFrame, as it
// needs the shell window as a focus window
//
-// ----------------------------------------------------------------------------
+
SalI18N_InputContext::~SalI18N_InputContext()
{
@@ -80,9 +80,9 @@ SalI18N_InputContext::~SalI18N_InputContext()
free(maClientData.aText.pCharStyle);
}
-// ----------------------------------------------------------------------------
+
// convenience routine to add items to a XVaNestedList
-// ----------------------------------------------------------------------------
+
static XVaNestedList
XVaAddToNestedList( XVaNestedList a_srclist, char* name, XPointer value )
@@ -111,9 +111,9 @@ XVaAddToNestedList( XVaNestedList a_srclist, char* name, XPointer value )
return a_dstlist != NULL ? a_dstlist : a_srclist ;
}
-// ----------------------------------------------------------------------------
+
// convenience routine to create a fontset
-// ----------------------------------------------------------------------------
+
static XFontSet
get_font_set( Display *p_display )
@@ -133,11 +133,11 @@ get_font_set( Display *p_display )
return p_font_set;
}
-// ---------------------------------------------------------------------------
+
//
// Constructor for a InputContext (IC)
//
-// ----------------------------------------------------------------------------
+
SalI18N_InputContext::SalI18N_InputContext ( SalFrame *pFrame ) :
mbUseable( True ),
@@ -373,12 +373,12 @@ SalI18N_InputContext::SalI18N_InputContext ( SalFrame *pFrame ) :
}
}
-// ---------------------------------------------------------------------------
+
//
// In Solaris 8 the status window does not unmap if the frame unmapps, so
// unmap it the hard way
//
-// ---------------------------------------------------------------------------
+
void
SalI18N_InputContext::Unmap( SalFrame* pFrame )
@@ -419,12 +419,12 @@ SalI18N_InputContext::Map( SalFrame *pFrame )
}
}
-// --------------------------------------------------------------------------
+
//
// Handle DestroyCallbacks
// in fact this is a callback called from the XNDestroyCallback
//
-// --------------------------------------------------------------------------
+
void
SalI18N_InputContext::HandleDestroyIM()
@@ -433,12 +433,12 @@ SalI18N_InputContext::HandleDestroyIM()
mbUseable = False;
}
-// ---------------------------------------------------------------------------
+
//
// make sure, the input method gets all the X-Events it needs, this is only
// called once on each frame, it relys on a valid maContext
//
-// ---------------------------------------------------------------------------
+
void
SalI18N_InputContext::ExtendEventMask( XLIB_Window aFocusWindow )
@@ -460,11 +460,11 @@ SalI18N_InputContext::ExtendEventMask( XLIB_Window aFocusWindow )
}
}
-// ---------------------------------------------------------------------------
+
//
// tune the styles provided by the input method with the supported one
//
-// ---------------------------------------------------------------------------
+
unsigned int
SalI18N_InputContext::GetWeightingOfIMStyle( XIMStyle nStyle ) const
@@ -547,11 +547,11 @@ SalI18N_InputContext::SupportInputMethodStyle( XIMStyles *pIMStyles )
return (mnPreeditStyle != 0) && (mnStatusStyle != 0) ;
}
-// ---------------------------------------------------------------------------
+
//
// handle extended and normal key input
//
-// ---------------------------------------------------------------------------
+
int
SalI18N_InputContext::CommitKeyEvent(sal_Unicode* pText, sal_Size nLength)
@@ -603,13 +603,13 @@ SalI18N_InputContext::UpdateSpotLocation()
return 0;
}
-// ---------------------------------------------------------------------------
+
//
// set and unset the focus for the Input Context
// the context may be NULL despite it is useable if the framewindow is
// in unmapped state
//
-// ---------------------------------------------------------------------------
+
void
SalI18N_InputContext::SetICFocus( SalFrame* pFocusFrame )
@@ -655,11 +655,11 @@ SalI18N_InputContext::UnsetICFocus( SalFrame* pFrame )
}
}
-// ---------------------------------------------------------------------------
+
//
// multi byte input method only
//
-// ---------------------------------------------------------------------------
+
void
SalI18N_InputContext::SetLanguage(LanguageType)
diff --git a/vcl/unx/generic/app/i18n_im.cxx b/vcl/unx/generic/app/i18n_im.cxx
index 9d91943e468b..576023b3621b 100644
--- a/vcl/unx/generic/app/i18n_im.cxx
+++ b/vcl/unx/generic/app/i18n_im.cxx
@@ -48,12 +48,12 @@ using namespace vcl;
extern "C" char * XSetIMValues(XIM im, ...);
#endif
-// ------------------------------------------------------------------------------------
+
//
// kinput2 IME needs special key handling since key release events are filtered in
// preeditmode and XmbResetIC does not work
//
-// ------------------------------------------------------------------------------------
+
bool
IMServerKinput2 ()
@@ -143,11 +143,11 @@ XKeyEventOp::match (const XKeyEvent &rEvent) const
&& same_screen == rEvent.same_screen;
}
-// -------------------------------------------------------------------------
+
//
// locale handling
//
-// -------------------------------------------------------------------------
+
// Locale handling of the operating system layer
@@ -262,11 +262,11 @@ SalI18N_InputMethod::PosixLocale()
return False;
}
-// ------------------------------------------------------------------------
+
//
// Constructor / Destructor / Initialisation
//
-// ------------------------------------------------------------------------
+
SalI18N_InputMethod::SalI18N_InputMethod( ) : mbUseable( bUseInputMethodDefault ),
maMethod( (XIM)NULL ),
@@ -446,7 +446,7 @@ SalI18N_InputMethod::HandleDestroyIM()
maMethod = NULL;
}
-// ------------------------------------------------------------------------
+
//
// add a connection watch into the SalXLib yieldTable to allow iiimp
// connection processing: soffice waits in select() not in XNextEvent(), so
@@ -455,7 +455,7 @@ SalI18N_InputMethod::HandleDestroyIM()
// have the focus because the atok12 lookup choice aux window has it we stay
// deaf and dump otherwise.
//
-// ------------------------------------------------------------------------
+
int
InputMethod_HasPendingEvent(int nFileDescriptor, void *pData)
diff --git a/vcl/unx/generic/app/i18n_status.cxx b/vcl/unx/generic/app/i18n_status.cxx
index 3446d18472dc..995c25b645c6 100644
--- a/vcl/unx/generic/app/i18n_status.cxx
+++ b/vcl/unx/generic/app/i18n_status.cxx
@@ -75,7 +75,7 @@ void StatusWindow::setPosition( SalFrame* )
{
}
-// --------------------------------------------------------------------------
+
namespace vcl {
@@ -301,7 +301,7 @@ OUString XIMStatusWindow::getText() const
return m_aStatusText.GetText();
}
-// --------------------------------------------------------------------------
+
namespace vcl {
@@ -470,7 +470,7 @@ void IIIMPStatusWindow::GetFocus()
}
}
-// --------------------------------------------------------------------------
+
IMPL_LINK( IIIMPStatusWindow, SelectHdl, MenuButton*, pBtn )
{
@@ -516,14 +516,14 @@ I18NStatus& I18NStatus::get()
return *pInstance;
}
-// --------------------------------------------------------------------------
+
bool I18NStatus::exists()
{
return pInstance != NULL;
}
-// --------------------------------------------------------------------------
+
void I18NStatus::free()
{
@@ -531,7 +531,7 @@ void I18NStatus::free()
delete pInstance, pInstance = NULL;
}
-// --------------------------------------------------------------------------
+
I18NStatus::I18NStatus() :
m_pParent( NULL ),
@@ -539,7 +539,7 @@ I18NStatus::I18NStatus() :
{
}
-// --------------------------------------------------------------------------
+
I18NStatus::~I18NStatus()
{
@@ -549,7 +549,7 @@ I18NStatus::~I18NStatus()
pInstance = NULL;
}
-// --------------------------------------------------------------------------
+
void I18NStatus::setParent( SalFrame* pParent )
{
@@ -567,7 +567,7 @@ void I18NStatus::setParent( SalFrame* pParent )
m_pStatusWindow->setPosition( m_pParent );
}
-// --------------------------------------------------------------------------
+
void I18NStatus::show( bool bShow, ShowReason eReason )
{
@@ -578,7 +578,7 @@ void I18NStatus::show( bool bShow, ShowReason eReason )
}
}
-// --------------------------------------------------------------------------
+
void I18NStatus::setStatusText( const OUString& rText )
{
@@ -615,14 +615,14 @@ void I18NStatus::setStatusText( const OUString& rText )
}
}
-// --------------------------------------------------------------------------
+
void I18NStatus::changeIM( const OUString& rIM )
{
m_aCurrentIM = rIM;
}
-// --------------------------------------------------------------------------
+
SalFrame* I18NStatus::getStatusFrame() const
{
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index 2ea2c4c61141..23d296c0ed7b 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -146,7 +146,7 @@ static bool sal_GetVisualInfo( Display *pDisplay, XID nVID, XVisualInfo &rVI )
return true;
}
-// ---------------------------------------------------------------------------
+
extern "C" srv_vendor_t
sal_GetServerVendor( Display *p_display )
{
diff --git a/vcl/unx/generic/app/salinst.cxx b/vcl/unx/generic/app/salinst.cxx
index 487cd637f45d..02066a6b074e 100644
--- a/vcl/unx/generic/app/salinst.cxx
+++ b/vcl/unx/generic/app/salinst.cxx
@@ -78,7 +78,7 @@ X11SalInstance::~X11SalInstance()
}
-// --------------------------------------------------------
+
// AnyInput from sv/mow/source/app/svapp.cxx
struct PredicateReturn
diff --git a/vcl/unx/generic/dtrans/X11_clipboard.cxx b/vcl/unx/generic/dtrans/X11_clipboard.cxx
index 10863b26f470..521c8b404095 100644
--- a/vcl/unx/generic/dtrans/X11_clipboard.cxx
+++ b/vcl/unx/generic/dtrans/X11_clipboard.cxx
@@ -71,7 +71,7 @@ X11Clipboard::X11Clipboard( SelectionManager& rManager, Atom aSelection ) :
}
}
-// ------------------------------------------------------------------------
+
X11Clipboard::~X11Clipboard()
{
@@ -90,7 +90,7 @@ X11Clipboard::~X11Clipboard()
}
-// ------------------------------------------------------------------------
+
void X11Clipboard::fireChangedContentsEvent()
{
@@ -111,7 +111,7 @@ void X11Clipboard::fireChangedContentsEvent()
}
}
-// ------------------------------------------------------------------------
+
void X11Clipboard::clearContents()
{
@@ -134,7 +134,7 @@ void X11Clipboard::clearContents()
xOwner->lostOwnership(xThis, m_aContents);
}
-// ------------------------------------------------------------------------
+
Reference< XTransferable > SAL_CALL X11Clipboard::getContents()
throw(RuntimeException)
@@ -146,7 +146,7 @@ Reference< XTransferable > SAL_CALL X11Clipboard::getContents()
return m_aContents;
}
-// ------------------------------------------------------------------------
+
void SAL_CALL X11Clipboard::setContents(
const Reference< XTransferable >& xTrans,
@@ -181,7 +181,7 @@ void SAL_CALL X11Clipboard::setContents(
fireChangedContentsEvent();
}
-// ------------------------------------------------------------------------
+
OUString SAL_CALL X11Clipboard::getName()
throw(RuntimeException)
@@ -189,7 +189,7 @@ OUString SAL_CALL X11Clipboard::getName()
return m_rSelectionManager.getString( m_aSelection );
}
-// ------------------------------------------------------------------------
+
sal_Int8 SAL_CALL X11Clipboard::getRenderingCapabilities()
throw(RuntimeException)
@@ -198,7 +198,7 @@ sal_Int8 SAL_CALL X11Clipboard::getRenderingCapabilities()
}
-// ------------------------------------------------------------------------
+
void SAL_CALL X11Clipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
throw(RuntimeException)
{
@@ -206,7 +206,7 @@ void SAL_CALL X11Clipboard::addClipboardListener( const Reference< XClipboardLis
m_aListeners.push_back( listener );
}
-// ------------------------------------------------------------------------
+
void SAL_CALL X11Clipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
throw(RuntimeException)
@@ -216,35 +216,35 @@ void SAL_CALL X11Clipboard::removeClipboardListener( const Reference< XClipboard
}
-// ------------------------------------------------------------------------
+
Reference< XTransferable > X11Clipboard::getTransferable()
{
return getContents();
}
-// ------------------------------------------------------------------------
+
void X11Clipboard::clearTransferable()
{
clearContents();
}
-// ------------------------------------------------------------------------
+
void X11Clipboard::fireContentsChanged()
{
fireChangedContentsEvent();
}
-// ------------------------------------------------------------------------
+
Reference< XInterface > X11Clipboard::getReference() throw()
{
return Reference< XInterface >( static_cast< OWeakObject* >(this) );
}
-// ------------------------------------------------------------------------
+
OUString SAL_CALL X11Clipboard::getImplementationName( )
throw(RuntimeException)
diff --git a/vcl/unx/generic/dtrans/X11_droptarget.cxx b/vcl/unx/generic/dtrans/X11_droptarget.cxx
index f8463ab7dedd..9c593a487d34 100644
--- a/vcl/unx/generic/dtrans/X11_droptarget.cxx
+++ b/vcl/unx/generic/dtrans/X11_droptarget.cxx
@@ -46,7 +46,7 @@ DropTarget::~DropTarget()
m_pSelectionManager->deregisterDropTarget( m_aTargetWindow );
}
-// --------------------------------------------------------------------------
+
void DropTarget::initialize( const Sequence< Any >& arguments ) throw( ::com::sun::star::uno::Exception )
{
@@ -76,7 +76,7 @@ void DropTarget::initialize( const Sequence< Any >& arguments ) throw( ::com::su
}
}
-// --------------------------------------------------------------------------
+
void DropTarget::addDropTargetListener( const Reference< XDropTargetListener >& xListener ) throw()
{
@@ -85,7 +85,7 @@ void DropTarget::addDropTargetListener( const Reference< XDropTargetListener >&
m_aListeners.push_back( xListener );
}
-// --------------------------------------------------------------------------
+
void DropTarget::removeDropTargetListener( const Reference< XDropTargetListener >& xListener ) throw()
{
@@ -94,14 +94,14 @@ void DropTarget::removeDropTargetListener( const Reference< XDropTargetListener
m_aListeners.remove( xListener );
}
-// --------------------------------------------------------------------------
+
sal_Bool DropTarget::isActive() throw()
{
return m_bActive;
}
-// --------------------------------------------------------------------------
+
void DropTarget::setActive( sal_Bool active ) throw()
{
@@ -110,14 +110,14 @@ void DropTarget::setActive( sal_Bool active ) throw()
m_bActive = active;
}
-// --------------------------------------------------------------------------
+
sal_Int8 DropTarget::getDefaultActions() throw()
{
return m_nDefaultActions;
}
-// --------------------------------------------------------------------------
+
void DropTarget::setDefaultActions( sal_Int8 actions ) throw()
{
@@ -126,7 +126,7 @@ void DropTarget::setDefaultActions( sal_Int8 actions ) throw()
m_nDefaultActions = actions;
}
-// --------------------------------------------------------------------------
+
void DropTarget::drop( const DropTargetDropEvent& dtde ) throw()
{
@@ -140,7 +140,7 @@ void DropTarget::drop( const DropTargetDropEvent& dtde ) throw()
}
}
-// --------------------------------------------------------------------------
+
void DropTarget::dragEnter( const DropTargetDragEnterEvent& dtde ) throw()
{
@@ -154,7 +154,7 @@ void DropTarget::dragEnter( const DropTargetDragEnterEvent& dtde ) throw()
}
}
-// --------------------------------------------------------------------------
+
void DropTarget::dragExit( const DropTargetEvent& dte ) throw()
{
@@ -168,7 +168,7 @@ void DropTarget::dragExit( const DropTargetEvent& dte ) throw()
}
}
-// --------------------------------------------------------------------------
+
void DropTarget::dragOver( const DropTargetDragEvent& dtde ) throw()
{
diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx
index 9ae8e0ebbd4e..ff8e07a80ba0 100644
--- a/vcl/unx/generic/dtrans/X11_selection.cxx
+++ b/vcl/unx/generic/dtrans/X11_selection.cxx
@@ -199,7 +199,7 @@ rtl_TextEncoding x11::getTextPlainEncoding( const OUString& rMimeType )
return aEncoding;
}
-// ------------------------------------------------------------------------
+
::boost::unordered_map< OUString, SelectionManager*, OUStringHash >& SelectionManager::getInstances()
{
@@ -207,7 +207,7 @@ rtl_TextEncoding x11::getTextPlainEncoding( const OUString& rMimeType )
return aInstances;
}
-// ------------------------------------------------------------------------
+
SelectionManager::SelectionManager() :
m_nIncrementalThreshold( 15*1024 ),
@@ -461,7 +461,7 @@ void SelectionManager::initialize( const Sequence< Any >& arguments ) throw (::c
}
}
-// ------------------------------------------------------------------------
+
SelectionManager::~SelectionManager()
{
@@ -526,7 +526,7 @@ SelectionManager::~SelectionManager()
}
}
-// ------------------------------------------------------------------------
+
SelectionAdaptor* SelectionManager::getAdaptor( Atom selection )
{
@@ -535,7 +535,7 @@ SelectionAdaptor* SelectionManager::getAdaptor( Atom selection )
return it != m_aSelections.end() ? it->second->m_pAdaptor : NULL;
}
-// ------------------------------------------------------------------------
+
OUString SelectionManager::convertFromCompound( const char* pText, int nLen )
{
@@ -566,7 +566,7 @@ OUString SelectionManager::convertFromCompound( const char* pText, int nLen )
return aRet;
}
-// ------------------------------------------------------------------------
+
OString SelectionManager::convertToCompound( const OUString& rText )
{
@@ -606,7 +606,7 @@ OString SelectionManager::convertToCompound( const OUString& rText )
return aRet;
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::convertData(
const css::uno::Reference< XTransferable >& xTransferable,
@@ -686,7 +686,7 @@ bool SelectionManager::convertData(
return bSuccess;
}
-// ------------------------------------------------------------------------
+
SelectionManager& SelectionManager::get( const OUString& rDisplayName )
{
@@ -705,7 +705,7 @@ SelectionManager& SelectionManager::get( const OUString& rDisplayName )
return *pInstance;
}
-// ------------------------------------------------------------------------
+
const OUString& SelectionManager::getString( Atom aAtom )
{
@@ -726,7 +726,7 @@ const OUString& SelectionManager::getString( Atom aAtom )
return m_aAtomToString[ aAtom ];
}
-// ------------------------------------------------------------------------
+
Atom SelectionManager::getAtom( const OUString& rString )
{
@@ -743,7 +743,7 @@ Atom SelectionManager::getAtom( const OUString& rString )
return m_aStringToAtom[ rString ];
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::requestOwnership( Atom selection )
{
@@ -787,7 +787,7 @@ bool SelectionManager::requestOwnership( Atom selection )
return bSuccess;
}
-// ------------------------------------------------------------------------
+
void SelectionManager::convertTypeToNative( const OUString& rType, Atom selection, int& rFormat, ::std::list< Atom >& rConversions, bool bPushFront )
{
@@ -830,7 +830,7 @@ void SelectionManager::convertTypeToNative( const OUString& rType, Atom selectio
rConversions.push_back( getAtom( rType ) );
};
-// ------------------------------------------------------------------------
+
void SelectionManager::getNativeTypeList( const Sequence< DataFlavor >& rTypes, std::list< Atom >& rOutTypeList, Atom targetselection )
{
@@ -861,7 +861,7 @@ void SelectionManager::getNativeTypeList( const Sequence< DataFlavor >& rTypes,
rOutTypeList.push_back( m_nMULTIPLEAtom );
}
-// ------------------------------------------------------------------------
+
OUString SelectionManager::convertTypeFromNative( Atom nType, Atom selection, int& rFormat )
{
@@ -882,7 +882,7 @@ OUString SelectionManager::convertTypeFromNative( Atom nType, Atom selection, in
return getString( nType );
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::getPasteData( Atom selection, Atom type, Sequence< sal_Int8 >& rData )
{
@@ -1020,7 +1020,7 @@ bool SelectionManager::getPasteData( Atom selection, Atom type, Sequence< sal_In
return bSuccess;
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::getPasteData( Atom selection, const OUString& rType, Sequence< sal_Int8 >& rData )
{
@@ -1235,7 +1235,7 @@ bool SelectionManager::getPasteData( Atom selection, const OUString& rType, Sequ
return bSuccess;
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::getPasteDataTypes( Atom selection, Sequence< DataFlavor >& rTypes )
{
@@ -1440,7 +1440,7 @@ bool SelectionManager::getPasteDataTypes( Atom selection, Sequence< DataFlavor >
return bSuccess;
}
-// ------------------------------------------------------------------------
+
PixmapHolder* SelectionManager::getPixmapHolder( Atom selection )
{
@@ -1600,7 +1600,7 @@ bool SelectionManager::sendData( SelectionAdaptor* pAdaptor,
return bConverted;
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::handleSelectionRequest( XSelectionRequestEvent& rRequest )
{
@@ -1809,7 +1809,7 @@ bool SelectionManager::handleSelectionRequest( XSelectionRequestEvent& rRequest
return true;
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent& rNotify )
{
@@ -1928,7 +1928,7 @@ bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent& rNotify )
return bHandled;
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::handleSendPropertyNotify( XPropertyEvent& rNotify )
{
@@ -2028,7 +2028,7 @@ bool SelectionManager::handleSendPropertyNotify( XPropertyEvent& rNotify )
return bHandled;
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::handleSelectionNotify( XSelectionEvent& rNotify )
{
@@ -2121,7 +2121,7 @@ bool SelectionManager::handleSelectionNotify( XSelectionEvent& rNotify )
return bHandled;
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::handleDropEvent( XClientMessageEvent& rMessage )
{
@@ -2371,7 +2371,7 @@ void SelectionManager::dropComplete( bool bSuccess, XLIB_Window aDropWindow, XLI
* methods for XDropTargetDragContext
*/
-// ------------------------------------------------------------------------
+
void SelectionManager::sendDragStatus( Atom nDropAction )
{
@@ -2440,14 +2440,14 @@ void SelectionManager::sendDragStatus( Atom nDropAction )
}
}
-// ------------------------------------------------------------------------
+
sal_Int8 SelectionManager::getUserDragAction() const
{
return (m_nTargetAcceptAction != DNDConstants::ACTION_DEFAULT) ? m_nTargetAcceptAction : m_nUserDragAction;
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::updateDragAction( int modifierState )
{
@@ -2500,7 +2500,7 @@ bool SelectionManager::updateDragAction( int modifierState )
return bRet;
}
-// ------------------------------------------------------------------------
+
void SelectionManager::sendDropPosition( bool bForce, XLIB_Time eventTime )
{
@@ -2560,7 +2560,7 @@ void SelectionManager::sendDropPosition( bool bForce, XLIB_Time eventTime )
}
}
-// ------------------------------------------------------------------------
+
bool SelectionManager::handleDragEvent( XEvent& rMessage )
{
@@ -2881,7 +2881,7 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
return bHandled;
}
-// ------------------------------------------------------------------------
+
void SelectionManager::accept( sal_Int8 dragOperation, XLIB_Window aDropWindow, XLIB_Time )
{
@@ -2903,7 +2903,7 @@ void SelectionManager::accept( sal_Int8 dragOperation, XLIB_Window aDropWindow,
}
}
-// ------------------------------------------------------------------------
+
void SelectionManager::reject( XLIB_Window aDropWindow, XLIB_Time )
{
@@ -2937,7 +2937,7 @@ sal_Bool SelectionManager::isDragImageSupported() throw()
return sal_False;
}
-// ------------------------------------------------------------------------
+
sal_Int32 SelectionManager::getDefaultCursor( sal_Int8 dragAction ) throw()
{
@@ -2951,7 +2951,7 @@ sal_Int32 SelectionManager::getDefaultCursor( sal_Int8 dragAction ) throw()
return aCursor;
}
-// ------------------------------------------------------------------------
+
int SelectionManager::getXdndVersion( XLIB_Window aWindow, XLIB_Window& rProxy )
{
@@ -3022,7 +3022,7 @@ int SelectionManager::getXdndVersion( XLIB_Window aWindow, XLIB_Window& rProxy )
return nVersion;
}
-// ------------------------------------------------------------------------
+
void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
{
@@ -3181,7 +3181,7 @@ void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
}
}
-// ------------------------------------------------------------------------
+
void SelectionManager::startDrag(
const DragGestureEvent& trigger,
@@ -3527,7 +3527,7 @@ sal_Int32 SelectionManager::getCurrentCursor()
return m_aCurrentCursor;
}
-// ------------------------------------------------------------------------
+
void SelectionManager::setCursor( sal_Int32 cursor, XLIB_Window aDropWindow, XLIB_Time )
{
@@ -3543,13 +3543,13 @@ void SelectionManager::setCursor( sal_Int32 cursor, XLIB_Window aDropWindow, XLI
}
}
-// ------------------------------------------------------------------------
+
void SelectionManager::setImage( sal_Int32, XLIB_Window, XLIB_Time )
{
}
-// ------------------------------------------------------------------------
+
void SelectionManager::transferablesFlavorsChanged()
{
@@ -3602,7 +3602,7 @@ void SelectionManager::transferablesFlavorsChanged()
* dispatch loop
*/
-// ------------------------------------------------------------------------
+
bool SelectionManager::handleXEvent( XEvent& rEvent )
{
@@ -3688,7 +3688,7 @@ bool SelectionManager::handleXEvent( XEvent& rEvent )
return bHandled;
}
-// ------------------------------------------------------------------------
+
void SelectionManager::dispatchEvent( int millisec )
{
@@ -3730,7 +3730,7 @@ void SelectionManager::dispatchEvent( int millisec )
}
}
-// ------------------------------------------------------------------------
+
void SelectionManager::run( void* pThis )
{
@@ -3855,7 +3855,7 @@ void SelectionManager::shutdown() throw()
m_xDropTransferable.clear();
}
-// ------------------------------------------------------------------------
+
sal_Bool SelectionManager::handleEvent( const Any& event ) throw()
{
@@ -3915,7 +3915,7 @@ void SAL_CALL SelectionManager::notifyTermination( const ::com::sun::star::lang:
disposing(rEvent);
}
-// ------------------------------------------------------------------------
+
void SelectionManager::registerHandler( Atom selection, SelectionAdaptor& rAdaptor )
{
@@ -3927,7 +3927,7 @@ void SelectionManager::registerHandler( Atom selection, SelectionAdaptor& rAdapt
m_aSelections[ selection ] = pNewSelection;
}
-// ------------------------------------------------------------------------
+
void SelectionManager::deregisterHandler( Atom selection )
{
@@ -3943,7 +3943,7 @@ void SelectionManager::deregisterHandler( Atom selection )
}
}
-// ------------------------------------------------------------------------
+
static bool bWasError = false;
@@ -3999,7 +3999,7 @@ void SelectionManager::registerDropTarget( XLIB_Window aWindow, DropTarget* pTar
OSL_FAIL( "attempt to register None as drop target" );
}
-// ------------------------------------------------------------------------
+
void SelectionManager::deregisterDropTarget( XLIB_Window aWindow )
{
@@ -4055,27 +4055,27 @@ css::uno::Reference< XTransferable > SelectionManager::getTransferable() throw()
return m_xDragSourceTransferable;
}
-// ------------------------------------------------------------------------
+
void SelectionManager::clearTransferable() throw()
{
m_xDragSourceTransferable.clear();
}
-// ------------------------------------------------------------------------
+
void SelectionManager::fireContentsChanged() throw()
{
}
-// ------------------------------------------------------------------------
+
css::uno::Reference< XInterface > SelectionManager::getReference() throw()
{
return css::uno::Reference< XInterface >( static_cast<OWeakObject*>(this) );
}
-// ------------------------------------------------------------------------
+
/*
* SelectionManagerHolder
@@ -4089,13 +4089,13 @@ SelectionManagerHolder::SelectionManagerHolder() :
{
}
-// ------------------------------------------------------------------------
+
SelectionManagerHolder::~SelectionManagerHolder()
{
}
-// ------------------------------------------------------------------------
+
void SelectionManagerHolder::initialize( const Sequence< Any >& arguments ) throw( ::com::sun::star::uno::Exception )
{
@@ -4126,14 +4126,14 @@ sal_Bool SelectionManagerHolder::isDragImageSupported() throw()
return m_xRealDragSource.is() ? m_xRealDragSource->isDragImageSupported() : sal_False;
}
-// ------------------------------------------------------------------------
+
sal_Int32 SelectionManagerHolder::getDefaultCursor( sal_Int8 dragAction ) throw()
{
return m_xRealDragSource.is() ? m_xRealDragSource->getDefaultCursor( dragAction ) : 0;
}
-// ------------------------------------------------------------------------
+
void SelectionManagerHolder::startDrag(
const ::com::sun::star::datatransfer::dnd::DragGestureEvent& trigger,
@@ -4146,13 +4146,13 @@ void SelectionManagerHolder::startDrag(
m_xRealDragSource->startDrag( trigger, sourceActions, cursor, image, transferable, listener );
}
-// ------------------------------------------------------------------------
+
/*
* XServiceInfo
*/
-// ------------------------------------------------------------------------
+
OUString SelectionManagerHolder::getImplementationName() throw()
{
diff --git a/vcl/unx/generic/dtrans/X11_service.cxx b/vcl/unx/generic/dtrans/X11_service.cxx
index 644e88db036f..0ed55666cd97 100644
--- a/vcl/unx/generic/dtrans/X11_service.cxx
+++ b/vcl/unx/generic/dtrans/X11_service.cxx
@@ -57,7 +57,7 @@ Sequence< OUString > SAL_CALL x11::Xdnd_dropTarget_getSupportedServiceNames()
return aRet;
}
-// ------------------------------------------------------------------------
+
css::uno::Reference< XInterface > X11SalInstance::CreateClipboard( const Sequence< Any >& arguments )
{
@@ -86,14 +86,14 @@ css::uno::Reference< XInterface > X11SalInstance::CreateClipboard( const Sequenc
return static_cast<OWeakObject*>(pClipboard);
}
-// ------------------------------------------------------------------------
+
css::uno::Reference< XInterface > X11SalInstance::CreateDragSource()
{
return css::uno::Reference < XInterface >( ( OWeakObject * ) new SelectionManagerHolder() );
}
-// ------------------------------------------------------------------------
+
css::uno::Reference< XInterface > X11SalInstance::CreateDropTarget()
{
diff --git a/vcl/unx/generic/gdi/gcach_xpeer.cxx b/vcl/unx/generic/gdi/gcach_xpeer.cxx
index 49ba13ee747c..44e82c5b44c9 100644
--- a/vcl/unx/generic/gdi/gcach_xpeer.cxx
+++ b/vcl/unx/generic/gdi/gcach_xpeer.cxx
@@ -35,7 +35,7 @@ X11GlyphPeer::X11GlyphPeer()
{
}
-// ---------------------------------------------------------------------------
+
X11GlyphPeer::~X11GlyphPeer()
{
@@ -69,7 +69,7 @@ X11GlyphCache::X11GlyphCache( X11GlyphPeer& rPeer )
{
}
-// ---------------------------------------------------------------------------
+
namespace
{
@@ -111,7 +111,7 @@ X11GlyphCache& X11GlyphCache::GetInstance()
return theGlyphCacheHolder::get().getGlyphCache();
}
-// ---------------------------------------------------------------------------
+
void X11GlyphCache::KillInstance()
{
diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx
index 00538b00f9fe..d748e6a94ce6 100644
--- a/vcl/unx/generic/gdi/salbmp.cxx
+++ b/vcl/unx/generic/gdi/salbmp.cxx
@@ -48,9 +48,9 @@
#include <valgrind/memcheck.h>
#endif
-// -------------
+
// - SalBitmap -
-// -------------
+
SalBitmap* X11SalInstance::CreateSalBitmap()
{
@@ -60,7 +60,7 @@ SalBitmap* X11SalInstance::CreateSalBitmap()
ImplSalBitmapCache* X11SalBitmap::mpCache = NULL;
sal_uLong X11SalBitmap::mnCacheInstCount = 0;
-// -----------------------------------------------------------------------------
+
X11SalBitmap::X11SalBitmap()
: mpDIB( NULL )
@@ -69,14 +69,14 @@ X11SalBitmap::X11SalBitmap()
{
}
-// -----------------------------------------------------------------------------
+
X11SalBitmap::~X11SalBitmap()
{
Destroy();
}
-// -----------------------------------------------------------------------------
+
void X11SalBitmap::ImplCreateCache()
{
@@ -84,7 +84,7 @@ void X11SalBitmap::ImplCreateCache()
mpCache = new ImplSalBitmapCache;
}
-// -----------------------------------------------------------------------------
+
void X11SalBitmap::ImplDestroyCache()
{
@@ -94,7 +94,7 @@ void X11SalBitmap::ImplDestroyCache()
delete mpCache, mpCache = NULL;
}
-// -----------------------------------------------------------------------------
+
void X11SalBitmap::ImplRemovedFromCache()
{
@@ -120,7 +120,7 @@ namespace
}
#endif
-// -----------------------------------------------------------------------------
+
BitmapBuffer* X11SalBitmap::ImplCreateDIB(
const Size& rSize,
@@ -211,7 +211,7 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
return pDIB;
}
-// -----------------------------------------------------------------------------
+
BitmapBuffer* X11SalBitmap::ImplCreateDIB(
Drawable aDrawable,
@@ -386,7 +386,7 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
return pDIB;
}
-// -----------------------------------------------------------------------------
+
XImage* X11SalBitmap::ImplCreateXImage(
SalDisplay *pSalDisp,
@@ -562,7 +562,7 @@ XImage* X11SalBitmap::ImplCreateXImage(
return pImage;
}
-// -----------------------------------------------------------------------------
+
bool X11SalBitmap::ImplCreateFromDrawable(
Drawable aDrawable,
SalX11Screen nScreen,
@@ -579,7 +579,7 @@ bool X11SalBitmap::ImplCreateFromDrawable(
return( mpDDB != NULL );
}
-// -----------------------------------------------------------------------------
+
ImplSalDDB* X11SalBitmap::ImplGetDDB(
Drawable aDrawable,
@@ -678,7 +678,7 @@ ImplSalDDB* X11SalBitmap::ImplGetDDB(
return mpDDB;
}
-// -----------------------------------------------------------------------------
+
void X11SalBitmap::ImplDraw(
Drawable aDrawable,
@@ -693,7 +693,7 @@ void X11SalBitmap::ImplDraw(
mpDDB->ImplDraw( aDrawable, nDrawableDepth, rTwoRect, rGC );
}
-// -----------------------------------------------------------------------------
+
bool X11SalBitmap::Create( const Size& rSize, sal_uInt16 nBitCount, const BitmapPalette& rPal )
{
@@ -703,7 +703,7 @@ bool X11SalBitmap::Create( const Size& rSize, sal_uInt16 nBitCount, const Bitmap
return( mpDIB != NULL );
}
-// -----------------------------------------------------------------------------
+
bool X11SalBitmap::Create( const SalBitmap& rSSalBmp )
{
@@ -744,21 +744,21 @@ bool X11SalBitmap::Create( const SalBitmap& rSSalBmp )
( rSalBmp.mpDDB && ( mpDDB != NULL ) ) );
}
-// -----------------------------------------------------------------------------
+
bool X11SalBitmap::Create( const SalBitmap&, SalGraphics* )
{
return false;
}
-// -----------------------------------------------------------------------------
+
bool X11SalBitmap::Create( const SalBitmap&, sal_uInt16 )
{
return false;
}
-// -----------------------------------------------------------------------------
+
bool X11SalBitmap::Create(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
@@ -799,7 +799,7 @@ bool X11SalBitmap::Create(
return false;
}
-// -----------------------------------------------------------------------------
+
void X11SalBitmap::Destroy()
{
@@ -816,7 +816,7 @@ void X11SalBitmap::Destroy()
mpCache->ImplRemove( this );
}
-// -----------------------------------------------------------------------------
+
Size X11SalBitmap::GetSize() const
{
@@ -830,7 +830,7 @@ Size X11SalBitmap::GetSize() const
return aSize;
}
-// -----------------------------------------------------------------------------
+
sal_uInt16 X11SalBitmap::GetBitCount() const
{
@@ -846,7 +846,7 @@ sal_uInt16 X11SalBitmap::GetBitCount() const
return nBitCount;
}
-// -----------------------------------------------------------------------------
+
BitmapBuffer* X11SalBitmap::AcquireBuffer( bool )
{
@@ -866,7 +866,7 @@ BitmapBuffer* X11SalBitmap::AcquireBuffer( bool )
return mpDIB;
}
-// -----------------------------------------------------------------------------
+
void X11SalBitmap::ReleaseBuffer( BitmapBuffer*, bool bReadOnly )
{
@@ -880,7 +880,7 @@ void X11SalBitmap::ReleaseBuffer( BitmapBuffer*, bool bReadOnly )
}
}
-// -----------------------------------------------------------------------------
+
bool X11SalBitmap::GetSystemData( BitmapSystemData& rData )
{
@@ -898,9 +898,9 @@ bool X11SalBitmap::GetSystemData( BitmapSystemData& rData )
return false;
}
-// --------------
+
// - ImplSalDDB -
-// --------------
+
ImplSalDDB::ImplSalDDB( XImage* pImage, Drawable aDrawable,
SalX11Screen nXScreen, const SalTwoRect& rTwoRect )
@@ -932,7 +932,7 @@ ImplSalDDB::ImplSalDDB( XImage* pImage, Drawable aDrawable,
}
}
-// -----------------------------------------------------------------------------
+
ImplSalDDB::ImplSalDDB(
Drawable aDrawable,
@@ -973,7 +973,7 @@ ImplSalDDB::ImplSalDDB(
}
}
-// -----------------------------------------------------------------------------
+
ImplSalDDB::~ImplSalDDB()
{
@@ -981,7 +981,7 @@ ImplSalDDB::~ImplSalDDB()
XFreePixmap( GetGenericData()->GetSalDisplay()->GetDisplay(), maPixmap );
}
-// -----------------------------------------------------------------------------
+
bool ImplSalDDB::ImplMatches( SalX11Screen nXScreen, long nDepth, const SalTwoRect& rTwoRect ) const
{
@@ -1017,7 +1017,7 @@ bool ImplSalDDB::ImplMatches( SalX11Screen nXScreen, long nDepth, const SalTwoRe
return bRet;
}
-// -----------------------------------------------------------------------------
+
void ImplSalDDB::ImplDraw(
Drawable aDrawable,
@@ -1032,7 +1032,7 @@ void ImplSalDDB::ImplDraw(
rTwoRect.mnDestX, rTwoRect.mnDestY, rGC );
}
-// -----------------------------------------------------------------------------
+
void ImplSalDDB::ImplDraw(
Drawable aSrcDrawable,
@@ -1062,9 +1062,9 @@ void ImplSalDDB::ImplDraw(
}
}
-// ----------------------
+
// - ImplSalBitmapCache -
-// ----------------------
+
struct ImplBmpObj
{
@@ -1076,21 +1076,21 @@ struct ImplBmpObj
mpBmp( pBmp ), mnMemSize( nMemSize ), mnFlags( nFlags ) {}
};
-// -----------------------------------------------------------------------------
+
ImplSalBitmapCache::ImplSalBitmapCache() :
mnTotalSize( 0UL )
{
}
-// -----------------------------------------------------------------------------
+
ImplSalBitmapCache::~ImplSalBitmapCache()
{
ImplClear();
}
-// -----------------------------------------------------------------------------
+
void ImplSalBitmapCache::ImplAdd( X11SalBitmap* pBmp, sal_uLong nMemSize, sal_uLong nFlags )
{
@@ -1118,7 +1118,7 @@ void ImplSalBitmapCache::ImplAdd( X11SalBitmap* pBmp, sal_uLong nMemSize, sal_uL
maBmpList.push_back( new ImplBmpObj( pBmp, nMemSize, nFlags ) );
}
-// -----------------------------------------------------------------------------
+
void ImplSalBitmapCache::ImplRemove( X11SalBitmap* pBmp )
{
@@ -1138,7 +1138,7 @@ void ImplSalBitmapCache::ImplRemove( X11SalBitmap* pBmp )
}
}
-// -----------------------------------------------------------------------------
+
void ImplSalBitmapCache::ImplClear()
{
diff --git a/vcl/unx/generic/gdi/salgdi2.cxx b/vcl/unx/generic/gdi/salgdi2.cxx
index 3daf71bbae57..e4b853f2eb99 100644
--- a/vcl/unx/generic/gdi/salgdi2.cxx
+++ b/vcl/unx/generic/gdi/salgdi2.cxx
@@ -423,7 +423,7 @@ void X11SalGraphics::copyBits( const SalTwoRect& rPosAry,
}
}
-// --------------------------------------------------------------------------
+
void X11SalGraphics::copyArea ( long nDestX, long nDestY,
long nSrcX, long nSrcY,
diff --git a/vcl/unx/generic/gdi/salgdi3.cxx b/vcl/unx/generic/gdi/salgdi3.cxx
index e0e1ff4bcc2a..7f40deb81377 100644
--- a/vcl/unx/generic/gdi/salgdi3.cxx
+++ b/vcl/unx/generic/gdi/salgdi3.cxx
@@ -91,11 +91,11 @@ struct _XRegion
BOX extents;
};
-// ----------------------------------------------------------------------------
+
//
// X11SalGraphics
//
-// ----------------------------------------------------------------------------
+
GC
X11SalGraphics::GetFontGC()
@@ -124,7 +124,7 @@ X11SalGraphics::GetFontGC()
return pFontGC_;
}
-//--------------------------------------------------------------------------
+
bool X11SalGraphics::setFont( const FontSelectPattern *pEntry, int nFallbackLevel )
{
@@ -194,7 +194,7 @@ void ImplServerFontEntry::HandleFontOptions( void )
mpServerFont->SetFontOptions( mpFontOptions );
}
-//--------------------------------------------------------------------------
+
CairoFontsCache::LRUFonts CairoFontsCache::maLRUFonts;
int CairoFontsCache::mnRefCount = 0;
@@ -449,7 +449,7 @@ void X11SalGraphics::DrawServerFontLayout( const ServerFontLayout& rLayout )
cairo_destroy(cr);
}
-//--------------------------------------------------------------------------
+
const ImplFontCharMap* X11SalGraphics::GetImplFontCharMap() const
{
@@ -467,11 +467,11 @@ bool X11SalGraphics::GetImplFontCapabilities(vcl::FontCapabilities &rGetImplFont
return mpServerFont[0]->GetFontCapabilities(rGetImplFontCapabilities);
}
-// ----------------------------------------------------------------------------
+
//
// SalGraphics
//
-// ----------------------------------------------------------------------------
+
sal_uInt16 X11SalGraphics::SetFont( FontSelectPattern *pEntry, int nFallbackLevel )
{
@@ -483,7 +483,7 @@ sal_uInt16 X11SalGraphics::SetFont( FontSelectPattern *pEntry, int nFallbackLeve
return nRetVal;
}
-// ----------------------------------------------------------------------------
+
void
X11SalGraphics::SetTextColor( SalColor nSalColor )
@@ -496,7 +496,7 @@ X11SalGraphics::SetTextColor( SalColor nSalColor )
}
}
-// ----------------------------------------------------------------------------
+
bool X11SalGraphics::AddTempDevFont( ImplDevFontList* pFontList,
const OUString& rFileURL, const OUString& rFontName )
@@ -575,7 +575,7 @@ void X11SalGraphics::GetDevFontList( ImplDevFontList *pList )
ImplGetSVData()->maGDIData.mbNativeFontConfig = true;
}
-// ----------------------------------------------------------------------------
+
void cairosubcallback(void* pPattern)
{
@@ -600,7 +600,7 @@ ImplFontOptions* GetFCFontOptions( const ImplFontAttributes& rFontAttributes, in
return rPFM.getFontOptions(aInfo, nSize, cairosubcallback);
}
-// ----------------------------------------------------------------------------
+
void
X11SalGraphics::GetFontMetric( ImplFontMetricData *pMetric, int nFallbackLevel )
@@ -615,7 +615,7 @@ X11SalGraphics::GetFontMetric( ImplFontMetricData *pMetric, int nFallbackLevel )
}
}
-// ---------------------------------------------------------------------------
+
bool X11SalGraphics::GetGlyphBoundRect( sal_GlyphId aGlyphId, Rectangle& rRect )
{
@@ -647,7 +647,7 @@ bool X11SalGraphics::GetGlyphBoundRect( sal_GlyphId aGlyphId, Rectangle& rRect )
return true;
}
-// ---------------------------------------------------------------------------
+
bool X11SalGraphics::GetGlyphOutline( sal_GlyphId aGlyphId,
::basegfx::B2DPolyPolygon& rPolyPoly )
@@ -667,7 +667,7 @@ bool X11SalGraphics::GetGlyphOutline( sal_GlyphId aGlyphId,
return false;
}
-//--------------------------------------------------------------------------
+
SalLayout* X11SalGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLevel )
{
@@ -691,7 +691,7 @@ SalLayout* X11SalGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLe
return pLayout;
}
-//--------------------------------------------------------------------------
+
SystemFontData X11SalGraphics::GetSysFontData( int nFallbacklevel ) const
{
@@ -716,7 +716,7 @@ SystemFontData X11SalGraphics::GetSysFontData( int nFallbacklevel ) const
return aSysFontData;
}
-//--------------------------------------------------------------------------
+
bool X11SalGraphics::CreateFontSubset(
const OUString& rToFile,
@@ -746,7 +746,7 @@ bool X11SalGraphics::CreateFontSubset(
return bSuccess;
}
-//--------------------------------------------------------------------------
+
const void* X11SalGraphics::GetEmbedFontData( const PhysicalFontFace* pFont, const sal_Ucs* pUnicodes, sal_Int32* pWidths, FontSubsetInfo& rInfo, long* pDataLen )
{
@@ -759,14 +759,14 @@ const void* X11SalGraphics::GetEmbedFontData( const PhysicalFontFace* pFont, con
return GenPspGraphics::DoGetEmbedFontData( aFont, pUnicodes, pWidths, rInfo, pDataLen );
}
-//--------------------------------------------------------------------------
+
void X11SalGraphics::FreeEmbedFontData( const void* pData, long nLen )
{
GenPspGraphics::DoFreeEmbedFontData( pData, nLen );
}
-//--------------------------------------------------------------------------
+
const Ucs2SIntMap* X11SalGraphics::GetFontEncodingVector( const PhysicalFontFace* pFont, const Ucs2OStrMap** pNonEncoded )
{
@@ -779,7 +779,7 @@ const Ucs2SIntMap* X11SalGraphics::GetFontEncodingVector( const PhysicalFontFace
return GenPspGraphics::DoGetFontEncodingVector( aFont, pNonEncoded );
}
-//--------------------------------------------------------------------------
+
void X11SalGraphics::GetGlyphWidths( const PhysicalFontFace* pFont,
bool bVertical,
diff --git a/vcl/unx/generic/gdi/xrender_peer.cxx b/vcl/unx/generic/gdi/xrender_peer.cxx
index 75fb57f02cee..03974a859caf 100644
--- a/vcl/unx/generic/gdi/xrender_peer.cxx
+++ b/vcl/unx/generic/gdi/xrender_peer.cxx
@@ -29,7 +29,7 @@
using namespace rtl;
-// ---------------------------------------------------------------------------
+
XRenderPeer::XRenderPeer()
: mpDisplay( GetGenericData()->GetSalDisplay()->GetDisplay() )
@@ -38,7 +38,7 @@ XRenderPeer::XRenderPeer()
InitRenderLib();
}
-// ---------------------------------------------------------------------------
+
XRenderPeer& XRenderPeer::GetInstance()
{
@@ -46,7 +46,7 @@ XRenderPeer& XRenderPeer::GetInstance()
return aPeer;
}
-// ---------------------------------------------------------------------------
+
void XRenderPeer::InitRenderLib()
{
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 5204b036c9ba..cbfe171b173b 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -1530,20 +1530,20 @@ PPDKey::PPDKey( const OUString& rKey ) :
{
}
-// -------------------------------------------------------------------
+
PPDKey::~PPDKey()
{
}
-// -------------------------------------------------------------------
+
const PPDValue* PPDKey::getValue( int n ) const
{
return ((unsigned int)n < m_aOrderedValues.size() && n >= 0) ? m_aOrderedValues[n] : NULL;
}
-// -------------------------------------------------------------------
+
const PPDValue* PPDKey::getValue( const OUString& rOption ) const
{
@@ -1551,7 +1551,7 @@ const PPDValue* PPDKey::getValue( const OUString& rOption ) const
return it != m_aValues.end() ? &it->second : NULL;
}
-// -------------------------------------------------------------------
+
const PPDValue* PPDKey::getValueCaseInsensitive( const OUString& rOption ) const
{
@@ -1566,7 +1566,7 @@ const PPDValue* PPDKey::getValueCaseInsensitive( const OUString& rOption ) const
return pValue;
}
-// -------------------------------------------------------------------
+
void PPDKey::eraseValue( const OUString& rOption )
{
@@ -1585,7 +1585,7 @@ void PPDKey::eraseValue( const OUString& rOption )
m_aValues.erase( it );
}
-// -------------------------------------------------------------------
+
PPDValue* PPDKey::insertValue( const OUString& rOption, PPDValueType eType )
{
@@ -1601,7 +1601,7 @@ PPDValue* PPDKey::insertValue( const OUString& rOption, PPDValueType eType )
return pValue;
}
-// -------------------------------------------------------------------
+
/*
* PPDContext
@@ -1612,7 +1612,7 @@ PPDContext::PPDContext( const PPDParser* pParser ) :
{
}
-// -------------------------------------------------------------------
+
PPDContext& PPDContext::operator=( const PPDContext& rCopy )
{
@@ -1621,13 +1621,13 @@ PPDContext& PPDContext::operator=( const PPDContext& rCopy )
return *this;
}
-// -------------------------------------------------------------------
+
PPDContext::~PPDContext()
{
}
-// -------------------------------------------------------------------
+
const PPDKey* PPDContext::getModifiedKey( int n ) const
{
@@ -1637,7 +1637,7 @@ const PPDKey* PPDContext::getModifiedKey( int n ) const
return it != m_aCurrentValues.end() ? it->first : NULL;
}
-// -------------------------------------------------------------------
+
void PPDContext::setParser( const PPDParser* pParser )
{
@@ -1648,7 +1648,7 @@ void PPDContext::setParser( const PPDParser* pParser )
}
}
-// -------------------------------------------------------------------
+
const PPDValue* PPDContext::getValue( const PPDKey* pKey ) const
{
@@ -1670,7 +1670,7 @@ const PPDValue* PPDContext::getValue( const PPDKey* pKey ) const
return pValue;
}
-// -------------------------------------------------------------------
+
const PPDValue* PPDContext::setValue( const PPDKey* pKey, const PPDValue* pValue, bool bDontCareForConstraints )
{
@@ -1720,7 +1720,7 @@ const PPDValue* PPDContext::setValue( const PPDKey* pKey, const PPDValue* pValue
return pValue;
}
-// -------------------------------------------------------------------
+
bool PPDContext::checkConstraints( const PPDKey* pKey, const PPDValue* pValue )
{
@@ -1744,7 +1744,7 @@ bool PPDContext::checkConstraints( const PPDKey* pKey, const PPDValue* pValue )
return bRet;
}
-// -------------------------------------------------------------------
+
bool PPDContext::resetValue( const PPDKey* pKey, bool bDefaultable )
{
@@ -1762,7 +1762,7 @@ bool PPDContext::resetValue( const PPDKey* pKey, bool bDefaultable )
return bRet;
}
-// -------------------------------------------------------------------
+
bool PPDContext::checkConstraints( const PPDKey* pKey, const PPDValue* pNewValue, bool bDoReset )
{
@@ -1850,7 +1850,7 @@ bool PPDContext::checkConstraints( const PPDKey* pKey, const PPDValue* pNewValue
return true;
}
-// -------------------------------------------------------------------
+
char* PPDContext::getStreamableBuffer( sal_uLong& rBytes ) const
{
@@ -1896,7 +1896,7 @@ char* PPDContext::getStreamableBuffer( sal_uLong& rBytes ) const
return pBuffer;
}
-// -------------------------------------------------------------------
+
void PPDContext::rebuildFromStreamBuffer( char* pBuffer, sal_uLong nBytes )
{
@@ -1932,7 +1932,7 @@ void PPDContext::rebuildFromStreamBuffer( char* pBuffer, sal_uLong nBytes )
}
}
-// -------------------------------------------------------------------
+
int PPDContext::getRenderResolution() const
{
@@ -1958,7 +1958,7 @@ int PPDContext::getRenderResolution() const
return nDPI;
}
-// -------------------------------------------------------------------
+
void PPDContext::getPageSize( OUString& rPaper, int& rWidth, int& rHeight ) const
{
diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx b/vcl/unx/generic/printer/printerinfomanager.cxx
index bd3379ad30b3..0c6e7138977f 100644
--- a/vcl/unx/generic/printer/printerinfomanager.cxx
+++ b/vcl/unx/generic/printer/printerinfomanager.cxx
@@ -82,7 +82,7 @@ namespace psp
* class PrinterInfoManager
*/
-// -----------------------------------------------------------------
+
PrinterInfoManager& PrinterInfoManager::get()
{
@@ -110,7 +110,7 @@ void PrinterInfoManager::release()
pSalData->m_pPIManager = NULL;
}
-// -----------------------------------------------------------------
+
PrinterInfoManager::PrinterInfoManager( Type eType ) :
m_pQueueInfo( NULL ),
@@ -125,7 +125,7 @@ PrinterInfoManager::PrinterInfoManager( Type eType ) :
initSystemDefaultPaper();
}
-// -----------------------------------------------------------------
+
PrinterInfoManager::~PrinterInfoManager()
{
@@ -135,14 +135,14 @@ PrinterInfoManager::~PrinterInfoManager()
#endif
}
-// -----------------------------------------------------------------
+
bool PrinterInfoManager::isCUPSDisabled() const
{
return m_bDisableCUPS;
}
-// -----------------------------------------------------------------
+
void PrinterInfoManager::setCUPSDisabled( bool bDisable )
{
@@ -153,7 +153,7 @@ void PrinterInfoManager::setCUPSDisabled( bool bDisable )
checkPrintersChanged( true );
}
-// -----------------------------------------------------------------
+
void PrinterInfoManager::initSystemDefaultPaper()
{
@@ -162,7 +162,7 @@ void PrinterInfoManager::initSystemDefaultPaper()
RTL_TEXTENCODING_UTF8);
}
-// -----------------------------------------------------------------
+
bool PrinterInfoManager::checkPrintersChanged( bool bWait )
{
@@ -212,7 +212,7 @@ bool PrinterInfoManager::checkPrintersChanged( bool bWait )
return bChanged;
}
-// -----------------------------------------------------------------
+
void PrinterInfoManager::initialize()
{
@@ -583,7 +583,7 @@ void PrinterInfoManager::initialize()
}
}
-// -----------------------------------------------------------------
+
void PrinterInfoManager::listPrinters( ::std::list< OUString >& rList ) const
{
@@ -593,7 +593,7 @@ void PrinterInfoManager::listPrinters( ::std::list< OUString >& rList ) const
rList.push_back( it->first );
}
-// -----------------------------------------------------------------
+
const PrinterInfo& PrinterInfoManager::getPrinterInfo( const OUString& rPrinter ) const
{
@@ -605,7 +605,7 @@ const PrinterInfo& PrinterInfoManager::getPrinterInfo( const OUString& rPrinter
return it != m_aPrinters.end() ? it->second.m_aInfo : aEmptyInfo;
}
-// -----------------------------------------------------------------
+
void PrinterInfoManager::changePrinterInfo( const OUString& rPrinter, const PrinterInfo& rNewInfo )
{
@@ -621,7 +621,7 @@ void PrinterInfoManager::changePrinterInfo( const OUString& rPrinter, const Prin
}
}
-// -----------------------------------------------------------------
+
// need to check writeability / creatability of config files
static bool checkWriteability( const OUString& rUniPath )
@@ -771,7 +771,7 @@ bool PrinterInfoManager::writePrinterConfig()
return true;
}
-// -----------------------------------------------------------------
+
bool PrinterInfoManager::addPrinter( const OUString& rPrinterName, const OUString& rDriverName )
{
@@ -827,7 +827,7 @@ bool PrinterInfoManager::addPrinter( const OUString& rPrinterName, const OUStrin
return bSuccess;
}
-// -----------------------------------------------------------------
+
bool PrinterInfoManager::removePrinter( const OUString& rPrinterName, bool bCheckOnly )
{
@@ -881,7 +881,7 @@ bool PrinterInfoManager::removePrinter( const OUString& rPrinterName, bool bChec
return bSuccess;
}
-// -----------------------------------------------------------------
+
bool PrinterInfoManager::setDefaultPrinter( const OUString& rPrinterName )
{
@@ -900,13 +900,13 @@ bool PrinterInfoManager::setDefaultPrinter( const OUString& rPrinterName )
return bSuccess;
}
-// -----------------------------------------------------------------
+
bool PrinterInfoManager::addOrRemovePossible() const
{
return true;
}
-// -----------------------------------------------------------------
+
void PrinterInfoManager::getSystemPrintCommands( std::list< OUString >& rCommands )
{
@@ -1027,7 +1027,7 @@ void PrinterInfoManager::setDefaultPaper( PPDContext& rContext ) const
}
}
-// -----------------------------------------------------------------
+
SystemQueueInfo::SystemQueueInfo() :
m_bChanged( false )
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index 50ba7dcbaf2f..7a0bdcca3d31 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -2392,14 +2392,14 @@ void X11SalFrame::SetTitle( const OUString& rTitle )
}
}
-// -----------------------------------------------------------------------
+
void X11SalFrame::Flush()
{
XFlush( GetDisplay()->GetDisplay() );
}
-// -----------------------------------------------------------------------
+
void X11SalFrame::Sync()
{
@@ -2445,7 +2445,7 @@ void X11SalFrame::SetInputContext( SalInputContext* pContext )
return;
}
-// -----------------------------------------------------------------------
+
void X11SalFrame::EndExtTextInput( sal_uInt16 nFlags )
{
@@ -2453,7 +2453,7 @@ void X11SalFrame::EndExtTextInput( sal_uInt16 nFlags )
mpInputContext->EndExtTextInput( nFlags );
}
-// -----------------------------------------------------------------------
+
OUString X11SalFrame::GetKeyName( sal_uInt16 nKeyCode )
{
diff --git a/vcl/unx/generic/window/salobj.cxx b/vcl/unx/generic/window/salobj.cxx
index a694b91bd91b..f718ed30eb43 100644
--- a/vcl/unx/generic/window/salobj.cxx
+++ b/vcl/unx/generic/window/salobj.cxx
@@ -364,7 +364,7 @@ X11SalObject::GetClipRegionType()
return maClipRegion.GetClipRegionType();
}
-// -----------------------------------------------------------------------
+
void
X11SalObject::SetPosSize( long nX, long nY, long nWidth, long nHeight )
@@ -410,7 +410,7 @@ void X11SalObject::GrabFocus()
CurrentTime );
}
-// -----------------------------------------------------------------------
+
const SystemEnvData* X11SalObject::GetSystemData() const
{
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index 9df91e511925..7b7fe395eb8a 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -50,9 +50,9 @@
#include "gtk/fpicker/SalGtkFilePicker.hxx"
-//------------------------------------------------------------------------
+
// namespace directives
-//------------------------------------------------------------------------
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::ui::dialogs;
@@ -312,9 +312,9 @@ SalGtkFilePicker::SalGtkFilePicker( const uno::Reference< uno::XComponentContext
gtk_file_chooser_set_preview_widget_active( GTK_FILE_CHOOSER( m_pDialog ), true);
}
-//------------------------------------------------------------------------------------
+
// XFilePickerNotifier
-//------------------------------------------------------------------------------------
+
void SAL_CALL SalGtkFilePicker::addFilePickerListener( const uno::Reference<XFilePickerListener>& xListener )
throw( uno::RuntimeException )
@@ -334,9 +334,9 @@ void SAL_CALL SalGtkFilePicker::removeFilePickerListener( const uno::Reference<X
m_xListener.clear();
}
-// -------------------------------------------------
+
// XEventListener
-// -------------------------------------------------
+
void SAL_CALL SalGtkFilePicker::disposing( const lang::EventObject& aEvent ) throw( uno::RuntimeException )
{
@@ -348,9 +348,9 @@ void SAL_CALL SalGtkFilePicker::disposing( const lang::EventObject& aEvent ) thr
removeFilePickerListener( xFilePickerListener );
}
-//-----------------------------------------------------------------------------------------
+
// FilePicker Event functions
-//-----------------------------------------------------------------------------------------
+
void SalGtkFilePicker::impl_fileSelectionChanged( FilePickerEvent aEvent )
{
@@ -408,20 +408,20 @@ public:
//=====================================================================
-//---------------------------------------------------------------------
+
FilterEntry::FilterEntry( const OUString& _rTitle, const UnoFilterList& _rSubFilters )
:m_sTitle( _rTitle )
,m_aSubFilters( _rSubFilters )
{
}
-//---------------------------------------------------------------------
+
bool FilterEntry::hasSubFilters() const
{
return( 0 < m_aSubFilters.getLength() );
}
-//---------------------------------------------------------------------
+
sal_Int32 FilterEntry::getSubFilters( UnoFilterList& _rSubFilterList )
{
_rSubFilterList = m_aSubFilters;
@@ -504,7 +504,7 @@ dialog_remove_buttons( GtkDialog *pDialog )
g_list_free( pChildren );
}
-//------------------------------------------------------------------------------------
+
namespace {
//................................................................................
struct FilterTitleMatch : public ::std::unary_function< FilterEntry, bool >
@@ -543,7 +543,7 @@ namespace {
}
-//------------------------------------------------------------------------------------
+
bool SalGtkFilePicker::FilterNameExists( const OUString& rTitle )
{
bool bRet = false;
@@ -559,7 +559,7 @@ bool SalGtkFilePicker::FilterNameExists( const OUString& rTitle )
return bRet;
}
-//------------------------------------------------------------------------------------
+
bool SalGtkFilePicker::FilterNameExists( const UnoFilterList& _rGroupedFilters )
{
bool bRet = false;
@@ -581,7 +581,7 @@ bool SalGtkFilePicker::FilterNameExists( const UnoFilterList& _rGroupedFilters )
return bRet;
}
-//------------------------------------------------------------------------------------
+
void SalGtkFilePicker::ensureFilterList( const OUString& _rInitialCurrentFilter )
{
if( !m_pFilterList )
@@ -595,9 +595,9 @@ void SalGtkFilePicker::ensureFilterList( const OUString& _rInitialCurrentFilter
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL SalGtkFilePicker::appendFilter( const OUString& aTitle, const OUString& aFilter )
throw( lang::IllegalArgumentException, uno::RuntimeException )
@@ -616,9 +616,9 @@ void SAL_CALL SalGtkFilePicker::appendFilter( const OUString& aTitle, const OUSt
m_pFilterList->insert( m_pFilterList->end(), FilterEntry( aTitle, aFilter ) );
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL SalGtkFilePicker::setCurrentFilter( const OUString& aTitle )
throw( lang::IllegalArgumentException, uno::RuntimeException )
@@ -642,9 +642,9 @@ void SAL_CALL SalGtkFilePicker::setCurrentFilter( const OUString& aTitle )
// TODO m_pImpl->setCurrentFilter( aTitle );
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SalGtkFilePicker::updateCurrentFilterFromName(const gchar* filtername)
{
@@ -703,9 +703,9 @@ OUString SAL_CALL SalGtkFilePicker::getCurrentFilter() throw( uno::RuntimeExcept
return m_aCurrentFilter;
}
-//-----------------------------------------------------------------------------------------
+
// XFilterGroupManager functions
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL SalGtkFilePicker::appendFilterGroup( const OUString& /*sGroupTitle*/, const uno::Sequence<beans::StringPair>& aFilters )
throw( lang::IllegalArgumentException, uno::RuntimeException )
@@ -735,9 +735,9 @@ void SAL_CALL SalGtkFilePicker::appendFilterGroup( const OUString& /*sGroupTitle
}
-//-----------------------------------------------------------------------------------------
+
// XFilePicker functions
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL SalGtkFilePicker::setMultiSelectionMode( sal_Bool bMode ) throw( uno::RuntimeException )
{
@@ -956,9 +956,9 @@ uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles() throw( uno
return aSelectedFiles;
}
-//-----------------------------------------------------------------------------------------
+
// XExecutableDialog functions
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL SalGtkFilePicker::setTitle( const OUString& rTitle ) throw( uno::RuntimeException )
{
@@ -1128,7 +1128,7 @@ sal_Int16 SAL_CALL SalGtkFilePicker::execute() throw( uno::RuntimeException )
return retVal;
}
-//------------------------------------------------------------------------------------
+
// cf. offapi/com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.idl
GtkWidget *SalGtkFilePicker::getWidget( sal_Int16 nControlId, GType *pType )
@@ -1183,9 +1183,9 @@ GtkWidget *SalGtkFilePicker::getWidget( sal_Int16 nControlId, GType *pType )
-//------------------------------------------------------------------------------------
+
// XFilePickerControlAccess functions
-//------------------------------------------------------------------------------------
+
static void HackWidthToFirst(GtkComboBox *pWidget)
{
GtkRequisition requisition;
@@ -1469,9 +1469,9 @@ OUString SAL_CALL SalGtkFilePicker::getLabel( sal_Int16 nControlId )
return OStringToOUString( aTxt, RTL_TEXTENCODING_UTF8 );
}
-//------------------------------------------------------------------------------------
+
// XFilePreview functions
-//------------------------------------------------------------------------------------
+
uno::Sequence<sal_Int16> SAL_CALL SalGtkFilePicker::getSupportedImageFormats() throw( uno::RuntimeException )
{
@@ -1655,9 +1655,9 @@ sal_Bool SAL_CALL SalGtkFilePicker::getShowState() throw( uno::RuntimeException
return mbPreviewState;
}
-//------------------------------------------------------------------------------------
+
// XInitialization
-//------------------------------------------------------------------------------------
+
void SAL_CALL SalGtkFilePicker::initialize( const uno::Sequence<uno::Any>& aArguments )
throw( uno::Exception, uno::RuntimeException )
@@ -1820,9 +1820,9 @@ void SalGtkFilePicker::preview_toggled_cb( GObject *cb, SalGtkFilePicker* pobjFP
pobjFP->setShowState( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( cb ) ) );
}
-//------------------------------------------------------------------------------------
+
// XCancellable
-//------------------------------------------------------------------------------------
+
void SAL_CALL SalGtkFilePicker::cancel() throw( uno::RuntimeException )
{
@@ -1833,9 +1833,9 @@ void SAL_CALL SalGtkFilePicker::cancel() throw( uno::RuntimeException )
// TODO m_pImpl->cancel();
}
-//--------------------------------------------------
+
// Misc
-//-------------------------------------------------
+
void SalGtkFilePicker::SetCurFilter( const OUString& rFilter )
{
// Get all the filters already added
diff --git a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
index 18d2750b40d0..8b0f7fbf983f 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
@@ -47,9 +47,9 @@ using namespace ::com::sun::star::ui::dialogs;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::uno;
-//-----------------------------------------------------------------------------------------
+
// constructor
-//-----------------------------------------------------------------------------------------
+
SalGtkFolderPicker::SalGtkFolderPicker( const uno::Reference< uno::XComponentContext >& xContext ) :
SalGtkPicker( xContext )
{
@@ -65,9 +65,9 @@ SalGtkFolderPicker::SalGtkFolderPicker( const uno::Reference< uno::XComponentCon
gtk_file_chooser_set_select_multiple( GTK_FILE_CHOOSER( m_pDialog ), sal_False );
}
-// -------------------------------------------------
+
// XEventListener
-// -------------------------------------------------
+
void SAL_CALL SalGtkFolderPicker::disposing( const lang::EventObject& )
throw( uno::RuntimeException )
@@ -128,9 +128,9 @@ void SAL_CALL SalGtkFolderPicker::setDescription( const OUString& /*rDescription
{
}
-//-----------------------------------------------------------------------------------------
+
// XExecutableDialog functions
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL SalGtkFolderPicker::setTitle( const OUString& aTitle ) throw( uno::RuntimeException )
{
@@ -177,9 +177,9 @@ sal_Int16 SAL_CALL SalGtkFolderPicker::execute() throw( uno::RuntimeException )
return retVal;
}
-//------------------------------------------------------------------------------------
+
// XCancellable
-//------------------------------------------------------------------------------------
+
void SAL_CALL SalGtkFolderPicker::cancel() throw( uno::RuntimeException )
{
diff --git a/vcl/unx/gtk/fpicker/resourceprovider.cxx b/vcl/unx/gtk/fpicker/resourceprovider.cxx
index b07e581b027e..f4e144a9b118 100644
--- a/vcl/unx/gtk/fpicker/resourceprovider.cxx
+++ b/vcl/unx/gtk/fpicker/resourceprovider.cxx
@@ -30,9 +30,9 @@
using namespace ::com::sun::star::ui::dialogs::ExtendedFilePickerElementIds;
using namespace ::com::sun::star::ui::dialogs::CommonFilePickerElementIds;
-//---------------------------------------
+
// translate control ids to resource ids
-//---------------------------------------
+
static const struct
{
sal_Int32 ctrlId;
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index 4ae67fef72a2..c73131b0898a 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -205,13 +205,13 @@ static void NWCalcArrowRect( const Rectangle& rButton, Rectangle& rArrow );
*
*/
-//---
+
static Rectangle NWGetButtonArea( SalX11Screen nScreen, ControlType nType, ControlPart nPart, Rectangle aAreaRect, ControlState nState,
const ImplControlValue& aValue, const OUString& rCaption );
static Rectangle NWGetTabItemRect( SalX11Screen nScreen, Rectangle aAreaRect );
-//---
+
static Rectangle NWGetEditBoxPixmapRect( SalX11Screen nScreen, ControlType nType, ControlPart nPart, Rectangle aAreaRect, ControlState nState,
const ImplControlValue& aValue, const OUString& rCaption );
@@ -226,11 +226,11 @@ static Rectangle NWGetSpinButtonRect( SalX11Screen nScreen, ControlType nType, C
static void NWPaintOneSpinButton( SalX11Screen nScreen, GdkPixmap * pixmap, ControlType nType, ControlPart nPart, Rectangle aAreaRect,
ControlState nState, const ImplControlValue& aValue,
const OUString& rCaption );
-//---
+
static Rectangle NWGetComboBoxButtonRect( SalX11Screen nScreen, ControlType nType, ControlPart nPart, Rectangle aAreaRect, ControlState nState,
const ImplControlValue& aValue, const OUString& rCaption );
-//---
+
static Rectangle NWGetListBoxButtonRect( SalX11Screen nScreen, ControlType nType, ControlPart nPart, Rectangle aAreaRect, ControlState nState,
const ImplControlValue& aValue, const OUString& rCaption );
@@ -246,10 +246,10 @@ static Rectangle NWGetToolbarRect( SalX11Screen nScreen,
const OUString& rCaption );
static int getFrameWidth(GtkWidget* widget);
-//---
+
static Rectangle NWGetScrollButtonRect( SalX11Screen nScreen, ControlPart nPart, Rectangle aAreaRect );
-//---
+
/*********************************************************
* PixmapCache
@@ -1622,7 +1622,7 @@ static Rectangle NWGetTabItemRect( SalX11Screen nScreen, Rectangle aAreaRect )
return Rectangle( Point( x, y ), Size( w, h ) );
}
-//-------------------------------------
+
bool GtkSalGraphics::NWPaintGTKRadio( GdkDrawable* gdkDrawable,
ControlType, ControlPart,
@@ -1680,7 +1680,7 @@ bool GtkSalGraphics::NWPaintGTKRadio( GdkDrawable* gdkDrawable,
return true;
}
-//-------------------------------------
+
bool GtkSalGraphics::NWPaintGTKCheck( GdkDrawable* gdkDrawable,
ControlType, ControlPart,
@@ -1727,7 +1727,7 @@ bool GtkSalGraphics::NWPaintGTKCheck( GdkDrawable* gdkDrawable,
return true;
}
-//-------------------------------------
+
static void NWCalcArrowRect( const Rectangle& rButton, Rectangle& rArrow )
{
// Size the arrow appropriately
@@ -2068,7 +2068,7 @@ bool GtkSalGraphics::NWPaintGTKScrollbar( ControlType, ControlPart nPart,
return true;
}
-//---
+
static Rectangle NWGetScrollButtonRect( SalX11Screen nScreen, ControlPart nPart, Rectangle aAreaRect )
{
@@ -2151,7 +2151,7 @@ static Rectangle NWGetScrollButtonRect( SalX11Screen nScreen, ControlPart nPa
return( buttonRect );
}
-//-------------------------------------
+
bool GtkSalGraphics::NWPaintGTKEditBox( GdkDrawable* gdkDrawable,
ControlType nType, ControlPart nPart,
@@ -2290,7 +2290,7 @@ static void NWPaintOneEditBox( SalX11Screen nScreen,
-//-------------------------------------
+
bool GtkSalGraphics::NWPaintGTKSpinBox( ControlType nType, ControlPart nPart,
const Rectangle& rControlRectangle,
@@ -2396,7 +2396,7 @@ bool GtkSalGraphics::NWPaintGTKSpinBox( ControlType nType, ControlPart nPart,
return true;
}
-//---
+
static Rectangle NWGetSpinButtonRect( SalX11Screen nScreen,
ControlType,
@@ -2488,7 +2488,7 @@ static void NWPaintOneSpinButton( SalX11Screen nScreen,
}
-//-------------------------------------
+
bool GtkSalGraphics::NWPaintGTKComboBox( GdkDrawable* gdkDrawable,
ControlType nType, ControlPart nPart,
@@ -2568,7 +2568,7 @@ bool GtkSalGraphics::NWPaintGTKComboBox( GdkDrawable* gdkDrawable,
return true;
}
-//----
+
static Rectangle NWGetComboBoxButtonRect( SalX11Screen nScreen,
ControlType,
@@ -2626,7 +2626,7 @@ static Rectangle NWGetComboBoxButtonRect( SalX11Screen nScreen,
return( aButtonRect );
}
-//-------------------------------------
+
@@ -2781,7 +2781,7 @@ bool GtkSalGraphics::NWPaintGTKTabItem( ControlType nType, ControlPart,
return bSuccess;
}
-//-------------------------------------
+
bool GtkSalGraphics::NWPaintGTKListBox( GdkDrawable* gdkDrawable,
ControlType nType, ControlPart nPart,
@@ -3032,7 +3032,7 @@ bool GtkSalGraphics::NWPaintGTKToolbar(
return true;
}
-//----
+
bool GtkSalGraphics::NWPaintGTKMenubar(
GdkDrawable* gdkDrawable,
@@ -3535,7 +3535,7 @@ bool GtkSalGraphics::NWPaintGTKSlider(
return bRet;
}
-//----
+
static int getFrameWidth(GtkWidget* widget)
{
@@ -3605,7 +3605,7 @@ static Rectangle NWGetListBoxButtonRect( SalX11Screen nScreen,
return( aPartRect );
}
-//----
+
static Rectangle NWGetListBoxIndicatorRect( SalX11Screen nScreen,
ControlType,
@@ -4224,7 +4224,7 @@ static void NWSetWidgetState( GtkWidget* widget, ControlState nState, GtkStateTy
* Widget ensure functions - make sure cached objects are valid
************************************************************************/
-//-------------------------------------
+
static void NWAddWidgetToCacheWindow( GtkWidget* widget, SalX11Screen nScreen )
{
@@ -4257,7 +4257,7 @@ static void NWAddWidgetToCacheWindow( GtkWidget* widget, SalX11Screen nScreen )
gWidgetDefaultFlags[ (long)widget ] = GTK_WIDGET_FLAGS( widget );
}
-//-------------------------------------
+
static void NWEnsureGTKButton( SalX11Screen nScreen )
{
@@ -4268,7 +4268,7 @@ static void NWEnsureGTKButton( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKRadio( SalX11Screen nScreen )
{
@@ -4281,7 +4281,7 @@ static void NWEnsureGTKRadio( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKCheck( SalX11Screen nScreen )
{
@@ -4292,7 +4292,7 @@ static void NWEnsureGTKCheck( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKScrollbars( SalX11Screen nScreen )
{
@@ -4309,7 +4309,7 @@ static void NWEnsureGTKScrollbars( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKArrow( SalX11Screen nScreen )
{
@@ -4324,7 +4324,7 @@ static void NWEnsureGTKArrow( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKEditBox( SalX11Screen nScreen )
{
@@ -4335,7 +4335,7 @@ static void NWEnsureGTKEditBox( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKSpinButton( SalX11Screen nScreen )
{
@@ -4352,7 +4352,7 @@ static void NWEnsureGTKSpinButton( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKNotebook( SalX11Screen nScreen )
{
@@ -4363,7 +4363,7 @@ static void NWEnsureGTKNotebook( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKOptionMenu( SalX11Screen nScreen )
{
@@ -4374,7 +4374,7 @@ static void NWEnsureGTKOptionMenu( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKCombo( SalX11Screen nScreen )
{
@@ -4394,7 +4394,7 @@ static void NWEnsureGTKCombo( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKScrolledWindow( SalX11Screen nScreen )
{
@@ -4408,7 +4408,7 @@ static void NWEnsureGTKScrolledWindow( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKToolbar( SalX11Screen nScreen )
{
@@ -4439,7 +4439,7 @@ static void NWEnsureGTKToolbar( SalX11Screen nScreen )
}
}
-//-------------------------------------
+
static void NWEnsureGTKMenubar( SalX11Screen nScreen )
{
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx
index f5356db897dc..265070c0823f 100644
--- a/vcl/unx/gtk/window/gtksalframe.cxx
+++ b/vcl/unx/gtk/window/gtksalframe.cxx
@@ -3948,9 +3948,9 @@ void GtkSalFrame::signalDestroy( GtkWidget* pObj, gpointer frame )
}
}
-// ----------------------------------------------------------------------
+
// GtkSalFrame::IMHandler
-// ----------------------------------------------------------------------
+
GtkSalFrame::IMHandler::IMHandler( GtkSalFrame* pFrame )
: m_pFrame(pFrame),
diff --git a/vcl/unx/kde/salnativewidgets-kde.cxx b/vcl/unx/kde/salnativewidgets-kde.cxx
index 378930a3202b..8472838fc429 100644
--- a/vcl/unx/kde/salnativewidgets-kde.cxx
+++ b/vcl/unx/kde/salnativewidgets-kde.cxx
@@ -1715,9 +1715,9 @@ bool KDESalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar
return bReturn;
}
-// -----------------------------------------------------------------------
+
// KDESalFrame implementation
-// -----------------------------------------------------------------------
+
KDESalFrame::KDESalFrame( SalFrame* pParent, sal_uLong nStyle ) :
X11SalFrame( pParent, nStyle )
@@ -2089,9 +2089,9 @@ KDESalFrame::GraphicsHolder::~GraphicsHolder()
delete pGraphics;
}
-// -----------------------------------------------------------------------
+
// KDESalInstance implementation
-// -----------------------------------------------------------------------
+
SalFrame *
KDESalInstance::CreateFrame( SalFrame *pParent, sal_uLong nStyle )
@@ -2106,9 +2106,9 @@ uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker(
new UnxFilePicker( xMSF ) );
}
-// -----------------------------------------------------------------------
+
// KDESalData pieces
-// -----------------------------------------------------------------------
+
// Create the widget painter so we have some control over
// the destruction sequence, so Qt doesn't die in action.
diff --git a/vcl/win/source/app/saldata.cxx b/vcl/win/source/app/saldata.cxx
index fc9967459dda..73d2e6edf22e 100644
--- a/vcl/win/source/app/saldata.cxx
+++ b/vcl/win/source/app/saldata.cxx
@@ -42,7 +42,7 @@ rtl_TextEncoding ImplSalGetSystemEncoding()
return eEncoding;
}
-// -----------------------------------------------------------------------
+
OUString ImplSalGetUniString(const sal_Char* pStr, sal_Int32 const nLen)
{
@@ -88,28 +88,28 @@ BOOL ImplPostMessage( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam )
return PostMessageW( hWnd, nMsg, wParam, lParam );
}
-// -----------------------------------------------------------------------
+
BOOL ImplSendMessage( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam )
{
return SendMessageW( hWnd, nMsg, wParam, lParam );
}
-// -----------------------------------------------------------------------
+
BOOL ImplGetMessage( LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax )
{
return GetMessageW( lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax );
}
-// -----------------------------------------------------------------------
+
BOOL ImplPeekMessage( LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg )
{
return PeekMessageW( lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg );
}
-// -----------------------------------------------------------------------
+
LONG ImplDispatchMessage( CONST MSG *lpMsg )
{
diff --git a/vcl/win/source/app/salinfo.cxx b/vcl/win/source/app/salinfo.cxx
index fdb5cc57b2d7..178693f15615 100644
--- a/vcl/win/source/app/salinfo.cxx
+++ b/vcl/win/source/app/salinfo.cxx
@@ -43,7 +43,7 @@ WinSalSystem::~WinSalSystem()
{
}
-// -----------------------------------------------------------------------
+
static BOOL CALLBACK ImplEnumMonitorProc( HMONITOR hMonitor,
HDC hDC,
@@ -178,7 +178,7 @@ OUString WinSalSystem::GetDisplayScreenName( unsigned int nScreen )
return (nScreen < m_aMonitors.size()) ? m_aMonitors[nScreen].m_aName : OUString();
}
-// -----------------------------------------------------------------------
+
/* We have to map the button identifier to the identifier used by the Win32
Platform SDK to specify the default button for the MessageBox API.
The first dimension is the button combination, the second dimension
diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx
index 316c5443df95..ece177210cb2 100644
--- a/vcl/win/source/app/salinst.cxx
+++ b/vcl/win/source/app/salinst.cxx
@@ -127,7 +127,7 @@ public:
sal_uLong GetAcquireCount( sal_uLong nThreadId );
};
-// -----------------------------------------------------------------------
+
SalYieldMutex::SalYieldMutex( WinSalInstance* pInstData )
{
@@ -136,7 +136,7 @@ SalYieldMutex::SalYieldMutex( WinSalInstance* pInstData )
mnThreadId = 0;
}
-// -----------------------------------------------------------------------
+
void SalYieldMutex::acquire()
{
@@ -145,7 +145,7 @@ void SalYieldMutex::acquire()
mnThreadId = GetCurrentThreadId();
}
-// -----------------------------------------------------------------------
+
void SalYieldMutex::release()
{
@@ -187,7 +187,7 @@ void SalYieldMutex::release()
}
}
-// -----------------------------------------------------------------------
+
bool SalYieldMutex::tryToAcquire()
{
@@ -201,7 +201,7 @@ bool SalYieldMutex::tryToAcquire()
return false;
}
-// -----------------------------------------------------------------------
+
sal_uLong SalYieldMutex::GetAcquireCount( sal_uLong nThreadId )
{
@@ -211,7 +211,7 @@ sal_uLong SalYieldMutex::GetAcquireCount( sal_uLong nThreadId )
return 0;
}
-// -----------------------------------------------------------------------
+
void ImplSalYieldMutexAcquireWithWait()
{
@@ -259,7 +259,7 @@ void ImplSalYieldMutexAcquireWithWait()
pInst->mpSalYieldMutex->acquire();
}
-// -----------------------------------------------------------------------
+
sal_Bool ImplSalYieldMutexTryToAcquire()
{
@@ -270,7 +270,7 @@ sal_Bool ImplSalYieldMutexTryToAcquire()
return FALSE;
}
-// -----------------------------------------------------------------------
+
void ImplSalYieldMutexAcquire()
{
@@ -279,7 +279,7 @@ void ImplSalYieldMutexAcquire()
pInst->mpSalYieldMutex->acquire();
}
-// -----------------------------------------------------------------------
+
void ImplSalYieldMutexRelease()
{
@@ -291,7 +291,7 @@ void ImplSalYieldMutexRelease()
}
}
-// -----------------------------------------------------------------------
+
sal_uLong ImplSalReleaseYieldMutex()
{
@@ -311,7 +311,7 @@ sal_uLong ImplSalReleaseYieldMutex()
return nCount;
}
-// -----------------------------------------------------------------------
+
void ImplSalAcquireYieldMutex( sal_uLong nCount )
{
@@ -327,7 +327,7 @@ void ImplSalAcquireYieldMutex( sal_uLong nCount )
}
}
-// -----------------------------------------------------------------------
+
bool WinSalInstance::CheckYieldMutex()
{
@@ -367,9 +367,9 @@ void SalData::initKeyCodeMap()
}
// =======================================================================
-// -------
+
// SalData
-// -------
+
SalData::SalData()
{
@@ -468,7 +468,7 @@ void DeInitSalData()
delete pSalData;
}
-// -----------------------------------------------------------------------
+
void InitSalMain()
{
@@ -485,7 +485,7 @@ void InitSalMain()
}
}
-// -----------------------------------------------------------------------
+
SalInstance* CreateSalInstance()
{
@@ -569,7 +569,7 @@ SalInstance* CreateSalInstance()
return pInst;
}
-// -----------------------------------------------------------------------
+
void DestroySalInstance( SalInstance* pInst )
{
@@ -586,7 +586,7 @@ void DestroySalInstance( SalInstance* pInst )
delete pInst;
}
-// -----------------------------------------------------------------------
+
WinSalInstance::WinSalInstance()
{
@@ -598,7 +598,7 @@ WinSalInstance::WinSalInstance()
::tools::SolarMutex::SetSolarMutex( mpSalYieldMutex );
}
-// -----------------------------------------------------------------------
+
WinSalInstance::~WinSalInstance()
{
@@ -609,28 +609,28 @@ WinSalInstance::~WinSalInstance()
DestroyWindow( mhComWnd );
}
-// -----------------------------------------------------------------------
+
comphelper::SolarMutex* WinSalInstance::GetYieldMutex()
{
return mpSalYieldMutex;
}
-// -----------------------------------------------------------------------
+
sal_uLong WinSalInstance::ReleaseYieldMutex()
{
return ImplSalReleaseYieldMutex();
}
-// -----------------------------------------------------------------------
+
void WinSalInstance::AcquireYieldMutex( sal_uLong nCount )
{
ImplSalAcquireYieldMutex( nCount );
}
-// -----------------------------------------------------------------------
+
static void ImplSalDispatchMessage( MSG* pMsg )
{
@@ -645,7 +645,7 @@ static void ImplSalDispatchMessage( MSG* pMsg )
ImplSalPostDispatchMsg( pMsg, lResult );
}
-// -----------------------------------------------------------------------
+
void ImplSalYield( sal_Bool bWait, sal_Bool bHandleAllCurrentEvents )
{
@@ -676,7 +676,7 @@ void ImplSalYield( sal_Bool bWait, sal_Bool bHandleAllCurrentEvents )
}
}
-// -----------------------------------------------------------------------
+
void WinSalInstance::Yield( bool bWait, bool bHandleAllCurrentEvents )
{
@@ -727,7 +727,7 @@ void WinSalInstance::Yield( bool bWait, bool bHandleAllCurrentEvents )
}
}
-// -----------------------------------------------------------------------
+
LRESULT CALLBACK SalComWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam, int& rDef )
{
@@ -873,7 +873,7 @@ LRESULT CALLBACK SalComWndProcW( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lPa
return nRet;
}
-// -----------------------------------------------------------------------
+
bool WinSalInstance::AnyInput( sal_uInt16 nType )
{
@@ -955,7 +955,7 @@ bool WinSalInstance::AnyInput( sal_uInt16 nType )
return FALSE;
}
-// -----------------------------------------------------------------------
+
void SalTimer::Start( sal_uLong nMS )
{
@@ -972,7 +972,7 @@ void SalTimer::Start( sal_uLong nMS )
ImplSalStartTimer( nMS, FALSE );
}
-// -----------------------------------------------------------------------
+
SalFrame* WinSalInstance::CreateChildFrame( SystemParentData* pSystemParentData, sal_uLong nSalFrameStyle )
{
@@ -980,7 +980,7 @@ SalFrame* WinSalInstance::CreateChildFrame( SystemParentData* pSystemParentData,
return (SalFrame*)(sal_IntPtr)ImplSendMessage( mhComWnd, SAL_MSG_CREATEFRAME, nSalFrameStyle, (LPARAM)pSystemParentData->hWnd );
}
-// -----------------------------------------------------------------------
+
SalFrame* WinSalInstance::CreateFrame( SalFrame* pParent, sal_uLong nSalFrameStyle )
{
@@ -993,14 +993,14 @@ SalFrame* WinSalInstance::CreateFrame( SalFrame* pParent, sal_uLong nSalFrameSty
return (SalFrame*)(sal_IntPtr)ImplSendMessage( mhComWnd, SAL_MSG_CREATEFRAME, nSalFrameStyle, (LPARAM)hWndParent );
}
-// -----------------------------------------------------------------------
+
void WinSalInstance::DestroyFrame( SalFrame* pFrame )
{
ImplSendMessage( mhComWnd, SAL_MSG_DESTROYFRAME, 0, (LPARAM)pFrame );
}
-// -----------------------------------------------------------------------
+
SalObject* WinSalInstance::CreateObject( SalFrame* pParent,
SystemWindowData* /*pWindowData*/, // SystemWindowData meaningless on Windows
@@ -1010,14 +1010,14 @@ SalObject* WinSalInstance::CreateObject( SalFrame* pParent,
return (SalObject*)(sal_IntPtr)ImplSendMessage( mhComWnd, SAL_MSG_CREATEOBJECT, 0, (LPARAM)static_cast<WinSalFrame*>(pParent) );
}
-// -----------------------------------------------------------------------
+
void WinSalInstance::DestroyObject( SalObject* pObject )
{
ImplSendMessage( mhComWnd, SAL_MSG_DESTROYOBJECT, 0, (LPARAM)pObject );
}
-// -----------------------------------------------------------------------
+
void* WinSalInstance::GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes )
{
@@ -1026,7 +1026,7 @@ void* WinSalInstance::GetConnectionIdentifier( ConnectionIdentifierType& rReturn
return const_cast<char *>("");
}
-// -----------------------------------------------------------------------
+
/** Add a file to the system shells recent document list if there is any.
This function may have no effect under Unix because there is no
@@ -1108,14 +1108,14 @@ void WinSalInstance::AddToRecentDocumentList(const OUString& rFileUrl, const OUS
}
}
-// -----------------------------------------------------------------------
+
SalTimer* WinSalInstance::CreateSalTimer()
{
return new WinSalTimer();
}
-// -----------------------------------------------------------------------
+
SalBitmap* WinSalInstance::CreateSalBitmap()
{
@@ -1139,7 +1139,7 @@ SalI18NImeStatus* WinSalInstance::CreateI18NImeStatus()
return new WinImeStatus();
}
-// -----------------------------------------------------------------------
+
const OUString& SalGetDesktopEnvironment()
{
@@ -1153,7 +1153,7 @@ SalSession* WinSalInstance::CreateSalSession()
}
#if !defined ( __MINGW32__ ) || defined ( _WIN64 )
-// -----------------------------------------------------------------------
+
int WinSalInstance::WorkaroundExceptionHandlingInUSER32Lib(int, LPEXCEPTION_POINTERS pExceptionInfo)
{
// Decide if an exception is a c++ (mostly UNO) exception or a process violation.
diff --git a/vcl/win/source/app/salshl.cxx b/vcl/win/source/app/salshl.cxx
index 9e6fd34e020b..fa66249df02e 100644
--- a/vcl/win/source/app/salshl.cxx
+++ b/vcl/win/source/app/salshl.cxx
@@ -67,7 +67,7 @@ HCURSOR ImplLoadSalCursor( int nId )
return hCursor;
}
-// -----------------------------------------------------------------------
+
HBITMAP ImplLoadSalBitmap( int nId )
{
@@ -80,7 +80,7 @@ HBITMAP ImplLoadSalBitmap( int nId )
return hBitmap;
}
-// -----------------------------------------------------------------------
+
sal_Bool ImplLoadSalIcon( int nId, HICON& rIcon, HICON& rSmallIcon )
{
diff --git a/vcl/win/source/app/saltimer.cxx b/vcl/win/source/app/saltimer.cxx
index 95ab585e981d..68cd6ca5098e 100644
--- a/vcl/win/source/app/saltimer.cxx
+++ b/vcl/win/source/app/saltimer.cxx
@@ -56,7 +56,7 @@ void ImplSalStartTimer( sal_uLong nMS, sal_Bool bMutex )
pSalData->mnNextTimerTime = pSalData->mnLastEventTime + nMS;
}
-// -----------------------------------------------------------------------
+
WinSalTimer::~WinSalTimer()
{
@@ -90,7 +90,7 @@ void WinSalTimer::Stop()
}
}
-// -----------------------------------------------------------------------
+
void CALLBACK SalTimerProc( HWND, UINT, UINT_PTR nId, DWORD )
{
diff --git a/vcl/win/source/gdi/salbmp.cxx b/vcl/win/source/gdi/salbmp.cxx
index f0e150975e89..5324581d4c6d 100644
--- a/vcl/win/source/gdi/salbmp.cxx
+++ b/vcl/win/source/gdi/salbmp.cxx
@@ -64,7 +64,7 @@
#endif
-// ------------------------------------------------------------------
+
// - Inlines -
inline void ImplSetPixel4( const HPBYTE pScanline, long nX, const BYTE cIndex )
@@ -75,7 +75,7 @@ inline void ImplSetPixel4( const HPBYTE pScanline, long nX, const BYTE cIndex )
( rByte &= 0x0f, rByte |= ( cIndex << 4 ) );
}
-// ------------------------------------------------------------------
+
// Helper class to manage Gdiplus::Bitmap instances inside of
// WinSalBitmap
@@ -194,13 +194,13 @@ public:
}
};
-// ------------------------------------------------------------------
+
// Global instance of GdiPlusBuffer which manages Gdiplus::Bitmap
// instances
static GdiPlusBuffer aGdiPlusBuffer;
-// ------------------------------------------------------------------
+
// - WinSalBitmap -
WinSalBitmap::WinSalBitmap()
@@ -213,14 +213,14 @@ WinSalBitmap::WinSalBitmap()
{
}
-// ------------------------------------------------------------------
+
WinSalBitmap::~WinSalBitmap()
{
Destroy();
}
-// ------------------------------------------------------------------
+
void WinSalBitmap::Destroy()
{
@@ -238,7 +238,7 @@ void WinSalBitmap::Destroy()
mnBitCount = 0;
}
-// ------------------------------------------------------------------
+
GdiPlusBmpPtr WinSalBitmap::ImplGetGdiPlusBitmap(const WinSalBitmap* pAlphaSource) const
{
@@ -281,7 +281,7 @@ GdiPlusBmpPtr WinSalBitmap::ImplGetGdiPlusBitmap(const WinSalBitmap* pAlphaSourc
return maGdiPlusBitmap;
}
-// ------------------------------------------------------------------
+
Gdiplus::Bitmap* WinSalBitmap::ImplCreateGdiPlusBitmap()
{
@@ -372,7 +372,7 @@ Gdiplus::Bitmap* WinSalBitmap::ImplCreateGdiPlusBitmap()
return pRetval;
}
-// ------------------------------------------------------------------
+
Gdiplus::Bitmap* WinSalBitmap::ImplCreateGdiPlusBitmap(const WinSalBitmap& rAlphaSource)
{
@@ -530,7 +530,7 @@ Gdiplus::Bitmap* WinSalBitmap::ImplCreateGdiPlusBitmap(const WinSalBitmap& rAlph
return pRetval;
}
-// ------------------------------------------------------------------
+
bool WinSalBitmap::Create( HANDLE hBitmap, bool bDIB, bool bCopyHandle )
{
@@ -581,7 +581,7 @@ bool WinSalBitmap::Create( HANDLE hBitmap, bool bDIB, bool bCopyHandle )
return bRet;
}
-// ------------------------------------------------------------------
+
bool WinSalBitmap::Create( const Size& rSize, sal_uInt16 nBitCount, const BitmapPalette& rPal )
{
@@ -599,7 +599,7 @@ bool WinSalBitmap::Create( const Size& rSize, sal_uInt16 nBitCount, const Bitmap
return bRet;
}
-// ------------------------------------------------------------------
+
bool WinSalBitmap::Create( const SalBitmap& rSSalBitmap )
{
@@ -628,7 +628,7 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBitmap )
return bRet;
}
-// ------------------------------------------------------------------
+
bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, SalGraphics* pSGraphics )
{
@@ -674,7 +674,7 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, SalGraphics* pSGraphics )
return bRet;
}
-// ------------------------------------------------------------------
+
bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, sal_uInt16 nNewBitCount )
{
@@ -726,7 +726,7 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, sal_uInt16 nNewBitCount )
return bRet;
}
-// ------------------------------------------------------------------
+
bool WinSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas, Size& /*rSize*/, bool bMask )
{
@@ -775,7 +775,7 @@ sal_uInt16 WinSalBitmap::ImplGetDIBColorCount( HGLOBAL hDIB )
return nColors;
}
-// ------------------------------------------------------------------
+
HGLOBAL WinSalBitmap::ImplCreateDIB( const Size& rSize, sal_uInt16 nBits, const BitmapPalette& rPal )
{
@@ -832,7 +832,7 @@ HGLOBAL WinSalBitmap::ImplCreateDIB( const Size& rSize, sal_uInt16 nBits, const
return hDIB;
}
-// ------------------------------------------------------------------
+
HANDLE WinSalBitmap::ImplCopyDIBOrDDB( HANDLE hHdl, bool bDIB )
{
@@ -878,7 +878,7 @@ HANDLE WinSalBitmap::ImplCopyDIBOrDDB( HANDLE hHdl, bool bDIB )
return hCopy;
}
-// ------------------------------------------------------------------
+
BitmapBuffer* WinSalBitmap::AcquireBuffer( bool /*bReadOnly*/ )
{
@@ -977,7 +977,7 @@ BitmapBuffer* WinSalBitmap::AcquireBuffer( bool /*bReadOnly*/ )
return pBuffer;
}
-// ------------------------------------------------------------------
+
void WinSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
{
@@ -1001,7 +1001,7 @@ void WinSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
}
}
-// ------------------------------------------------------------------
+
void WinSalBitmap::ImplDecodeRLEBuffer( const BYTE* pSrcBuf, BYTE* pDstBuf,
const Size& rSizePixel, bool bRLE4 )
diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx
index c999f0df8373..845fb22a43af 100644
--- a/vcl/win/source/gdi/salgdi.cxx
+++ b/vcl/win/source/gdi/salgdi.cxx
@@ -60,7 +60,7 @@ struct SysColorEntry
static SysColorEntry* pFirstSysColor = NULL;
static SysColorEntry* pActSysColor = NULL;
-// -----------------------------------------------------------------------------
+
// Blue7
static PALETTEENTRY aImplExtraColor1 =
@@ -68,7 +68,7 @@ static PALETTEENTRY aImplExtraColor1 =
0, 184, 255, 0
};
-// -----------------------------------------------------------------------------
+
static PALETTEENTRY aImplSalSysPalEntryAry[ DITHER_MAX_SYSCOLOR ] =
{
@@ -90,7 +90,7 @@ static PALETTEENTRY aImplSalSysPalEntryAry[ DITHER_MAX_SYSCOLOR ] =
{ 0xFF, 0xFF, 0xFF, 0 }
};
-// -----------------------------------------------------------------------------
+
static BYTE aOrdDither8Bit[8][8] =
{
@@ -104,7 +104,7 @@ static BYTE aOrdDither8Bit[8][8] =
{ 33, 20, 30, 17, 32, 20, 29, 16 }
};
-// -----------------------------------------------------------------------------
+
static BYTE aOrdDither16Bit[8][8] =
{
@@ -309,7 +309,7 @@ void ImplInitSalGDI()
ReleaseDC( 0, hDC );
}
-// -----------------------------------------------------------------------
+
void ImplFreeSalGDI()
{
@@ -383,7 +383,7 @@ void ImplFreeSalGDI()
ImplReleaseTempFonts( *pSalData );
}
-// -----------------------------------------------------------------------
+
static int ImplIsPaletteEntry( BYTE nRed, BYTE nGreen, BYTE nBlue )
{
@@ -492,7 +492,7 @@ void ImplUpdateSysColorEntries()
ImplInsertSysColorEntry( COLOR_INACTIVECAPTIONTEXT );
}
-// -----------------------------------------------------------------------
+
static SalColor ImplGetROPSalColor( SalROPColor nROPColor )
{
@@ -523,7 +523,7 @@ void ImplSalInitGraphics( WinSalGraphics* pData )
::SetROP2( pData->getHDC(), R2_COPYPEN );
}
-// -----------------------------------------------------------------------
+
void ImplSalDeInitGraphics( WinSalGraphics* pData )
{
@@ -741,7 +741,7 @@ WinSalGraphics::WinSalGraphics()
mnPenWidth = GSL_PEN_WIDTH;
}
-// -----------------------------------------------------------------------
+
WinSalGraphics::~WinSalGraphics()
{
@@ -776,7 +776,7 @@ WinSalGraphics::~WinSalGraphics()
delete mpFontKernPairs;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY )
{
@@ -790,14 +790,14 @@ void WinSalGraphics::GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY )
rDPIX = rDPIY = 600;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 WinSalGraphics::GetBitCount() const
{
return (sal_uInt16)GetDeviceCaps( getHDC(), BITSPIXEL );
}
-// -----------------------------------------------------------------------
+
long WinSalGraphics::GetGraphicsWidth() const
{
@@ -821,7 +821,7 @@ long WinSalGraphics::GetGraphicsWidth() const
return 0;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::ResetClipRegion()
{
@@ -834,7 +834,7 @@ void WinSalGraphics::ResetClipRegion()
SelectClipRgn( getHDC(), 0 );
}
-// -----------------------------------------------------------------------
+
bool WinSalGraphics::setClipRegion( const Region& i_rClip )
{
@@ -1065,7 +1065,7 @@ bool WinSalGraphics::setClipRegion( const Region& i_rClip )
return true;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::SetLineColor()
{
@@ -1088,7 +1088,7 @@ void WinSalGraphics::SetLineColor()
mbStockPen = TRUE;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::SetLineColor( SalColor nSalColor )
{
@@ -1147,7 +1147,7 @@ void WinSalGraphics::SetLineColor( SalColor nSalColor )
mbStockPen = bStockPen;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::SetFillColor()
{
@@ -1170,7 +1170,7 @@ void WinSalGraphics::SetFillColor()
mbStockBrush = TRUE;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::SetFillColor( SalColor nSalColor )
{
@@ -1275,7 +1275,7 @@ void WinSalGraphics::SetFillColor( SalColor nSalColor )
mbStockBrush = bStockBrush;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::SetXORMode( bool bSet, bool )
{
@@ -1283,21 +1283,21 @@ void WinSalGraphics::SetXORMode( bool bSet, bool )
::SetROP2( getHDC(), bSet ? R2_XORPEN : R2_COPYPEN );
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::SetROPLineColor( SalROPColor nROPColor )
{
SetLineColor( ImplGetROPSalColor( nROPColor ) );
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::SetROPFillColor( SalROPColor nROPColor )
{
SetFillColor( ImplGetROPSalColor( nROPColor ) );
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawPixel( long nX, long nY )
{
@@ -1313,7 +1313,7 @@ void WinSalGraphics::drawPixel( long nX, long nY )
SetPixel( getHDC(), (int)nX, (int)nY, mnPenColor );
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawPixel( long nX, long nY, SalColor nSalColor )
{
@@ -1338,7 +1338,7 @@ void WinSalGraphics::drawPixel( long nX, long nY, SalColor nSalColor )
::SetPixel( getHDC(), (int)nX, (int)nY, nCol );
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawLine( long nX1, long nY1, long nX2, long nY2 )
{
@@ -1380,7 +1380,7 @@ void WinSalGraphics::drawLine( long nX1, long nY1, long nX2, long nY2 )
}
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawRect( long nX, long nY, long nWidth, long nHeight )
{
@@ -1405,7 +1405,7 @@ void WinSalGraphics::drawRect( long nX, long nY, long nWidth, long nHeight )
WIN_Rectangle( getHDC(), (int)nX, (int)nY, (int)(nX+nWidth), (int)(nY+nHeight) );
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawPolyLine( sal_uInt32 nPoints, const SalPoint* pPtAry )
{
@@ -1454,7 +1454,7 @@ void WinSalGraphics::drawPolyLine( sal_uInt32 nPoints, const SalPoint* pPtAry )
}
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry )
{
@@ -1468,7 +1468,7 @@ void WinSalGraphics::drawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry )
WIN_Polygon( getHDC(), pWinPtAry, MAX_64KSALPOINTS );
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints,
PCONSTSALPOINT* pPtAry )
@@ -1537,11 +1537,11 @@ void WinSalGraphics::drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoint
delete [] pWinPointAryAry;
}
-// -----------------------------------------------------------------------
+
#define SAL_POLY_STACKBUF 32
-// -----------------------------------------------------------------------
+
bool WinSalGraphics::drawPolyLineBezier( sal_uInt32 nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry )
{
@@ -1558,7 +1558,7 @@ bool WinSalGraphics::drawPolyLineBezier( sal_uInt32 nPoints, const SalPoint* pPt
#endif
}
-// -----------------------------------------------------------------------
+
bool WinSalGraphics::drawPolygonBezier( sal_uInt32 nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry )
{
@@ -1610,7 +1610,7 @@ bool WinSalGraphics::drawPolygonBezier( sal_uInt32 nPoints, const SalPoint* pPtA
#endif
}
-// -----------------------------------------------------------------------
+
bool WinSalGraphics::drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt32* pPoints,
const SalPoint* const* pPtAry, const BYTE* const* pFlgAry )
@@ -1667,7 +1667,7 @@ bool WinSalGraphics::drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt32*
#endif
}
-// -----------------------------------------------------------------------
+
#define POSTSCRIPT_BUFSIZE 0x4000 // MAXIMUM BUFSIZE EQ 0xFFFF
@@ -1770,7 +1770,7 @@ bool WinSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
aBuf.append( "aa" );
// #107797# Write out EPS encapsulation header
- // ----------------------------------------------------------------------------------
+
// directly taken from the PLRM 3.0, p. 726. Note:
// this will definitely cause problems when
@@ -1801,7 +1801,7 @@ bool WinSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
// #i10737# Apply clipping manually
- // ----------------------------------------------------------------------------------
+
// Windows seems to ignore any clipping at the HDC,
// when followed by a POSTSCRIPT_PASSTHROUGH
@@ -1843,13 +1843,13 @@ bool WinSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
}
// #107797# Write out buffer
- // ----------------------------------------------------------------------------------
+
*((sal_uInt16*)aBuf.getStr()) = (sal_uInt16)( aBuf.getLength() - 2 );
Escape ( getHDC(), nEscape, aBuf.getLength(), (LPTSTR)aBuf.getStr(), 0 );
// #107797# Write out EPS transformation code
- // ----------------------------------------------------------------------------------
+
double dM11 = nWidth / ( nBoundingBox[2] - nBoundingBox[0] );
double dM22 = nHeight / (nBoundingBox[1] - nBoundingBox[3] );
// reserve a sal_uInt16 again
@@ -1869,7 +1869,7 @@ bool WinSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
// #107797# Write out actual EPS content
- // ----------------------------------------------------------------------------------
+
sal_uLong nToDo = nSize;
sal_uLong nDoNow;
while ( nToDo )
@@ -1889,7 +1889,7 @@ bool WinSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
// #107797# Write out EPS encapsulation footer
- // ----------------------------------------------------------------------------------
+
// reserve a sal_uInt16 again
aBuf.setLength( 2 );
aBuf.append( "%%EndDocument\n"
@@ -1906,7 +1906,7 @@ bool WinSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
return bRetValue;
}
-// -----------------------------------------------------------------------
+
SystemGraphicsData WinSalGraphics::GetGraphicsData() const
{
@@ -1916,6 +1916,6 @@ SystemGraphicsData WinSalGraphics::GetGraphicsData() const
return aRes;
}
-// -----------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/win/source/gdi/salgdi2.cxx b/vcl/win/source/gdi/salgdi2.cxx
index 9e8537952e13..d81229604ebb 100644
--- a/vcl/win/source/gdi/salgdi2.cxx
+++ b/vcl/win/source/gdi/salgdi2.cxx
@@ -96,7 +96,7 @@ void WinSalGraphics::copyBits( const SalTwoRect& rPosAry, SalGraphics* pSrcGraph
}
}
-// -----------------------------------------------------------------------
+
void ImplCalcOutSideRgn( const RECT& rSrcRect,
int nLeft, int nTop, int nRight, int nBottom,
@@ -139,7 +139,7 @@ void ImplCalcOutSideRgn( const RECT& rSrcRect,
}
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::copyArea( long nDestX, long nDestY,
long nSrcX, long nSrcY,
@@ -335,7 +335,7 @@ void WinSalGraphics::copyArea( long nDestX, long nDestY,
}
-// -----------------------------------------------------------------------
+
void ImplDrawBitmap( HDC hDC,
const SalTwoRect& rPosAry, const WinSalBitmap& rSalBitmap,
@@ -443,7 +443,7 @@ void ImplDrawBitmap( HDC hDC,
}
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap)
{
@@ -472,7 +472,7 @@ void WinSalGraphics::drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSal
mbXORMode ? SRCINVERT : SRCCOPY );
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawBitmap( const SalTwoRect& rPosAry,
const SalBitmap& rSSalBitmap,
@@ -528,7 +528,7 @@ void WinSalGraphics::drawBitmap( const SalTwoRect& rPosAry,
delete pMask;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawBitmap( const SalTwoRect& rPosAry,
const SalBitmap& rSSalBitmap,
@@ -623,7 +623,7 @@ void WinSalGraphics::drawBitmap( const SalTwoRect& rPosAry,
}
}
-// -----------------------------------------------------------------------
+
bool WinSalGraphics::drawAlphaRect( long nX, long nY, long nWidth,
long nHeight, sal_uInt8 nTransparency )
@@ -652,7 +652,7 @@ bool WinSalGraphics::drawAlphaRect( long nX, long nY, long nWidth,
return bRet;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::drawMask( const SalTwoRect& rPosAry,
const SalBitmap& rSSalBitmap,
@@ -686,7 +686,7 @@ void WinSalGraphics::drawMask( const SalTwoRect& rPosAry,
DeleteBrush( hMaskBrush );
}
-// -----------------------------------------------------------------------
+
SalBitmap* WinSalGraphics::getBitmap( long nX, long nY, long nDX, long nDY )
{
@@ -724,7 +724,7 @@ SalBitmap* WinSalGraphics::getBitmap( long nX, long nY, long nDX, long nDY )
return pSalBitmap;
}
-// -----------------------------------------------------------------------
+
SalColor WinSalGraphics::getPixel( long nX, long nY )
{
@@ -738,7 +738,7 @@ SalColor WinSalGraphics::getPixel( long nX, long nY )
GetBValue( aWinCol ) );
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags )
{
@@ -783,7 +783,7 @@ void WinSalGraphics::invert( long nX, long nY, long nWidth, long nHeight, SalInv
}
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::invert( sal_uInt32 nPoints, const SalPoint* pPtAry, SalInvert nSalFlags )
{
diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx
index be8ea7845218..2fd048fed949 100644
--- a/vcl/win/source/gdi/salgdi3.cxx
+++ b/vcl/win/source/gdi/salgdi3.cxx
@@ -59,9 +59,9 @@ using namespace vcl;
static const int MAXFONTHEIGHT = 2048;
-// -----------
+
// - Inlines -
-// -----------
+
inline FIXED FixedFromDouble( double d )
{
@@ -69,7 +69,7 @@ inline FIXED FixedFromDouble( double d )
return *(FIXED*) &l;
}
-// -----------------------------------------------------------------------
+
inline int IntTimes256FromFixed(FIXED f)
{
@@ -86,7 +86,7 @@ static bool bImplSalCourierNew = false;
// =======================================================================
-// -----------------------------------------------------------------------
+
// TODO: also support temporary TTC font files
typedef std::map< OUString, ImplDevFontAttributes > FontAttrMap;
@@ -649,7 +649,7 @@ static rtl_TextEncoding ImplCharSetToSal( BYTE nCharSet )
return eTextEncoding;
}
-// -----------------------------------------------------------------------
+
static FontFamily ImplFamilyToSal( BYTE nFamily )
{
@@ -677,7 +677,7 @@ static FontFamily ImplFamilyToSal( BYTE nFamily )
return FAMILY_DONTKNOW;
}
-// -----------------------------------------------------------------------
+
static BYTE ImplFamilyToWin( FontFamily eFamily )
{
@@ -708,7 +708,7 @@ static BYTE ImplFamilyToWin( FontFamily eFamily )
return FF_DONTCARE;
}
-// -----------------------------------------------------------------------
+
static FontWeight ImplWeightToSal( int nWeight )
{
@@ -732,7 +732,7 @@ static FontWeight ImplWeightToSal( int nWeight )
return WEIGHT_BLACK;
}
-// -----------------------------------------------------------------------
+
static int ImplWeightToWin( FontWeight eWeight )
{
@@ -773,7 +773,7 @@ static int ImplWeightToWin( FontWeight eWeight )
return 0;
}
-// -----------------------------------------------------------------------
+
inline FontPitch ImplLogPitchToSal( BYTE nPitch )
{
@@ -783,7 +783,7 @@ inline FontPitch ImplLogPitchToSal( BYTE nPitch )
return PITCH_VARIABLE;
}
-// -----------------------------------------------------------------------
+
inline FontPitch ImplMetricPitchToSal( BYTE nPitch )
{
@@ -794,7 +794,7 @@ inline FontPitch ImplMetricPitchToSal( BYTE nPitch )
return PITCH_VARIABLE;
}
-// -----------------------------------------------------------------------
+
inline BYTE ImplPitchToWin( FontPitch ePitch )
{
@@ -806,7 +806,7 @@ inline BYTE ImplPitchToWin( FontPitch ePitch )
return DEFAULT_PITCH;
}
-// -----------------------------------------------------------------------
+
static ImplDevFontAttributes WinFont2DevFontAttributes( const ENUMLOGFONTEXA& rEnumFont,
const NEWTEXTMETRICA& rMetric, DWORD nFontType )
@@ -881,7 +881,7 @@ static ImplDevFontAttributes WinFont2DevFontAttributes( const ENUMLOGFONTEXA& rE
return aDFA;
}
-// -----------------------------------------------------------------------
+
static ImplDevFontAttributes WinFont2DevFontAttributes( const ENUMLOGFONTEXW& rEnumFont,
const NEWTEXTMETRICW& rMetric, DWORD nFontType )
@@ -956,7 +956,7 @@ static ImplDevFontAttributes WinFont2DevFontAttributes( const ENUMLOGFONTEXW& rE
return aDFA;
}
-// -----------------------------------------------------------------------
+
static ImplWinFontData* ImplLogMetricToDevFontDataA( const ENUMLOGFONTEXA* pLogFont,
const NEWTEXTMETRICA* pMetric,
@@ -975,7 +975,7 @@ static ImplWinFontData* ImplLogMetricToDevFontDataA( const ENUMLOGFONTEXA* pLogF
return pData;
}
-// -----------------------------------------------------------------------
+
static ImplWinFontData* ImplLogMetricToDevFontDataW( const ENUMLOGFONTEXW* pLogFont,
const NEWTEXTMETRICW* pMetric,
@@ -994,7 +994,7 @@ static ImplWinFontData* ImplLogMetricToDevFontDataW( const ENUMLOGFONTEXW* pLogF
return pData;
}
-// -----------------------------------------------------------------------
+
void ImplSalLogFontToFontW( HDC hDC, const LOGFONTW& rLogFont, Font& rFont )
{
@@ -1180,7 +1180,7 @@ ImplWinFontData::ImplWinFontData( const ImplDevFontAttributes& rDFS,
#endif
}
-// -----------------------------------------------------------------------
+
ImplWinFontData::~ImplWinFontData()
{
@@ -1198,19 +1198,19 @@ ImplWinFontData::~ImplWinFontData()
delete mpEncodingVector;
}
-// -----------------------------------------------------------------------
+
sal_IntPtr ImplWinFontData::GetFontId() const
{
return mnId;
}
-// -----------------------------------------------------------------------
+
static unsigned GetUInt( const unsigned char* p ) { return((p[0]<<24)+(p[1]<<16)+(p[2]<<8)+p[3]);}
static inline DWORD CalcTag( const char p[4]) { return (p[0]+(p[1]<<8)+(p[2]<<16)+(p[3]<<24)); }
-// -----------------------------------------------------------------------
+
void ImplWinFontData::UpdateFromHDC( HDC hDC ) const
{
@@ -1267,7 +1267,7 @@ const gr_face* ImplWinFontData::GraphiteFace() const
return (mpGraphiteData)? mpGraphiteData->getFace() : NULL;
}
#endif
-// -----------------------------------------------------------------------
+
bool ImplWinFontData::HasGSUBstitutions( HDC hDC ) const
{
@@ -1276,14 +1276,14 @@ bool ImplWinFontData::HasGSUBstitutions( HDC hDC ) const
return !maGsubTable.empty();
}
-// -----------------------------------------------------------------------
+
bool ImplWinFontData::IsGSUBstituted( sal_UCS4 cChar ) const
{
return( maGsubTable.find( cChar ) != maGsubTable.end() );
}
-// -----------------------------------------------------------------------
+
const ImplFontCharMap* ImplWinFontData::GetImplFontCharMap() const
{
@@ -1298,7 +1298,7 @@ bool ImplWinFontData::GetImplFontCapabilities(vcl::FontCapabilities &rFontCapabi
return !rFontCapabilities.maUnicodeRange.empty() || !rFontCapabilities.maCodePageRange.empty();
}
-// -----------------------------------------------------------------------
+
void ImplWinFontData::ReadGsubTable( HDC hDC ) const
{
@@ -1345,7 +1345,7 @@ void ImplWinFontData::ReadGsubTable( HDC hDC ) const
CloseTTFont( pTTFont );
}
-// -----------------------------------------------------------------------
+
void ImplWinFontData::ReadCmapTable( HDC hDC ) const
{
@@ -1433,7 +1433,7 @@ void WinSalGraphics::SetTextColor( SalColor nSalColor )
::SetTextColor( getHDC(), aCol );
}
-// -----------------------------------------------------------------------
+
int CALLBACK SalEnumQueryFontProcExW( const ENUMLOGFONTEXW*,
const NEWTEXTMETRICEXW*,
@@ -1443,7 +1443,7 @@ int CALLBACK SalEnumQueryFontProcExW( const ENUMLOGFONTEXW*,
return 0;
}
-// -----------------------------------------------------------------------
+
void ImplGetLogFontFromFontSelect( HDC hDC,
const FontSelectPattern* pFont,
@@ -1516,7 +1516,7 @@ void ImplGetLogFontFromFontSelect( HDC hDC,
}
}
-// -----------------------------------------------------------------------
+
HFONT WinSalGraphics::ImplDoSetFont( FontSelectPattern* i_pFont, float& o_rFontScale, HFONT& o_rOldFont )
{
@@ -1665,7 +1665,7 @@ sal_uInt16 WinSalGraphics::SetFont( FontSelectPattern* pFont, int nFallbackLevel
return 0;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int nFallbackLevel )
{
@@ -1743,7 +1743,7 @@ void WinSalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int nFallbackLe
pMetric->mnMinKashida = GetMinKashidaWidth();
}
-// -----------------------------------------------------------------------
+
sal_uLong WinSalGraphics::GetKernPairs()
{
@@ -1774,7 +1774,7 @@ sal_uLong WinSalGraphics::GetKernPairs()
return mnFontKernPairCount;
}
-// -----------------------------------------------------------------------
+
const ImplFontCharMap* WinSalGraphics::GetImplFontCharMap() const
{
@@ -1790,7 +1790,7 @@ bool WinSalGraphics::GetImplFontCapabilities(vcl::FontCapabilities &rFontCapabil
return mpWinFontData[0]->GetImplFontCapabilities(rFontCapabilities);
}
-// -----------------------------------------------------------------------
+
int CALLBACK SalEnumFontsProcExA( const ENUMLOGFONTEXA* pLogFont,
const NEWTEXTMETRICEXA* pMetric,
@@ -1846,7 +1846,7 @@ int CALLBACK SalEnumFontsProcExA( const ENUMLOGFONTEXA* pLogFont,
return 1;
}
-// -----------------------------------------------------------------------
+
int CALLBACK SalEnumFontsProcExW( const ENUMLOGFONTEXW* pLogFont,
const NEWTEXTMETRICEXW* pMetric,
@@ -1896,7 +1896,7 @@ int CALLBACK SalEnumFontsProcExW( const ENUMLOGFONTEXW* pLogFont,
return 1;
}
-// -----------------------------------------------------------------------
+
struct TempFontItem
{
@@ -1975,7 +1975,7 @@ bool ImplAddTempFont( SalData& rSalData, const OUString& rFontFileURL )
return (nRet > 0);
}
-// -----------------------------------------------------------------------
+
void ImplReleaseTempFonts( SalData& rSalData )
{
@@ -2006,7 +2006,7 @@ void ImplReleaseTempFonts( SalData& rSalData )
#endif // FR_PRIVATE
}
-// -----------------------------------------------------------------------
+
static bool ImplGetFontAttrFromFile( const OUString& rFontFileURL,
ImplDevFontAttributes& rDFA )
@@ -2103,7 +2103,7 @@ static bool ImplGetFontAttrFromFile( const OUString& rFontFileURL,
return true;
}
-// -----------------------------------------------------------------------
+
bool WinSalGraphics::AddTempDevFont( ImplDevFontList* pFontList,
const OUString& rFontFileURL, const OUString& rFontName )
@@ -2161,7 +2161,7 @@ bool WinSalGraphics::AddTempDevFont( ImplDevFontList* pFontList,
return true;
}
-// -----------------------------------------------------------------------
+
void WinSalGraphics::GetDevFontList( ImplDevFontList* pFontList )
{
@@ -2263,7 +2263,7 @@ void WinSalGraphics::ClearDevFontCache()
//anything to do here ?
}
-// -----------------------------------------------------------------------
+
bool WinSalGraphics::GetGlyphBoundRect( sal_GlyphId aGlyphId, Rectangle& rRect )
{
@@ -2295,7 +2295,7 @@ bool WinSalGraphics::GetGlyphBoundRect( sal_GlyphId aGlyphId, Rectangle& rRect )
return true;
}
-// -----------------------------------------------------------------------
+
bool WinSalGraphics::GetGlyphOutline( sal_GlyphId aGlyphId,
::basegfx::B2DPolyPolygon& rB2DPolyPoly )
@@ -2479,7 +2479,7 @@ bool WinSalGraphics::GetGlyphOutline( sal_GlyphId aGlyphId,
return true;
}
-// -----------------------------------------------------------------------
+
class ScopedFont
{
diff --git a/vcl/win/source/gdi/salgdi_gdiplus.cxx b/vcl/win/source/gdi/salgdi_gdiplus.cxx
index aee96e196b3f..23b286abdd88 100644
--- a/vcl/win/source/gdi/salgdi_gdiplus.cxx
+++ b/vcl/win/source/gdi/salgdi_gdiplus.cxx
@@ -61,7 +61,7 @@
#include <basegfx/polygon/b2dpolygon.hxx>
-// -----------------------------------------------------------------------
+
void impAddB2DPolygonToGDIPlusGraphicsPathReal(Gdiplus::GpPath *pPath, const basegfx::B2DPolygon& rPolygon, bool bNoLineJoin)
{
@@ -324,7 +324,7 @@ bool WinSalGraphics::drawPolyLine(
return true;
}
-// -----------------------------------------------------------------------
+
void paintToGdiPlus(
Gdiplus::Graphics& rGraphics,
@@ -359,7 +359,7 @@ void paintToGdiPlus(
0);
}
-// -----------------------------------------------------------------------
+
void setInterpolationMode(
Gdiplus::Graphics& rGraphics,
@@ -459,7 +459,7 @@ bool WinSalGraphics::drawAlphaBitmap(
return false;
}
-// -----------------------------------------------------------------------
+
bool WinSalGraphics::drawTransformedBitmap(
const basegfx::B2DPoint& rNull,
diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx
index 40346f3c6e91..0703bbbbb64a 100644
--- a/vcl/win/source/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx
@@ -388,7 +388,7 @@ Rectangle ImplGetThemeRect( HTHEME hTheme, HDC hDC, int iPart, int iState, const
}
// Helper functions
-// ----
+
void ImplConvertSpinbuttonValues( int nControlPart, const ControlState& rState, const Rectangle& rRect,
int* pLunaPart, int *pLunaState, RECT *pRect )
diff --git a/vcl/win/source/gdi/salvd.cxx b/vcl/win/source/gdi/salvd.cxx
index 603dd40918f9..420d312711da 100644
--- a/vcl/win/source/gdi/salvd.cxx
+++ b/vcl/win/source/gdi/salvd.cxx
@@ -151,7 +151,7 @@ SalVirtualDevice* WinSalInstance::CreateVirtualDevice( SalGraphics* pSGraphics,
}
}
-// -----------------------------------------------------------------------
+
void WinSalInstance::DestroyVirtualDevice( SalVirtualDevice* pDevice )
{
@@ -172,7 +172,7 @@ WinSalVirtualDevice::WinSalVirtualDevice()
mbForeignDC = FALSE; // uses a foreign DC instead of a bitmap
}
-// -----------------------------------------------------------------------
+
WinSalVirtualDevice::~WinSalVirtualDevice()
{
@@ -197,7 +197,7 @@ WinSalVirtualDevice::~WinSalVirtualDevice()
mpGraphics = NULL;
}
-// -----------------------------------------------------------------------
+
SalGraphics* WinSalVirtualDevice::GetGraphics()
{
@@ -210,14 +210,14 @@ SalGraphics* WinSalVirtualDevice::GetGraphics()
return mpGraphics;
}
-// -----------------------------------------------------------------------
+
void WinSalVirtualDevice::ReleaseGraphics( SalGraphics* )
{
mbGraphics = FALSE;
}
-// -----------------------------------------------------------------------
+
bool WinSalVirtualDevice::SetSize( long nDX, long nDY )
{
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx
index b6bb33490d49..947219a582f7 100644
--- a/vcl/win/source/gdi/winlayout.cxx
+++ b/vcl/win/source/gdi/winlayout.cxx
@@ -102,7 +102,7 @@ private:
mutable int mnMinKashidaGlyph;
};
-// -----------------------------------------------------------------------
+
inline void ImplWinFontEntry::CacheGlyphWidth( int nCharCode, int nCharWidth )
{
@@ -198,14 +198,14 @@ WinLayout::WinLayout( HDC hDC, const ImplWinFontData& rWFD, ImplWinFontEntry& rW
mrWinFontEntry( rWFE )
{}
-// -----------------------------------------------------------------------
+
void WinLayout::InitFont() const
{
::SelectObject( mhDC, mhFont );
}
-// -----------------------------------------------------------------------
+
// Using reasonably sized fonts to emulate huge fonts works around
// a lot of problems in printer and display drivers. Huge fonts are
@@ -251,7 +251,7 @@ SimpleWinLayout::SimpleWinLayout( HDC hDC, BYTE nCharSet,
mbDisableGlyphs = true;
}
-// -----------------------------------------------------------------------
+
SimpleWinLayout::~SimpleWinLayout()
{
@@ -265,7 +265,7 @@ SimpleWinLayout::~SimpleWinLayout()
delete[] mpOutGlyphs;
}
-// -----------------------------------------------------------------------
+
bool SimpleWinLayout::LayoutText( ImplLayoutArgs& rArgs )
{
@@ -530,7 +530,7 @@ bool SimpleWinLayout::LayoutText( ImplLayoutArgs& rArgs )
return true;
}
-// -----------------------------------------------------------------------
+
int SimpleWinLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphIds, Point& rPos, int& nStart,
long* pGlyphAdvances, int* pCharIndexes,
@@ -599,7 +599,7 @@ int SimpleWinLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphIds, Point& rPo
return nCount;
}
-// -----------------------------------------------------------------------
+
void SimpleWinLayout::DrawText( SalGraphics& rGraphics ) const
{
@@ -647,7 +647,7 @@ void SimpleWinLayout::DrawText( SalGraphics& rGraphics ) const
DeleteFont( SelectFont( aHDC, hOrigFont ) );
}
-// -----------------------------------------------------------------------
+
long SimpleWinLayout::FillDXArray( long* pDXArray ) const
{
@@ -667,7 +667,7 @@ long SimpleWinLayout::FillDXArray( long* pDXArray ) const
return mnWidth;
}
-// -----------------------------------------------------------------------
+
sal_Int32 SimpleWinLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nFactor ) const
// NOTE: the nFactor is used to prevent rounding errors for small nCharExtra values
@@ -692,7 +692,7 @@ sal_Int32 SimpleWinLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nF
return -1;
}
-// -----------------------------------------------------------------------
+
void SimpleWinLayout::GetCaretPositions( int nMaxIdx, long* pCaretXArray ) const
{
@@ -736,7 +736,7 @@ void SimpleWinLayout::GetCaretPositions( int nMaxIdx, long* pCaretXArray ) const
}
}
-// -----------------------------------------------------------------------
+
void SimpleWinLayout::Justify( long nNewWidth )
{
@@ -773,7 +773,7 @@ void SimpleWinLayout::Justify( long nNewWidth )
}
}
-// -----------------------------------------------------------------------
+
void SimpleWinLayout::AdjustLayout( ImplLayoutArgs& rArgs )
{
@@ -812,7 +812,7 @@ void SimpleWinLayout::AdjustLayout( ImplLayoutArgs& rArgs )
}
}
-// -----------------------------------------------------------------------
+
void SimpleWinLayout::ApplyDXArray( const ImplLayoutArgs& rArgs )
{
@@ -857,7 +857,7 @@ void SimpleWinLayout::ApplyDXArray( const ImplLayoutArgs& rArgs )
}
}
-// -----------------------------------------------------------------------
+
void SimpleWinLayout::MoveGlyph( int nStart, long nNewXPos )
{
@@ -885,14 +885,14 @@ void SimpleWinLayout::MoveGlyph( int nStart, long nNewXPos )
mnBaseAdv += nDelta;
}
-// -----------------------------------------------------------------------
+
void SimpleWinLayout::DropGlyph( int nStart )
{
mpOutGlyphs[ nStart ] = DROPPED_OUTGLYPH;
}
-// -----------------------------------------------------------------------
+
void SimpleWinLayout::Simplify( bool /*bIsBase*/ )
{
@@ -995,7 +995,7 @@ public:
bool HasKashidas() const { return mbHasKashidas; }
};
-// -----------------------------------------------------------------------
+
class UniscribeLayout : public WinLayout
{
@@ -1067,7 +1067,7 @@ static bool bUspInited = false;
static bool bManualCellAlign = true;
-// -----------------------------------------------------------------------
+
static bool InitUSP()
{
@@ -1107,7 +1107,7 @@ static bool InitUSP()
return true;
}
-// -----------------------------------------------------------------------
+
UniscribeLayout::UniscribeLayout( HDC hDC,
const ImplWinFontData& rWinFontData, ImplWinFontEntry& rWinFontEntry )
@@ -1132,7 +1132,7 @@ UniscribeLayout::UniscribeLayout( HDC hDC,
mbDisableGlyphInjection( false )
{}
-// -----------------------------------------------------------------------
+
UniscribeLayout::~UniscribeLayout()
{
@@ -1148,7 +1148,7 @@ UniscribeLayout::~UniscribeLayout()
delete[] mpGlyphs2Chars;
}
-// -----------------------------------------------------------------------
+
bool UniscribeLayout::LayoutText( ImplLayoutArgs& rArgs )
{
@@ -1568,7 +1568,7 @@ bool UniscribeLayout::LayoutText( ImplLayoutArgs& rArgs )
return true;
}
-// -----------------------------------------------------------------------
+
// calculate the range of relevant glyphs for this visual item
bool UniscribeLayout::GetItemSubrange( const VisualItem& rVisualItem,
@@ -1631,7 +1631,7 @@ bool UniscribeLayout::GetItemSubrange( const VisualItem& rVisualItem,
return true;
}
-// -----------------------------------------------------------------------
+
int UniscribeLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos,
int& nStartx8, sal_Int32* pGlyphAdvances, int* pCharPosAry,
@@ -1898,7 +1898,7 @@ int UniscribeLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos,
return nCount;
}
-// -----------------------------------------------------------------------
+
void UniscribeLayout::MoveGlyph( int nStartx8, long nNewXPos )
{
@@ -1965,7 +1965,7 @@ void UniscribeLayout::MoveGlyph( int nStartx8, long nNewXPos )
}
}
-// -----------------------------------------------------------------------
+
void UniscribeLayout::DropGlyph( int nStartx8 )
{
@@ -1994,7 +1994,7 @@ void UniscribeLayout::DropGlyph( int nStartx8 )
mpOutGlyphs[ nStart ] = DROPPED_OUTGLYPH;
}
-// -----------------------------------------------------------------------
+
void UniscribeLayout::Simplify( bool /*bIsBase*/ )
{
@@ -2097,7 +2097,7 @@ void UniscribeLayout::Simplify( bool /*bIsBase*/ )
}
}
-// -----------------------------------------------------------------------
+
void UniscribeLayout::DrawText( SalGraphics& ) const
{
@@ -2149,7 +2149,7 @@ void UniscribeLayout::DrawText( SalGraphics& ) const
DeleteFont( SelectFont( mhDC, hOrigFont ) );
}
-// -----------------------------------------------------------------------
+
long UniscribeLayout::FillDXArray( long* pDXArray ) const
{
@@ -2180,7 +2180,7 @@ long UniscribeLayout::FillDXArray( long* pDXArray ) const
return nWidth;
}
-// -----------------------------------------------------------------------
+
sal_Int32 UniscribeLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nFactor ) const
{
@@ -2225,7 +2225,7 @@ sal_Int32 UniscribeLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nF
return -1;
}
-// -----------------------------------------------------------------------
+
void UniscribeLayout::GetCaretPositions( int nMaxIdx, long* pCaretXArray ) const
{
@@ -2294,7 +2294,7 @@ void UniscribeLayout::GetCaretPositions( int nMaxIdx, long* pCaretXArray ) const
}
}
-// -----------------------------------------------------------------------
+
void UniscribeLayout::AdjustLayout( ImplLayoutArgs& rArgs )
{
@@ -2307,7 +2307,7 @@ void UniscribeLayout::AdjustLayout( ImplLayoutArgs& rArgs )
Justify( rArgs.mnLayoutWidth );
}
-// -----------------------------------------------------------------------
+
void UniscribeLayout::ApplyDXArray( const ImplLayoutArgs& rArgs )
{
@@ -2446,7 +2446,7 @@ void UniscribeLayout::ApplyDXArray( const ImplLayoutArgs& rArgs )
}
}
-// -----------------------------------------------------------------------
+
void UniscribeLayout::InitKashidaHandling()
{
@@ -2590,7 +2590,7 @@ bool UniscribeLayout::KashidaWordFix ( int nMinGlyphPos, int nEndGlyphPos, int*
return true;
}
-// -----------------------------------------------------------------------
+
void UniscribeLayout::Justify( long nNewWidth )
{
@@ -2642,7 +2642,7 @@ void UniscribeLayout::Justify( long nNewWidth )
}
}
-// -----------------------------------------------------------------------
+
bool UniscribeLayout::IsKashidaPosValid ( int nCharPos ) const
{
@@ -2950,7 +2950,7 @@ SalLayout* WinSalGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLe
return pWinLayout;
}
-// -----------------------------------------------------------------------
+
int WinSalGraphics::GetMinKashidaWidth()
{
@@ -2974,7 +2974,7 @@ ImplWinFontEntry::ImplWinFontEntry( FontSelectPattern& rFSD )
maScriptCache = NULL;
}
-// -----------------------------------------------------------------------
+
ImplWinFontEntry::~ImplWinFontEntry()
{
@@ -2983,14 +2983,14 @@ ImplWinFontEntry::~ImplWinFontEntry()
delete[] mpKerningPairs;
}
-// -----------------------------------------------------------------------
+
bool ImplWinFontEntry::HasKernData() const
{
return (mnKerningPairs >= 0);
}
-// -----------------------------------------------------------------------
+
void ImplWinFontEntry::SetKernData( int nPairCount, const KERNINGPAIR* pPairData )
{
@@ -2999,7 +2999,7 @@ void ImplWinFontEntry::SetKernData( int nPairCount, const KERNINGPAIR* pPairData
::memcpy( mpKerningPairs, (const void*)pPairData, nPairCount*sizeof(KERNINGPAIR) );
}
-// -----------------------------------------------------------------------
+
int ImplWinFontEntry::GetKerning( sal_Unicode cLeft, sal_Unicode cRight ) const
{
@@ -3020,7 +3020,7 @@ int ImplWinFontEntry::GetKerning( sal_Unicode cLeft, sal_Unicode cRight ) const
return nKernAmount;
}
-// -----------------------------------------------------------------------
+
bool ImplWinFontEntry::InitKashidaHandling( HDC hDC )
{
@@ -3059,7 +3059,7 @@ PhysicalFontFace* ImplWinFontData::Clone() const
return pClone;
}
-// -----------------------------------------------------------------------
+
ImplFontEntry* ImplWinFontData::CreateFontInstance( FontSelectPattern& rFSD ) const
{
diff --git a/vcl/win/source/gdi/wntgdi.cxx b/vcl/win/source/gdi/wntgdi.cxx
index 86067035de53..54ae7ea58b32 100644
--- a/vcl/win/source/gdi/wntgdi.cxx
+++ b/vcl/win/source/gdi/wntgdi.cxx
@@ -26,7 +26,7 @@
#pragma warning(pop)
#endif
-// -----------------------------------------------------------------------
+
extern "C"
{
@@ -36,7 +36,7 @@ BOOL WINAPI WIN_Rectangle( HDC hDC, int X1, int Y1, int X2, int Y2 )
}
}
-// -----------------------------------------------------------------------
+
extern "C"
{
@@ -46,7 +46,7 @@ BOOL WINAPI WIN_Polygon( HDC hDC, CONST POINT * ppt, int ncnt )
}
}
-// -----------------------------------------------------------------------
+
extern "C"
{
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 77528383e6cb..390d051cb320 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -197,7 +197,7 @@ static void ImplSaveFrameState( WinSalFrame* pFrame )
}
}
-// -----------------------------------------------------------------------
+
// if pParentRect is set, the workarea of the monitor that contains pParentRect is returned
void ImplSalGetWorkArea( HWND hWnd, RECT *pRect, const RECT *pParentRect )
@@ -703,7 +703,7 @@ static UINT ImplSalGetWheelScrollLines()
return nScrLines;
}
-// -----------------------------------------------------------------------
+
static UINT ImplSalGetWheelScrollChars()
{
@@ -729,7 +729,7 @@ static UINT ImplSalGetWheelScrollChars()
return nScrChars;
}
-// -----------------------------------------------------------------------
+
static void ImplSalAddBorder( const WinSalFrame* pFrame, int& width, int& height )
{
@@ -745,7 +745,7 @@ static void ImplSalAddBorder( const WinSalFrame* pFrame, int& width, int& height
height = aWinRect.bottom - aWinRect.top + 1;
}
-// -----------------------------------------------------------------------
+
static void ImplSalCalcFullScreenSize( const WinSalFrame* pFrame,
int& rX, int& rY, int& rDX, int& rDY )
@@ -824,7 +824,7 @@ static void ImplSalCalcFullScreenSize( const WinSalFrame* pFrame,
rDY = nScreenDY+(nFrameY*2)+nCaptionY;
}
-// -----------------------------------------------------------------------
+
static void ImplSalFrameFullScreenPos( WinSalFrame* pFrame, sal_Bool bAlways = FALSE )
{
@@ -842,7 +842,7 @@ static void ImplSalFrameFullScreenPos( WinSalFrame* pFrame, sal_Bool bAlways = F
}
}
-// -----------------------------------------------------------------------
+
WinSalFrame::WinSalFrame()
{
@@ -912,7 +912,7 @@ WinSalFrame::WinSalFrame()
pSalData->mpFirstFrame = this;
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::updateScreenNumber()
{
if( mnDisplay == -1 ) // spans all monitors
@@ -935,7 +935,7 @@ void WinSalFrame::updateScreenNumber()
}
}
-// -----------------------------------------------------------------------
+
WinSalFrame::~WinSalFrame()
{
@@ -992,7 +992,7 @@ WinSalFrame::~WinSalFrame()
}
}
-// -----------------------------------------------------------------------
+
SalGraphics* WinSalFrame::GetGraphics()
{
@@ -1071,7 +1071,7 @@ SalGraphics* WinSalFrame::GetGraphics()
}
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::ReleaseGraphics( SalGraphics* pGraphics )
{
@@ -1095,14 +1095,14 @@ void WinSalFrame::ReleaseGraphics( SalGraphics* pGraphics )
mbGraphics = FALSE;
}
-// -----------------------------------------------------------------------
+
bool WinSalFrame::PostEvent( void* pData )
{
return (sal_Bool)ImplPostMessage( mhWnd, SAL_MSG_USEREVENT, 0, (LPARAM)pData );
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetTitle( const OUString& rTitle )
{
@@ -1111,7 +1111,7 @@ void WinSalFrame::SetTitle( const OUString& rTitle )
SetWindowTextW( mhWnd, reinterpret_cast<LPCWSTR>(rTitle.getStr()) );
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetIcon( sal_uInt16 nIcon )
{
@@ -1133,7 +1133,7 @@ void WinSalFrame::SetIcon( sal_uInt16 nIcon )
ImplSendMessage( mhWnd, WM_SETICON, ICON_SMALL, (LPARAM)hSmIcon );
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetMenu( SalMenu* pSalMenu )
{
@@ -1147,7 +1147,7 @@ void WinSalFrame::DrawMenuBar()
::DrawMenuBar( mhWnd );
}
-// -----------------------------------------------------------------------
+
HWND ImplGetParentHwnd( HWND hWnd )
{
WinSalFrame* pFrame = GetWindowPtr( hWnd );
@@ -1161,14 +1161,14 @@ HWND ImplGetParentHwnd( HWND hWnd )
}
-// -----------------------------------------------------------------------
+
SalFrame* WinSalFrame::GetParent() const
{
return GetWindowPtr( ImplGetParentHwnd( mhWnd ) );
}
-// -----------------------------------------------------------------------
+
static void ImplSalShow( HWND hWnd, sal_Bool bVisible, sal_Bool bNoActivate )
{
@@ -1246,14 +1246,14 @@ static void ImplSalShow( HWND hWnd, sal_Bool bVisible, sal_Bool bNoActivate )
}
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetExtendedFrameStyle( SalExtStyle )
{
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::Show( sal_Bool bVisible, sal_Bool bNoActivate )
{
@@ -1266,14 +1266,14 @@ void WinSalFrame::Show( sal_Bool bVisible, sal_Bool bNoActivate )
ImplSalShow( mhWnd, bVisible, bNoActivate );
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::Enable( sal_Bool bEnable )
{
EnableWindow( mhWnd, bEnable );
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetMinClientSize( long nWidth, long nHeight )
{
@@ -1287,7 +1287,7 @@ void WinSalFrame::SetMaxClientSize( long nWidth, long nHeight )
mnMaxHeight = nHeight;
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight,
sal_uInt16 nFlags )
@@ -1500,7 +1500,7 @@ void WinSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight,
CallCallback( nEvent, NULL );
}
-// -----------------------------------------------------------------------
+
static void ImplSetParentFrame( WinSalFrame* pThis, HWND hNewParentWnd, sal_Bool bAsChild )
{
@@ -1651,7 +1651,7 @@ static void ImplSetParentFrame( WinSalFrame* pThis, HWND hNewParentWnd, sal_Bool
SAL_MSG_DESTROYHWND, (WPARAM) 0, (LPARAM)hWndOld);
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetParent( SalFrame* pNewParent )
{
@@ -1674,7 +1674,7 @@ bool WinSalFrame::SetPluginParent( SystemParentData* pNewParent )
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::GetWorkArea( Rectangle &rRect )
{
@@ -1686,7 +1686,7 @@ void WinSalFrame::GetWorkArea( Rectangle &rRect )
rRect.Bottom() = aRect.bottom-1;
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::GetClientSize( long& rWidth, long& rHeight )
{
@@ -1694,7 +1694,7 @@ void WinSalFrame::GetClientSize( long& rWidth, long& rHeight )
rHeight = maGeometry.nHeight;
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetWindowState( const SalFrameState* pState )
{
@@ -1855,7 +1855,7 @@ void WinSalFrame::SetWindowState( const SalFrameState* pState )
mbDefPos = FALSE; // window was positioned
}
-// -----------------------------------------------------------------------
+
bool WinSalFrame::GetWindowState( SalFrameState* pState )
{
@@ -1873,7 +1873,7 @@ bool WinSalFrame::GetWindowState( SalFrameState* pState )
return FALSE;
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetScreenNumber( unsigned int nNewScreen )
{
@@ -1944,7 +1944,7 @@ void WinSalFrame::SetApplicationID( const OUString &rApplicationID )
}
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::ShowFullScreen( bool bFullScreen, sal_Int32 nDisplay )
{
@@ -2009,7 +2009,7 @@ void WinSalFrame::ShowFullScreen( bool bFullScreen, sal_Int32 nDisplay )
}
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::StartPresentation( sal_Bool bStart )
{
@@ -2064,7 +2064,7 @@ void WinSalFrame::StartPresentation( sal_Bool bStart )
}
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetAlwaysOnTop( sal_Bool bOnTop )
{
@@ -2076,7 +2076,7 @@ void WinSalFrame::SetAlwaysOnTop( sal_Bool bOnTop )
SetWindowPos( mhWnd, hWnd, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE );
}
-// -----------------------------------------------------------------------
+
static void ImplSalToTop( HWND hWnd, sal_uInt16 nFlags )
{
@@ -2131,7 +2131,7 @@ static void ImplSalToTop( HWND hWnd, sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::ToTop( sal_uInt16 nFlags )
{
@@ -2145,7 +2145,7 @@ void WinSalFrame::ToTop( sal_uInt16 nFlags )
ImplSalToTop( mhWnd, nFlags );
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetPointer( PointerStyle ePointerStyle )
{
@@ -2280,7 +2280,7 @@ void WinSalFrame::SetPointer( PointerStyle ePointerStyle )
}
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::CaptureMouse( sal_Bool bCapture )
{
@@ -2294,7 +2294,7 @@ void WinSalFrame::CaptureMouse( sal_Bool bCapture )
ImplSendMessage( mhWnd, nMsg, 0, 0 );
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetPointerPos( long nX, long nY )
{
@@ -2305,21 +2305,21 @@ void WinSalFrame::SetPointerPos( long nX, long nY )
SetCursorPos( aPt.x, aPt.y );
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::Flush()
{
GdiFlush();
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::Sync()
{
GdiFlush();
}
-// -----------------------------------------------------------------------
+
static void ImplSalFrameSetInputContext( HWND hWnd, const SalInputContext* pContext )
{
@@ -2381,7 +2381,7 @@ static void ImplSalFrameSetInputContext( HWND hWnd, const SalInputContext* pCont
}
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::SetInputContext( SalInputContext* pContext )
{
@@ -2389,7 +2389,7 @@ void WinSalFrame::SetInputContext( SalInputContext* pContext )
ImplSendMessage( mhWnd, SAL_MSG_SETINPUTCONTEXT, 0, (LPARAM)(void*)pContext );
}
-// -----------------------------------------------------------------------
+
static void ImplSalFrameEndExtTextInput( HWND hWnd, sal_uInt16 nFlags )
{
@@ -2407,7 +2407,7 @@ static void ImplSalFrameEndExtTextInput( HWND hWnd, sal_uInt16 nFlags )
}
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::EndExtTextInput( sal_uInt16 nFlags )
{
@@ -2415,7 +2415,7 @@ void WinSalFrame::EndExtTextInput( sal_uInt16 nFlags )
ImplSendMessage( mhWnd, SAL_MSG_ENDEXTTEXTINPUT, (WPARAM)nFlags, 0 );
}
-// -----------------------------------------------------------------------
+
static void ImplGetKeyNameText( LONG lParam, sal_Unicode* pBuf,
UINT& rCount, UINT nMaxSize,
@@ -2487,7 +2487,7 @@ static void ImplGetKeyNameText( LONG lParam, sal_Unicode* pBuf,
rCount = 0;
}
-// -----------------------------------------------------------------------
+
OUString WinSalFrame::GetKeyName( sal_uInt16 nKeyCode )
{
@@ -2689,14 +2689,14 @@ OUString WinSalFrame::GetKeyName( sal_uInt16 nKeyCode )
return OUString( aKeyBuf, sal::static_int_cast< sal_uInt16 >(nKeyBufLen) );
}
-// -----------------------------------------------------------------------
+
inline Color ImplWinColorToSal( COLORREF nColor )
{
return Color( GetRValue( nColor ), GetGValue( nColor ), GetBValue( nColor ) );
}
-// -----------------------------------------------------------------------
+
static void ImplSalUpdateStyleFontW( HDC hDC, const LOGFONTW& rLogFont, Font& rFont )
{
@@ -2716,7 +2716,7 @@ static void ImplSalUpdateStyleFontW( HDC hDC, const LOGFONTW& rLogFont, Font& rF
}
}
-// -----------------------------------------------------------------------
+
static long ImplA2I( const BYTE* pStr )
{
@@ -2741,7 +2741,7 @@ static long ImplA2I( const BYTE* pStr )
return n;
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::UpdateSettings( AllSettings& rSettings )
{
@@ -2973,14 +2973,14 @@ void WinSalFrame::UpdateSettings( AllSettings& rSettings )
WinSalGraphics::updateSettingsNative( rSettings );
}
-// -----------------------------------------------------------------------
+
const SystemEnvData* WinSalFrame::GetSystemData() const
{
return &maSysData;
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::Beep()
{
@@ -2988,7 +2988,7 @@ void WinSalFrame::Beep()
MessageBeep( 0 );
}
-// -----------------------------------------------------------------------
+
SalFrame::SalPointerState WinSalFrame::GetPointerState()
{
@@ -3015,7 +3015,7 @@ SalFrame::SalPointerState WinSalFrame::GetPointerState()
return aState;
}
-// -----------------------------------------------------------------------
+
SalFrame::SalIndicatorState WinSalFrame::GetIndicatorState()
{
@@ -3050,14 +3050,14 @@ void WinSalFrame::SimulateKeyPress( sal_uInt16 nKeyCode )
}
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::ResetClipRegion()
{
SetWindowRgn( mhWnd, 0, TRUE );
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::BeginSetClipRegion( sal_uLong nRects )
{
@@ -3074,7 +3074,7 @@ void WinSalFrame::BeginSetClipRegion( sal_uLong nRects )
mbFirstClipRect = TRUE;
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
{
@@ -3117,7 +3117,7 @@ void WinSalFrame::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
mpNextClipRect++;
}
-// -----------------------------------------------------------------------
+
void WinSalFrame::EndSetClipRegion()
{
@@ -3157,7 +3157,7 @@ void WinSalFrame::EndSetClipRegion()
}
}
-// -----------------------------------------------------------------------
+
static long ImplHandleMouseMsg( HWND hWnd, UINT nMsg,
WPARAM wParam, LPARAM lParam )
@@ -3324,7 +3324,7 @@ static long ImplHandleMouseMsg( HWND hWnd, UINT nMsg,
return nRet;
}
-// -----------------------------------------------------------------------
+
static long ImplHandleMouseActivateMsg( HWND hWnd )
{
@@ -3344,7 +3344,7 @@ static long ImplHandleMouseActivateMsg( HWND hWnd )
return pFrame->CallCallback( SALEVENT_MOUSEACTIVATE, &aMouseActivateEvt );
}
-// -----------------------------------------------------------------------
+
static long ImplHandleWheelMsg( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam )
{
@@ -3416,7 +3416,7 @@ static long ImplHandleWheelMsg( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lPar
return nRet;
}
-// -----------------------------------------------------------------------
+
static sal_uInt16 ImplSalGetKeyCode( WPARAM wParam )
{
@@ -3438,7 +3438,7 @@ static sal_uInt16 ImplSalGetKeyCode( WPARAM wParam )
return nKeyCode;
}
-// -----------------------------------------------------------------------
+
static void ImplUpdateInputLang( WinSalFrame* pFrame )
{
@@ -3465,7 +3465,7 @@ static sal_Unicode ImplGetCharCode( WinSalFrame* pFrame, WPARAM nCharCode )
return (sal_Unicode)nCharCode;
}
-// -----------------------------------------------------------------------
+
LanguageType WinSalFrame::GetInputLanguage()
{
@@ -3478,7 +3478,7 @@ LanguageType WinSalFrame::GetInputLanguage()
return (LanguageType) mnInputLang;
}
-// -----------------------------------------------------------------------
+
bool WinSalFrame::MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode )
{
@@ -3516,7 +3516,7 @@ bool WinSalFrame::MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangT
return bRet;
}
-// -----------------------------------------------------------------------
+
static long ImplHandleKeyMsg( HWND hWnd, UINT nMsg,
WPARAM wParam, LPARAM lParam, LRESULT& rResult )
@@ -3800,7 +3800,7 @@ static long ImplHandleKeyMsg( HWND hWnd, UINT nMsg,
}
}
-// -----------------------------------------------------------------------
+
long ImplHandleSalObjKeyMsg( HWND hWnd, UINT nMsg,
WPARAM wParam, LPARAM lParam )
@@ -3853,7 +3853,7 @@ long ImplHandleSalObjKeyMsg( HWND hWnd, UINT nMsg,
return 0;
}
-// -----------------------------------------------------------------------
+
long ImplHandleSalObjSysCharMsg( HWND hWnd, WPARAM wParam, LPARAM lParam )
{
@@ -3891,7 +3891,7 @@ long ImplHandleSalObjSysCharMsg( HWND hWnd, WPARAM wParam, LPARAM lParam )
return nRet;
}
-// -----------------------------------------------------------------------
+
static bool ImplHandlePaintMsg( HWND hWnd )
{
@@ -3960,7 +3960,7 @@ static bool ImplHandlePaintMsg( HWND hWnd )
return bMutex ? true : false;
}
-// -----------------------------------------------------------------------
+
static void ImplHandlePaintMsg2( HWND hWnd, RECT* pRect )
{
@@ -3980,7 +3980,7 @@ static void ImplHandlePaintMsg2( HWND hWnd, RECT* pRect )
ImplPostMessage( hWnd, SAL_MSG_POSTPAINT, (WPARAM)pRect, 0 );
}
-// -----------------------------------------------------------------------
+
static void SetMaximizedFrameGeometry( HWND hWnd, WinSalFrame* pFrame, RECT* pParentRect )
{
@@ -4066,7 +4066,7 @@ static void UpdateFrameGeometry( HWND hWnd, WinSalFrame* pFrame )
pFrame->updateScreenNumber();
}
-// -----------------------------------------------------------------------
+
static void ImplCallMoveHdl( HWND hWnd )
{
@@ -4080,7 +4080,7 @@ static void ImplCallMoveHdl( HWND hWnd )
}
}
-// -----------------------------------------------------------------------
+
static void ImplCallClosePopupsHdl( HWND hWnd )
{
@@ -4091,7 +4091,7 @@ static void ImplCallClosePopupsHdl( HWND hWnd )
}
}
-// -----------------------------------------------------------------------
+
static void ImplHandleMoveMsg( HWND hWnd )
{
@@ -4130,7 +4130,7 @@ static void ImplHandleMoveMsg( HWND hWnd )
ImplPostMessage( hWnd, SAL_MSG_POSTMOVE, 0, 0 );
}
-// -----------------------------------------------------------------------
+
static void ImplCallSizeHdl( HWND hWnd )
{
@@ -4153,7 +4153,7 @@ static void ImplCallSizeHdl( HWND hWnd )
ImplPostMessage( hWnd, SAL_MSG_POSTCALLSIZE, 0, 0 );
}
-// -----------------------------------------------------------------------
+
static void ImplHandleSizeMsg( HWND hWnd, WPARAM wParam, LPARAM lParam )
{
@@ -4174,7 +4174,7 @@ static void ImplHandleSizeMsg( HWND hWnd, WPARAM wParam, LPARAM lParam )
}
}
-// -----------------------------------------------------------------------
+
static void ImplHandleFocusMsg( HWND hWnd )
{
@@ -4212,7 +4212,7 @@ static void ImplHandleFocusMsg( HWND hWnd )
ImplPostMessage( hWnd, SAL_MSG_POSTFOCUS, 0, 0 );
}
-// -----------------------------------------------------------------------
+
static void ImplHandleCloseMsg( HWND hWnd )
{
@@ -4230,7 +4230,7 @@ static void ImplHandleCloseMsg( HWND hWnd )
ImplPostMessage( hWnd, WM_CLOSE, 0, 0 );
}
-// -----------------------------------------------------------------------
+
static long ImplHandleShutDownMsg( HWND hWnd )
{
@@ -4245,7 +4245,7 @@ static long ImplHandleShutDownMsg( HWND hWnd )
return nRet;
}
-// -----------------------------------------------------------------------
+
static void ImplHandleSettingsChangeMsg( HWND hWnd, UINT nMsg,
WPARAM wParam, LPARAM lParam )
@@ -4297,7 +4297,7 @@ static void ImplHandleSettingsChangeMsg( HWND hWnd, UINT nMsg,
ImplSalYieldMutexRelease();
}
-// -----------------------------------------------------------------------
+
static void ImplHandleUserEvent( HWND hWnd, LPARAM lParam )
{
@@ -4310,7 +4310,7 @@ static void ImplHandleUserEvent( HWND hWnd, LPARAM lParam )
ImplSalYieldMutexRelease();
}
-// -----------------------------------------------------------------------
+
static void ImplHandleForcePalette( HWND hWnd )
{
@@ -4344,7 +4344,7 @@ static void ImplHandleForcePalette( HWND hWnd )
}
}
-// -----------------------------------------------------------------------
+
static LRESULT ImplHandlePalette( sal_Bool bFrame, HWND hWnd, UINT nMsg,
WPARAM wParam, LPARAM lParam, int& rDef )
@@ -4494,7 +4494,7 @@ static LRESULT ImplHandlePalette( sal_Bool bFrame, HWND hWnd, UINT nMsg,
return nCols;
}
-// -----------------------------------------------------------------------
+
static int ImplHandleMinMax( HWND hWnd, LPARAM lParam )
{
@@ -4571,7 +4571,7 @@ static int ImplHandleMinMax( HWND hWnd, LPARAM lParam )
return bRet;
}
-// -----------------------------------------------------------------------
+
// retrieves the SalMenuItem pointer from a hMenu
// the pointer is stored in every item, so if no position
@@ -5092,7 +5092,7 @@ static int ImplHandleSysCommand( HWND hWnd, WPARAM wParam, LPARAM lParam )
return FALSE;
}
-// -----------------------------------------------------------------------
+
static void ImplHandleInputLangChange( HWND hWnd, WPARAM, LPARAM lParam )
{
@@ -5125,7 +5125,7 @@ static void ImplHandleInputLangChange( HWND hWnd, WPARAM, LPARAM lParam )
ImplSalYieldMutexRelease();
}
-// -----------------------------------------------------------------------
+
static void ImplUpdateIMECursorPos( WinSalFrame* pFrame, HIMC hIMC )
{
@@ -5156,7 +5156,7 @@ static void ImplUpdateIMECursorPos( WinSalFrame* pFrame, HIMC hIMC )
}
}
-// -----------------------------------------------------------------------
+
static sal_Bool ImplHandleIMEStartComposition( HWND hWnd )
{
@@ -5186,7 +5186,7 @@ static sal_Bool ImplHandleIMEStartComposition( HWND hWnd )
return bDef;
}
-// -----------------------------------------------------------------------
+
static sal_Bool ImplHandleIMECompositionInput( WinSalFrame* pFrame,
HIMC hIMC, LPARAM lParam )
@@ -5317,7 +5317,7 @@ static sal_Bool ImplHandleIMECompositionInput( WinSalFrame* pFrame,
return !bDef;
}
-// -----------------------------------------------------------------------
+
static sal_Bool ImplHandleIMEComposition( HWND hWnd, LPARAM lParam )
{
@@ -5364,7 +5364,7 @@ static sal_Bool ImplHandleIMEComposition( HWND hWnd, LPARAM lParam )
return bDef;
}
-// -----------------------------------------------------------------------
+
static sal_Bool ImplHandleIMEEndComposition( HWND hWnd )
{
@@ -5384,7 +5384,7 @@ static sal_Bool ImplHandleIMEEndComposition( HWND hWnd )
return bDef;
}
-// -----------------------------------------------------------------------
+
static boolean ImplHandleAppCommand( HWND hWnd, LPARAM lParam )
{
@@ -5485,7 +5485,7 @@ static void ImplHandleIMENotify( HWND hWnd, WPARAM wParam )
}
}
-// -----------------------------------------------------------------------
+
static bool
ImplHandleGetObject(HWND hWnd, LPARAM lParam, WPARAM wParam, LRESULT & nRet)
@@ -5525,7 +5525,7 @@ ImplHandleGetObject(HWND hWnd, LPARAM lParam, WPARAM wParam, LRESULT & nRet)
return false;
}
-// -----------------------------------------------------------------------
+
static LRESULT ImplHandleIMEReconvertString( HWND hWnd, LPARAM lParam )
{
@@ -5580,7 +5580,7 @@ static LRESULT ImplHandleIMEReconvertString( HWND hWnd, LPARAM lParam )
return nRet;
}
-// -----------------------------------------------------------------------
+
static LRESULT ImplHandleIMEConfirmReconvertString( HWND hWnd, LPARAM lParam )
{
@@ -5648,7 +5648,7 @@ static LRESULT ImplHandleIMEQueryCharPosition( HWND hWnd, LPARAM lParam ) {
return TRUE;
}
-// -----------------------------------------------------------------------
+
void SalTestMouseLeave()
{
@@ -5663,7 +5663,7 @@ void SalTestMouseLeave()
}
}
-// -----------------------------------------------------------------------
+
static int ImplSalWheelMousePos( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam ,
LRESULT& rResult )
@@ -5693,7 +5693,7 @@ static int ImplSalWheelMousePos( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lPa
return TRUE;
}
-// -----------------------------------------------------------------------
+
LRESULT CALLBACK SalFrameWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam, int& rDef )
{
@@ -6171,7 +6171,7 @@ LRESULT CALLBACK SalFrameWndProcW( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM l
return nRet;
}
-// -----------------------------------------------------------------------
+
sal_Bool ImplHandleGlobalMsg( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam, LRESULT& rlResult )
{
@@ -6194,7 +6194,7 @@ sal_Bool ImplHandleGlobalMsg( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam
return bResult;
}
-// -----------------------------------------------------------------------
+
sal_Bool ImplWriteLastError( DWORD lastError, const char *szApiCall )
{
@@ -6256,7 +6256,7 @@ sal_Bool ImplWriteLastError( DWORD lastError, const char *szApiCall )
return TRUE;
}
-// -----------------------------------------------------------------------
+
#ifdef _WIN32
bool HasAtHook()
diff --git a/vcl/win/source/window/salmenu.cxx b/vcl/win/source/window/salmenu.cxx
index b4d40a692016..1284636990dc 100644
--- a/vcl/win/source/window/salmenu.cxx
+++ b/vcl/win/source/window/salmenu.cxx
@@ -398,6 +398,6 @@ WinSalMenuItem::~WinSalMenuItem()
ImplRemoveItemById( mpSalMenu, mnId );
}
-// -------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/win/source/window/salobj.cxx b/vcl/win/source/window/salobj.cxx
index f6287e7c93b7..ac70f7a8183a 100644
--- a/vcl/win/source/window/salobj.cxx
+++ b/vcl/win/source/window/salobj.cxx
@@ -52,7 +52,7 @@ static sal_Bool ImplIsSysWindowOrChild( HWND hWndParent, HWND hWndChild )
return FALSE;
}
-// -----------------------------------------------------------------------
+
WinSalObject* ImplFindSalObject( HWND hWndChild )
{
@@ -69,7 +69,7 @@ WinSalObject* ImplFindSalObject( HWND hWndChild )
return NULL;
}
-// -----------------------------------------------------------------------
+
WinSalFrame* ImplFindSalObjectFrame( HWND hWnd )
{
@@ -92,7 +92,7 @@ WinSalFrame* ImplFindSalObjectFrame( HWND hWnd )
return pFrame;
}
-// -----------------------------------------------------------------------
+
LRESULT CALLBACK SalSysMsgProc( int nCode, WPARAM wParam, LPARAM lParam )
{
@@ -149,7 +149,7 @@ LRESULT CALLBACK SalSysMsgProc( int nCode, WPARAM wParam, LPARAM lParam )
return CallNextHookEx( pSalData->mhSalObjMsgHook, nCode, wParam, lParam );
}
-// -----------------------------------------------------------------------
+
sal_Bool ImplSalPreDispatchMsg( MSG* pMsg )
{
@@ -234,7 +234,7 @@ sal_Bool ImplSalPreDispatchMsg( MSG* pMsg )
return FALSE;
}
-// -----------------------------------------------------------------------
+
void ImplSalPostDispatchMsg( MSG* pMsg, LRESULT /* nDispatchResult */ )
{
@@ -388,7 +388,7 @@ LRESULT CALLBACK SalSysObjWndProcW( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM
return nRet;
}
-// -----------------------------------------------------------------------
+
LRESULT CALLBACK SalSysObjChildWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam, int& rDef )
{
@@ -584,7 +584,7 @@ WinSalObject::WinSalObject()
pSalData->mpFirstObject = this;
}
-// -----------------------------------------------------------------------
+
WinSalObject::~WinSalObject()
{
@@ -626,21 +626,21 @@ WinSalObject::~WinSalObject()
ImplSendMessage( hWndParent, SAL_MSG_FORCEPALETTE, 0, 0 );
}
-// -----------------------------------------------------------------------
+
void WinSalObject::ResetClipRegion()
{
SetWindowRgn( mhWnd, 0, TRUE );
}
-// -----------------------------------------------------------------------
+
sal_uInt16 WinSalObject::GetClipRegionType()
{
return SAL_OBJECT_CLIP_INCLUDERECTS;
}
-// -----------------------------------------------------------------------
+
void WinSalObject::BeginSetClipRegion( sal_uLong nRectCount )
{
@@ -662,7 +662,7 @@ void WinSalObject::BeginSetClipRegion( sal_uLong nRectCount )
mbFirstClipRect = TRUE;
}
-// -----------------------------------------------------------------------
+
void WinSalObject::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
{
@@ -701,7 +701,7 @@ void WinSalObject::UnionClipRegion( long nX, long nY, long nWidth, long nHeight
mpNextClipRect++;
}
-// -----------------------------------------------------------------------
+
void WinSalObject::EndSetClipRegion()
{
@@ -726,7 +726,7 @@ void WinSalObject::EndSetClipRegion()
SetWindowRgn( mhWnd, hRegion, TRUE );
}
-// -----------------------------------------------------------------------
+
void WinSalObject::SetPosSize( long nX, long nY, long nWidth, long nHeight )
{
@@ -742,7 +742,7 @@ void WinSalObject::SetPosSize( long nX, long nY, long nWidth, long nHeight )
SWP_NOZORDER | SWP_NOACTIVATE | nStyle );
}
-// -----------------------------------------------------------------------
+
void WinSalObject::Show( sal_Bool bVisible )
{
@@ -752,14 +752,14 @@ void WinSalObject::Show( sal_Bool bVisible )
ShowWindow( mhWnd, SW_HIDE );
}
-// -----------------------------------------------------------------------
+
void WinSalObject::Enable( sal_Bool bEnable )
{
EnableWindow( mhWnd, bEnable );
}
-// -----------------------------------------------------------------------
+
void WinSalObject::GrabFocus()
{