diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 22:51:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-26 04:56:16 -0600 |
commit | d9f0af83b7f0abe7119eefca62cbbca7eff818ef (patch) | |
tree | 19b6ed4d3b1dd538bb46205880505e59f8bb8002 /vcl/source | |
parent | 0fb3bdc5d3aa47a61affc67b20bdbb775808fb66 (diff) |
Remove visual noise from vcl
Conflicts:
vcl/source/app/settings.cxx
vcl/source/window/dockmgr.cxx
vcl/source/window/dockwin.cxx
vcl/source/window/floatwin.cxx
vcl/source/window/toolbox2.cxx
Change-Id: Ie67681549a76e77064b09d4b5bf80fe4c6010341
Reviewed-on: https://gerrit.libreoffice.org/8339
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
95 files changed, 755 insertions, 789 deletions
diff --git a/vcl/source/app/dbggui.cxx b/vcl/source/app/dbggui.cxx index 79df6f7bf75b..de610b39a09a 100644 --- a/vcl/source/app/dbggui.cxx +++ b/vcl/source/app/dbggui.cxx @@ -61,7 +61,7 @@ using namespace ::com::sun::star; -// ======================================================================= + static const sal_Char* pDbgHelpText[] = { @@ -275,11 +275,11 @@ static const sal_Char* pDbgHelpText[] = NULL }; -// ======================================================================= + namespace { - // ------------------------------------------------------------------- + typedef ::std::map< OUString, DbgChannelId > UserDefinedChannels; UserDefinedChannels& ImplDbgGetUserDefinedChannels() { @@ -287,7 +287,7 @@ namespace return s_aChannels; } - // ------------------------------------------------------------------- + void ImplAppendUserDefinedChannels( ListBox& rList ) { const UserDefinedChannels& rChannels = ImplDbgGetUserDefinedChannels(); @@ -301,7 +301,7 @@ namespace } } - // ------------------------------------------------------------------- + void ImplSelectChannel( ListBox& rList, sal_uLong nChannelToSelect, sal_uInt16 nPositionOffset ) { if ( nChannelToSelect < DBG_OUT_USER_CHANNEL_0 ) @@ -319,7 +319,7 @@ namespace } } } - // ------------------------------------------------------------------- + DbgChannelId ImplGetChannelId( const ListBox& rList, sal_uInt16 nPositionOffset ) { sal_uInt16 nSelectedChannelPos = rList.GetSelectEntryPos(); @@ -330,11 +330,11 @@ namespace } } -// ======================================================================= -// ------------- + + // - DbgWindow - -// ------------- + #define DBGWIN_MAXLINES 100 @@ -356,9 +356,9 @@ private: void GetAssertionEntryRange( sal_uInt16 nInbetweenEntry, sal_uInt16& nFirst, sal_uInt16& nLast ); }; -// ----------------- + // - DbgInfoDialog - -// ----------------- + class DbgInfoDialog : public ModalDialog { @@ -373,9 +373,9 @@ public: void SetInfoText( const OUString& rStr ); }; -// ------------- + // - DbgDialog - -// ------------- + class DbgDialog : public ModalDialog { @@ -425,12 +425,12 @@ public: void RequestHelp( const HelpEvent& rHEvt ); }; -// ======================================================================= + static sal_Char aDbgInfoBuf[12288]; static sal_Char aDbgOutBuf[DBG_BUF_MAXLEN]; -// ======================================================================= + DbgWindow::DbgWindow() : WorkWindow( NULL, WB_STDWORK ), @@ -453,7 +453,7 @@ DbgWindow::DbgWindow() : Update(); } -// ----------------------------------------------------------------------- + bool DbgWindow::Close() { @@ -472,14 +472,14 @@ bool DbgWindow::Close() return true; } -// ----------------------------------------------------------------------- + void DbgWindow::Resize() { maLstBox.SetSizePixel( GetOutputSizePixel() ); } -// ----------------------------------------------------------------------- + void DbgWindow::GetAssertionEntryRange( sal_uInt16 nInbetweenEntry, sal_uInt16& nFirst, sal_uInt16& nLast ) { @@ -500,7 +500,7 @@ void DbgWindow::GetAssertionEntryRange( sal_uInt16 nInbetweenEntry, sal_uInt16& } } -// ----------------------------------------------------------------------- + bool DbgWindow::PreNotify( NotifyEvent& rNEvt ) { @@ -551,7 +551,7 @@ bool DbgWindow::PreNotify( NotifyEvent& rNEvt ) return WorkWindow::PreNotify( rNEvt ); } -// ----------------------------------------------------------------------- + void DbgWindow::InsertLine( const OUString& rLine ) { @@ -580,7 +580,7 @@ void DbgWindow::InsertLine( const OUString& rLine ) maLstBox.Update(); } -// ======================================================================= + DbgDialog::DbgDialog() : ModalDialog( NULL, WB_STDMODAL | WB_SYSTEMWINDOW ), @@ -916,7 +916,7 @@ DbgDialog::DbgDialog() : } } -// ----------------------------------------------------------------------- + IMPL_LINK( DbgDialog, ClickHdl, Button*, pButton ) { @@ -1026,7 +1026,7 @@ IMPL_LINK( DbgDialog, ClickHdl, Button*, pButton ) return 0; } -// ----------------------------------------------------------------------- + void DbgDialog::RequestHelp( const HelpEvent& rHEvt ) { @@ -1046,7 +1046,7 @@ void DbgDialog::RequestHelp( const HelpEvent& rHEvt ) } } -// ======================================================================= + DbgInfoDialog::DbgInfoDialog( Window* pParent, bool bHelpText ) : ModalDialog( pParent, WB_STDMODAL ), @@ -1071,7 +1071,7 @@ DbgInfoDialog::DbgInfoDialog( Window* pParent, bool bHelpText ) : SetOutputSizePixel( Size( 640, 420 ) ); } -// ----------------------------------------------------------------------- + void DbgInfoDialog::SetInfoText( const OUString& rStr ) { @@ -1121,7 +1121,7 @@ void DbgInfoDialog::SetInfoText( const OUString& rStr ) maListBox.SetUpdateMode( true ); } -// ======================================================================= + void DbgDialogTest( Window* pWindow ) { @@ -1481,7 +1481,7 @@ void DbgDialogTest( Window* pWindow ) delete [] pRectAry; } -// ======================================================================= + #ifndef WNT #define USE_VCL_MSGBOX #define COPY_BUTTON_ID 25 @@ -1612,7 +1612,7 @@ void DbgPrintMsgBox( const char* pLine ) DbgCoreDump(); } -// ----------------------------------------------------------------------- + class SolarWindowPrinter : public ::vcl::SolarThreadExecutor { @@ -1642,7 +1642,7 @@ long SolarWindowPrinter::doIt() return 0L; } -// ----------------------------------------------------------------------- + void DbgPrintWindow( const char* pLine ) { @@ -1663,7 +1663,7 @@ void DbgPrintWindow( const char* pLine ) bIn = false; } -// ----------------------------------------------------------------------- + void DbgAbort( char const * i_message ) { @@ -1671,14 +1671,14 @@ void DbgAbort( char const * i_message ) Application::Abort( message ); } -// ======================================================================= + void ImplDbgTestSolarMutex() { assert(ImplGetSVData()->mpDefInst->CheckYieldMutex()); } -// ======================================================================= + void DbgGUIInit() { @@ -1688,7 +1688,7 @@ void DbgGUIInit() DbgSetAbort( DbgAbort ); } -// ----------------------------------------------------------------------- + void DbgGUIDeInit() { @@ -1701,7 +1701,7 @@ void DbgGUIDeInit() delete pDbgWindow; } -// ----------------------------------------------------------------------- + void DbgGUIStart() { diff --git a/vcl/source/app/dndhelp.cxx b/vcl/source/app/dndhelp.cxx index 393415a8fdd8..54b31c6bf33f 100644 --- a/vcl/source/app/dndhelp.cxx +++ b/vcl/source/app/dndhelp.cxx @@ -89,7 +89,7 @@ void vcl::unohelper::DragAndDropClient::dropActionChanged( const ::com::sun::sta { } -// ======================================================================= + vcl::unohelper::DragAndDropWrapper::DragAndDropWrapper( DragAndDropClient* pClient ) { diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx index c4a7ea764f0b..c5ea894576b1 100644 --- a/vcl/source/app/help.cxx +++ b/vcl/source/app/help.cxx @@ -33,7 +33,7 @@ #include "helpwin.hxx" #include "svdata.hxx" -// ======================================================================= + #define HELPWINSTYLE_QUICK 0 #define HELPWINSTYLE_BALLOON 1 @@ -47,7 +47,7 @@ #define HELPTEXTMAXLEN 150 -// ======================================================================= + Help::Help() { @@ -290,7 +290,7 @@ void Help::HideTip( sal_uLong nId ) ImplGetSVData()->maHelpData.mnLastHelpHideTime = Time::GetSystemTicks(); } -// ======================================================================= + HelpTextWindow::HelpTextWindow( Window* pParent, const OUString& rText, sal_uInt16 nHelpWinStyle, sal_uInt16 nStyle ) : FloatingWindow( pParent, WB_SYSTEMWINDOW|WB_TOOLTIPWIN ), // #105827# if we change the parent, mirroring will not work correctly when positioning this window @@ -539,7 +539,7 @@ OUString HelpTextWindow::GetText() const } -// ======================================================================= + void ImplShowHelpWindow( Window* pParent, sal_uInt16 nHelpWinStyle, sal_uInt16 nStyle, const OUString& rHelpText, const OUString& rStatusText, diff --git a/vcl/source/app/idlemgr.cxx b/vcl/source/app/idlemgr.cxx index 4f7ba2306ce6..d4930dea6331 100644 --- a/vcl/source/app/idlemgr.cxx +++ b/vcl/source/app/idlemgr.cxx @@ -21,7 +21,7 @@ #include <idlemgr.hxx> -// ======================================================================= + struct ImplIdleData { @@ -32,7 +32,7 @@ struct ImplIdleData #define IMPL_IDLETIMEOUT 350 -// ======================================================================= + ImplIdleMgr::ImplIdleMgr() { @@ -42,7 +42,7 @@ ImplIdleMgr::ImplIdleMgr() maTimer.SetTimeoutHdl( LINK( this, ImplIdleMgr, TimeoutHdl ) ); } -// ----------------------------------------------------------------------- + ImplIdleMgr::~ImplIdleMgr() { @@ -54,7 +54,7 @@ ImplIdleMgr::~ImplIdleMgr() delete mpIdleList; } -// ----------------------------------------------------------------------- + bool ImplIdleMgr::InsertIdleHdl( const Link& rLink, sal_uInt16 nPriority ) { @@ -90,7 +90,7 @@ bool ImplIdleMgr::InsertIdleHdl( const Link& rLink, sal_uInt16 nPriority ) return true; } -// ----------------------------------------------------------------------- + void ImplIdleMgr::RemoveIdleHdl( const Link& rLink ) { @@ -107,7 +107,7 @@ void ImplIdleMgr::RemoveIdleHdl( const Link& rLink ) maTimer.Stop(); } -// ----------------------------------------------------------------------- + IMPL_LINK_NOARG(ImplIdleMgr, TimeoutHdl) { diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index 90abade6db5d..0356c88c9154 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -259,8 +259,6 @@ struct ImplAllSettingsData SvtSysLocale maSysLocale; }; -// ======================================================================= - ImplMouseData::ImplMouseData() { mnOptions = 0; @@ -286,7 +284,7 @@ ImplMouseData::ImplMouseData() mnWheelBehavior = MOUSE_WHEEL_ALWAYS; } -// ----------------------------------------------------------------------- + ImplMouseData::ImplMouseData( const ImplMouseData& rData ) { @@ -326,6 +324,7 @@ MouseSettings::GetOptions() const return mpData->mnOptions; } + void MouseSettings::SetDoubleClickTime( sal_uLong nDoubleClkTime ) { @@ -575,7 +574,6 @@ MouseSettings::GetMiddleButtonAction() const return mpData->mnMiddleButtonAction; } - void MouseSettings::SetWheelBehavior( sal_uInt16 nBehavior ) { @@ -589,28 +587,24 @@ MouseSettings::GetWheelBehavior() const return mpData->mnWheelBehavior; } - bool MouseSettings::operator !=( const MouseSettings& rSet ) const { return !(*this == rSet); } - -// ----------------------------------------------------------------------- - MouseSettings::MouseSettings() : mpData(boost::make_shared<ImplMouseData>()) { } -// ----------------------------------------------------------------------- + MouseSettings::~MouseSettings() { } -// ----------------------------------------------------------------------- + void MouseSettings::CopyData() { @@ -620,7 +614,7 @@ void MouseSettings::CopyData() } } -// ----------------------------------------------------------------------- + bool MouseSettings::operator ==( const MouseSettings& rSet ) const { @@ -653,7 +647,7 @@ bool MouseSettings::operator ==( const MouseSettings& rSet ) const return false; } -// ======================================================================= + ImplStyleData::ImplStyleData() : mIconThemeScanner(vcl::IconThemeScanner::Create(vcl::IconThemeScanner::GetStandardIconThemePath())), @@ -697,7 +691,7 @@ ImplStyleData::ImplStyleData() : SetStandardStyles(); } -// ----------------------------------------------------------------------- + ImplStyleData::ImplStyleData( const ImplStyleData& rData ) : maActiveBorderColor( rData.maActiveBorderColor ), @@ -819,8 +813,6 @@ ImplStyleData::ImplStyleData( const ImplStyleData& rData ) : mbPreviewUsesCheckeredBackground = rData.mbPreviewUsesCheckeredBackground; } -// ----------------------------------------------------------------------- - void ImplStyleData::SetStandardStyles() { Font aStdFont( FAMILY_SWISS, Size( 0, 8 ) ); @@ -2351,7 +2343,7 @@ const Size& StyleSettings::GetListBoxPreviewDefaultPixelSize() const return mpData->maListBoxPreviewDefaultPixelSize; } -// ----------------------------------------------------------------------- + void StyleSettings::Set3DColors( const Color& rColor ) { @@ -2412,7 +2404,7 @@ bool StyleSettings::GetUseImagesInMenus() const } } -// ----------------------------------------------------------------------- + static BitmapEx readBitmapEx( const OUString& rPath ) { @@ -2504,7 +2496,7 @@ const BitmapEx StyleSettings::GetPersonaHeader() const return mpData->maPersonaHeaderBitmap; } -// ----------------------------------------------------------------------- + void StyleSettings::SetStandardStyles() { @@ -2512,7 +2504,7 @@ void StyleSettings::SetStandardStyles() mpData->SetStandardStyles(); } -// ----------------------------------------------------------------------- + Color StyleSettings::GetFaceGradientColor() const { @@ -2526,7 +2518,7 @@ Color StyleSettings::GetFaceGradientColor() const return Color( Color::HSBtoRGB( h, s, b ) ); } -// ----------------------------------------------------------------------- + Color StyleSettings::GetSeparatorColor() const { @@ -2538,8 +2530,6 @@ Color StyleSettings::GetSeparatorColor() const return Color( Color::HSBtoRGB( h, s, b ) ); } -// ----------------------------------------------------------------------- - void StyleSettings::CopyData() { // copy if other references exist @@ -2548,7 +2538,7 @@ void StyleSettings::CopyData() } } -// ----------------------------------------------------------------------- + bool StyleSettings::operator ==( const StyleSettings& rSet ) const { @@ -2671,7 +2661,7 @@ bool StyleSettings::operator ==( const StyleSettings& rSet ) const return false; } -// ======================================================================= + ImplMiscData::ImplMiscData() { @@ -2681,7 +2671,7 @@ ImplMiscData::ImplMiscData() mbEnableLocalizedDecimalSep = (pEnv != NULL) ? true : false; } -// ----------------------------------------------------------------------- + ImplMiscData::ImplMiscData( const ImplMiscData& rData ) { @@ -2690,21 +2680,17 @@ ImplMiscData::ImplMiscData( const ImplMiscData& rData ) mbEnableLocalizedDecimalSep = rData.mbEnableLocalizedDecimalSep; } -// ----------------------------------------------------------------------- + MiscSettings::MiscSettings() : mpData(boost::make_shared<ImplMiscData>()) { } -// ----------------------------------------------------------------------- - MiscSettings::~MiscSettings() { } -// ----------------------------------------------------------------------- - void MiscSettings::CopyData() { // copy if other references exist @@ -2713,7 +2699,7 @@ void MiscSettings::CopyData() } } -// ----------------------------------------------------------------------- + bool MiscSettings::operator ==( const MiscSettings& rSet ) const { @@ -2734,8 +2720,6 @@ MiscSettings::operator !=( const MiscSettings& rSet ) const return !(*this == rSet); } -// ----------------------------------------------------------------------- - bool MiscSettings::GetDisablePrinting() const { if( mpData->mnDisablePrinting == TRISTATE_INDET ) @@ -2749,7 +2733,7 @@ bool MiscSettings::GetDisablePrinting() const return mpData->mnDisablePrinting != TRISTATE_FALSE; } -// ----------------------------------------------------------------------- + bool MiscSettings::GetEnableATToolSupport() const { @@ -2886,7 +2870,7 @@ bool MiscSettings::GetEnableLocalizedDecimalSep() const return mpData->mbEnableLocalizedDecimalSep; } -// ======================================================================= + ImplHelpData::ImplHelpData() { @@ -2896,7 +2880,7 @@ ImplHelpData::ImplHelpData() mnBalloonDelay = 1500; } -// ----------------------------------------------------------------------- + ImplHelpData::ImplHelpData( const ImplHelpData& rData ) { @@ -2906,21 +2890,17 @@ ImplHelpData::ImplHelpData( const ImplHelpData& rData ) mnBalloonDelay = rData.mnBalloonDelay; } -// ----------------------------------------------------------------------- + HelpSettings::HelpSettings() : mpData(boost::make_shared<ImplHelpData>()) { } -// ----------------------------------------------------------------------- - HelpSettings::~HelpSettings() { } -// ----------------------------------------------------------------------- - void HelpSettings::CopyData() { // copy if other references exist @@ -2929,7 +2909,7 @@ void HelpSettings::CopyData() } } -// ----------------------------------------------------------------------- + bool HelpSettings::operator ==( const HelpSettings& rSet ) const { @@ -3003,9 +2983,6 @@ HelpSettings::operator !=( const HelpSettings& rSet ) const return !(*this == rSet); } - -// ======================================================================= - ImplAllSettingsData::ImplAllSettingsData() : maLocale( LANGUAGE_SYSTEM ), @@ -3020,7 +2997,7 @@ ImplAllSettingsData::ImplAllSettingsData() maMiscSettings.SetEnableLocalizedDecimalSep( maSysLocale.GetOptions().IsDecimalSeparatorAsLocale() ); } -// ----------------------------------------------------------------------- + ImplAllSettingsData::ImplAllSettingsData( const ImplAllSettingsData& rData ) : maMouseSettings( rData.maMouseSettings ), @@ -3041,7 +3018,7 @@ ImplAllSettingsData::ImplAllSettingsData( const ImplAllSettingsData& rData ) : mpUII18nHelper = NULL; } -// ----------------------------------------------------------------------- + ImplAllSettingsData::~ImplAllSettingsData() { @@ -3053,28 +3030,26 @@ ImplAllSettingsData::~ImplAllSettingsData() delete mpUII18nHelper; } -// ----------------------------------------------------------------------- + AllSettings::AllSettings() : mpData(boost::make_shared<ImplAllSettingsData>()) { } -// ----------------------------------------------------------------------- + AllSettings::AllSettings( const AllSettings& rSet ) { mpData = rSet.mpData; } -// ----------------------------------------------------------------------- + AllSettings::~AllSettings() { } -// ----------------------------------------------------------------------- - void AllSettings::CopyData() { // copy if other references exist @@ -3084,7 +3059,7 @@ void AllSettings::CopyData() } -// ----------------------------------------------------------------------- + sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet ) { @@ -3148,7 +3123,7 @@ sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet ) return nChangeFlags; } -// ----------------------------------------------------------------------- + sal_uLong AllSettings::GetChangeFlags( const AllSettings& rSet ) const { @@ -3173,7 +3148,7 @@ sal_uLong AllSettings::GetChangeFlags( const AllSettings& rSet ) const return nChangeFlags; } -// ----------------------------------------------------------------------- + bool AllSettings::operator ==( const AllSettings& rSet ) const { @@ -3195,7 +3170,7 @@ bool AllSettings::operator ==( const AllSettings& rSet ) const return false; } -// ----------------------------------------------------------------------- + void AllSettings::SetLanguageTag( const LanguageTag& rLanguageTag ) { @@ -3218,14 +3193,14 @@ void AllSettings::SetLanguageTag( const LanguageTag& rLanguageTag ) } } -// ----------------------------------------------------------------------- + void AllSettings::SetUILanguageTag( const LanguageTag& ) { // there is only one UILocale per process } -// ----------------------------------------------------------------------- + namespace { @@ -3286,7 +3261,7 @@ bool AllSettings::GetMathLayoutRTL() const return GetConfigLayoutRTL(true); } -// ----------------------------------------------------------------------- + const LanguageTag& AllSettings::GetLanguageTag() const { @@ -3297,7 +3272,7 @@ const LanguageTag& AllSettings::GetLanguageTag() const return mpData->maLocale; } -// ----------------------------------------------------------------------- + const LanguageTag& AllSettings::GetUILanguageTag() const { @@ -3308,7 +3283,7 @@ const LanguageTag& AllSettings::GetUILanguageTag() const return mpData->maUILocale; } -// ----------------------------------------------------------------------- + const LocaleDataWrapper& AllSettings::GetLocaleDataWrapper() const { @@ -3318,7 +3293,7 @@ const LocaleDataWrapper& AllSettings::GetLocaleDataWrapper() const return *mpData->mpLocaleDataWrapper; } -// ----------------------------------------------------------------------- + const LocaleDataWrapper& AllSettings::GetUILocaleDataWrapper() const { @@ -3328,7 +3303,7 @@ const LocaleDataWrapper& AllSettings::GetUILocaleDataWrapper() const return *mpData->mpUILocaleDataWrapper; } -// ----------------------------------------------------------------------- + const vcl::I18nHelper& AllSettings::GetLocaleI18nHelper() const { @@ -3339,7 +3314,7 @@ const vcl::I18nHelper& AllSettings::GetLocaleI18nHelper() const return *mpData->mpI18nHelper; } -// ----------------------------------------------------------------------- + const vcl::I18nHelper& AllSettings::GetUILocaleI18nHelper() const { diff --git a/vcl/source/app/stdtext.cxx b/vcl/source/app/stdtext.cxx index fe6e1349e24e..2561e88d5e31 100644 --- a/vcl/source/app/stdtext.cxx +++ b/vcl/source/app/stdtext.cxx @@ -25,7 +25,7 @@ #include <svdata.hxx> -// ======================================================================= + OUString GetStandardText( sal_uInt16 nStdText ) { @@ -38,7 +38,7 @@ OUString GetStandardText( sal_uInt16 nStdText ) return OUString(); } -// ======================================================================= + void ShowServiceNotAvailableError(Window* pParent, const OUString& rServiceName, bool bError) diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx index dfbb001cb769..0a0df59cb8aa 100644 --- a/vcl/source/app/svdata.cxx +++ b/vcl/source/app/svdata.cxx @@ -55,7 +55,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; using namespace com::sun::star::awt; -// ======================================================================= + namespace { @@ -74,7 +74,7 @@ SalSystem* ImplGetSalSystem() return pSVData->mpSalSystem; } -// ======================================================================= + void ImplInitSVData() { diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx index 1191ef41186a..511a95ef1d70 100644 --- a/vcl/source/app/svmain.cxx +++ b/vcl/source/app/svmain.cxx @@ -81,7 +81,7 @@ using namespace ::com::sun::star; -// ======================================================================= + oslSignalAction SAL_CALL VCLExceptionSignal_impl( void* /*pData*/, oslSignalInfo* pInfo) { @@ -139,7 +139,7 @@ oslSignalAction SAL_CALL VCLExceptionSignal_impl( void* /*pData*/, oslSignalInfo } -// ======================================================================= + int ImplSVMain() { // The 'real' SVMain() diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 7e5f28cef894..660256fa8d22 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -42,7 +42,7 @@ #include <window.h> #include <controldata.hxx> -// ======================================================================= + #define PUSHBUTTON_VIEW_STYLE (WB_3DLOOK | \ WB_LEFT | WB_CENTER | WB_RIGHT | \ @@ -60,7 +60,7 @@ WB_TOP | WB_VCENTER | WB_BOTTOM | \ WB_WORDBREAK | WB_NOLABEL) -// ======================================================================= + class ImplCommonButtonData { @@ -90,7 +90,7 @@ ImplCommonButtonData::~ImplCommonButtonData() { } -// ======================================================================= + Button::Button( WindowType nType ) : Control( nType ) @@ -619,7 +619,7 @@ bool Button::set_property(const OString &rKey, const OString &rValue) return true; } -// ======================================================================= + void PushButton::ImplInitPushButtonData() { @@ -1741,7 +1741,7 @@ bool PushButton::set_property(const OString &rKey, const OString &rValue) } -// ======================================================================= + void OKButton::ImplInit( Window* pParent, WinBits nStyle ) { @@ -1806,7 +1806,7 @@ void OKButton::Click() } } -// ======================================================================= + void CancelButton::ImplInit( Window* pParent, WinBits nStyle ) { @@ -1877,7 +1877,7 @@ CloseButton::CloseButton( Window* pParent, WinBits nStyle ) SetText( Button::GetStandardText( BUTTON_CLOSE ) ); } -// ======================================================================= + void HelpButton::ImplInit( Window* pParent, WinBits nStyle ) { @@ -1925,7 +1925,7 @@ void HelpButton::Click() PushButton::Click(); } -// ======================================================================= + void RadioButton::ImplInitRadioButtonData() { @@ -3125,7 +3125,7 @@ Size RadioButton::GetOptimalSize() const return CalcMinimumSize(); } -// ======================================================================= + void CheckBox::ImplInitCheckBoxData() { @@ -4032,7 +4032,7 @@ Size CheckBox::GetOptimalSize() const return CalcMinimumSize(); } -// ======================================================================= + ImageButton::ImageButton( Window* pParent, WinBits nStyle ) : PushButton( pParent, nStyle ) @@ -4082,7 +4082,7 @@ void ImageButton::ImplInitStyle() SetStyle( nStyle ); } -// ======================================================================= + ImageRadioButton::ImageRadioButton( Window* pParent, WinBits nStyle ) : RadioButton( pParent, nStyle ) @@ -4095,7 +4095,7 @@ ImageRadioButton::~ImageRadioButton() { } -// ======================================================================= + TriStateBox::TriStateBox( Window* pParent, WinBits nStyle ) : CheckBox( pParent, nStyle ) @@ -4109,7 +4109,7 @@ TriStateBox::~TriStateBox() { } -// ======================================================================= + DisclosureButton::DisclosureButton( Window* pParent, WinBits nStyle ) : CheckBox( pParent, nStyle ) diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index 22ae03aca7e2..ce9400fb7c01 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -33,7 +33,7 @@ #include <ilstbox.hxx> #include <controldata.hxx> -// ======================================================================= + static void lcl_GetSelectedEntries( ::std::set< sal_uInt16 >& rSelectedPos, const OUString& rText, sal_Unicode cTokenSep, const ImplEntryList* pEntryList ) { @@ -47,7 +47,7 @@ static void lcl_GetSelectedEntries( ::std::set< sal_uInt16 >& rSelectedPos, cons } } -// ======================================================================= + ComboBox::ComboBox( WindowType nType ) : Edit( nType ) diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx index 9a458295c28a..db925454b191 100644 --- a/vcl/source/control/ctrl.cxx +++ b/vcl/source/control/ctrl.cxx @@ -35,7 +35,7 @@ using namespace vcl; -// ======================================================================= + void Control::ImplInitControlData() { diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index e24a474a1324..69af9da71d8e 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -79,11 +79,11 @@ using namespace ::rtl; // - Redo // - Bei Tracking-Cancel DefaultSelection wieder herstellen -// ======================================================================= + static FncGetSpecialChars pImplFncGetSpecialChars = NULL; -// ======================================================================= + #define EDIT_ALIGN_LEFT 1 #define EDIT_ALIGN_CENTER 2 @@ -96,7 +96,7 @@ static FncGetSpecialChars pImplFncGetSpecialChars = NULL; #define EDIT_DELMODE_RESTOFWORD 12 #define EDIT_DELMODE_RESTOFCONTENT 13 -// ======================================================================= + struct DDInfo { @@ -119,7 +119,7 @@ struct DDInfo } }; -// ======================================================================= + struct Impl_IMEInfos { @@ -175,7 +175,7 @@ void Impl_IMEInfos::DestroyAttribs() nLen = 0; } -// ======================================================================= + Edit::Edit( WindowType nType ) : Control( nType ) @@ -894,7 +894,7 @@ void Edit::ImplInsertText( const OUString& rStr, const Selection* pNewSel, bool DBG_ASSERT( rStr.getLength() == 1, "unexpected string length. User input is expected to providse 1 char only!" ); // determine if input-sequence-checking should be applied or not - // + uno::Reference < i18n::XBreakIterator > xBI( ImplGetBreakIterator(), UNO_QUERY ); bool bIsInputSequenceChecking = rStr.getLength() == 1 && officecfg::Office::Common::I18N::CTL::CTLFont::get() && diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx index ebe5367ef907..db1806eaeeb4 100644 --- a/vcl/source/control/fixed.cxx +++ b/vcl/source/control/fixed.cxx @@ -32,7 +32,7 @@ #include "impimagetree.hxx" #include "window.h" -// ======================================================================= + #define FIXEDLINE_TEXT_BORDER 4 @@ -51,7 +51,7 @@ WB_TOP | WB_VCENTER | WB_BOTTOM | \ WB_SCALE) -// ======================================================================= + static Point ImplCalcPos( WinBits nStyle, const Point& rPos, const Size& rObjSize, const Size& rWinSize ) @@ -85,7 +85,7 @@ static Point ImplCalcPos( WinBits nStyle, const Point& rPos, return aPos; } -// ======================================================================= + void FixedText::ImplInit( Window* pParent, WinBits nStyle ) { @@ -523,7 +523,7 @@ void SelectableFixedText::LoseFocus() Invalidate(); } -// ======================================================================= + void FixedLine::ImplInit( Window* pParent, WinBits nStyle ) { @@ -775,7 +775,7 @@ Size FixedLine::GetOptimalSize() const return CalcWindowSize( FixedText::CalcMinimumTextSize ( this, 0x7fffffff ) ); } -// ======================================================================= + void FixedBitmap::ImplInit( Window* pParent, WinBits nStyle ) { @@ -969,7 +969,7 @@ void FixedBitmap::SetBitmap( const Bitmap& rBitmap ) queue_resize(); } -// ======================================================================= + void FixedImage::ImplInit( Window* pParent, WinBits nStyle ) { diff --git a/vcl/source/control/group.cxx b/vcl/source/control/group.cxx index 47fd9e25c8db..2dcbe33cd2e2 100644 --- a/vcl/source/control/group.cxx +++ b/vcl/source/control/group.cxx @@ -26,14 +26,14 @@ #include <controldata.hxx> -// ======================================================================= + #define GROUP_BORDER 12 #define GROUP_TEXT_BORDER 2 #define GROUP_VIEW_STYLE (WB_3DLOOK | WB_NOLABEL) -// ======================================================================= + void GroupBox::ImplInit( Window* pParent, WinBits nStyle ) { diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index 252fb7f67552..107cd75b1856 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -45,7 +45,7 @@ using namespace ::com::sun::star; -// ======================================================================= + void ImplInitFieldSettings( Window* pWin, bool bFont, bool bForeground, bool bBackground ) { @@ -90,7 +90,7 @@ void ImplInitDropDownButton( PushButton* pButton ) pButton->SetBackground(); } -// ======================================================================= + ImplEntryList::ImplEntryList( Window* pWindow ) { @@ -526,7 +526,7 @@ sal_uInt16 ImplEntryList::FindFirstSelectable( sal_uInt16 nPos, bool bForward /* return LISTBOX_ENTRY_NOTFOUND; } -// ======================================================================= + ImplListBoxWindow::ImplListBoxWindow( Window* pParent, WinBits nWinStyle ) : Control( pParent, 0 ), @@ -2247,7 +2247,7 @@ sal_uInt16 ImplListBoxWindow::ImplGetTextStyle() const return nTextStyle; } -// ======================================================================= + ImplListBox::ImplListBox( Window* pParent, WinBits nWinStyle ) : Control( pParent, nWinStyle ), @@ -2741,7 +2741,7 @@ void ImplListBox::SetEdgeBlending(bool bNew) } } -// ======================================================================= + ImplWin::ImplWin( Window* pParent, WinBits nWinStyle ) : Control ( pParent, nWinStyle ) @@ -3047,7 +3047,7 @@ void ImplWin::LoseFocus() Control::LoseFocus(); } -// ======================================================================= + ImplBtn::ImplBtn( Window* pParent, WinBits nWinStyle ) : PushButton( pParent, nWinStyle ), @@ -3075,7 +3075,7 @@ void ImplBtn::MouseButtonDown( const MouseEvent& ) } } -// ======================================================================= + ImplListBoxFloatingWindow::ImplListBoxFloatingWindow( Window* pParent ) : FloatingWindow( pParent, WB_BORDER | WB_SYSTEMWINDOW | WB_NOSHADOW ) // no drop shadow for list boxes diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx index 0ee8067a2a20..c7fe6133825a 100644 --- a/vcl/source/control/lstbox.cxx +++ b/vcl/source/control/lstbox.cxx @@ -1572,7 +1572,7 @@ sal_uInt16 ListBox::GetMRUCount() const return mpImplLB->GetEntryList()->GetMRUCount(); } -// ======================================================================= + MultiListBox::MultiListBox( Window* pParent, WinBits nStyle ) : ListBox( WINDOW_MULTILISTBOX ) { diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx index 35d01ed13c10..5c2a7ab96165 100644 --- a/vcl/source/control/slider.cxx +++ b/vcl/source/control/slider.cxx @@ -26,7 +26,7 @@ #include "thumbpos.hxx" -// ======================================================================= + #define SLIDER_DRAW_THUMB ((sal_uInt16)0x0001) #define SLIDER_DRAW_CHANNEL1 ((sal_uInt16)0x0002) @@ -48,7 +48,7 @@ #define SLIDER_VIEW_STYLE (WB_3DLOOK | WB_HORZ | WB_VERT) -// ======================================================================= + void Slider::ImplInit( Window* pParent, WinBits nStyle ) { diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx index fccfe301b48e..905348116f14 100644 --- a/vcl/source/control/spinbtn.cxx +++ b/vcl/source/control/spinbtn.cxx @@ -23,7 +23,7 @@ #include <vcl/spin.hxx> #include <vcl/settings.hxx> -// ======================================================================= + void SpinButton::ImplInit( Window* pParent, WinBits nStyle ) { diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 8251a50d6951..67dacbd6fa74 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -29,7 +29,7 @@ #include "controldata.hxx" #include "svdata.hxx" -// ======================================================================= + namespace { @@ -288,7 +288,7 @@ void ImplDrawSpinButton( OutputDevice* pOutDev, aDecoView.DrawSymbol( aLowRect, eType2, rStyleSettings.GetButtonTextColor(), nSymStyle ); } -// ======================================================================= + void SpinField::ImplInitSpinFieldData() { diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 1f388c42d553..e6284892fa62 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -40,7 +40,7 @@ #include <boost/unordered_map.hpp> #include <vector> -// ======================================================================= + struct ImplTabItem { @@ -89,7 +89,7 @@ struct ImplTabCtrlData // for the Tab positions #define TAB_PAGERECT 0xFFFF -// ======================================================================= + void TabControl::ImplInit( Window* pParent, WinBits nStyle ) { diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 985347cb0b42..46d0ad7ccd27 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -2954,9 +2954,9 @@ void TextEngine::ImpInitWritingDirections( sal_uLong nPara ) const UBiDiLevel nBidiLevel = IsRightToLeft() ? 1 /*RTL*/ : 0 /*LTR*/; OUString aText( pParaPortion->GetNode()->GetText() ); - // + // Bidi functions from icu 2.0 - // + UErrorCode nError = U_ZERO_ERROR; UBiDi* pBidi = ubidi_openSized( aText.getLength(), 0, &nError ); nError = U_ZERO_ERROR; diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx index e3448fa02217..97e6d99a4d5f 100644 --- a/vcl/source/edit/vclmedit.cxx +++ b/vcl/source/edit/vclmedit.cxx @@ -1521,7 +1521,7 @@ bool VclMultiLineEdit::PreNotify( NotifyEvent& rNEvt ) return nDone || Edit::PreNotify( rNEvt ); } -// + // Internals for derived classes, e.g. TextComponent ExtTextEngine* VclMultiLineEdit::GetTextEngine() const diff --git a/vcl/source/filter/FilterConfigItem.cxx b/vcl/source/filter/FilterConfigItem.cxx index 253566b1be8e..88afc3fa0c20 100644 --- a/vcl/source/filter/FilterConfigItem.cxx +++ b/vcl/source/filter/FilterConfigItem.cxx @@ -34,8 +34,8 @@ using namespace ::com::sun::star::beans ; // PropertyValue using namespace ::com::sun::star::uno ; // Reference using namespace ::com::sun::star::util ; // XChangesBatch using namespace ::com::sun::star::awt ; // Size -using namespace ::com::sun::star::container ; // -using namespace ::com::sun::star::configuration; // +using namespace ::com::sun::star::container ; +using namespace ::com::sun::star::configuration; using namespace ::com::sun::star::task ; // XStatusIndicator static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv, const OUString& rTree ) @@ -207,7 +207,7 @@ bool FilterConfigItem::ImplGetPropertyValue( Any& rAny, const Reference< XProper } catch( ::com::sun::star::uno::Exception& ) { - // + } } if ( bRetValue ) diff --git a/vcl/source/filter/sgfbram.cxx b/vcl/source/filter/sgfbram.cxx index fb028d7796fd..111482add734 100644 --- a/vcl/source/filter/sgfbram.cxx +++ b/vcl/source/filter/sgfbram.cxx @@ -172,9 +172,9 @@ SvStream& WriteRGBQuad(SvStream& rOStream, const RGBQuad& rQuad) } -//////////////////////////////////////////////////////////////////////////////////////////////////// -// PcxExpand /////////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + +// PcxExpand + class PcxExpand { @@ -203,9 +203,9 @@ sal_uInt8 PcxExpand::GetByte(SvStream& rInp) return Data; } -//////////////////////////////////////////////////////////////////////////////////////////////////// -// SgfBMapFilter /////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + +// SgfBMapFilter + bool SgfFilterBMap(SvStream& rInp, SvStream& rOut, SgfHeader& rHead, SgfEntry&) { @@ -371,9 +371,9 @@ bool SgfBMapFilter(SvStream& rInp, SvStream& rOut) } -//////////////////////////////////////////////////////////////////////////////////////////////////// -// SgfVectFilter /////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + +// SgfVectFilter + // for StarDraw embedded SGF vector long SgfVectXofs=0; @@ -384,9 +384,9 @@ long SgfVectXdiv=0; long SgfVectYdiv=0; bool SgfVectScal=false; -//////////////////////////////////////////////////////////// -// Hpgl2SvFarbe //////////////////////////////////////////// -//////////////////////////////////////////////////////////// + +// Hpgl2SvFarbe + Color Hpgl2SvFarbe( sal_uInt8 nFarb ) { diff --git a/vcl/source/filter/sgvmain.cxx b/vcl/source/filter/sgvmain.cxx index 28ef1fae7f3a..2dd014686fcf 100644 --- a/vcl/source/filter/sgvmain.cxx +++ b/vcl/source/filter/sgvmain.cxx @@ -83,26 +83,26 @@ #endif -//////////////////////////////////////////////////////////////////////////////////////////////////// -// + + // Restrictions: -// + // - area patterns are matched to the available ones in Starview. // - line ends are always rounded in StarView and continue past the end of line. // - line patterns are matched to the available ones in Starview. // transparency/opacity is not taken into account // - no rotated ellipses -// -//////////////////////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// -// for font translation /////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + + + +// for font translation + SgfFontLst* pSgfFonts = 0; -//////////////////////////////////////////////////////////////////////////////////////////////////// -// for circle kinds, text and rotated rectangles /////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + +// for circle kinds, text and rotated rectangles + void RotatePoint(PointType& P, sal_Int16 cx, sal_Int16 cy, double sn, double cs) { sal_Int16 dx,dy; @@ -140,9 +140,9 @@ sal_uInt16 MulDiv(sal_uInt16 a, sal_uInt16 Mul, sal_uInt16 Div) return sal_uInt16(Temp); } -//////////////////////////////////////////////////////////////////////////////////////////////////// -// SgfFilterSDrw /////////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////////////////////////// + +// SgfFilterSDrw + SvStream& ReadDtHdType(SvStream& rIStream, DtHdType& rDtHd) { diff --git a/vcl/source/filter/sgvmain.hxx b/vcl/source/filter/sgvmain.hxx index 93ba2a47bd75..ae0d35d735ad 100644 --- a/vcl/source/filter/sgvmain.hxx +++ b/vcl/source/filter/sgvmain.hxx @@ -92,8 +92,8 @@ struct ObjAreaType { // So don't clean the "unused dummy" fields away. (Actually it // might well be that many other fields around here are never used // in our code either.) - sal_uInt8 FDummy1; // - sal_Int16 FDummy2; // + sal_uInt8 FDummy1; + sal_Int16 FDummy2; sal_uInt16 FMuster; // [Index] incl. Invers, transparency }; diff --git a/vcl/source/filter/sgvtext.cxx b/vcl/source/filter/sgvtext.cxx index 39b581f373a4..5baad793f12d 100644 --- a/vcl/source/filter/sgvtext.cxx +++ b/vcl/source/filter/sgvtext.cxx @@ -36,18 +36,18 @@ extern SgfFontLst* pSgfFonts; #endif -//////////////////////////////////////////////////////////////////////////////////////////////////// -// + + // Limitations: only grey shadows, 2D and with fixed distance. -// -// -// -// -//////////////////////////////////////////////////////////////////////////////////////////////////// - -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// + + + + + + + + + // AbsBase.Pas // vvv special characters in text buffer vvv @@ -62,7 +62,7 @@ extern SgfFontLst* pSgfFonts; #define MaxEscValLen 8 #define MaxEscLen (MaxEscValLen+3) -//============================================================================== + // Escape sequences: [Esc]<Ident><Value>[Esc] at least 4 characters // Max length of value should be: 8 chars (7+sign). Therefore max. length // of a escape sequence: 11 chars. @@ -123,7 +123,7 @@ extern SgfFontLst* pSgfFonts; #define EscToggl '\x1d' /* toggle flag */ #define EscNoFlg 0 #define EscNoVal -2147483647 /* -MaxLongInt */ -//============================================================================== + #define NoTrenn 0xFFFF /* parameter value for 'Rest' of GetTextChar(), if separation should not occur */ #define DoTrenn 0xFFFE /* parameter value for 'Rest' of GetTextChar(), if separtion should occur */ @@ -136,22 +136,22 @@ extern SgfFontLst* pSgfFonts; #define MaxChar 255 -//============================================================================== + #define CharTopToBase 100 /* due to quotes more as 75% */ #define CharTopToBtm 120 /* line height larger as text angle */ // for Avanti-Bold 'ue' actually even 130% // end of AbsBase.Pas -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// + + + + + + // DefBase.Pas #define TextBoldBit 0x0001 /* bold */ @@ -179,9 +179,9 @@ extern SgfFontLst* pSgfFonts; #define MaxCharSlant 4200 /* maximum 42deg italic ! */ // end of DefBase.Pas -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// + + + bool CheckTextOutl(ObjAreaType& F, ObjLineType& L) @@ -192,9 +192,9 @@ bool CheckTextOutl(ObjAreaType& F, ObjLineType& L) } -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// + + + // Misc.Pas short hPoint2Sgf(short a) @@ -207,12 +207,12 @@ short hPoint2Sgf(short a) // End of Misc.Pas // AbsRead.Pas -// ====================================================================== + // Function GetTopToBaseLine() Function GetBaseLineToBtm() -// + // Calculate distance from ascender of line to baseline or from baseline to // descender. All in SGF-units. -// ====================================================================== + sal_uInt16 GetTopToBaseLine(sal_uInt16 MaxGrad) { @@ -221,9 +221,9 @@ sal_uInt16 GetTopToBaseLine(sal_uInt16 MaxGrad) return sal_uInt16(ret); } -// ====================================================================== + // Function GetTextChar() Function GetTextCharConv() -// + // Reads a character from textbuffer, in doing so escape sequences // are evaluated and accordingly the input/output parameter AktAtr is set. // Index is incremented accordingly. @@ -232,12 +232,12 @@ sal_uInt16 GetTopToBaseLine(sal_uInt16 MaxGrad) // Otherwise the hyphenation does not work. If the constand NoTrenn // is used instaed, no hyphenation is done. To the contrary then // constant DoTrenn triggers hyphenation where a soft-break is present. -// + // Soft separators are converted to a minus sign. // On top GetTextCharConv() converts HardSpace and AbsatzEnde // in spaces, including HardTrenner in minus signs. TextEnde is // always returned as Char(0). -// ====================================================================== + @@ -448,11 +448,11 @@ UCHAR GetTextCharConv(UCHAR* TBuf, sal_uInt16& Index, } -// ====================================================================== + // Function GetLineFeed() -// + // Required line spacing in SGF-Units. ChrVPos is taken into account. -// ====================================================================== + sal_uInt16 GetLineFeed(UCHAR* TBuf, sal_uInt16 Index, ObjTextType Atr0, ObjTextType AktAtr, sal_uInt16 nChar, sal_uInt16& LF, sal_uInt16& MaxGrad) { @@ -496,15 +496,15 @@ sal_uInt16 GetLineFeed(UCHAR* TBuf, sal_uInt16 Index, ObjTextType Atr0, ObjTextT } // End of AbsRead.Pas -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// + + + + + + // iFont.Pas #define SuperSubFact 60 /* superscript/subscript: 60% of text angle */ @@ -613,14 +613,14 @@ sal_uInt16 SetTextContext(OutputDevice& rOut, ObjTextType& Atr, bool Kapt, sal_u } // iFont.Pas -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// + + + + + + // Absatz.Pas struct ProcChrSta { @@ -929,14 +929,14 @@ void FormatLine(UCHAR* TBuf, sal_uInt16& Index, ObjTextType& Atr0, ObjTextType& // End of Absatz.Pas -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// + + + + + + // DrawText.Pas void DrawChar(OutputDevice& rOut, UCHAR c, ObjTextType T, PointType Pos, sal_uInt16 DrehWink, @@ -1072,9 +1072,9 @@ void TextType::Draw(OutputDevice& rOut) } // End of DrawText.Pas -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// + + + sal_uInt32 ObjTextType::GetFont() { @@ -1088,9 +1088,9 @@ void ObjTextType::SetFont(sal_uInt32 FontID) } -///////////////////////////////////////////////////////////////////////////////// -// SGF.Ini lesen //////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////// + +// SGF.Ini lesen + SgfFontOne::SgfFontOne() { Next=NULL; @@ -1154,7 +1154,7 @@ void SgfFontOne::ReadOne( const OString& rID, OString& Dsc ) } } -///////////////////////////////////////////////////////////////////////////////// + SgfFontLst::SgfFontLst() { diff --git a/vcl/source/filter/wmf/emfwr.hxx b/vcl/source/filter/wmf/emfwr.hxx index 1eddc51e2029..0ff838416a08 100644 --- a/vcl/source/filter/wmf/emfwr.hxx +++ b/vcl/source/filter/wmf/emfwr.hxx @@ -26,9 +26,9 @@ #include <vcl/virdev.hxx> #include <vcl/fltcall.hxx> -// ------------- + // - EMFWriter - -// ------------- + class LineInfo; namespace basegfx { class B2DPolygon; } diff --git a/vcl/source/filter/wmf/enhwmf.cxx b/vcl/source/filter/wmf/enhwmf.cxx index f2df15dbd012..47915a01e883 100644 --- a/vcl/source/filter/wmf/enhwmf.cxx +++ b/vcl/source/filter/wmf/enhwmf.cxx @@ -1225,7 +1225,7 @@ bool EnhWMFReader::ReadEnhWMF() // #i123216# Not used in the test case of #121382# (always identity in XForm), also // no hints in ms docu if FontSize should be scaled with WT. Using with the example // from #i123216# creates errors, so removing. - // + // // #i121382# Need to apply WorldTransform to FontHeight/Width; this should be completely // // changed to basegfx::B2DHomMatrix instead of 'struct XForm', but not now due to time // // constraints and dangers diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx index eca0d4f76798..adc76649eecf 100644 --- a/vcl/source/filter/wmf/winmtf.cxx +++ b/vcl/source/filter/wmf/winmtf.cxx @@ -902,7 +902,7 @@ void WinMtfOutput::UpdateClipRegion() mbComplexClip = false; mpGDIMetaFile->AddAction( new MetaPopAction() ); // taking the original clipregion - mpGDIMetaFile->AddAction( new MetaPushAction( PUSH_CLIPREGION ) ); // + mpGDIMetaFile->AddAction( new MetaPushAction( PUSH_CLIPREGION ) ); // skip for 'no clipping at all' case if( !aClipPath.isEmpty() ) diff --git a/vcl/source/filter/wmf/winmtf.hxx b/vcl/source/filter/wmf/winmtf.hxx index ab7291986de3..055b6999ed18 100644 --- a/vcl/source/filter/wmf/winmtf.hxx +++ b/vcl/source/filter/wmf/winmtf.hxx @@ -327,7 +327,7 @@ struct WinMtfFontStyle WinMtfFontStyle( LOGFONTW& rLogFont ); }; -// ----------------------------------------------------------------------------- + typedef enum { FillStyleSolid, @@ -394,7 +394,7 @@ struct WinMtfFillStyle } }; -// ----------------------------------------------------------------------------- + struct WinMtfLineStyle { @@ -446,7 +446,7 @@ struct WinMtfLineStyle } }; -// ----------------------------------------------------------------------------- + struct XForm { @@ -463,7 +463,7 @@ struct XForm } }; -// ----------------------------------------------------------------------------- + struct SaveStruct { @@ -491,7 +491,7 @@ struct SaveStruct typedef ::boost::shared_ptr< SaveStruct > SaveStructPtr; -// ----------------------------------------------------------------------------- + struct BSaveStruct { @@ -515,7 +515,7 @@ struct BSaveStruct typedef ::std::vector< BSaveStruct* > BSaveStructList_impl; -// ----------------------------------------------------------------------------- + enum GDIObjectType { GDI_DUMMY = 0, @@ -570,7 +570,7 @@ struct GDIObj } }; -// ----------------------------------------------------------------------------- + class WinMtfOutput { @@ -758,7 +758,7 @@ public: virtual ~WinMtfOutput(); }; -// ----------------------------------------------------------------------------- + class WinMtf { diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx index 26efbadd9a0a..cf84822fc56f 100644 --- a/vcl/source/filter/wmf/winwmf.cxx +++ b/vcl/source/filter/wmf/winwmf.cxx @@ -644,7 +644,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc ) // nSye and nSxe is the number of pixels that has to been used // If they are set to zero, it is as indicator not to scale the bitmap later - // + if( nFunc == W_META_STRETCHDIB || nFunc == W_META_STRETCHBLT || nFunc == W_META_DIBSTRETCHBLT ) pWMF->ReadUInt16( nSye ).ReadUInt16( nSxe ); diff --git a/vcl/source/filter/wmf/wmfwr.hxx b/vcl/source/filter/wmf/wmfwr.hxx index ceda7c5927b2..4322a764fe07 100644 --- a/vcl/source/filter/wmf/wmfwr.hxx +++ b/vcl/source/filter/wmf/wmfwr.hxx @@ -26,11 +26,11 @@ #include <vcl/virdev.hxx> #include <vcl/fltcall.hxx> -// ----------------------------------------------------------------------------- + #define MAXOBJECTHANDLES 16 -// ----------------------------------------------------------------------------- + struct WMFWriterAttrStackMember { @@ -47,9 +47,9 @@ struct WMFWriterAttrStackMember sal_uInt16 nFlags; }; -// ------------- + // - WMFWriter - -// ------------- + class StarSymbolToMSMultiFont; class LineInfo; diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx index 79c9f50ab577..b1411ac27e7d 100644 --- a/vcl/source/fontsubset/cff.cxx +++ b/vcl/source/fontsubset/cff.cxx @@ -39,7 +39,7 @@ typedef RealType ValType; #include <vector> typedef std::vector<ValType> ValVector; -// ==================================================================== + static const char* pStringIds[] = { /*0*/ ".notdef", "space", "exclam", "quotedbl", @@ -276,7 +276,7 @@ struct TYPE2OP }; }; -// ==================================================================== + struct CffGlobal { @@ -306,7 +306,7 @@ struct CffGlobal int mnFamilyNameSID; }; -// ==================================================================== + struct CffLocal { @@ -339,7 +339,7 @@ struct CffLocal bool mbForceBold; }; -// ==================================================================== + class SubsetterContext { @@ -355,7 +355,7 @@ public: SubsetterContext::~SubsetterContext( void) {} -// ==================================================================== + class CffSubsetterContext : public SubsetterContext @@ -547,7 +547,7 @@ void CffSubsetterContext::addHints( bool bVerticalHints) // copy the remaining values to the hint arrays // assert( (mnStackIdx & 1) == 0); // depends on called subrs - if( mnStackIdx & 1) --mnStackIdx;//####### + if( mnStackIdx & 1) --mnStackIdx; // TODO: if( !bSubr) assert( mnStackIdx >= 2); assert( (mnHintSize + mnStackIdx) <= 2*NMAXHINTS); @@ -1334,7 +1334,7 @@ int CffSubsetterContext::convert2Type1Ops( CffLocal* pCffLocal, const U8* const mbSawError = false; mbNeedClose = false; mbIgnoreHints = false; -mnHintSize=mnHorzHintSize=mnStackIdx=0; maCharWidth=-1;//####### +mnHintSize=mnHorzHintSize=mnStackIdx=0; maCharWidth=-1; mnCntrMask = 0; while( mpReadPtr < mpReadEnd) convertOneTypeOp(); @@ -1514,7 +1514,7 @@ void CffSubsetterContext::seekIndexEnd( int nIndexBase) assert( mpReadEnd <= mpBaseEnd); } -// ==================================================================== + // initialize FONTDICT specific values CffLocal::CffLocal( void) @@ -2335,7 +2335,7 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter, return true; } -// ==================================================================== + bool FontSubsetInfo::CreateFontSubsetFromCff( GlyphWidth* pOutGlyphWidths ) { @@ -2353,6 +2353,6 @@ bool FontSubsetInfo::CreateFontSubsetFromCff( GlyphWidth* pOutGlyphWidths ) return bRC; } -// ==================================================================== + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/fontsubset/fontsubset.cxx b/vcl/source/fontsubset/fontsubset.cxx index ab0636f73c04..62d83504a421 100644 --- a/vcl/source/fontsubset/fontsubset.cxx +++ b/vcl/source/fontsubset/fontsubset.cxx @@ -23,7 +23,7 @@ #include <fontsubset.hxx> #include <sft.hxx> -// ==================================================================== + FontSubsetInfo::FontSubsetInfo() : m_nAscent( 0) @@ -168,6 +168,6 @@ bool FontSubsetInfo::CreateFontSubsetFromType1( sal_Int32* pOutGlyphWidths) return false; } -// ==================================================================== + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/fontsubset/xlat.cxx b/vcl/source/fontsubset/xlat.cxx index 22365b709764..673924f31530 100644 --- a/vcl/source/fontsubset/xlat.cxx +++ b/vcl/source/fontsubset/xlat.cxx @@ -22,7 +22,7 @@ namespace { // anonymous namespace -// ==================================================================== + #define MAX_CVT_SELECT 6 @@ -40,7 +40,7 @@ private: rtl_UnicodeToTextContext maContexts[ MAX_CVT_SELECT+1 ]; }; -// ==================================================================== + ConverterCache::ConverterCache( void) { @@ -150,7 +150,7 @@ void ConverterCache::convertStr( int nSelect, const sal_Unicode* pSrc, sal_uInt1 } // anonymous namespace -// ==================================================================== + #include "xlat.hxx" diff --git a/vcl/source/gdi/bitmap4.cxx b/vcl/source/gdi/bitmap4.cxx index 509f7ead46ef..1237c5338cd5 100644 --- a/vcl/source/gdi/bitmap4.cxx +++ b/vcl/source/gdi/bitmap4.cxx @@ -1063,11 +1063,11 @@ void Bitmap::ImplBlurContributions( const int aSize, const int aNumberOfContribu } // Separable Gaussian Blur -// + // Separable Gaussian Blur filter and accepts a blur radius // as a parameter so the user can change the strength of the blur. // Radius of 1.0 is 3 * standard deviation of gauss function. -// + // Separable Blur implementation uses 2x separable 1D convolution // to process the image. bool Bitmap::ImplSeparableBlurFilter(const double radius) diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx index 0e9cd05d7abc..840282eeee29 100644 --- a/vcl/source/gdi/bitmapex.cxx +++ b/vcl/source/gdi/bitmapex.cxx @@ -322,7 +322,7 @@ sal_uLong BitmapEx::GetChecksum() const return nCrc; } -// ------------------------------------------------------------------ + void BitmapEx::SetSizePixel( const Size& rNewSize, sal_uInt32 nScaleFlag ) { @@ -362,7 +362,7 @@ bool BitmapEx::Mirror( sal_uLong nMirrorFlags ) return bRet; } -// ------------------------------------------------------------------ + bool BitmapEx::Scale( const double& rScaleX, const double& rScaleY, sal_uInt32 nScaleFlag ) { @@ -386,7 +386,7 @@ bool BitmapEx::Scale( const double& rScaleX, const double& rScaleY, sal_uInt32 n return bRet; } -// ------------------------------------------------------------------------ + bool BitmapEx::Scale( const Size& rNewSize, sal_uInt32 nScaleFlag ) { @@ -828,7 +828,7 @@ bool BitmapEx::Create( const ::com::sun::star::uno::Reference< return false; } -// ------------------------------------------------------------------ + namespace { @@ -925,7 +925,7 @@ BitmapEx BitmapEx::TransformBitmapEx( return BitmapEx(aDestination); } -// ------------------------------------------------------------------ + BitmapEx BitmapEx::getTransformed( const basegfx::B2DHomMatrix& rTransformation, @@ -1009,7 +1009,7 @@ BitmapEx BitmapEx::getTransformed( return aRetval; } -// ------------------------------------------------------------------ + BitmapEx BitmapEx::ModifyBitmapEx(const basegfx::BColorModifierStack& rBColorModifierStack) const { @@ -1167,7 +1167,7 @@ BitmapEx BitmapEx::ModifyBitmapEx(const basegfx::BColorModifierStack& rBColorMod } } -// ----------------------------------------------------------------------------- + BitmapEx VCL_DLLPUBLIC createBlendFrame( const Size& rSize, diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx index d0b9c2f92582..9802557b8f4a 100644 --- a/vcl/source/gdi/dibtools.cxx +++ b/vcl/source/gdi/dibtools.cxx @@ -25,14 +25,14 @@ #include <vcl/bmpacc.hxx> #include <vcl/outdev.hxx> -////////////////////////////////////////////////////////////////////////////// + // - Defines - #define DIBCOREHEADERSIZE ( 12UL ) #define DIBINFOHEADERSIZE ( sizeof(DIBInfoHeader) ) #define DIBV5HEADERSIZE ( sizeof(DIBV5Header) ) -////////////////////////////////////////////////////////////////////////////// + // - Compression defines #define COMPRESS_OWN ('S'|('D'<<8UL)) @@ -42,7 +42,7 @@ #define BITFIELDS ( 3UL ) #define ZCOMPRESS ( COMPRESS_OWN | 0x01000000UL ) /* == 'SD01' (binary) */ -////////////////////////////////////////////////////////////////////////////// + // - DIBInfoHeader and DIBV5Header typedef sal_Int32 FXPT2DOT30; @@ -148,7 +148,7 @@ struct DIBV5Header : public DIBInfoHeader {} }; -////////////////////////////////////////////////////////////////////////////// + namespace { @@ -165,7 +165,7 @@ namespace } } -////////////////////////////////////////////////////////////////////////////// + bool ImplReadDIBInfoHeader(SvStream& rIStm, DIBV5Header& rHeader, bool& bTopDown) { @@ -1315,7 +1315,7 @@ bool ImplWriteDIBFileHeader(SvStream& rOStm, BitmapReadAccess& rAcc, bool bUseDI return( rOStm.GetError() == 0UL ); } -////////////////////////////////////////////////////////////////////////////// + bool ImplReadDIB( Bitmap& rTarget, Bitmap* @@ -1424,7 +1424,7 @@ bool ImplWriteDIB( return bRet; } -////////////////////////////////////////////////////////////////////////////// + bool ReadDIB( Bitmap& rTarget, @@ -1522,7 +1522,7 @@ bool ReadDIBV5( return ImplReadDIB(rTarget, &rTargetAlpha, rIStm, true); } -////////////////////////////////////////////////////////////////////////////// + bool WriteDIB( const Bitmap& rSource, diff --git a/vcl/source/gdi/gdimetafiletools.cxx b/vcl/source/gdi/gdimetafiletools.cxx index 45623853bfda..cd918f8a9987 100644 --- a/vcl/source/gdi/gdimetafiletools.cxx +++ b/vcl/source/gdi/gdimetafiletools.cxx @@ -26,7 +26,7 @@ #include <vcl/svapp.hxx> #include <vcl/graphictools.hxx> -////////////////////////////////////////////////////////////////////////////// + // helpers namespace @@ -255,7 +255,7 @@ namespace } } // end of anonymous namespace -////////////////////////////////////////////////////////////////////////////// + // #i121267# Tooling to internally clip geometry against internal clip regions void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) @@ -446,9 +446,9 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) { switch(nType) { - // + // pixel actions, just check on inside - // + case META_PIXEL_ACTION : { const MetaPixelAction* pA = static_cast< const MetaPixelAction* >(pAction); @@ -479,9 +479,9 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) break; } - // + // geometry actions - // + case META_LINE_ACTION : { const MetaLineAction* pA = static_cast< const MetaLineAction* >(pAction); @@ -705,10 +705,10 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) break; } - // + // bitmap actions, create BitmapEx with alpha channel derived // from clipping - // + case META_BMPEX_ACTION : { const MetaBmpExAction* pA = static_cast< const MetaBmpExAction* >(pAction); @@ -857,9 +857,9 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) break; } - // + // need to handle all those 'hacks' which hide data in comments - // + case META_COMMENT_ACTION : { const MetaCommentAction* pA = static_cast< const MetaCommentAction* >(pAction); @@ -963,9 +963,9 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) break; } - // + // need to handle gradient fills (hopefully only unroated ones) - // + case META_GRADIENT_ACTION : { @@ -1007,7 +1007,7 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) } // not (yet) supported actions - // + // META_NULL_ACTION // META_TEXT_ACTION // META_TEXTARRAY_ACTION @@ -1064,7 +1064,7 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource) } } -////////////////////////////////////////////////////////////////////////////// + bool VCL_DLLPUBLIC usesClipActions(const GDIMetaFile& rSource) { diff --git a/vcl/source/gdi/impfont.cxx b/vcl/source/gdi/impfont.cxx index 2674a1ad95da..e341c813b4a9 100644 --- a/vcl/source/gdi/impfont.cxx +++ b/vcl/source/gdi/impfont.cxx @@ -22,7 +22,7 @@ #include <vector> #include <set> -// ======================================================================= + CmapResult::CmapResult( bool bSymbolic, const sal_UCS4* pRangeCodes, int nRangeCount, @@ -35,7 +35,7 @@ CmapResult::CmapResult( bool bSymbolic, , mbRecoded( false) {} -// ======================================================================= + ImplFontCharMap::ImplFontCharMap( const CmapResult& rCR ) : mpRangeCodes( rCR.mpRangeCodes ) @@ -58,7 +58,7 @@ static ImplFontCharMap* pDefaultImplFontCharMap = NULL; static const sal_UCS4 aDefaultUnicodeRanges[] = {0x0020,0xD800, 0xE000,0xFFF0}; static const sal_UCS4 aDefaultSymbolRanges[] = {0x0020,0x0100, 0xF020,0xF100}; -// ----------------------------------------------------------------------- + bool ImplFontCharMap::IsDefaultMap() const { @@ -66,7 +66,7 @@ bool ImplFontCharMap::IsDefaultMap() const return bIsDefault; } -// ----------------------------------------------------------------------- + ImplFontCharMap::~ImplFontCharMap() { @@ -77,7 +77,7 @@ ImplFontCharMap::~ImplFontCharMap() delete[] mpGlyphIds; } -// ----------------------------------------------------------------------- + ImplFontCharMap* ImplFontCharMap::GetDefaultMap( bool bSymbols) { @@ -100,14 +100,14 @@ ImplFontCharMap* ImplFontCharMap::GetDefaultMap( bool bSymbols) return pDefaultImplFontCharMap; } -// ----------------------------------------------------------------------- + void ImplFontCharMap::AddReference( void) const { ++mnRefCount; } -// ----------------------------------------------------------------------- + void ImplFontCharMap::DeReference( void) const { @@ -116,14 +116,14 @@ void ImplFontCharMap::DeReference( void) const delete this; } -// ----------------------------------------------------------------------- + int ImplFontCharMap::GetCharCount() const { return mnCharCount; } -// ----------------------------------------------------------------------- + int ImplFontCharMap::ImplFindRangeIndex( sal_UCS4 cChar ) const { @@ -142,7 +142,7 @@ int ImplFontCharMap::ImplFindRangeIndex( sal_UCS4 cChar ) const return nMid; } -// ----------------------------------------------------------------------- + bool ImplFontCharMap::HasChar( sal_UCS4 cChar ) const { @@ -161,7 +161,7 @@ bool ImplFontCharMap::HasChar( sal_UCS4 cChar ) const return bHasChar; } -// ----------------------------------------------------------------------- + int ImplFontCharMap::GetGlyphIndex( sal_UCS4 cChar ) const { @@ -198,7 +198,7 @@ int ImplFontCharMap::GetGlyphIndex( sal_UCS4 cChar ) const return nGlyphIndex; } -// ----------------------------------------------------------------------- + // returns the number of chars supported by the font, which // are inside the unicode range from cMin to cMax (inclusive) @@ -227,21 +227,21 @@ int ImplFontCharMap::CountCharsInRange( sal_UCS4 cMin, sal_UCS4 cMax ) const return nCount; } -// ----------------------------------------------------------------------- + sal_UCS4 ImplFontCharMap::GetFirstChar() const { return mpRangeCodes[0]; } -// ----------------------------------------------------------------------- + sal_UCS4 ImplFontCharMap::GetLastChar() const { return (mpRangeCodes[ 2*mnRangeCount-1 ] - 1); } -// ----------------------------------------------------------------------- + sal_UCS4 ImplFontCharMap::GetNextChar( sal_UCS4 cChar ) const { @@ -256,7 +256,7 @@ sal_UCS4 ImplFontCharMap::GetNextChar( sal_UCS4 cChar ) const return (cChar + 1); } -// ----------------------------------------------------------------------- + sal_UCS4 ImplFontCharMap::GetPrevChar( sal_UCS4 cChar ) const { @@ -271,7 +271,7 @@ sal_UCS4 ImplFontCharMap::GetPrevChar( sal_UCS4 cChar ) const return (cChar - 1); } -// ----------------------------------------------------------------------- + int ImplFontCharMap::GetIndexFromChar( sal_UCS4 cChar ) const { @@ -293,7 +293,7 @@ int ImplFontCharMap::GetIndexFromChar( sal_UCS4 cChar ) const return -1; } -// ----------------------------------------------------------------------- + sal_UCS4 ImplFontCharMap::GetCharFromIndex( int nCharIndex ) const { @@ -312,7 +312,7 @@ sal_UCS4 ImplFontCharMap::GetCharFromIndex( int nCharIndex ) const return mpRangeCodes[0]; } -// ======================================================================= + static unsigned GetUInt( const unsigned char* p ) { return((p[0]<<24)+(p[1]<<16)+(p[2]<<8)+p[3]);} static unsigned Getsal_uInt16( const unsigned char* p ){ return((p[0]<<8) | p[1]);} @@ -602,13 +602,13 @@ bool ParseCMAP( const unsigned char* pCmap, int nLength, CmapResult& rResult ) return true; } -// ======================================================================= + FontCharMap::FontCharMap() : mpImpl( ImplFontCharMap::GetDefaultMap() ) {} -// ----------------------------------------------------------------------- + FontCharMap::~FontCharMap() { @@ -616,21 +616,21 @@ FontCharMap::~FontCharMap() mpImpl = NULL; } -// ----------------------------------------------------------------------- + int FontCharMap::GetCharCount() const { return mpImpl->GetCharCount(); } -// ----------------------------------------------------------------------- + int FontCharMap::CountCharsInRange( sal_UCS4 cMin, sal_UCS4 cMax ) const { return mpImpl->CountCharsInRange( cMin, cMax ); } -// ----------------------------------------------------------------------- + void FontCharMap::Reset( const ImplFontCharMap* pNewMap ) { @@ -647,56 +647,56 @@ void FontCharMap::Reset( const ImplFontCharMap* pNewMap ) } } -// ----------------------------------------------------------------------- + bool FontCharMap::IsDefaultMap() const { return mpImpl->IsDefaultMap(); } -// ----------------------------------------------------------------------- + bool FontCharMap::HasChar( sal_UCS4 cChar ) const { return mpImpl->HasChar( cChar ); } -// ----------------------------------------------------------------------- + sal_UCS4 FontCharMap::GetFirstChar() const { return mpImpl->GetFirstChar(); } -// ----------------------------------------------------------------------- + sal_UCS4 FontCharMap::GetNextChar( sal_UCS4 cChar ) const { return mpImpl->GetNextChar( cChar ); } -// ----------------------------------------------------------------------- + sal_UCS4 FontCharMap::GetPrevChar( sal_UCS4 cChar ) const { return mpImpl->GetPrevChar( cChar ); } -// ----------------------------------------------------------------------- + int FontCharMap::GetIndexFromChar( sal_UCS4 cChar ) const { return mpImpl->GetIndexFromChar( cChar ); } -// ----------------------------------------------------------------------- + sal_UCS4 FontCharMap::GetCharFromIndex( int nIndex ) const { return mpImpl->GetCharFromIndex( nIndex ); } -// ======================================================================= + // on some systems we have to get the font attributes from the name table // since neither head's macStyle nor OS/2's panose are easily available @@ -848,6 +848,6 @@ void UpdateAttributesFromPSName( const OUString& rPSName, ImplDevFontAttributes& } } -// ======================================================================= + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/gdi/impvect.hxx b/vcl/source/gdi/impvect.hxx index 38becc56ddd7..e0d8d4d1a9ef 100644 --- a/vcl/source/gdi/impvect.hxx +++ b/vcl/source/gdi/impvect.hxx @@ -23,9 +23,9 @@ #include <tools/poly.hxx> #include <vcl/gdimtf.hxx> -// -------------- + // - Vectorizer - -// -------------- + class BitmapReadAccess; class ImplChain; diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index e3977355321b..ebf9eb8fb634 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -30,7 +30,7 @@ #include <basegfx/matrix/b2dhommatrixtools.hxx> #include <unotools/fontdefs.hxx> -// ======================================================================== + inline void ImplScalePoint( Point& rPt, double fScaleX, double fScaleY ) { @@ -75,14 +75,14 @@ inline void ImplScaleLineInfo( LineInfo& rLineInfo, double fScaleX, double fScal } } -// ======================================================================== + #define COMPAT( _def_rIStm ) VersionCompat aCompat( ( _def_rIStm ), STREAM_READ ); #define WRITE_BASE_COMPAT( _def_rOStm, _def_nVer, _pWriteData ) \ MetaAction::Write( ( _def_rOStm ), _pWriteData ); \ VersionCompat aCompat( ( _def_rOStm ), STREAM_WRITE, ( _def_nVer ) ); -// ======================================================================== + MetaAction::MetaAction() : mnRefCount( 1 ), @@ -233,7 +233,7 @@ MetaAction* MetaAction::ReadMetaAction( SvStream& rIStm, ImplMetaReadData* pData return pAction; } -// ======================================================================== + IMPL_META_ACTION( Pixel, META_PIXEL_ACTION ) @@ -302,7 +302,7 @@ void MetaPixelAction::Read( SvStream& rIStm, ImplMetaReadData* ) maColor.Read( rIStm, true ); } -// ======================================================================== + IMPL_META_ACTION( Point, META_POINT_ACTION ) @@ -367,7 +367,7 @@ void MetaPointAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maPt ); } -// ======================================================================== + IMPL_META_ACTION( Line, META_LINE_ACTION ) @@ -464,7 +464,7 @@ void MetaLineAction::Read( SvStream& rIStm, ImplMetaReadData* ) } } -// ======================================================================== + IMPL_META_ACTION( Rect, META_RECT_ACTION ) @@ -529,7 +529,7 @@ void MetaRectAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadRectangle( rIStm, maRect ); } -// ======================================================================== + IMPL_META_ACTION( RoundRect, META_ROUNDRECT_ACTION ) @@ -602,7 +602,7 @@ void MetaRoundRectAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadRectangle( rIStm, maRect ).ReadUInt32( mnHorzRound ).ReadUInt32( mnVertRound ); } -// ======================================================================== + IMPL_META_ACTION( Ellipse, META_ELLIPSE_ACTION ) @@ -667,7 +667,7 @@ void MetaEllipseAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadRectangle( rIStm, maRect ); } -// ======================================================================== + IMPL_META_ACTION( Arc, META_ARC_ACTION ) @@ -745,7 +745,7 @@ void MetaArcAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maEndPt ); } -// ======================================================================== + IMPL_META_ACTION( Pie, META_PIE_ACTION ) @@ -823,7 +823,7 @@ void MetaPieAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maEndPt ); } -// ======================================================================== + IMPL_META_ACTION( Chord, META_CHORD_ACTION ) @@ -901,7 +901,7 @@ void MetaChordAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maEndPt ); } -// ======================================================================== + IMPL_META_ACTION( PolyLine, META_POLYLINE_ACTION ) @@ -1008,7 +1008,7 @@ void MetaPolyLineAction::Read( SvStream& rIStm, ImplMetaReadData* ) } } -// ======================================================================== + IMPL_META_ACTION( Polygon, META_POLYGON_ACTION ) @@ -1090,7 +1090,7 @@ void MetaPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* ) } } -// ======================================================================== + IMPL_META_ACTION( PolyPolygon, META_POLYPOLYGON_ACTION ) @@ -1195,7 +1195,7 @@ void MetaPolyPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* ) } } -// ======================================================================== + IMPL_META_ACTION( Text, META_TEXT_ACTION ) @@ -1278,7 +1278,7 @@ void MetaTextAction::Read( SvStream& rIStm, ImplMetaReadData* pData ) maStr = read_uInt16_lenPrefixed_uInt16s_ToOUString(rIStm); } -// ======================================================================== + MetaTextArrayAction::MetaTextArrayAction() : MetaAction ( META_TEXTARRAY_ACTION ), @@ -1465,7 +1465,7 @@ void MetaTextArrayAction::Read( SvStream& rIStm, ImplMetaReadData* pData ) } } -// ======================================================================== + IMPL_META_ACTION( StretchText, META_STRETCHTEXT_ACTION ) @@ -1554,7 +1554,7 @@ void MetaStretchTextAction::Read( SvStream& rIStm, ImplMetaReadData* pData ) maStr = read_uInt16_lenPrefixed_uInt16s_ToOUString(rIStm); } -// ======================================================================== + IMPL_META_ACTION( TextRect, META_TEXTRECT_ACTION ) @@ -1633,7 +1633,7 @@ void MetaTextRectAction::Read( SvStream& rIStm, ImplMetaReadData* pData ) maStr = read_uInt16_lenPrefixed_uInt16s_ToOUString(rIStm); } -// ======================================================================== + IMPL_META_ACTION( TextLine, META_TEXTLINE_ACTION ) @@ -1731,7 +1731,7 @@ void MetaTextLineAction::Read( SvStream& rIStm, ImplMetaReadData* ) } } -// ======================================================================== + IMPL_META_ACTION( Bmp, META_BMP_ACTION ) @@ -1803,7 +1803,7 @@ void MetaBmpAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maPt ); } -// ======================================================================== + IMPL_META_ACTION( BmpScale, META_BMPSCALE_ACTION ) @@ -1883,7 +1883,7 @@ void MetaBmpScaleAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maSz ); } -// ======================================================================== + IMPL_META_ACTION( BmpScalePart, META_BMPSCALEPART_ACTION ) @@ -1972,7 +1972,7 @@ void MetaBmpScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maSrcSz ); } -// ======================================================================== + IMPL_META_ACTION( BmpEx, META_BMPEX_ACTION ) @@ -2044,7 +2044,7 @@ void MetaBmpExAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maPt ); } -// ======================================================================== + IMPL_META_ACTION( BmpExScale, META_BMPEXSCALE_ACTION ) @@ -2124,7 +2124,7 @@ void MetaBmpExScaleAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maSz ); } -// ======================================================================== + IMPL_META_ACTION( BmpExScalePart, META_BMPEXSCALEPART_ACTION ) @@ -2213,7 +2213,7 @@ void MetaBmpExScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maSrcSz ); } -// ======================================================================== + IMPL_META_ACTION( Mask, META_MASK_ACTION ) @@ -2289,7 +2289,7 @@ void MetaMaskAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maPt ); } -// ======================================================================== + IMPL_META_ACTION( MaskScale, META_MASKSCALE_ACTION ) @@ -2372,7 +2372,7 @@ void MetaMaskScaleAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maSz ); } -// ======================================================================== + IMPL_META_ACTION( MaskScalePart, META_MASKSCALEPART_ACTION ) @@ -2466,7 +2466,7 @@ void MetaMaskScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maSrcSz ); } -// ======================================================================== + IMPL_META_ACTION( Gradient, META_GRADIENT_ACTION ) @@ -2535,7 +2535,7 @@ void MetaGradientAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadGradient( rIStm, maGradient ); } -// ======================================================================== + MetaGradientExAction::MetaGradientExAction() : MetaAction ( META_GRADIENTEX_ACTION ) @@ -2623,7 +2623,7 @@ void MetaGradientExAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadGradient( rIStm, maGradient ); } -// ======================================================================== + IMPL_META_ACTION( Hatch, META_HATCH_ACTION ) @@ -2698,7 +2698,7 @@ void MetaHatchAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadHatch( rIStm, maHatch ); } -// ======================================================================== + IMPL_META_ACTION( Wallpaper, META_WALLPAPER_ACTION ) @@ -2766,7 +2766,7 @@ void MetaWallpaperAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadWallpaper( rIStm, maWallpaper ); } -// ======================================================================== + IMPL_META_ACTION( ClipRegion, META_CLIPREGION_ACTION ) @@ -2838,7 +2838,7 @@ void MetaClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadCharAsBool( mbClip ); } -// ======================================================================== + IMPL_META_ACTION( ISectRectClipRegion, META_ISECTRECTCLIPREGION_ACTION ) @@ -2903,7 +2903,7 @@ void MetaISectRectClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadRectangle( rIStm, maRect ); } -// ======================================================================== + IMPL_META_ACTION( ISectRegionClipRegion, META_ISECTREGIONCLIPREGION_ACTION ) @@ -2968,7 +2968,7 @@ void MetaISectRegionClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadRegion( rIStm, maRegion ); } -// ======================================================================== + IMPL_META_ACTION( MoveClipRegion, META_MOVECLIPREGION_ACTION ) @@ -3034,7 +3034,7 @@ void MetaMoveClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* ) mnVertMove = nTmpVM; } -// ======================================================================== + IMPL_META_ACTION( LineColor, META_LINECOLOR_ACTION ) @@ -3092,7 +3092,7 @@ void MetaLineColorAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadCharAsBool( mbSet ); } -// ======================================================================== + IMPL_META_ACTION( FillColor, META_FILLCOLOR_ACTION ) @@ -3150,7 +3150,7 @@ void MetaFillColorAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadCharAsBool( mbSet ); } -// ======================================================================== + IMPL_META_ACTION( TextColor, META_TEXTCOLOR_ACTION ) @@ -3201,7 +3201,7 @@ void MetaTextColorAction::Read( SvStream& rIStm, ImplMetaReadData* ) maColor.Read( rIStm, true ); } -// ======================================================================== + IMPL_META_ACTION( TextFillColor, META_TEXTFILLCOLOR_ACTION ) @@ -3259,7 +3259,7 @@ void MetaTextFillColorAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadCharAsBool( mbSet ); } -// ======================================================================== + IMPL_META_ACTION( TextLineColor, META_TEXTLINECOLOR_ACTION ) @@ -3317,7 +3317,7 @@ void MetaTextLineColorAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadCharAsBool( mbSet ); } -// ======================================================================== + IMPL_META_ACTION( OverlineColor, META_OVERLINECOLOR_ACTION ) @@ -3375,7 +3375,7 @@ void MetaOverlineColorAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadCharAsBool( mbSet ); } -// ======================================================================== + IMPL_META_ACTION( TextAlign, META_TEXTALIGN_ACTION ) @@ -3428,7 +3428,7 @@ void MetaTextAlignAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadUInt16( nTmp16 ); maAlign = (TextAlign) nTmp16; } -// ======================================================================== + IMPL_META_ACTION( MapMode, META_MAPMODE_ACTION ) @@ -3489,7 +3489,7 @@ void MetaMapModeAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadMapMode( rIStm, maMapMode ); } -// ======================================================================== + IMPL_META_ACTION( Font, META_FONT_ACTION ) @@ -3565,7 +3565,7 @@ void MetaFontAction::Read( SvStream& rIStm, ImplMetaReadData* pData ) pData->meActualCharSet = osl_getThreadTextEncoding(); } -// ======================================================================== + IMPL_META_ACTION( Push, META_PUSH_ACTION ) @@ -3616,7 +3616,7 @@ void MetaPushAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadUInt16( mnFlags ); } -// ======================================================================== + IMPL_META_ACTION( Pop, META_POP_ACTION ) @@ -3650,7 +3650,7 @@ void MetaPopAction::Read( SvStream& rIStm, ImplMetaReadData* ) COMPAT( rIStm ); } -// ======================================================================== + IMPL_META_ACTION( RasterOp, META_RASTEROP_ACTION ) @@ -3703,7 +3703,7 @@ void MetaRasterOpAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadUInt16( nTmp16 ); meRasterOp = (RasterOp) nTmp16; } -// ======================================================================== + IMPL_META_ACTION( Transparent, META_TRANSPARENT_ACTION ) @@ -3786,7 +3786,7 @@ void MetaTransparentAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadUInt16( mnTransPercent ); } -// ======================================================================== + IMPL_META_ACTION( FloatTransparent, META_FLOATTRANSPARENT_ACTION ) @@ -3868,7 +3868,7 @@ void MetaFloatTransparentAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadGradient( rIStm, maGradient ); } -// ======================================================================== + IMPL_META_ACTION( EPS, META_EPS_ACTION ) @@ -3949,7 +3949,7 @@ void MetaEPSAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadGDIMetaFile( rIStm, maSubst ); } -// ======================================================================== + IMPL_META_ACTION( RefPoint, META_REFPOINT_ACTION ) @@ -4006,7 +4006,7 @@ void MetaRefPointAction::Read( SvStream& rIStm, ImplMetaReadData* ) ReadPair( rIStm, maRefPoint ).ReadCharAsBool( mbSet ); } -// ======================================================================== + MetaCommentAction::MetaCommentAction( sal_Int32 nValue ) : MetaAction ( META_COMMENT_ACTION ), @@ -4240,7 +4240,7 @@ void MetaCommentAction::Read( SvStream& rIStm, ImplMetaReadData* ) mpData = NULL; } -// ======================================================================== + IMPL_META_ACTION( LayoutMode, META_LAYOUTMODE_ACTION ) @@ -4291,7 +4291,7 @@ void MetaLayoutModeAction::Read( SvStream& rIStm, ImplMetaReadData* ) rIStm.ReadUInt32( mnLayoutMode ); } -// ======================================================================== + IMPL_META_ACTION( TextLanguage, META_TEXTLANGUAGE_ACTION ) diff --git a/vcl/source/gdi/metric.cxx b/vcl/source/gdi/metric.cxx index 0ddf5ec69e1c..b1b0e8b568ac 100644 --- a/vcl/source/gdi/metric.cxx +++ b/vcl/source/gdi/metric.cxx @@ -26,7 +26,7 @@ #include <cstdio> -// ======================================================================= + ImplFontMetric::ImplFontMetric() : mnAscent( 0 ), @@ -39,7 +39,7 @@ ImplFontMetric::ImplFontMetric() mnRefCount( 1 ) {} -// ----------------------------------------------------------------------- + inline void ImplFontMetric::AddReference() { @@ -47,7 +47,7 @@ inline void ImplFontMetric::AddReference() ++mnRefCount; } -// ----------------------------------------------------------------------- + inline void ImplFontMetric::DeReference() { @@ -56,7 +56,7 @@ inline void ImplFontMetric::DeReference() delete this; } -// ----------------------------------------------------------------------- + bool ImplFontMetric::operator==( const ImplFontMetric& r ) const { @@ -76,13 +76,13 @@ bool ImplFontMetric::operator==( const ImplFontMetric& r ) const return true; } -// ======================================================================= + FontInfo::FontInfo() : mpImplMetric( new ImplFontMetric ) {} -// ----------------------------------------------------------------------- + FontInfo::FontInfo( const FontInfo& rInfo ) : Font( rInfo ) @@ -91,14 +91,14 @@ FontInfo::FontInfo( const FontInfo& rInfo ) mpImplMetric->AddReference(); } -// ----------------------------------------------------------------------- + FontInfo::~FontInfo() { mpImplMetric->DeReference(); } -// ----------------------------------------------------------------------- + FontInfo& FontInfo::operator=( const FontInfo& rInfo ) { @@ -114,7 +114,7 @@ FontInfo& FontInfo::operator=( const FontInfo& rInfo ) return *this; } -// ----------------------------------------------------------------------- + bool FontInfo::operator==( const FontInfo& rInfo ) const { @@ -127,7 +127,7 @@ bool FontInfo::operator==( const FontInfo& rInfo ) const return false; } -// ----------------------------------------------------------------------- + FontType FontInfo::GetType() const { @@ -138,49 +138,49 @@ FontMetric::FontMetric( const FontMetric& rMetric ) : FontInfo( rMetric ) {} -// ----------------------------------------------------------------------- + long FontMetric::GetAscent() const { return mpImplMetric->GetAscent(); } -// ----------------------------------------------------------------------- + long FontMetric::GetDescent() const { return mpImplMetric->GetDescent(); } -// ----------------------------------------------------------------------- + long FontMetric::GetIntLeading() const { return mpImplMetric->GetIntLeading(); } -// ----------------------------------------------------------------------- + long FontMetric::GetExtLeading() const { return mpImplMetric->GetExtLeading(); } -// ----------------------------------------------------------------------- + long FontMetric::GetLineHeight() const { return mpImplMetric->GetLineHeight(); } -// ----------------------------------------------------------------------- + long FontMetric::GetSlant() const { return mpImplMetric->GetSlant(); } -// ----------------------------------------------------------------------- + FontMetric& FontMetric::operator =( const FontMetric& rMetric ) { @@ -188,13 +188,13 @@ FontMetric& FontMetric::operator =( const FontMetric& rMetric ) return *this; } -// ----------------------------------------------------------------------- + bool FontMetric::operator==( const FontMetric& rMetric ) const { return FontInfo::operator==( rMetric ); } -// ======================================================================= + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx index 439e385f5b94..ec309f9c90fd 100644 --- a/vcl/source/gdi/outdev.cxx +++ b/vcl/source/gdi/outdev.cxx @@ -1740,14 +1740,14 @@ void OutputDevice::ImpDrawPolyLineWithLineInfo(const Polygon& rPoly, const LineI Polygon aPoly = ImplLogicToDevicePixel( rPoly ); // #100127# LineInfo is not curve-safe, subdivide always - // + // What shall this mean? It's wrong to subdivide here when the // polygon is a fat line. In that case, the painted geometry // WILL be much different. // I also have no idea how this could be related to the given ID // which reads 'consolidate boost versions' in the task description. // Removing. - // + //if( aPoly.HasFlags() ) //{ // aPoly = ImplSubdivideBezier( aPoly ); diff --git a/vcl/source/gdi/outdev2.cxx b/vcl/source/gdi/outdev2.cxx index a5e2c57e6f0d..b3d074b454ed 100644 --- a/vcl/source/gdi/outdev2.cxx +++ b/vcl/source/gdi/outdev2.cxx @@ -1714,7 +1714,7 @@ inline BitmapColor lcl_AlphaBlend( int nX, int nY, const sal_uInt8 nDstAlpha = 255 - pAlphaW->GetPixelIndex( nY, nX ); // Perform porter-duff compositing 'over' operation - // + // Co = Cs + Cd*(1-As) // Ad = As + Ad*(1-As) nResAlpha = (int)nSrcAlpha + (int)nDstAlpha - (int)nDstAlpha*nSrcAlpha/255; @@ -2270,14 +2270,14 @@ void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask //Region aWorkRgn( aMask.CreateRegion( COL_BLACK, Rectangle( Point(), aMask.GetSizePixel() ) ) ); //ImplRegionInfo aInfo; //sal_Bool bRgnRect = aWorkRgn.ImplGetFirstRect( aInfo, nWorkX, nWorkY, nWorkWidth, nWorkHeight ); - // + //while( bRgnRect ) //{ // Bitmap aBandBmp( aPaint ); // const Rectangle aBandRect( Point( nWorkX, nWorkY ), Size( nWorkWidth, nWorkHeight ) ); // const Point aMapPt( pMapX[ nWorkX ], pMapY[ nWorkY ] ); // const Size aMapSz( pMapX[ nWorkX + nWorkWidth ] - aMapPt.X(), pMapY[ nWorkY + nWorkHeight ] - aMapPt.Y() ); - // + // aBandBmp.Crop( aBandRect ); // ImplDrawBitmap( aMapPt, aMapSz, Point(), aBandBmp.GetSizePixel(), aBandBmp, META_BMPSCALEPART_ACTION ); // bRgnRect = aWorkRgn.ImplGetNextRect( aInfo, nWorkX, nWorkY, nWorkWidth, nWorkHeight ); @@ -2374,12 +2374,12 @@ void OutputDevice::ImplPrintMask( const Bitmap& rMask, const Color& rMaskColor, //Region aWorkRgn( aMask.CreateRegion( COL_BLACK, Rectangle( Point(), aMask.GetSizePixel() ) ) ); //ImplRegionInfo aInfo; //sal_Bool bRgnRect = aWorkRgn.ImplGetFirstRect( aInfo, nWorkX, nWorkY, nWorkWidth, nWorkHeight ); - // + //while( bRgnRect ) //{ // const Point aMapPt( pMapX[ nWorkX ], pMapY[ nWorkY ] ); // const Size aMapSz( pMapX[ nWorkX + nWorkWidth ] - aMapPt.X(), pMapY[ nWorkY + nWorkHeight ] - aMapPt.Y() ); - // + // DrawRect( Rectangle( aMapPt, aMapSz ) ); // bRgnRect = aWorkRgn.ImplGetNextRect( aInfo, nWorkX, nWorkY, nWorkWidth, nWorkHeight ); //} diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx index 833caaa1bb00..de7261033153 100644 --- a/vcl/source/gdi/outdev3.cxx +++ b/vcl/source/gdi/outdev3.cxx @@ -4732,10 +4732,10 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo, { // Whether hyphen or not: Put the word after the hyphen through // word boundary. - // + // nMaxBreakPos the last char that fits into the line // nBreakPos is the word's start - // + // We run into a problem if the doc is so narrow, that a word // is broken into more than two lines ... if ( xHyph.is() ) @@ -4774,10 +4774,10 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo, // We can have two cases: // 1) "packen" turns into "pak-ken" // 2) "Schiffahrt" turns into "Schiff-fahrt" - // + // In case 1 we need to replace a char // In case 2 we add a char - // + // Correct recognition is made harder by words such as // "Schiffahrtsbrennesseln", as the Hyphenator splits all // positions of the word and comes up with "Schifffahrtsbrennnesseln" diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx index c9a3e6369dda..2422dc27ef77 100644 --- a/vcl/source/gdi/outdev4.cxx +++ b/vcl/source/gdi/outdev4.cxx @@ -362,7 +362,7 @@ void OutputDevice::ImplDrawComplexGradient( const Rectangle& rRect, // Also for printers always use PolyPolygon, as not all printers // can print polygons on top of each other. // Also virtual devices are excluded, as some drivers are too slow. - // + PolyPolygon* pPolyPoly; Rectangle aRect; Point aCenter; diff --git a/vcl/source/gdi/outdev5.cxx b/vcl/source/gdi/outdev5.cxx index 830a1ee3748e..5e6fa7f8fa3b 100644 --- a/vcl/source/gdi/outdev5.cxx +++ b/vcl/source/gdi/outdev5.cxx @@ -31,10 +31,10 @@ #include <outdata.hxx> #include <outdev.h> -// ======================================================================= -// ======================================================================= + + void OutputDevice::DrawRect( const Rectangle& rRect, sal_uLong nHorzRound, sal_uLong nVertRound ) diff --git a/vcl/source/gdi/outmap.cxx b/vcl/source/gdi/outmap.cxx index ba9fd16d9c06..57146b4ed212 100644 --- a/vcl/source/gdi/outmap.cxx +++ b/vcl/source/gdi/outmap.cxx @@ -42,10 +42,10 @@ #include <basegfx/polygon/b2dpolygon.hxx> #include <basegfx/polygon/b2dpolypolygon.hxx> -// ======================================================================= -// ======================================================================= + + static int const s_ImplArySize = MAP_PIXEL+1; static const long aImplNumeratorAry[s_ImplArySize] = @@ -53,7 +53,7 @@ static const long aImplNumeratorAry[s_ImplArySize] = static const long aImplDenominatorAry[s_ImplArySize] = { 2540, 254, 127, 127, 1000, 100, 10, 1, 72, 1440, 1 }; -// ----------------------------------------------------------------------- + /* Reduces accuracy until it is a fraction (should become @@ -97,7 +97,7 @@ static Fraction ImplMakeFraction( long nN1, long nN2, long nD1, long nD2 ) return aF; } -// ----------------------------------------------------------------------- + // Fraction.GetNumerator() // Fraction.GetDenominator() > 0 @@ -165,7 +165,7 @@ static void ImplCalcBigIntThreshold( long nDPIX, long nDPIY, rThresRes.mnThresPixToLogY /= 2; } -// ----------------------------------------------------------------------- + static void ImplCalcMapResolution( const MapMode& rMapMode, long nDPIX, long nDPIY, ImplMapRes& rMapRes ) @@ -348,7 +348,7 @@ static void ImplCalcMapResolution( const MapMode& rMapMode, } } -// ----------------------------------------------------------------------- + inline void ImplCalcMapResolution( const MapMode& rMapMode, long nDPIX, long nDPIY, @@ -359,7 +359,7 @@ inline void ImplCalcMapResolution( const MapMode& rMapMode, ImplCalcBigIntThreshold( nDPIX, nDPIY, rMapRes, rThresRes ); } -// ----------------------------------------------------------------------- + static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom, long nThres ) @@ -395,7 +395,7 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom, return n; } -// ----------------------------------------------------------------------- + static long ImplPixelToLogic( long n, long nDPI, long nMapNum, long nMapDenom, long nThres ) @@ -417,7 +417,7 @@ static long ImplPixelToLogic( long n, long nDPI, long nMapNum, long nMapDenom, return (n / 2); } -// ----------------------------------------------------------------------- + long OutputDevice::ImplLogicXToDevicePixel( long nX ) const { @@ -429,7 +429,7 @@ long OutputDevice::ImplLogicXToDevicePixel( long nX ) const maThresRes.mnThresLogToPixX )+mnOutOffX+mnOutOffOrigX; } -// ----------------------------------------------------------------------- + long OutputDevice::ImplLogicYToDevicePixel( long nY ) const { @@ -441,7 +441,7 @@ long OutputDevice::ImplLogicYToDevicePixel( long nY ) const maThresRes.mnThresLogToPixY )+mnOutOffY+mnOutOffOrigY; } -// ----------------------------------------------------------------------- + long OutputDevice::ImplLogicWidthToDevicePixel( long nWidth ) const { @@ -453,7 +453,7 @@ long OutputDevice::ImplLogicWidthToDevicePixel( long nWidth ) const maThresRes.mnThresLogToPixX ); } -// ----------------------------------------------------------------------- + long OutputDevice::ImplLogicHeightToDevicePixel( long nHeight ) const { @@ -473,7 +473,7 @@ float OutputDevice::ImplFloatLogicHeightToDevicePixel( float fLogicHeight) const return fPixelHeight; } -// ----------------------------------------------------------------------- + long OutputDevice::ImplDevicePixelToLogicWidth( long nWidth ) const { @@ -485,7 +485,7 @@ long OutputDevice::ImplDevicePixelToLogicWidth( long nWidth ) const maThresRes.mnThresPixToLogX ); } -// ----------------------------------------------------------------------- + long OutputDevice::ImplDevicePixelToLogicHeight( long nHeight ) const { @@ -497,7 +497,7 @@ long OutputDevice::ImplDevicePixelToLogicHeight( long nHeight ) const maThresRes.mnThresPixToLogY ); } -// ----------------------------------------------------------------------- + Point OutputDevice::ImplLogicToDevicePixel( const Point& rLogicPt ) const { @@ -512,7 +512,7 @@ Point OutputDevice::ImplLogicToDevicePixel( const Point& rLogicPt ) const maThresRes.mnThresLogToPixY )+mnOutOffY+mnOutOffOrigY ); } -// ----------------------------------------------------------------------- + Size OutputDevice::ImplLogicToDevicePixel( const Size& rLogicSize ) const { @@ -527,7 +527,7 @@ Size OutputDevice::ImplLogicToDevicePixel( const Size& rLogicSize ) const maThresRes.mnThresLogToPixY ) ); } -// ----------------------------------------------------------------------- + Rectangle OutputDevice::ImplLogicToDevicePixel( const Rectangle& rLogicRect ) const { @@ -554,7 +554,7 @@ Rectangle OutputDevice::ImplLogicToDevicePixel( const Rectangle& rLogicRect ) co maThresRes.mnThresLogToPixY )+mnOutOffY+mnOutOffOrigY ); } -// ----------------------------------------------------------------------- + Polygon OutputDevice::ImplLogicToDevicePixel( const Polygon& rLogicPoly ) const { @@ -597,7 +597,7 @@ Polygon OutputDevice::ImplLogicToDevicePixel( const Polygon& rLogicPoly ) const return aPoly; } -// ----------------------------------------------------------------------- + PolyPolygon OutputDevice::ImplLogicToDevicePixel( const PolyPolygon& rLogicPolyPoly ) const { @@ -614,7 +614,7 @@ PolyPolygon OutputDevice::ImplLogicToDevicePixel( const PolyPolygon& rLogicPolyP return aPolyPoly; } -// ----------------------------------------------------------------------- + LineInfo OutputDevice::ImplLogicToDevicePixel( const LineInfo& rLineInfo ) const { @@ -643,7 +643,7 @@ LineInfo OutputDevice::ImplLogicToDevicePixel( const LineInfo& rLineInfo ) const return aInfo; } -// ----------------------------------------------------------------------- + Rectangle OutputDevice::ImplDevicePixelToLogic( const Rectangle& rPixelRect ) const { @@ -670,7 +670,7 @@ Rectangle OutputDevice::ImplDevicePixelToLogic( const Rectangle& rPixelRect ) co maThresRes.mnThresPixToLogY )-maMapRes.mnMapOfsY ); } -// ----------------------------------------------------------------------- + Region OutputDevice::ImplPixelToDevicePixel( const Region& rRegion ) const { @@ -682,7 +682,7 @@ Region OutputDevice::ImplPixelToDevicePixel( const Region& rRegion ) const return aRegion; } -// ----------------------------------------------------------------------- + void OutputDevice::EnableMapMode( bool bEnable ) { @@ -692,7 +692,7 @@ void OutputDevice::EnableMapMode( bool bEnable ) mpAlphaVDev->EnableMapMode( bEnable ); } -// ----------------------------------------------------------------------- + void OutputDevice::SetMapMode() { @@ -726,7 +726,7 @@ void OutputDevice::SetMapMode() mpAlphaVDev->SetMapMode(); } -// ----------------------------------------------------------------------- + void OutputDevice::SetMapMode( const MapMode& rNewMapMode ) { @@ -826,7 +826,7 @@ void OutputDevice::SetMapMode( const MapMode& rNewMapMode ) ImplInvalidateViewTransform(); } -// ----------------------------------------------------------------------- + void OutputDevice::SetRelativeMapMode( const MapMode& rNewMapMode ) { @@ -899,7 +899,7 @@ void OutputDevice::SetRelativeMapMode( const MapMode& rNewMapMode ) mpAlphaVDev->SetRelativeMapMode( rNewMapMode ); } -// ----------------------------------------------------------------------- + // #i75163# basegfx::B2DHomMatrix OutputDevice::GetViewTransformation() const @@ -935,7 +935,7 @@ basegfx::B2DHomMatrix OutputDevice::GetViewTransformation() const } } -// ----------------------------------------------------------------------- + // #i75163# basegfx::B2DHomMatrix OutputDevice::GetInverseViewTransformation() const @@ -963,7 +963,7 @@ basegfx::B2DHomMatrix OutputDevice::GetInverseViewTransformation() const } } -// ----------------------------------------------------------------------- + // #i75163# basegfx::B2DHomMatrix OutputDevice::GetViewTransformation( const MapMode& rMapMode ) const @@ -988,7 +988,7 @@ basegfx::B2DHomMatrix OutputDevice::GetViewTransformation( const MapMode& rMapMo return aTransform; } -// ----------------------------------------------------------------------- + // #i75163# basegfx::B2DHomMatrix OutputDevice::GetInverseViewTransformation( const MapMode& rMapMode ) const @@ -998,7 +998,7 @@ basegfx::B2DHomMatrix OutputDevice::GetInverseViewTransformation( const MapMode& return aMatrix; } -// ----------------------------------------------------------------------- + basegfx::B2DHomMatrix OutputDevice::ImplGetDeviceTransformation() const { @@ -1009,7 +1009,7 @@ basegfx::B2DHomMatrix OutputDevice::ImplGetDeviceTransformation() const return aTransformation; } -// ----------------------------------------------------------------------- + Point OutputDevice::LogicToPixel( const Point& rLogicPt ) const { @@ -1025,7 +1025,7 @@ Point OutputDevice::LogicToPixel( const Point& rLogicPt ) const maThresRes.mnThresLogToPixY )+mnOutOffOrigY ); } -// ----------------------------------------------------------------------- + Size OutputDevice::LogicToPixel( const Size& rLogicSize ) const { @@ -1041,7 +1041,7 @@ Size OutputDevice::LogicToPixel( const Size& rLogicSize ) const maThresRes.mnThresLogToPixY ) ); } -// ----------------------------------------------------------------------- + Rectangle OutputDevice::LogicToPixel( const Rectangle& rLogicRect ) const { @@ -1063,7 +1063,7 @@ Rectangle OutputDevice::LogicToPixel( const Rectangle& rLogicRect ) const maThresRes.mnThresLogToPixY )+mnOutOffOrigY ); } -// ----------------------------------------------------------------------- + Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly ) const { @@ -1094,7 +1094,7 @@ Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly ) const return aPoly; } -// ----------------------------------------------------------------------- + PolyPolygon OutputDevice::LogicToPixel( const PolyPolygon& rLogicPolyPoly ) const { @@ -1112,7 +1112,7 @@ PolyPolygon OutputDevice::LogicToPixel( const PolyPolygon& rLogicPolyPoly ) cons return aPolyPoly; } -// ----------------------------------------------------------------------- + basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogicPoly ) const { @@ -1122,7 +1122,7 @@ basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogi return aTransformedPoly; } -// ----------------------------------------------------------------------- + basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygon& rLogicPolyPoly ) const { @@ -1132,7 +1132,7 @@ basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygo return aTransformedPoly; } -// ----------------------------------------------------------------------- + Region OutputDevice::LogicToPixel( const Region& rLogicRegion ) const { @@ -1168,7 +1168,7 @@ Region OutputDevice::LogicToPixel( const Region& rLogicRegion ) const return aRegion; } -// ----------------------------------------------------------------------- + Point OutputDevice::LogicToPixel( const Point& rLogicPt, const MapMode& rMapMode ) const @@ -1190,7 +1190,7 @@ Point OutputDevice::LogicToPixel( const Point& rLogicPt, aThresRes.mnThresLogToPixY )+mnOutOffOrigY ); } -// ----------------------------------------------------------------------- + Size OutputDevice::LogicToPixel( const Size& rLogicSize, const MapMode& rMapMode ) const @@ -1212,7 +1212,7 @@ Size OutputDevice::LogicToPixel( const Size& rLogicSize, aThresRes.mnThresLogToPixY ) ); } -// ----------------------------------------------------------------------- + Rectangle OutputDevice::LogicToPixel( const Rectangle& rLogicRect, const MapMode& rMapMode ) const @@ -1240,7 +1240,7 @@ Rectangle OutputDevice::LogicToPixel( const Rectangle& rLogicRect, aThresRes.mnThresLogToPixY )+mnOutOffOrigY ); } -// ----------------------------------------------------------------------- + Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly, const MapMode& rMapMode ) const @@ -1277,7 +1277,7 @@ Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly, return aPoly; } -// ----------------------------------------------------------------------- + PolyPolygon OutputDevice::LogicToPixel( const PolyPolygon& rLogicPolyPoly, const MapMode& rMapMode ) const @@ -1296,7 +1296,7 @@ PolyPolygon OutputDevice::LogicToPixel( const PolyPolygon& rLogicPolyPoly, return aPolyPoly; } -// ----------------------------------------------------------------------- + basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygon& rLogicPolyPoly, const MapMode& rMapMode ) const @@ -1307,7 +1307,7 @@ basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygo return aTransformedPoly; } -// ----------------------------------------------------------------------- + basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogicPoly, const MapMode& rMapMode ) const @@ -1318,7 +1318,7 @@ basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogi return aTransformedPoly; } -// ----------------------------------------------------------------------- + Region OutputDevice::LogicToPixel( const Region& rLogicRegion, const MapMode& rMapMode ) const { @@ -1354,7 +1354,7 @@ Region OutputDevice::LogicToPixel( const Region& rLogicRegion, const MapMode& rM return aRegion; } -// ----------------------------------------------------------------------- + Point OutputDevice::PixelToLogic( const Point& rDevicePt ) const { @@ -1370,7 +1370,7 @@ Point OutputDevice::PixelToLogic( const Point& rDevicePt ) const maThresRes.mnThresPixToLogY ) - maMapRes.mnMapOfsY - mnOutOffLogicY ); } -// ----------------------------------------------------------------------- + Size OutputDevice::PixelToLogic( const Size& rDeviceSize ) const { @@ -1386,7 +1386,7 @@ Size OutputDevice::PixelToLogic( const Size& rDeviceSize ) const maThresRes.mnThresPixToLogY ) ); } -// ----------------------------------------------------------------------- + Rectangle OutputDevice::PixelToLogic( const Rectangle& rDeviceRect ) const { @@ -1408,7 +1408,7 @@ Rectangle OutputDevice::PixelToLogic( const Rectangle& rDeviceRect ) const maThresRes.mnThresPixToLogY ) - maMapRes.mnMapOfsY - mnOutOffLogicY ); } -// ----------------------------------------------------------------------- + Polygon OutputDevice::PixelToLogic( const Polygon& rDevicePoly ) const { @@ -1439,7 +1439,7 @@ Polygon OutputDevice::PixelToLogic( const Polygon& rDevicePoly ) const return aPoly; } -// ----------------------------------------------------------------------- + PolyPolygon OutputDevice::PixelToLogic( const PolyPolygon& rDevicePolyPoly ) const { @@ -1465,7 +1465,7 @@ basegfx::B2DPolyPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolyPolygo return aTransformedPoly; } -// ----------------------------------------------------------------------- + Region OutputDevice::PixelToLogic( const Region& rDeviceRegion ) const { @@ -1501,7 +1501,7 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion ) const return aRegion; } -// ----------------------------------------------------------------------- + Point OutputDevice::PixelToLogic( const Point& rDevicePt, const MapMode& rMapMode ) const @@ -1524,7 +1524,7 @@ Point OutputDevice::PixelToLogic( const Point& rDevicePt, aThresRes.mnThresPixToLogY ) - aMapRes.mnMapOfsY - mnOutOffLogicY ); } -// ----------------------------------------------------------------------- + Size OutputDevice::PixelToLogic( const Size& rDeviceSize, const MapMode& rMapMode ) const @@ -1547,7 +1547,7 @@ Size OutputDevice::PixelToLogic( const Size& rDeviceSize, aThresRes.mnThresPixToLogY ) ); } -// ----------------------------------------------------------------------- + Rectangle OutputDevice::PixelToLogic( const Rectangle& rDeviceRect, const MapMode& rMapMode ) const @@ -1576,7 +1576,7 @@ Rectangle OutputDevice::PixelToLogic( const Rectangle& rDeviceRect, aThresRes.mnThresPixToLogY ) - aMapRes.mnMapOfsY - mnOutOffLogicY ); } -// ----------------------------------------------------------------------- + Polygon OutputDevice::PixelToLogic( const Polygon& rDevicePoly, const MapMode& rMapMode ) const @@ -1614,7 +1614,7 @@ Polygon OutputDevice::PixelToLogic( const Polygon& rDevicePoly, return aPoly; } -// ----------------------------------------------------------------------- + PolyPolygon OutputDevice::PixelToLogic( const PolyPolygon& rDevicePolyPoly, const MapMode& rMapMode ) const @@ -1633,7 +1633,7 @@ PolyPolygon OutputDevice::PixelToLogic( const PolyPolygon& rDevicePolyPoly, return aPolyPoly; } -// ----------------------------------------------------------------------- + basegfx::B2DPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolygon& rPixelPoly, const MapMode& rMapMode ) const @@ -1644,7 +1644,7 @@ basegfx::B2DPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolygon& rPixe return aTransformedPoly; } -// ----------------------------------------------------------------------- + basegfx::B2DPolyPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolyPolygon& rPixelPolyPoly, const MapMode& rMapMode ) const @@ -1655,7 +1655,7 @@ basegfx::B2DPolyPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolyPolygo return aTransformedPoly; } -// ----------------------------------------------------------------------- + Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& rMapMode ) const { @@ -1691,7 +1691,7 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& r return aRegion; } -// ----------------------------------------------------------------------- + #define ENTER0( rSource, pMapModeSource, pMapModeDest ) \ if ( !pMapModeSource ) \ @@ -1701,7 +1701,7 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& r if ( *pMapModeSource == *pMapModeDest ) \ return rSource -// ----------------------------------------------------------------------- + #define ENTER1( rSource, pMapModeSource, pMapModeDest ) \ ENTER0( rSource, pMapModeSource, pMapModeDest ); \ @@ -1734,7 +1734,7 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& r else \ aMapResDest = maMapRes -// ----------------------------------------------------------------------- + #define ENTER2( eUnitSource, eUnitDest ) \ DBG_ASSERT( eUnitSource != MAP_SYSFONT \ @@ -1750,7 +1750,7 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& r DBG_ASSERTWARNING( eUnitDest != MAP_PIXEL, \ "MAP_PIXEL mit 72dpi angenaehert" ) -// ----------------------------------------------------------------------- + #define ENTER3( eUnitSource, eUnitDest ) \ long nNumerator = 1; \ @@ -1769,7 +1769,7 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& r else if( eUnitDest == MAP_PIXEL ) \ nNumerator *= 72 -// ----------------------------------------------------------------------- + #define ENTER4( rMapModeSource, rMapModeDest ) \ ImplMapRes aMapResSource; \ @@ -1784,7 +1784,7 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& r ImplCalcMapResolution( rMapModeSource, 72, 72, aMapResSource ); \ ImplCalcMapResolution( rMapModeDest, 72, 72, aMapResDest ) -// ----------------------------------------------------------------------- + // return (n1 * n2 * n3) / (n4 * n5) static long fn5( const long n1, @@ -1904,7 +1904,7 @@ static long fn5( const long n1, } // of else } -// ----------------------------------------------------------------------- + // return (n1 * n2) / n3 static long fn3( const long n1, const long n2, const long n3 ) @@ -1941,7 +1941,7 @@ static long fn3( const long n1, const long n2, const long n3 ) } // of else } -// ----------------------------------------------------------------------- + Point OutputDevice::LogicToLogic( const Point& rPtSource, const MapMode* pMapModeSource, @@ -1959,7 +1959,7 @@ Point OutputDevice::LogicToLogic( const Point& rPtSource, aMapResDest.mnMapOfsY ); } -// ----------------------------------------------------------------------- + Size OutputDevice::LogicToLogic( const Size& rSzSource, const MapMode* pMapModeSource, @@ -1975,7 +1975,7 @@ Size OutputDevice::LogicToLogic( const Size& rSzSource, aMapResSource.mnMapScDenomY, aMapResDest.mnMapScNumY ) ); } -// ----------------------------------------------------------------------- + Rectangle OutputDevice::LogicToLogic( const Rectangle& rRectSource, const MapMode* pMapModeSource, @@ -2001,7 +2001,7 @@ Rectangle OutputDevice::LogicToLogic( const Rectangle& rRectSource, aMapResDest.mnMapOfsY ); } -// ----------------------------------------------------------------------- + Point OutputDevice::LogicToLogic( const Point& rPtSource, const MapMode& rMapModeSource, @@ -2037,7 +2037,7 @@ Point OutputDevice::LogicToLogic( const Point& rPtSource, } } -// ----------------------------------------------------------------------- + Size OutputDevice::LogicToLogic( const Size& rSzSource, const MapMode& rMapModeSource, @@ -2071,7 +2071,7 @@ Size OutputDevice::LogicToLogic( const Size& rSzSource, } } -// ----------------------------------------------------------------------- + basegfx::B2DPolygon OutputDevice::LogicToLogic( const basegfx::B2DPolygon& rPolySource, const MapMode& rMapModeSource, @@ -2089,7 +2089,7 @@ basegfx::B2DPolygon OutputDevice::LogicToLogic( const basegfx::B2DPolygon& rPoly return aPoly; } -// ----------------------------------------------------------------------- + basegfx::B2DPolyPolygon OutputDevice::LogicToLogic( const basegfx::B2DPolyPolygon& rPolySource, const MapMode& rMapModeSource, @@ -2107,7 +2107,7 @@ basegfx::B2DPolyPolygon OutputDevice::LogicToLogic( const basegfx::B2DPolyPolygo return aPoly; } -// ----------------------------------------------------------------------- + basegfx::B2DHomMatrix OutputDevice::LogicToLogic(const MapMode& rMapModeSource, const MapMode& rMapModeDest) { @@ -2148,7 +2148,7 @@ basegfx::B2DHomMatrix OutputDevice::LogicToLogic(const MapMode& rMapModeSource, return aTransform; } -// ----------------------------------------------------------------------- + Rectangle OutputDevice::LogicToLogic( const Rectangle& rRectSource, const MapMode& rMapModeSource, @@ -2194,7 +2194,7 @@ Rectangle OutputDevice::LogicToLogic( const Rectangle& rRectSource, } } -// ----------------------------------------------------------------------- + long OutputDevice::LogicToLogic( long nLongSource, MapUnit eUnitSource, MapUnit eUnitDest ) @@ -2208,7 +2208,7 @@ long OutputDevice::LogicToLogic( long nLongSource, return fn3( nLongSource, nNumerator, nDenominator ); } -// ----------------------------------------------------------------------- + void OutputDevice::SetPixelOffset( const Size& rOffset ) { @@ -2226,14 +2226,14 @@ void OutputDevice::SetPixelOffset( const Size& rOffset ) mpAlphaVDev->SetPixelOffset( rOffset ); } -// ----------------------------------------------------------------------- + Size OutputDevice::GetPixelOffset() const { return Size(mnOutOffOrigX, mnOutOffOrigY); } -// ----------------------------------------------------------------------- + long Window::ImplLogicUnitToPixelX( long nX, MapUnit eUnit ) { @@ -2260,7 +2260,7 @@ long Window::ImplLogicUnitToPixelX( long nX, MapUnit eUnit ) return nX; } -// ----------------------------------------------------------------------- + long Window::ImplLogicUnitToPixelY( long nY, MapUnit eUnit ) { diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index ccf7771b99ee..36b5c69c0ebe 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -4401,10 +4401,10 @@ we check in the following sequence: considered the named destination in the target file, set relative or absolute as requested else strip the fragment from URL and then set URI or 'launch application' as requested */ -// + // FIXME: check if the decode mechanisms for URL processing throughout this implementation // are the correct one!! -// + // extract target file type INetURLObject aDocumentURL( m_aContext.BaseURL ); INetURLObject aTargetURL( rLink.m_aURL ); @@ -4503,7 +4503,7 @@ we check in the following sequence: // protocol then force the uri action on it // This code will permit the correct opening of application on web pages, // the one that normally have fragments (but I may be wrong...) - // and will force the use of URI when the protocol is not file:// + // and will force the use of URI when the protocol is not file: if( (!aFragment.isEmpty() && !bTargetHasPDFExtension) || eTargetProtocol != INET_PROT_FILE ) { diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx index 61329f0a98b2..d6eb73f59274 100644 --- a/vcl/source/gdi/pngread.cxx +++ b/vcl/source/gdi/pngread.cxx @@ -84,7 +84,7 @@ private: sal_uInt8* mpScanPrior; // pointer to the latest scanline sal_uInt8* mpTransTab; // for transparency in images with palette colortype sal_uInt8* mpScanCurrent; // pointer into the current scanline - sal_uInt8* mpColorTable; // + sal_uInt8* mpColorTable; sal_Size mnStreamSize; // estimate of PNG file size sal_uInt32 mnChunkType; // Type of current PNG chunk sal_Int32 mnChunkLen; // Length of current PNG chunk diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx index b6b8f23de2b8..098deabe588e 100644 --- a/vcl/source/gdi/print2.cxx +++ b/vcl/source/gdi/print2.cxx @@ -712,12 +712,12 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, // the number of metafile actions, and it finds all distinct // regions of rectangle-bounded connected components. This // algorithm was designed by AF. - // - // + + // STAGE 1: Detect background - // ========================== - // + + // Receives uniform background content, and is _not_ merged // nor checked for intersection against other aCCList elements @@ -860,10 +860,10 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, ++nActionNum; } - // + // STAGE 2: Generate connected components list - // =========================================== - // + + // iterate over all actions (start where background action // search left off) @@ -888,10 +888,10 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, bool bTreatSpecial( false ); ConnectedComponents aTotalComponents; - // + // STAGE 2.1: Search for intersecting cc entries - // ============================================= - // + + // if aBBCurrAct is empty, it will intersect with no // aCCList member. Thus, we can save the check. @@ -983,10 +983,10 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, while( bSomeComponentsChanged ); } - // + // STAGE 2.2: Determine special state for cc element - // ================================================= - // + + // now test whether the whole connected component must be // treated specially (i.e. rendered as a bitmap): if the @@ -1054,10 +1054,10 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, } - // + // STAGE 2.3: Add newly generated CC list element - // ============================================== - // + + // set new bounds and add action to list aTotalComponents.aBounds = aTotalBounds; @@ -1104,10 +1104,10 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, } } - // + // STAGE 3.1: Output background mtf actions (if there are any) - // =========================================================== - // + + ComponentList::iterator aCurrAct( aBackgroundComponent.aComponentList.begin() ); const ComponentList::iterator aLastAct( aBackgroundComponent.aComponentList.end() ); @@ -1119,10 +1119,10 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, } - // + // STAGE 3.2: Generate banded bitmaps for special regions - // ==================================================== - // + + Point aPageOffset; Size aTmpSize( GetOutputSizePixel() ); @@ -1296,10 +1296,10 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, while( nCount-- ) aMapModeVDev.Pop(); - // + // STAGE 4: Copy actions to output metafile - // ======================================== - // + + // iterate over all actions and duplicate the ones not in a // special aCCList member into rOutMtf diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx index a64e6fc3ddff..7ce25b7ccbda 100644 --- a/vcl/source/gdi/print3.cxx +++ b/vcl/source/gdi/print3.cxx @@ -907,7 +907,7 @@ PrinterController::PageSize vcl::ImplPrinterControllerData::modifyJobSetup( cons } //fdo#61886 -// + //when printing is finished, set the paper size of the printer to either what //the user explicitly set as the desired paper size, or fallback to whatever //the printer had before printing started. That way it doesn't contain the last diff --git a/vcl/source/gdi/regband.cxx b/vcl/source/gdi/regband.cxx index f7e0820f9c17..59d9c914799e 100644 --- a/vcl/source/gdi/regband.cxx +++ b/vcl/source/gdi/regband.cxx @@ -25,23 +25,23 @@ #include "regband.hxx" -// ======================================================================= -// + + // ImplRegionBand -// + // Each band contains all rectangles between upper and lower border. // For Union, Intersect, Xor and Exclude operations rectangles of // equal height are evaluated. The borders of the bands should always // be choosen such that this is possible. -// + // If possible, rectangles within the bands are condensed. -// + // When converting polygons all points of the polygon are registered // in the individual bands (for each band they are stored as // points in a list). After registration of these points they are // converted to rectangles and the points in the list are deleted. -// -// + + ImplRegionBand::ImplRegionBand( long nTop, long nBottom ) @@ -146,7 +146,7 @@ ImplRegionBand::~ImplRegionBand() } -// + // generate separations from lines and process union with existing // separations @@ -199,7 +199,7 @@ void ImplRegionBand::ProcessPoints() } -// + // generate separations from lines and process union with existing // separations @@ -339,7 +339,7 @@ void ImplRegionBand::ScaleX( double fHorzScale ) } -// + // combine overlaping sparations bool ImplRegionBand::OptimizeBand() @@ -591,50 +591,50 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight ) DBG_ASSERT( nXLeft <= nXRight, "ImplRegionBand::XOr(): nxLeft > nXRight" ); // #i46602# Reworked rectangle Xor - // + // In general, we can distinguish 11 cases of intersection // (details below). The old implementation explicitly handled 7 // cases (numbered in the order of appearance, use CVS to get your // hands on the old version), therefore, I've sticked to that // order, and added four more cases. The code below references // those numbers via #1, #2, etc. - // + // Num Mnem newX:oldX newY:oldY Description Result Can quit? - // + // #1 Empty band - - The band is empty, thus, simply add new bandSep just add Yes - // + // #2 apart - - The rectangles are disjunct, add new one as is just add Yes - // + // #3 atop == == The rectangles are _exactly_ the same, remove existing just remove Yes - // + // #4 around < > The new rectangle extends the old to both sides intersect No - // + // #5 left < < The new rectangle is left of the old (but intersects) intersect Yes - // + // #5b left-atop < == The new is left of the old, and coincides on the right intersect Yes - // + // #6 right > > The new is right of the old (but intersects) intersect No - // + // #6b right-atop == > The new is right of the old, and coincides on the left intersect No - // + // #7 inside > < The new is fully inside the old intersect Yes - // + // #8 inside-right > == The new is fully inside the old, coincides on the right intersect Yes - // + // #9 inside-left == < The new is fully inside the old, coincides on the left intersect Yes - // - // + + // Then, to correctly perform XOr, the segment that's switched off // (i.e. the overlapping part of the old and the new segment) must // be extended by one pixel value at each border: // 1 1 // 0 4 0 4 // 111100000001111 - // + // Clearly, the leading band sep now goes from 0 to 3, and the // trailing band sep from 11 to 14. This mimicks the xor look of a // bitmap operation. - // + // band empty? -> add element if ( !mpFirstSep ) @@ -737,7 +737,7 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight ) "ImplRegionBand::XOr(): Case 4,5,6,7 expected all coordinates to be not equal!" ); // The plain-jane check would look like this: - // + // if( nXLeft < nOldLeft ) // { // // #4,5 @@ -762,7 +762,7 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight ) // // #7 done! // } // } - // + // but since we generally don't have to care whether // it's 4 or 6 (only that we must not stop processing // here), condensed that in such a way that only the diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx index 8c536275a5ed..ff8314c61d57 100644 --- a/vcl/source/gdi/region.cxx +++ b/vcl/source/gdi/region.cxx @@ -32,10 +32,10 @@ #include <basegfx/range/b2drange.hxx> #include <basegfx/matrix/b2dhommatrixtools.hxx> -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// + + namespace { @@ -226,7 +226,7 @@ namespace } } // end of anonymous namespace -////////////////////////////////////////////////////////////////////////////// + bool Region::IsEmpty() const { diff --git a/vcl/source/gdi/regionband.cxx b/vcl/source/gdi/regionband.cxx index 13106ac7e1ac..b74a780cff67 100644 --- a/vcl/source/gdi/regionband.cxx +++ b/vcl/source/gdi/regionband.cxx @@ -21,10 +21,10 @@ #include <tools/debug.hxx> #include <regionband.hxx> -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// + + RegionBand::RegionBand() : mpFirstBand(0), diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx index 35f66b58924a..feb6e59ca390 100644 --- a/vcl/source/gdi/salgdilayout.cxx +++ b/vcl/source/gdi/salgdilayout.cxx @@ -45,9 +45,9 @@ #include "basegfx/polygon/b2dpolygon.hxx" -// ---------------------------------------------------------------------------- + // The only common SalFrame method -// ---------------------------------------------------------------------------- + SalFrameGeometry SalFrame::GetGeometry() { @@ -64,7 +64,7 @@ SalFrameGeometry SalFrame::GetGeometry() return maGeometry; } -// ---------------------------------------------------------------------------- + SalGraphics::SalGraphics() : m_nLayout( 0 ), @@ -79,7 +79,7 @@ SalGraphics::~SalGraphics() { } -// ---------------------------------------------------------------------------- + bool SalGraphics::drawTransformedBitmap( const basegfx::B2DPoint& /* rNull */, @@ -92,7 +92,7 @@ bool SalGraphics::drawTransformedBitmap( return false; } -// ---------------------------------------------------------------------------- + void SalGraphics::mirror( long& x, const OutputDevice *pOutDev, bool bBack ) const { @@ -270,7 +270,7 @@ void SalGraphics::mirror( Region& rRgn, const OutputDevice *pOutDev, bool bBack //bool bRegionRect; //Region aMirroredRegion; //long nX, nY, nWidth, nHeight; - // + //bRegionRect = rRgn.ImplGetFirstRect( aInfo, nX, nY, nWidth, nHeight ); //while ( bRegionRect ) //{ @@ -376,7 +376,7 @@ basegfx::B2DPolyPolygon SalGraphics::mirror( const basegfx::B2DPolyPolygon& i_rP return aRet; } -// ---------------------------------------------------------------------------- + bool SalGraphics::SetClipRegion( const Region& i_rClip, const OutputDevice *pOutDev ) { diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index c2bb8b7422b7..f22568e87479 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -70,7 +70,7 @@ FILE * mslLog() #endif } #endif -// ======================================================================= + std::ostream &operator <<(std::ostream& s, ImplLayoutArgs &rArgs) { @@ -185,7 +185,7 @@ bool IsDiacritic( sal_UCS4 nChar ) return false; } -// ======================================================================= + int GetVerticalFlags( sal_UCS4 nChar ) { @@ -347,7 +347,7 @@ inline bool IsControlChar( sal_UCS4 cChar ) return false; } -// ======================================================================= + bool ImplLayoutRuns::AddPos( int nCharPos, bool bRTL ) { @@ -510,7 +510,7 @@ bool ImplLayoutRuns::GetRun( int* nMinRunPos, int* nEndRunPos, bool* bRightToLef return true; } -// ======================================================================= + ImplLayoutArgs::ImplLayoutArgs( const sal_Unicode* pStr, int nLen, int nMinCharPos, int nEndCharPos, int nFlags, const LanguageTag& rLanguageTag ) @@ -674,7 +674,7 @@ bool ImplLayoutArgs::GetNextRun( int* nMinRunPos, int* nEndRunPos, bool* bRTL ) return bValid; } -// ======================================================================= + SalLayout::SalLayout() : mnMinCharPos( -1 ), @@ -872,7 +872,7 @@ bool SalLayout::IsSpacingGlyph( sal_GlyphId nGlyph ) const return bRet; } -// ======================================================================= + GenericSalLayout::GenericSalLayout() {} @@ -1024,7 +1024,7 @@ void GenericSalLayout::AdjustLayout( ImplLayoutArgs& rArgs ) // to get an array that maps input characters (not glyphs) to their absolute // position, GetTextArray() in turn calls SalLayout::FillDXArray() to get an // array of character widths that it converts to absolute positions. -// + // Writer would then apply justification adjustments to that array of absolute // character positions and return to OutputDevice, which eventually calls // ApplyDXArray(), which needs to extract the individual adjustments for each @@ -1034,7 +1034,7 @@ void GenericSalLayout::AdjustLayout( ImplLayoutArgs& rArgs ) // text layout bugs, and instead of fixing the broken design a hack after hack // have been applied on top of it, making it a complete mess that nobody // understands. -// + // As you can see by now, this is utterly stupid, why Writer does not just send // us directly the advance width transformations it wants to apply to each // character instead of this whole mess? @@ -1557,7 +1557,7 @@ void GenericSalLayout::SortGlyphItems() } } -// ======================================================================= + MultiSalLayout::MultiSalLayout( SalLayout& rBaseLayout, const PhysicalFontFace* pBaseFont ) : SalLayout() diff --git a/vcl/source/gdi/svgdata.cxx b/vcl/source/gdi/svgdata.cxx index 5786480c0296..fa3ebdf1e1d5 100644 --- a/vcl/source/gdi/svgdata.cxx +++ b/vcl/source/gdi/svgdata.cxx @@ -29,11 +29,11 @@ #include <vcl/svapp.hxx> #include <vcl/outdev.hxx> -////////////////////////////////////////////////////////////////////////////// + using namespace ::com::sun::star; -////////////////////////////////////////////////////////////////////////////// + BitmapEx VCL_DLLPUBLIC convertPrimitive2DSequenceToBitmapEx( const Primitive2DSequence& rSequence, @@ -91,7 +91,7 @@ BitmapEx VCL_DLLPUBLIC convertPrimitive2DSequenceToBitmapEx( return aRetval; } -////////////////////////////////////////////////////////////////////////////// + void SvgData::ensureReplacement() { @@ -103,7 +103,7 @@ void SvgData::ensureReplacement() } } -////////////////////////////////////////////////////////////////////////////// + void SvgData::ensureSequenceAndRange() { @@ -160,7 +160,7 @@ void SvgData::ensureSequenceAndRange() } } -////////////////////////////////////////////////////////////////////////////// + SvgData::SvgData(const SvgDataArray& rSvgDataArray, sal_uInt32 nSvgDataArrayLength, const OUString& rPath) : maSvgDataArray(rSvgDataArray), @@ -172,7 +172,7 @@ SvgData::SvgData(const SvgDataArray& rSvgDataArray, sal_uInt32 nSvgDataArrayLeng { } -////////////////////////////////////////////////////////////////////////////// + SvgData::SvgData(const OUString& rPath): maSvgDataArray(), mnSvgDataArrayLength(0), @@ -200,7 +200,7 @@ SvgData::SvgData(const OUString& rPath): } } -////////////////////////////////////////////////////////////////////////////// + const basegfx::B2DRange& SvgData::getRange() const { @@ -209,7 +209,7 @@ const basegfx::B2DRange& SvgData::getRange() const return maRange; } -////////////////////////////////////////////////////////////////////////////// + const Primitive2DSequence& SvgData::getPrimitive2DSequence() const { @@ -218,7 +218,7 @@ const Primitive2DSequence& SvgData::getPrimitive2DSequence() const return maSequence; } -////////////////////////////////////////////////////////////////////////////// + const BitmapEx& SvgData::getReplacement() const { diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx index 2d774a58b7f9..e0b497311f21 100644 --- a/vcl/source/gdi/virdev.cxx +++ b/vcl/source/gdi/virdev.cxx @@ -34,7 +34,7 @@ using namespace ::com::sun::star::uno; -// ======================================================================= + void VirtualDevice::ImplInitVirDev( const OutputDevice* pOutDev, long nDX, long nDY, sal_uInt16 nBitCount, const SystemGraphicsData *pData ) diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx index b4616e96668f..b453696c99d7 100644 --- a/vcl/source/glyphs/graphite_layout.cxx +++ b/vcl/source/glyphs/graphite_layout.cxx @@ -30,7 +30,7 @@ // #define GRLAYOUT_DEBUG 1 // Header files -// + // Standard Library #include <algorithm> #include <cassert> @@ -60,9 +60,9 @@ #include <graphite_features.hxx> // Module private type definitions and forward declarations. -// + // Module private names. -// + #ifdef GRLAYOUT_DEBUG static FILE * grLog() @@ -488,9 +488,9 @@ GraphiteLayout::append(gr_segment *pSeg, ImplLayoutArgs &rArgs, return cOrigin; } -// + // An implementation of the SalLayout interface to enable Graphite enabled fonts to be used. -// + GraphiteLayout::GraphiteLayout(const gr_face * face, gr_font * font, const grutils::GrFeatureParser * pFeatures) throw() : mpFace(face) diff --git a/vcl/source/src/images.src b/vcl/source/src/images.src index 41170f88a7c2..bda7498be9a5 100644 --- a/vcl/source/src/images.src +++ b/vcl/source/src/images.src @@ -19,7 +19,7 @@ #include <svids.hrc> -// ======================================================================= + Bitmap (SV_RESID_BITMAP_CHECK + SV_RESID_STDOFFSET) { @@ -42,7 +42,7 @@ Bitmap (SV_RESID_BITMAP_SCROLLMSK) File = "scrmsk.png"; }; -// ----------------------------------------------------------------------- + Bitmap (SV_RESID_BITMAP_RADIO + SV_RESID_STDOFFSET) { @@ -294,7 +294,7 @@ Bitmap (SV_ICON_SIZE16_START + SV_ICON_ID_PRINTERADMIN) File = "printeradmin_16_8.png" ; }; -// ----------------------------------------------------------------------- + Bitmap (SV_ICON_LARGE_START) diff --git a/vcl/source/window/accel.cxx b/vcl/source/window/accel.cxx index 61b5763f6646..c4aad9c36148 100644 --- a/vcl/source/window/accel.cxx +++ b/vcl/source/window/accel.cxx @@ -27,14 +27,14 @@ #include <map> #include <vector> -// ======================================================================= + typedef ::std::map< sal_uLong, ImplAccelEntry* > ImplAccelMap; typedef ::std::vector< ImplAccelEntry* > ImplAccelList; #define ACCELENTRY_NOTFOUND ((sal_uInt16)0xFFFF) -// ======================================================================= + class ImplAccelData { @@ -43,10 +43,10 @@ public: ImplAccelList maIdList; // Id-List }; -// ======================================================================= -// ======================================================================= + + sal_uInt16 ImplAccelEntryGetIndex( ImplAccelList* pList, sal_uInt16 nId, sal_uInt16* pIndex = NULL ) @@ -155,7 +155,7 @@ static sal_uInt16 ImplAccelEntryGetFirstPos( ImplAccelList* pList, sal_uInt16 nI return nIndex; } -// ======================================================================= + void Accelerator::ImplInit() { diff --git a/vcl/source/window/accmgr.cxx b/vcl/source/window/accmgr.cxx index 66ce04be9c19..617fbf3c0caa 100644 --- a/vcl/source/window/accmgr.cxx +++ b/vcl/source/window/accmgr.cxx @@ -24,10 +24,10 @@ #include <vcl/accel.hxx> #include <accmgr.hxx> -// ======================================================================= -// ======================================================================= + + ImplAccelManager::~ImplAccelManager() { diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx index 27eafacfaac5..9f7e85bef537 100644 --- a/vcl/source/window/brdwin.cxx +++ b/vcl/source/window/brdwin.cxx @@ -41,7 +41,7 @@ using namespace ::com::sun::star::uno; // useful caption height for title bar buttons #define MIN_CAPTION_HEIGHT 18 -// ======================================================================= + static void ImplGetPinImage( sal_uInt16 nStyle, bool bPinIn, Image& rImage ) { @@ -149,7 +149,7 @@ static void ImplDrawBrdWinSymbolButton( OutputDevice* pDev, } -// ======================================================================= + // - ImplBorderWindowView - @@ -1016,7 +1016,7 @@ long ImplBorderWindowView::ImplCalcTitleWidth( const ImplBorderFrameData* pData return nTitleWidth; } -// ======================================================================= + // - ImplNoBorderWindowView - @@ -1056,13 +1056,13 @@ void ImplNoBorderWindowView::DrawWindow( sal_uInt16, OutputDevice*, const Point* { } -// ======================================================================= + // - ImplSmallBorderWindowView - -// ======================================================================= + ImplSmallBorderWindowView::ImplSmallBorderWindowView( ImplBorderWindow* pBorderWindow ) : mpBorderWindow(pBorderWindow) @@ -1414,7 +1414,7 @@ void ImplSmallBorderWindowView::DrawWindow( sal_uInt16 nDrawFlags, OutputDevice* } } -// ======================================================================= + // - ImplStdBorderWindowView - @@ -1847,7 +1847,7 @@ void ImplStdBorderWindowView::DrawWindow( sal_uInt16 nDrawFlags, OutputDevice* p } -// ======================================================================= + void ImplBorderWindow::ImplInit( Window* pParent, WinBits nStyle, sal_uInt16 nTypeStyle, const ::com::sun::star::uno::Any& ) @@ -1933,7 +1933,7 @@ void ImplBorderWindow::ImplInit( Window* pParent, InitView(); } -// ======================================================================= + ImplBorderWindow::ImplBorderWindow( Window* pParent, SystemParentData* pSystemParentData, diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx index bfd3cb5ea2c0..16bc80b8705c 100644 --- a/vcl/source/window/cursor.cxx +++ b/vcl/source/window/cursor.cxx @@ -28,7 +28,7 @@ #include <tools/poly.hxx> -// ======================================================================= + struct ImplCursorData { @@ -44,7 +44,7 @@ struct ImplCursorData Window* mpWindow; // Zugeordnetes Windows }; -// ======================================================================= + static void ImplCursorInvert( ImplCursorData* pData ) { @@ -271,7 +271,7 @@ IMPL_LINK_NOARG(Cursor, ImplTimerHdl) return 0; } -// ======================================================================= + Cursor::Cursor() { diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index adcc3bd49292..df13ce4b8358 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -23,14 +23,14 @@ #include <vcl/window.hxx> #include <vcl/ctrl.hxx> -// ======================================================================= + #define BUTTON_DRAW_FLATTEST (BUTTON_DRAW_FLAT | \ BUTTON_DRAW_PRESSED | \ BUTTON_DRAW_CHECKED | \ BUTTON_DRAW_HIGHLIGHT) -// ======================================================================= + namespace { @@ -875,7 +875,7 @@ void DecorationView::DrawSymbol( const Rectangle& rRect, SymbolType eType, mpOutDev->EnableMapMode( bOldMapMode ); } -// ======================================================================= + void DecorationView::DrawFrame( const Rectangle& rRect, const Color& rLeftTopColor, @@ -890,7 +890,7 @@ void DecorationView::DrawFrame( const Rectangle& rRect, mpOutDev->EnableMapMode( bOldMapMode ); } -// ======================================================================= + void DecorationView::DrawHighlightFrame( const Rectangle& rRect, sal_uInt16 nStyle ) @@ -940,7 +940,7 @@ void DecorationView::DrawHighlightFrame( const Rectangle& rRect, DrawFrame( rRect, aLightColor, aShadowColor ); } -// ======================================================================= + Rectangle DecorationView::DrawFrame( const Rectangle& rRect, sal_uInt16 nStyle ) { @@ -975,7 +975,7 @@ Rectangle DecorationView::DrawFrame( const Rectangle& rRect, sal_uInt16 nStyle ) return aRect; } -// ======================================================================= + Rectangle DecorationView::DrawButton( const Rectangle& rRect, sal_uInt16 nStyle ) { diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 334a155a5f80..a531bbde66ac 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -53,7 +53,7 @@ #include <touch/touch.h> #endif -// ======================================================================= + static OString ImplGetDialogText( Dialog* pDialog ) { @@ -72,7 +72,7 @@ static OString ImplGetDialogText( Dialog* pDialog ) return aErrorStr.makeStringAndClear(); } -// ======================================================================= + static bool ImplIsMnemonicCtrl( Window* pWindow ) { @@ -261,7 +261,7 @@ static Window* getActionAreaButtonList(Dialog *pDialog) return pDialog->GetWindow(WINDOW_FIRSTCHILD); } -// ======================================================================= + static PushButton* ImplGetDefaultButton( Dialog* pDialog ) { @@ -338,7 +338,7 @@ static void ImplMouseAutoPos( Dialog* pDialog ) } } -// ======================================================================= + struct DialogImpl { @@ -349,7 +349,7 @@ struct DialogImpl DialogImpl() : mnResult( -1 ), mbStartedModal( false ) {} }; -// ======================================================================= + void Dialog::ImplInitDialogData() { @@ -1363,7 +1363,7 @@ ModelessDialog::ModelessDialog( Window* pParent, const OString& rID, const OUStr { } -// ======================================================================= + ModalDialog::ModalDialog( Window* pParent, WinBits nStyle ) : Dialog( WINDOW_MODALDIALOG ) diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx index 5874e24dc603..5bc9c92e5d44 100644 --- a/vcl/source/window/dlgctrl.cxx +++ b/vcl/source/window/dlgctrl.cxx @@ -38,7 +38,7 @@ using namespace ::com::sun::star; -// ======================================================================= + static bool ImplHasIndirectTabParent( Window* pWindow ) { diff --git a/vcl/source/window/dndevdis.cxx b/vcl/source/window/dndevdis.cxx index c67d86b600f1..49ca76f28e1f 100644 --- a/vcl/source/window/dndevdis.cxx +++ b/vcl/source/window/dndevdis.cxx @@ -33,9 +33,9 @@ using namespace ::com::sun::star::lang; using namespace ::com::sun::star::datatransfer; using namespace ::com::sun::star::datatransfer::dnd; -//================================================================================================== + // DNDEventDispatcher::DNDEventDispatcher -//================================================================================================== + DNDEventDispatcher::DNDEventDispatcher( Window * pTopWindow ): m_pTopWindow( pTopWindow ), @@ -43,9 +43,9 @@ DNDEventDispatcher::DNDEventDispatcher( Window * pTopWindow ): { } -//================================================================================================== + // DNDEventDispatcher::~DNDEventDispatcher -//================================================================================================== + DNDEventDispatcher::~DNDEventDispatcher() { @@ -76,9 +76,9 @@ Window* DNDEventDispatcher::findTopLevelWindow(Point location) return pChildWindow; } -//================================================================================================== + // DNDEventDispatcher::drop -//================================================================================================== + void SAL_CALL DNDEventDispatcher::drop( const DropTargetDropEvent& dtde ) throw(RuntimeException) @@ -116,9 +116,9 @@ void SAL_CALL DNDEventDispatcher::drop( const DropTargetDropEvent& dtde ) m_aDataFlavorList.realloc( 0 ); } -//================================================================================================== + // DNDEventDispatcher::dragEnter -//================================================================================================== + void SAL_CALL DNDEventDispatcher::dragEnter( const DropTargetDragEnterEvent& dtdee ) throw(RuntimeException) @@ -144,9 +144,9 @@ void SAL_CALL DNDEventDispatcher::dragEnter( const DropTargetDragEnterEvent& dtd } -//================================================================================================== + // DNDEventDispatcher::dragExit -//================================================================================================== + void SAL_CALL DNDEventDispatcher::dragExit( const DropTargetEvent& /*dte*/ ) throw(RuntimeException) @@ -160,9 +160,9 @@ void SAL_CALL DNDEventDispatcher::dragExit( const DropTargetEvent& /*dte*/ ) m_aDataFlavorList.realloc( 0 ); } -//================================================================================================== + // DNDEventDispatcher::dragOver -//================================================================================================== + void SAL_CALL DNDEventDispatcher::dragOver( const DropTargetDragEvent& dtde ) throw(RuntimeException) @@ -201,9 +201,9 @@ void SAL_CALL DNDEventDispatcher::dragOver( const DropTargetDragEvent& dtde ) } } -//================================================================================================== + // DNDEventDispatcher::dropActionChanged -//================================================================================================== + void SAL_CALL DNDEventDispatcher::dropActionChanged( const DropTargetDragEvent& dtde ) throw(RuntimeException) @@ -243,9 +243,9 @@ void SAL_CALL DNDEventDispatcher::dropActionChanged( const DropTargetDragEvent& } -//================================================================================================== + // DNDEventDispatcher::dragGestureRecognized -//================================================================================================== + void SAL_CALL DNDEventDispatcher::dragGestureRecognized( const DragGestureEvent& dge ) throw(RuntimeException) @@ -259,34 +259,34 @@ void SAL_CALL DNDEventDispatcher::dragGestureRecognized( const DragGestureEvent& fireDragGestureEvent( pChildWindow, dge.DragSource, dge.Event, origin, dge.DragAction ); } -//================================================================================================== + // DNDEventDispatcher::disposing -//================================================================================================== + void SAL_CALL DNDEventDispatcher::disposing( const EventObject& ) throw(RuntimeException) { } -//================================================================================================== + // DNDEventDispatcher::acceptDrag -//================================================================================================== + void SAL_CALL DNDEventDispatcher::acceptDrag( sal_Int8 /*dropAction*/ ) throw(RuntimeException) { } -//================================================================================================== + // DNDEventDispatcher::rejectDrag -//================================================================================================== + void SAL_CALL DNDEventDispatcher::rejectDrag() throw(RuntimeException) { } -//================================================================================================== + // DNDEventDispatcher::fireDragEnterEvent -//================================================================================================== + sal_Int32 DNDEventDispatcher::fireDragEnterEvent( Window *pWindow, const Reference< XDropTargetDragContext >& xContext, const sal_Int8 nDropAction, @@ -320,9 +320,9 @@ sal_Int32 DNDEventDispatcher::fireDragEnterEvent( Window *pWindow, return n; } -//================================================================================================== + // DNDEventDispatcher::fireDragOverEvent -//================================================================================================== + sal_Int32 DNDEventDispatcher::fireDragOverEvent( Window *pWindow, const Reference< XDropTargetDragContext >& xContext, const sal_Int8 nDropAction, @@ -353,9 +353,9 @@ sal_Int32 DNDEventDispatcher::fireDragOverEvent( Window *pWindow, return n; } -//================================================================================================== + // DNDEventDispatcher::fireDragExitEvent -//================================================================================================== + sal_Int32 DNDEventDispatcher::fireDragExitEvent( Window *pWindow ) throw(RuntimeException) { @@ -380,9 +380,9 @@ sal_Int32 DNDEventDispatcher::fireDragExitEvent( Window *pWindow ) throw(Runtime return n; } -//================================================================================================== + // DNDEventDispatcher::fireDropActionChangedEvent -//================================================================================================== + sal_Int32 DNDEventDispatcher::fireDropActionChangedEvent( Window *pWindow, const Reference< XDropTargetDragContext >& xContext, const sal_Int8 nDropAction, @@ -413,9 +413,9 @@ sal_Int32 DNDEventDispatcher::fireDropActionChangedEvent( Window *pWindow, return n; } -//================================================================================================== + // DNDEventDispatcher::fireDropEvent -//================================================================================================== + sal_Int32 DNDEventDispatcher::fireDropEvent( Window *pWindow, const Reference< XDropTargetDropContext >& xContext, const sal_Int8 nDropAction, const Point& rLocation, @@ -458,9 +458,9 @@ sal_Int32 DNDEventDispatcher::fireDropEvent( Window *pWindow, return n; } -//================================================================================================== + // DNDEventDispatcher::fireDragGestureRecognized -//================================================================================================== + sal_Int32 DNDEventDispatcher::fireDragGestureEvent( Window *pWindow, const Reference< XDragSource >& xSource, const Any event, diff --git a/vcl/source/window/dndlcon.cxx b/vcl/source/window/dndlcon.cxx index 130ee3d774b9..b6a4ecef0782 100644 --- a/vcl/source/window/dndlcon.cxx +++ b/vcl/source/window/dndlcon.cxx @@ -25,9 +25,9 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::datatransfer; using namespace ::com::sun::star::datatransfer::dnd; -//================================================================================================== -// -//================================================================================================== + + + DNDListenerContainer::DNDListenerContainer( sal_Int8 nDefaultActions ) : WeakComponentImplHelper4< XDragGestureRecognizer, XDropTargetDragContext, XDropTargetDropContext, XDropTarget >(GetMutex()) @@ -36,17 +36,17 @@ DNDListenerContainer::DNDListenerContainer( sal_Int8 nDefaultActions ) m_nDefaultActions = nDefaultActions; } -//================================================================================================== -// -//================================================================================================== + + + DNDListenerContainer::~DNDListenerContainer() { } -//================================================================================================== + // DNDListenerContainer::addDragGestureListener -//================================================================================================== + void SAL_CALL DNDListenerContainer::addDragGestureListener( const Reference< XDragGestureListener >& dgl ) throw(RuntimeException) @@ -54,9 +54,9 @@ void SAL_CALL DNDListenerContainer::addDragGestureListener( const Reference< XDr rBHelper.addListener( getCppuType( ( const Reference< XDragGestureListener > * ) 0 ), dgl ); } -//================================================================================================== + // DNDListenerContainer::removeDragGestureListener -//================================================================================================== + void SAL_CALL DNDListenerContainer::removeDragGestureListener( const Reference< XDragGestureListener >& dgl ) throw(RuntimeException) @@ -64,18 +64,18 @@ void SAL_CALL DNDListenerContainer::removeDragGestureListener( const Reference< rBHelper.removeListener( getCppuType( ( const Reference< XDragGestureListener > * ) 0 ), dgl ); } -//================================================================================================== + // DNDListenerContainer::resetRecognizer -//================================================================================================== + void SAL_CALL DNDListenerContainer::resetRecognizer( ) throw(RuntimeException) { } -//================================================================================================== + // DNDListenerContainer::addDropTargetListener -//================================================================================================== + void SAL_CALL DNDListenerContainer::addDropTargetListener( const Reference< XDropTargetListener >& dtl ) throw(RuntimeException) @@ -83,9 +83,9 @@ void SAL_CALL DNDListenerContainer::addDropTargetListener( const Reference< XDro rBHelper.addListener( getCppuType( ( const Reference< XDropTargetListener > * ) 0 ), dtl ); } -//================================================================================================== + // DNDListenerContainer::removeDropTargetListener -//================================================================================================== + void SAL_CALL DNDListenerContainer::removeDropTargetListener( const Reference< XDropTargetListener >& dtl ) throw(RuntimeException) @@ -93,9 +93,9 @@ void SAL_CALL DNDListenerContainer::removeDropTargetListener( const Reference< X rBHelper.removeListener( getCppuType( ( const Reference< XDropTargetListener > * ) 0 ), dtl ); } -//================================================================================================== + // DNDListenerContainer::isActive -//================================================================================================== + sal_Bool SAL_CALL DNDListenerContainer::isActive( ) throw(RuntimeException) @@ -103,9 +103,9 @@ sal_Bool SAL_CALL DNDListenerContainer::isActive( ) return m_bActive; } -//================================================================================================== + // DNDListenerContainer::setActive -//================================================================================================== + void SAL_CALL DNDListenerContainer::setActive( sal_Bool active ) throw(RuntimeException) @@ -113,9 +113,9 @@ void SAL_CALL DNDListenerContainer::setActive( sal_Bool active ) m_bActive = active; } -//================================================================================================== + // DNDListenerContainer::getDefaultActions -//================================================================================================== + sal_Int8 SAL_CALL DNDListenerContainer::getDefaultActions( ) throw(RuntimeException) @@ -123,9 +123,9 @@ sal_Int8 SAL_CALL DNDListenerContainer::getDefaultActions( ) return m_nDefaultActions; } -//================================================================================================== + // DNDListenerContainer::setDefaultActions -//================================================================================================== + void SAL_CALL DNDListenerContainer::setDefaultActions( sal_Int8 actions ) throw(RuntimeException) @@ -133,9 +133,9 @@ void SAL_CALL DNDListenerContainer::setDefaultActions( sal_Int8 actions ) m_nDefaultActions = actions; } -//================================================================================================== + // DNDListenerContainer::fireDropEvent -//================================================================================================== + sal_uInt32 DNDListenerContainer::fireDropEvent( const Reference< XDropTargetDropContext >& context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions, @@ -206,9 +206,9 @@ sal_uInt32 DNDListenerContainer::fireDropEvent( const Reference< XDropTargetDrop return nRet; } -//================================================================================================== + // DNDListenerContainer::fireDragExitEvent -//================================================================================================== + sal_uInt32 DNDListenerContainer::fireDragExitEvent() { @@ -250,9 +250,9 @@ sal_uInt32 DNDListenerContainer::fireDragExitEvent() return nRet; } -//================================================================================================== + // DNDListenerContainer::fireDragOverEvent -//================================================================================================== + sal_uInt32 DNDListenerContainer::fireDragOverEvent( const Reference< XDropTargetDragContext >& context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions ) @@ -315,9 +315,9 @@ sal_uInt32 DNDListenerContainer::fireDragOverEvent( const Reference< XDropTarget return nRet; } -//================================================================================================== + // DNDListenerContainer::fireDragEnterEvent -//================================================================================================== + sal_uInt32 DNDListenerContainer::fireDragEnterEvent( const Reference< XDropTargetDragContext >& context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions, @@ -381,9 +381,9 @@ sal_uInt32 DNDListenerContainer::fireDragEnterEvent( const Reference< XDropTarge return nRet; } -//================================================================================================== + // DNDListenerContainer::fireDropActionChangedEvent -//================================================================================================== + sal_uInt32 DNDListenerContainer::fireDropActionChangedEvent( const Reference< XDropTargetDragContext >& context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions ) @@ -446,9 +446,9 @@ sal_uInt32 DNDListenerContainer::fireDropActionChangedEvent( const Reference< XD return nRet; } -//================================================================================================== + // DNDListenerContainer::fireDragGestureEvent -//================================================================================================== + sal_uInt32 DNDListenerContainer::fireDragGestureEvent( sal_Int8 dragAction, sal_Int32 dragOriginX, sal_Int32 dragOriginY, const Reference< XDragSource >& dragSource, const Any& triggerEvent ) @@ -492,9 +492,9 @@ sal_uInt32 DNDListenerContainer::fireDragGestureEvent( sal_Int8 dragAction, sal_ return nRet; } -//================================================================================================== + // DNDListenerContainer::acceptDrag -//================================================================================================== + void SAL_CALL DNDListenerContainer::acceptDrag( sal_Int8 dragOperation ) throw (RuntimeException) { @@ -505,18 +505,18 @@ void SAL_CALL DNDListenerContainer::acceptDrag( sal_Int8 dragOperation ) throw ( } } -//================================================================================================== + // DNDListenerContainer::rejectDrag -//================================================================================================== + void SAL_CALL DNDListenerContainer::rejectDrag( ) throw (RuntimeException) { // nothing to do here } -//================================================================================================== + // DNDListenerContainer::acceptDrop -//================================================================================================== + void SAL_CALL DNDListenerContainer::acceptDrop( sal_Int8 dropOperation ) throw (RuntimeException) { @@ -524,18 +524,18 @@ void SAL_CALL DNDListenerContainer::acceptDrop( sal_Int8 dropOperation ) throw ( m_xDropTargetDropContext->acceptDrop( dropOperation ); } -//================================================================================================== + // DNDListenerContainer::rejectDrop -//================================================================================================== + void SAL_CALL DNDListenerContainer::rejectDrop( ) throw (RuntimeException) { // nothing to do here } -//================================================================================================== + // DNDListenerContainer::dropComplete -//================================================================================================== + void SAL_CALL DNDListenerContainer::dropComplete( sal_Bool success ) throw (RuntimeException) { diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx index 22d91bdf9ab0..e7c6d92a2fa1 100644 --- a/vcl/source/window/dockingarea.cxx +++ b/vcl/source/window/dockingarea.cxx @@ -27,7 +27,7 @@ #include <map> -// ======================================================================= + class DockingAreaWindow::ImplData { @@ -47,7 +47,7 @@ DockingAreaWindow::ImplData::~ImplData() { } -// ======================================================================= + static void ImplInitBackground( DockingAreaWindow* pThis ) { diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx index fc865cdbc90b..2ff6f0c79a6b 100644 --- a/vcl/source/window/dockmgr.cxx +++ b/vcl/source/window/dockmgr.cxx @@ -39,7 +39,6 @@ #define DOCKWIN_FLOATSTYLES (WB_SIZEABLE | WB_MOVEABLE | WB_CLOSEABLE | WB_STANDALONE | WB_PINABLE | WB_ROLLABLE ) - class ImplDockFloatWin2 : public FloatingWindow { private: @@ -75,7 +74,6 @@ public: sal_uLong GetLastTicks() const { return mnLastTicks; } }; - ImplDockFloatWin2::ImplDockFloatWin2( Window* pParent, WinBits nWinBits, ImplDockingWindowWrapper* pDockingWin ) : FloatingWindow( pParent, nWinBits ), @@ -306,7 +304,6 @@ bool ImplDockFloatWin2::Close() return mpDockWin->Close(); } - DockingManager::DockingManager() { } @@ -464,10 +461,10 @@ Rectangle DockingManager::GetPosSizePixel( const Window *pWindow ) return aRect; } -// ======================================================================= + // special floating window for popup mode // main purpose: provides tear-off area for undocking -// ======================================================================= + // if TEAROFF_DASHED defined a single dashed line is used // otherwise multiple smaller lines will be painted @@ -890,7 +887,6 @@ bool ImplDockingWindowWrapper::ImplStartDocking( const Point& rPos ) return true; } - void ImplDockingWindowWrapper::ImplInitData() { mpDockingWindow = NULL; diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx index 8bf14c6fca78..9f029f62b6f1 100644 --- a/vcl/source/window/dockwin.cxx +++ b/vcl/source/window/dockwin.cxx @@ -249,7 +249,6 @@ bool ImplDockFloatWin::Close() return mpDockWin->Close(); } - bool DockingWindow::ImplStartDocking( const Point& rPos ) { if ( !mbDockable ) @@ -303,7 +302,6 @@ bool DockingWindow::ImplStartDocking( const Point& rPos ) return true; } - void DockingWindow::ImplInitDockingWindowData() { mpImplData = new ImplData; diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index f006df88c0fd..41e9bcdc022a 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -58,7 +58,6 @@ Rectangle& FloatingWindow::ImplGetItemEdgeClipRect() return mpImplData->maItemEdgeClipRect; } - void FloatingWindow::ImplInit( Window* pParent, WinBits nStyle ) { mpImplData = new ImplData; @@ -149,7 +148,6 @@ void FloatingWindow::ImplInitSettings() SetBackground( aColor ); } - FloatingWindow::FloatingWindow( Window* pParent, WinBits nStyle ) : SystemWindow( WINDOW_FLOATINGWINDOW ) { diff --git a/vcl/source/window/introwin.cxx b/vcl/source/window/introwin.cxx index 10baa88203f0..f49f8601a21d 100644 --- a/vcl/source/window/introwin.cxx +++ b/vcl/source/window/introwin.cxx @@ -28,7 +28,7 @@ -// ======================================================================= + void IntroWindow::ImplInitIntroWindowData() { diff --git a/vcl/source/window/keycod.cxx b/vcl/source/window/keycod.cxx index 8e1f439a6f0e..9ed1e4502c3f 100644 --- a/vcl/source/window/keycod.cxx +++ b/vcl/source/window/keycod.cxx @@ -28,7 +28,7 @@ #include <tools/rc.h> -// ======================================================================= + static const sal_uInt16 aImplKeyFuncTab[(KEYFUNC_FRONT+1)*4] = { 0, 0, 0, 0, // KEYFUNC_DONTKNOW @@ -64,7 +64,7 @@ void ImplGetKeyCode( KeyFuncType eFunc, sal_uInt16& rCode1, sal_uInt16& rCode2, rCode4 = aImplKeyFuncTab[nIndex+3]; } -// ======================================================================= + KeyCode::KeyCode( KeyFuncType eFunction ) { diff --git a/vcl/source/window/mnemonic.cxx b/vcl/source/window/mnemonic.cxx index 800ee0983849..e30a4699fd24 100644 --- a/vcl/source/window/mnemonic.cxx +++ b/vcl/source/window/mnemonic.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star; -// ======================================================================= + MnemonicGenerator::MnemonicGenerator() { @@ -318,7 +318,7 @@ OUString MnemonicGenerator::CreateMnemonic( const OUString& _rKey ) // do // { // c = aKey.GetChar( nIndex ); -// + // nMnemonicIndex = ImplGetMnemonicIndex( c ); // if ( nMnemonicIndex != MNEMONIC_INDEX_NOTFOUND ) // { @@ -327,7 +327,7 @@ OUString MnemonicGenerator::CreateMnemonic( const OUString& _rKey ) // bChanged = sal_True; // break; // } -// + // // Search for next word // do // { diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx index 780283efc064..64512d60a588 100644 --- a/vcl/source/window/msgbox.cxx +++ b/vcl/source/window/msgbox.cxx @@ -36,7 +36,7 @@ #include <vcl/settings.hxx> -// ======================================================================= + static void ImplInitMsgBoxImageList() { @@ -54,7 +54,7 @@ static void ImplInitMsgBoxImageList() } } -// ======================================================================= + void MessBox::ImplInitMessBoxData() { @@ -432,7 +432,7 @@ Size MessBox::GetOptimalSize() const return Size( 250, 100 ); } -// ============================================================================ + void InfoBox::ImplInitInfoBoxData() { @@ -475,7 +475,7 @@ Image InfoBox::GetStandardImage() return ImplGetSVData()->maWinData.mpMsgBoxImgList->GetImage( 4 ); } -// ============================================================================ + void WarningBox::ImplInitWarningBoxData() { @@ -520,7 +520,7 @@ Image WarningBox::GetStandardImage() return ImplGetSVData()->maWinData.mpMsgBoxImgList->GetImage( 3 ); } -// ============================================================================ + void ErrorBox::ImplInitErrorBoxData() { @@ -565,7 +565,7 @@ Image ErrorBox::GetStandardImage() return ImplGetSVData()->maWinData.mpMsgBoxImgList->GetImage( 1 ); } -// ============================================================================ + void QueryBox::ImplInitQueryBoxData() { diff --git a/vcl/source/window/popupmenuwindow.cxx b/vcl/source/window/popupmenuwindow.cxx index 7a037943d666..2cf4c059a15c 100644 --- a/vcl/source/window/popupmenuwindow.cxx +++ b/vcl/source/window/popupmenuwindow.cxx @@ -39,7 +39,7 @@ PopupMenuFloatingWindow::ImplData::~ImplData() { } -// ============================================================================ + PopupMenuFloatingWindow::PopupMenuFloatingWindow( Window* pParent, WinBits nStyle ) : FloatingWindow(pParent, nStyle), diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index 6de81b334fbc..9ec2a83e0f05 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -1840,9 +1840,9 @@ void PrintDialog::previewBackward() } -// + // PrintProgressDialog -// + PrintProgressDialog::PrintProgressDialog(Window* i_pParent, int i_nMax) diff --git a/vcl/source/window/split.cxx b/vcl/source/window/split.cxx index 7fff5407523c..05d7d4b62c03 100644 --- a/vcl/source/window/split.cxx +++ b/vcl/source/window/split.cxx @@ -49,7 +49,7 @@ namespace }; } -// ======================================================================= + void Splitter::ImplInitSplitterData() { diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index 834a8131ed15..e492500e0c2b 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -32,7 +32,7 @@ #include <svdata.hxx> #include <window.h> -// ======================================================================= + #define STATUSBAR_OFFSET_X STATUSBAR_OFFSET #define STATUSBAR_OFFSET_Y 2 @@ -84,7 +84,7 @@ struct ImplStatusItem OUString maCommand; }; -// ======================================================================= + inline long ImplCalcProgessWidth( sal_uInt16 nMax, long nSize ) { diff --git a/vcl/source/window/syschild.cxx b/vcl/source/window/syschild.cxx index a871d2db2914..eab804ce50d0 100644 --- a/vcl/source/window/syschild.cxx +++ b/vcl/source/window/syschild.cxx @@ -52,7 +52,7 @@ using namespace ::com::sun::star; -// ======================================================================= + long ImplSysChildProc( void* pInst, SalObject* /* pObject */, sal_uInt16 nEvent, const void* /* pEvent */ ) @@ -110,7 +110,7 @@ long ImplSysChildProc( void* pInst, SalObject* /* pObject */, return nRet; } -// ======================================================================= + void SystemChildWindow::ImplInitSysChild( Window* pParent, WinBits nStyle, SystemWindowData *pData, bool bShow ) { diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx index fb87f72f0a76..3281e8a564da 100644 --- a/vcl/source/window/syswin.cxx +++ b/vcl/source/window/syswin.cxx @@ -36,7 +36,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; -// ======================================================================= + class SystemWindow::ImplData { public: @@ -61,7 +61,7 @@ SystemWindow::ImplData::~ImplData() delete mpTaskPaneList; } -// ======================================================================= + SystemWindow::SystemWindow( WindowType nType ) : Window( nType ) diff --git a/vcl/source/window/tabdlg.cxx b/vcl/source/window/tabdlg.cxx index b2f8d718fda9..8a027487eac4 100644 --- a/vcl/source/window/tabdlg.cxx +++ b/vcl/source/window/tabdlg.cxx @@ -25,7 +25,7 @@ -// ======================================================================= + void TabDialog::ImplInitTabDialogData() { diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx index a8cbdb528404..2ec86723ff37 100644 --- a/vcl/source/window/tabpage.cxx +++ b/vcl/source/window/tabpage.cxx @@ -32,7 +32,7 @@ #include <com/sun/star/accessibility/XAccessible.hpp> -// ======================================================================= + void TabPage::ImplInit( Window* pParent, WinBits nStyle ) { diff --git a/vcl/source/window/taskpanelist.cxx b/vcl/source/window/taskpanelist.cxx index da13a444f259..47ed31576464 100644 --- a/vcl/source/window/taskpanelist.cxx +++ b/vcl/source/window/taskpanelist.cxx @@ -172,7 +172,7 @@ bool TaskPaneList::HandleKeyEvent( KeyEvent aKeyEvent ) // The old design was the following one: // < Ctrl-TAB cycles through Menubar, Toolbars and Floatingwindows only and is // < only active if one of those items has the focus - // + // Since the design of Ctrl-Tab looks to be inconsistent ( non-modal dialogs are not reachable // and the shortcut conflicts with tab-control shortcut ), it is no more supported bool bSplitterOnly = false; diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index b0401ae3545c..992cbf3777c5 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -49,10 +49,10 @@ #include <vector> #include <math.h> -// ======================================================================= -// ======================================================================= + + #define SMALLBUTTON_HSIZE 7 #define SMALLBUTTON_VSIZE 7 diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index aa27d30c9a45..be9926ca86d9 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -56,7 +56,6 @@ using namespace vcl; using namespace com::sun::star; - #define TB_SEP_SIZE 8 ImplToolBoxPrivateData::ImplToolBoxPrivateData() : diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index d68ec89ffa0f..557de5b0a070 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -108,7 +108,7 @@ using namespace com::sun; using ::com::sun::star::awt::XTopWindow; -// ======================================================================= + #define IMPL_PAINT_PAINT ((sal_uInt16)0x0001) #define IMPL_PAINT_PAINTALL ((sal_uInt16)0x0002) @@ -352,7 +352,7 @@ const char* ImplDbgCheckWindow( const void* pObj ) } #endif -// ======================================================================= + bool Window::HasMirroredGraphics() const { @@ -720,7 +720,7 @@ CommandEvent ImplTranslateCommandEvent( const CommandEvent& rCEvt, Window* pSour return CommandEvent( aPos, rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetData() ); } -// ======================================================================= + void Window::ImplInitWindowData( WindowType nType ) { @@ -1877,7 +1877,7 @@ bool Window::ImplSysObjClip( const Region* pOldRegion ) //sal_uLong nRectCount; //ImplRegionInfo aInfo; //sal_Bool bRegionRect; - // + //nRectCount = aRegion.GetRectCount(); //mpWindowImpl->mpSysObj->BeginSetClipRegion( nRectCount ); //bRegionRect = aRegion.ImplGetFirstRect( aInfo, nX, nY, nWidth, nHeight ); @@ -5907,7 +5907,7 @@ void Window::SetWindowRegionPixel( const Region& rRegion ) //sal_uLong nRectCount; //ImplRegionInfo aInfo; //sal_Bool bRegionRect; - // + //nRectCount = mpWindowImpl->maWinRegion.GetRectCount(); //mpWindowImpl->mpFrame->BeginSetClipRegion( nRectCount ); //bRegionRect = mpWindowImpl->maWinRegion.ImplGetFirstRect( aInfo, nX, nY, nWidth, nHeight ); @@ -8545,7 +8545,7 @@ Window* Window::GetAccessibleParentWindow() const } // If this is a floating window which has a native border window, then that border should be reported as // the accessible parent, unless the floating window is a PopupMenuFloatingWindow - // + // The logic here has to match that of AccessibleFactory::createAccessibleContext in // accessibility/source/helper/acc_factory.cxx to avoid PopupMenuFloatingWindow // becoming a11y parents of themselves @@ -9419,7 +9419,7 @@ uno::Reference< rendering::XCanvas > Window::ImplGetCanvas( const Size& rFullscr Sequence< Any > aArg(6); // Feed any with operating system's window handle - // ============================================== + // common: first any is VCL pointer to window (for VCL canvas) aArg[ 0 ] = makeAny( reinterpret_cast<sal_Int64>(this) ); @@ -9456,7 +9456,7 @@ uno::Reference< rendering::XCanvas > Window::ImplGetCanvas( const Size& rFullscr uno::Reference< XComponentContext > xContext = comphelper::getProcessComponentContext(); // Create canvas instance with window handle - // ========================================= + static ::vcl::DeleteUnoReferenceOnDeinit<lang::XMultiComponentFactory> xStaticCanvasFactory( rendering::CanvasFactory::create( xContext ) ); uno::Reference<lang::XMultiComponentFactory> xCanvasFactory(xStaticCanvasFactory.get()); diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 6214e9017857..c6e68b97ce4b 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -48,19 +48,19 @@ using namespace com::sun::star; -// ======================================================================= + #define IMPL_MAXSAVEBACKSIZE (640*480) #define IMPL_MAXALLSAVEBACKSIZE (800*600*2) -// ======================================================================= + struct ImplFocusDelData : public ImplDelData { Window* mpFocusWin; }; -// ======================================================================= + bool Window::ImplIsWindowInFront( const Window* pTestWindow ) const { @@ -149,7 +149,7 @@ bool Window::ImplIsWindowInFront( const Window* pTestWindow ) const return false; } -// ======================================================================= + void Window::ImplSaveOverlapBackground() { diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index 69f2db6f02b7..b81fb9d8728c 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -52,11 +52,11 @@ #include <com/sun/star/datatransfer/dnd/XDragSource.hpp> #include <com/sun/star/awt/MouseEvent.hpp> -// ======================================================================= + #define IMPL_MIN_NEEDSYSWIN 49 -// ======================================================================= + bool ImplCallPreNotify( NotifyEvent& rEvt ) { @@ -1950,7 +1950,7 @@ static void ImplHandleUserEvent( ImplSVEvent* pSVEvent ) } } -// ======================================================================= + static sal_uInt16 ImplGetMouseMoveMode( SalMouseEvent* pEvent ) { diff --git a/vcl/source/window/wrkwin.cxx b/vcl/source/window/wrkwin.cxx index 3f29acade5bd..ba18b541f0ac 100644 --- a/vcl/source/window/wrkwin.cxx +++ b/vcl/source/window/wrkwin.cxx @@ -34,7 +34,7 @@ #include <brdwin.hxx> #include <window.h> -// ======================================================================= + void WorkWindow::ImplInitWorkWindowData() { |