Kaydet (Commit) 224f6c17 authored tarafından Alexander Wilms's avatar Alexander Wilms Kaydeden (comit) Caolán McNamara

Remove visual noise from formula

Change-Id: Ie7503623ad9bec1806345f65b435c7bd94a08c2b
Reviewed-on: https://gerrit.libreoffice.org/8263Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 7986dcfd
...@@ -112,8 +112,8 @@ SAL_WNODEPRECATED_DECLARATIONS_POP ...@@ -112,8 +112,8 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
// =============================================================================
} // formula } // formula
// =============================================================================
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -29,7 +29,7 @@ using namespace ::com::sun::star::uno; ...@@ -29,7 +29,7 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang; using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::registry; using namespace ::com::sun::star::registry;
//***************************************************************************************
// registry functions // registry functions
namespace namespace
{ {
......
...@@ -253,7 +253,7 @@ bool FormulaToken::TextEqual( const FormulaToken& rToken ) const ...@@ -253,7 +253,7 @@ bool FormulaToken::TextEqual( const FormulaToken& rToken ) const
{ {
return *this == rToken; return *this == rToken;
} }
// ==========================================================================
// real implementations of virtual functions // real implementations of virtual functions
...@@ -1338,7 +1338,7 @@ bool FormulaTokenIterator::IsEndOfPath() const ...@@ -1338,7 +1338,7 @@ bool FormulaTokenIterator::IsEndOfPath() const
} }
// ==========================================================================
// real implementations of virtual functions // real implementations of virtual functions
......
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
#include <svl/solar.hrc> #include <svl/solar.hrc>
//------------------------------------------------------------------------------
#define RID_CORE_STRINGS_START RID_FORMULA_START #define RID_CORE_STRINGS_START RID_FORMULA_START
#define RID_CORE_OTHER_START RID_FORMULA_START #define RID_CORE_OTHER_START RID_FORMULA_START
//------------------------------------------------------------------------------
//- String-IDs //- String-IDs
#define RID_STRLIST_FUNCTION_NAMES_ENGLISH_ODFF (RID_CORE_OTHER_START + 0) #define RID_STRLIST_FUNCTION_NAMES_ENGLISH_ODFF (RID_CORE_OTHER_START + 0)
#define RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML (RID_CORE_OTHER_START + 1) #define RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML (RID_CORE_OTHER_START + 1)
......
...@@ -24,13 +24,13 @@ ...@@ -24,13 +24,13 @@
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
class ResMgr; class ResMgr;
//.........................................................................
namespace formula namespace formula
{ {
//==================================================================
//= ResourceManager //= ResourceManager
//= handling resources within the FORMULA-Core library //= handling resources within the FORMULA-Core library
//==================================================================
class ResourceManager class ResourceManager
{ {
friend class OModuleClient; friend class OModuleClient;
...@@ -54,9 +54,9 @@ namespace formula ...@@ -54,9 +54,9 @@ namespace formula
static ResMgr* getResManager(); static ResMgr* getResManager();
}; };
//=========================================================================
//= OModuleClient //= OModuleClient
//=========================================================================
/** base class for objects which uses any global module-specific resources /** base class for objects which uses any global module-specific resources
*/ */
class OModuleClient class OModuleClient
...@@ -67,9 +67,9 @@ namespace formula ...@@ -67,9 +67,9 @@ namespace formula
}; };
//.........................................................................
} // formula } // formula
//.........................................................................
#endif // _FORMULA_CORE_RESOURCE_HXX_ #endif // _FORMULA_CORE_RESOURCE_HXX_
......
...@@ -27,13 +27,13 @@ ...@@ -27,13 +27,13 @@
#include <rtl/instance.hxx> #include <rtl/instance.hxx>
#include <svl/solar.hrc> #include <svl/solar.hrc>
//.........................................................................
namespace formula namespace formula
{ {
//==================================================================
//= ResourceManager //= ResourceManager
//==================================================================
namespace namespace
{ {
// access safety // access safety
...@@ -74,8 +74,8 @@ namespace formula ...@@ -74,8 +74,8 @@ namespace formula
return m_pImpl; return m_pImpl;
} }
//.........................................................................
} // formula } // formula
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
namespace formula namespace formula
{ {
//============================================================================
// class ValWnd // class ValWnd
class ValWnd : public Window class ValWnd : public Window
{ {
...@@ -41,7 +41,7 @@ private: ...@@ -41,7 +41,7 @@ private:
Rectangle aRectOut; Rectangle aRectOut;
}; };
//============================================================================
// class EditBox // class EditBox
class EditBox : public Control class EditBox : public Control
{ {
...@@ -74,7 +74,7 @@ public: ...@@ -74,7 +74,7 @@ public:
void UpdateOldSel(); void UpdateOldSel();
}; };
//============================================================================
// class ArgEdit // class ArgEdit
class ArgEdit : public RefEdit class ArgEdit : public RefEdit
...@@ -96,7 +96,7 @@ private: ...@@ -96,7 +96,7 @@ private:
}; };
//============================================================================
// class ArgInput // class ArgInput
class ArgInput class ArgInput
......
...@@ -26,7 +26,7 @@ namespace formula ...@@ -26,7 +26,7 @@ namespace formula
namespace namespace
{ {
//============================================================================
class OEmptyFunctionDescription : public IFunctionDescription class OEmptyFunctionDescription : public IFunctionDescription
{ {
public: public:
...@@ -48,9 +48,9 @@ namespace formula ...@@ -48,9 +48,9 @@ namespace formula
virtual bool isParameterOptional(sal_uInt32 ) const { return false; } virtual bool isParameterOptional(sal_uInt32 ) const { return false; }
}; };
} }
//===================================================================
// class FormulaHelper - static Method // class FormulaHelper - static Method
//===================================================================
#define FUNC_NOTFOUND 0xffff #define FUNC_NOTFOUND 0xffff
...@@ -392,8 +392,8 @@ sal_Int32 FormulaHelper::GetArgStart( const OUString& rStr, sal_Int32 nStart, sa ...@@ -392,8 +392,8 @@ sal_Int32 FormulaHelper::GetArgStart( const OUString& rStr, sal_Int32 nStart, sa
return nStart; return nStart;
} }
// =============================================================================
} // formula } // formula
// =============================================================================
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#define STD_MASKCOLOR Color { Red=0xFFFF; Green=0x0000; Blue=0xFFFF; } #define STD_MASKCOLOR Color { Red=0xFFFF; Green=0x0000; Blue=0xFFFF; }
//---------------------------------------------------------------------------
TabPage RID_FORMULATAB_FUNCTION TabPage RID_FORMULATAB_FUNCTION
{ {
Hide = TRUE ; Hide = TRUE ;
......
...@@ -1009,16 +1009,16 @@ IMPL_LINK( FormulaDlg_Impl, BtnHdl, PushButton*, pBtn ) ...@@ -1009,16 +1009,16 @@ IMPL_LINK( FormulaDlg_Impl, BtnHdl, PushButton*, pBtn )
aMEFormula.Invalidate(); aMEFormula.Invalidate();
aMEFormula.Update(); aMEFormula.Update();
} }
//...
return 0; return 0;
} }
// --------------------------------------------------------------------------
// Functions for 1. Page // Functions for 1. Page
// --------------------------------------------------------------------------
...@@ -1057,9 +1057,9 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, DblClkHdl) ...@@ -1057,9 +1057,9 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, DblClkHdl)
} }
// --------------------------------------------------------------------------
// Functions for right Page // Functions for right Page
// --------------------------------------------------------------------------
void FormulaDlg_Impl::SetData(sal_Int32 nFStart, sal_Int32 nNextFStart, sal_Int32 nNextFEnd, sal_Int32& PrivStart, sal_Int32& PrivEnd) void FormulaDlg_Impl::SetData(sal_Int32 nFStart, sal_Int32 nNextFStart, sal_Int32 nNextFEnd, sal_Int32& PrivStart, sal_Int32& PrivEnd)
{ {
sal_Int32 nFEnd; sal_Int32 nFEnd;
...@@ -1634,7 +1634,7 @@ const FormulaHelper& FormulaDlg_Impl::GetFormulaHelper() const ...@@ -1634,7 +1634,7 @@ const FormulaHelper& FormulaDlg_Impl::GetFormulaHelper() const
{ {
return m_aFormulaHelper; return m_aFormulaHelper;
} }
//============================================================================
FormulaModalDialog::FormulaModalDialog( Window* pParent FormulaModalDialog::FormulaModalDialog( Window* pParent
, bool _bSupportFunctionResult , bool _bSupportFunctionResult
, bool _bSupportResult , bool _bSupportResult
...@@ -1718,9 +1718,9 @@ void FormulaModalDialog::StoreFormEditData(FormEditData* pData) ...@@ -1718,9 +1718,9 @@ void FormulaModalDialog::StoreFormEditData(FormEditData* pData)
m_pImpl->StoreFormEditData(pData); m_pImpl->StoreFormEditData(pData);
} }
// --------------------------------------------------------------------------
// Initialisation / General functions for Dialog // Initialisation / General functions for Dialog
// --------------------------------------------------------------------------
FormulaDlg::FormulaDlg( SfxBindings* pB, SfxChildWindow* pCW, FormulaDlg::FormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
Window* pParent Window* pParent
, bool _bSupportFunctionResult , bool _bSupportFunctionResult
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "formdlgs.hrc" #include "formdlgs.hrc"
#include "ForResId.hrc" #include "ForResId.hrc"
#include "ModuleHelper.hxx" #include "ModuleHelper.hxx"
//============================================================================
namespace formula namespace formula
{ {
...@@ -59,7 +59,7 @@ bool FormulaListBox::PreNotify( NotifyEvent& rNEvt ) ...@@ -59,7 +59,7 @@ bool FormulaListBox::PreNotify( NotifyEvent& rNEvt )
//============================================================================
inline sal_uInt16 Lb2Cat( sal_uInt16 nLbPos ) inline sal_uInt16 Lb2Cat( sal_uInt16 nLbPos )
{ {
...@@ -70,7 +70,7 @@ inline sal_uInt16 Lb2Cat( sal_uInt16 nLbPos ) ...@@ -70,7 +70,7 @@ inline sal_uInt16 Lb2Cat( sal_uInt16 nLbPos )
return nLbPos; return nLbPos;
} }
//============================================================================
FuncPage::FuncPage(Window* pParent,const IFunctionManager* _pFunctionManager): FuncPage::FuncPage(Window* pParent,const IFunctionManager* _pFunctionManager):
TabPage(pParent,ModuleRes(RID_FORMULATAB_FUNCTION)), TabPage(pParent,ModuleRes(RID_FORMULATAB_FUNCTION)),
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <vector> #include <vector>
#include "formula/omoduleclient.hxx" #include "formula/omoduleclient.hxx"
//============================================================================
namespace formula namespace formula
{ {
...@@ -41,7 +41,7 @@ class IFunctionDescription; ...@@ -41,7 +41,7 @@ class IFunctionDescription;
class IFunctionManager; class IFunctionManager;
class IFunctionCategory; class IFunctionCategory;
//============================================================================
class FormulaListBox : public ListBox class FormulaListBox : public ListBox
{ {
protected: protected:
...@@ -57,7 +57,7 @@ public: ...@@ -57,7 +57,7 @@ public:
typedef const IFunctionDescription* TFunctionDesc; typedef const IFunctionDescription* TFunctionDesc;
//============================================================================
class FuncPage : public TabPage class FuncPage : public TabPage
{ {
private: private:
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#define PAIRED_VAR_ARGS (VAR_ARGS + VAR_ARGS) #define PAIRED_VAR_ARGS (VAR_ARGS + VAR_ARGS)
namespace formula namespace formula
{ {
//============================================================================
ParaWin::ParaWin(Window* pParent,IControlReferenceHandler* _pDlg,Point aPos): ParaWin::ParaWin(Window* pParent,IControlReferenceHandler* _pDlg,Point aPos):
TabPage (pParent,ModuleRes(RID_FORMULATAB_PARAMETER)), TabPage (pParent,ModuleRes(RID_FORMULATAB_PARAMETER)),
......
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
namespace formula namespace formula
{ {
//============================================================================
#define NOT_FOUND 0xffff #define NOT_FOUND 0xffff
//============================================================================
class IFunctionDescription; class IFunctionDescription;
class IControlReferenceHandler; class IControlReferenceHandler;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "helpids.hrc" #include "helpids.hrc"
#define STD_MASKCOLOR Color { Red=0xFFFF; Green=0x0000; Blue=0xFFFF; } #define STD_MASKCOLOR Color { Red=0xFFFF; Green=0x0000; Blue=0xFFFF; }
//---------------------------------------------------------------------------
#define FT_ARGBLOCK( y ) \ #define FT_ARGBLOCK( y ) \
Pos = MAP_APPFONT (6 , y ) ; \ Pos = MAP_APPFONT (6 , y ) ; \
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
TabStop = FALSE ; \ TabStop = FALSE ; \
QuickHelpText [ en-US ] = "Select"; \ QuickHelpText [ en-US ] = "Select"; \
//---------------------------------------------------------------------------
// jetzt alles zusammen // jetzt alles zusammen
......
...@@ -81,7 +81,7 @@ void StructListBox::LoseFocus() ...@@ -81,7 +81,7 @@ void StructListBox::LoseFocus()
SvTreeListBox::LoseFocus(); SvTreeListBox::LoseFocus();
} }
//==============================================================================
StructPage::StructPage(Window* pParent): StructPage::StructPage(Window* pParent):
TabPage(pParent,ModuleRes(RID_FORMULATAB_STRUCT)), TabPage(pParent,ModuleRes(RID_FORMULATAB_STRUCT)),
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
#include "formula/IFunctionDescription.hxx" #include "formula/IFunctionDescription.hxx"
#include "formula/omoduleclient.hxx" #include "formula/omoduleclient.hxx"
//============================================================================
//============================================================================
namespace formula namespace formula
{ {
...@@ -64,7 +64,7 @@ public: ...@@ -64,7 +64,7 @@ public:
void LoseFocus(); void LoseFocus();
}; };
//============================================================================
class StructPage : public TabPage class StructPage : public TabPage
, public IStructHelper , public IStructHelper
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
#define RID_FORMULATAB_PARAMETER (RID_PAGE_START + 3) #define RID_FORMULATAB_PARAMETER (RID_PAGE_START + 3)
#define RID_FORMULADLG_FORMULA_MODAL (RID_PAGE_START + 4) #define RID_FORMULADLG_FORMULA_MODAL (RID_PAGE_START + 4)
// -----------------------------------------------------------------------
#endif // FORMULA_FORRESID_HRC #endif // FORMULA_FORRESID_HRC
......
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <tools/resmgr.hxx> #include <tools/resmgr.hxx>
//.........................................................................
namespace formula namespace formula
{ {
//.........................................................................
//=========================================================================
//= OModule //= OModule
//=========================================================================
class OModuleClient; class OModuleClient;
class OModuleImpl; class OModuleImpl;
class OModule class OModule
...@@ -59,9 +59,9 @@ namespace formula ...@@ -59,9 +59,9 @@ namespace formula
static void ensureImpl(); static void ensureImpl();
}; };
//=========================================================================
//= ModuleRes //= ModuleRes
//=========================================================================
/** specialized ResId, using the resource manager provided by the global module /** specialized ResId, using the resource manager provided by the global module
*/ */
class ModuleRes : public ::ResId class ModuleRes : public ::ResId
...@@ -69,9 +69,9 @@ namespace formula ...@@ -69,9 +69,9 @@ namespace formula
public: public:
ModuleRes(sal_uInt16 _nId) : ResId(_nId, *OModule::getResManager()) { } ModuleRes(sal_uInt16 _nId) : ResId(_nId, *OModule::getResManager()) { }
}; };
//.........................................................................
} // namespace formula } // namespace formula
//.........................................................................
#endif // FORMULA_MODULE_HELPER_RPT_HXX_ #endif // FORMULA_MODULE_HELPER_RPT_HXX_
......
...@@ -31,14 +31,14 @@ ...@@ -31,14 +31,14 @@
::osl::MutexGuard aGuard(theOModuleMutex::get()); \ ::osl::MutexGuard aGuard(theOModuleMutex::get()); \
ensureImpl() ensureImpl()
//.........................................................................
namespace formula namespace formula
{ {
//.........................................................................
using namespace ::com::sun::star; using namespace ::com::sun::star;
//=========================================================================
//= OModuleImpl //= OModuleImpl
//=========================================================================
/** implementation for <type>OModule</type>. not threadsafe, has to be guarded by it's owner /** implementation for <type>OModule</type>. not threadsafe, has to be guarded by it's owner
*/ */
class OModuleImpl class OModuleImpl
...@@ -85,9 +85,9 @@ ResMgr* OModuleImpl::getResManager() ...@@ -85,9 +85,9 @@ ResMgr* OModuleImpl::getResManager()
return m_pResources; return m_pResources;
} }
//=========================================================================
//= OModule //= OModule
//=========================================================================
namespace namespace
{ {
// access safety // access safety
...@@ -128,8 +128,8 @@ void OModule::ensureImpl() ...@@ -128,8 +128,8 @@ void OModule::ensureImpl()
s_pImpl = new OModuleImpl(); s_pImpl = new OModuleImpl();
} }
//.........................................................................
} // namespace formula } // namespace formula
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment