diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 20:51:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-26 07:42:24 -0600 |
commit | b1181b89f3c6a0b435f49d9b2bfa18db2b5f6f3c (patch) | |
tree | 1ccd7fbb50f8ef1a6ac846e178550da83cd263ca /svx/source/form | |
parent | 060ab521fa0d5d6b9fcb97eab4718c04e8aec944 (diff) |
Remove visual noise from svx
Change-Id: I56497d953b0500ba0967fddb36ca8bbbe86c62ad
Reviewed-on: https://gerrit.libreoffice.org/8321
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/form')
43 files changed, 479 insertions, 479 deletions
diff --git a/svx/source/form/ParseContext.cxx b/svx/source/form/ParseContext.cxx index 787542d8b9df..632b7433c38b 100644 --- a/svx/source/form/ParseContext.cxx +++ b/svx/source/form/ParseContext.cxx @@ -32,9 +32,9 @@ using namespace svxform; using namespace ::connectivity; -//========================================================================== + //= OSystemParseContext -//========================================================================== + DBG_NAME(OSystemParseContext) OSystemParseContext::OSystemParseContext() : IParseContext() @@ -151,8 +151,8 @@ IParseContext::InternationalKeyCode OSystemParseContext::getIntlKeyCode(const OS } -// ============================================================================= -// ============================================================================= + + namespace { diff --git a/svx/source/form/dataaccessdescriptor.cxx b/svx/source/form/dataaccessdescriptor.cxx index 00db0c691c38..3c1371234306 100644 --- a/svx/source/form/dataaccessdescriptor.cxx +++ b/svx/source/form/dataaccessdescriptor.cxx @@ -26,10 +26,10 @@ #include <com/sun/star/beans/PropertyAttribute.hpp> #include <tools/urlobj.hxx> -//........................................................................ + namespace svx { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::sdbc; @@ -37,9 +37,9 @@ namespace svx using namespace ::com::sun::star::ucb; using namespace ::comphelper; - //==================================================================== + //= ODADescriptorImpl - //==================================================================== + class ODADescriptorImpl { protected: @@ -272,9 +272,9 @@ namespace svx m_bSequenceOutOfDate = sal_False; } - //==================================================================== + //= ODataAccessDescriptor - //==================================================================== + ODataAccessDescriptor::ODataAccessDescriptor() :m_pImpl(new ODADescriptorImpl) @@ -405,9 +405,9 @@ namespace svx (*this)[ daDataSource ] <<= OUString(); } -//........................................................................ + } // namespace svx -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/databaselocationinput.cxx b/svx/source/form/databaselocationinput.cxx index 2e566a3282f3..f2143334e6bd 100644 --- a/svx/source/form/databaselocationinput.cxx +++ b/svx/source/form/databaselocationinput.cxx @@ -36,10 +36,10 @@ #include <vcl/button.hxx> #include <vcl/msgbox.hxx> -//........................................................................ + namespace svx { -//........................................................................ + using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::Reference; @@ -50,9 +50,9 @@ namespace svx namespace TemplateDescription = ::com::sun::star::ui::dialogs::TemplateDescription; - //==================================================================== + //= DatabaseLocationInputController_Impl - //==================================================================== + class DatabaseLocationInputController_Impl { public: @@ -263,9 +263,9 @@ namespace svx m_bNeedExistenceCheck = true; } - //==================================================================== + //= DatabaseLocationInputController - //==================================================================== + DatabaseLocationInputController::DatabaseLocationInputController( const Reference<XComponentContext>& _rContext, ::svt::OFileURLControl& _rLocationInput, PushButton& _rBrowseButton ) @@ -296,8 +296,8 @@ namespace svx return m_pImpl->getURL(); } -//........................................................................ + } // namespace svx -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/datalistener.cxx b/svx/source/form/datalistener.cxx index d2e0ba14745e..a40abe83bec3 100644 --- a/svx/source/form/datalistener.cxx +++ b/svx/source/form/datalistener.cxx @@ -27,10 +27,10 @@ using namespace ::com::sun::star::lang; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::xml::dom::events; -//............................................................................ + namespace svxform { -//............................................................................ + DataListener::DataListener( DataNavigatorWindow* pNaviWin ) : @@ -82,8 +82,8 @@ namespace svxform SAL_WARN( "svx.form", "disposing" ); } -//............................................................................ + } // namespace svxform -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index 688489036221..8666be3f7a4e 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -73,10 +73,10 @@ using namespace ::svx; #define SUBMISSIONNAME "$SUBMISSIONNAME" #define BINDINGNAME "$BINDINGNAME" -//............................................................................ + namespace svxform { -//............................................................................ + // properties of instance #define PN_INSTANCE_MODEL "Instance" @@ -125,9 +125,9 @@ namespace svxform DataGroupType GetDataGroupType() const; }; - //======================================================================== + // class DataTreeListBox - //======================================================================== + DataTreeListBox::DataTreeListBox( XFormsPage* pPage, DataGroupType _eGroup, const ResId& rResId ) : SvTreeListBox( pPage, rResId ), @@ -267,9 +267,9 @@ namespace svxform Clear(); } - //======================================================================== + // class XFormsPage - //======================================================================== + XFormsPage::XFormsPage( Window* pParent, DataNavigatorWindow* _pNaviWin, DataGroupType _eGroup ) : TabPage( pParent, SVX_RES( RID_SVX_XFORMS_TABPAGES ) ), @@ -1316,9 +1316,9 @@ namespace svxform } - //======================================================================== + // class DataNavigatorWindow - //======================================================================== + DataNavigatorWindow::DataNavigatorWindow( Window* pParent, SfxBindings* pBindings ) : Window( pParent, SVX_RES( RID_SVXWIN_DATANAVIGATOR ) ), @@ -2151,9 +2151,9 @@ namespace svxform } } - //======================================================================== + // class DataNavigator - //======================================================================== + DBG_NAME(DataNavigator) DataNavigator::DataNavigator( SfxBindings* _pBindings, SfxChildWindow* _pMgr, Window* _pParent ) : @@ -2256,9 +2256,9 @@ namespace svxform } - //======================================================================== + // class NavigatorFrameManager - //======================================================================== + SFX_IMPL_DOCKINGWINDOW( DataNavigatorManager, SID_FM_SHOW_DATANAVIGATOR ) @@ -2276,9 +2276,9 @@ namespace svxform ( (SfxDockingWindow*)pWindow )->Initialize( _pInfo ); } - //======================================================================== + // class AddDataItemDialog - //======================================================================== + AddDataItemDialog::AddDataItemDialog(Window* pParent, ItemNode* _pNode, const Reference< css::xforms::XFormsUIHelper1 >& _rUIHelper) @@ -2759,9 +2759,9 @@ namespace svxform m_pItemFrame->set_label(sText); } - //======================================================================== + // class AddConditionDialog - //======================================================================== + AddConditionDialog::AddConditionDialog(Window* pParent, const OUString& _rPropertyName, @@ -2888,9 +2888,9 @@ namespace svxform return 0; } - //======================================================================== + // class NamespaceItemDialog - //======================================================================== + NamespaceItemDialog::NamespaceItemDialog( AddConditionDialog* _pCondDlg, @@ -3062,9 +3062,9 @@ namespace svxform } } - //======================================================================== + // class ManageNamespaceDialog - //======================================================================== + ManageNamespaceDialog::ManageNamespaceDialog(Window* pParent, AddConditionDialog* _pCondDlg, bool bIsEdit) : ModalDialog(pParent, "AddNamespaceDialog", "svx/ui/addnamespacedialog.ui") @@ -3107,9 +3107,9 @@ namespace svxform return 0; } - //======================================================================== + // class AddSubmissionDialog - //======================================================================== + AddSubmissionDialog::AddSubmissionDialog( Window* pParent, ItemNode* _pNode, @@ -3329,9 +3329,9 @@ namespace svxform m_pRefBtn->Enable( m_xTempBinding.is() ); } - //======================================================================== + // class AddModelDialog - //======================================================================== + AddModelDialog::AddModelDialog(Window* pParent, bool bIsEdit) : ModalDialog(pParent, "AddModelDialog", "svx/ui/addmodeldialog.ui") @@ -3343,9 +3343,9 @@ namespace svxform SetText(get<FixedText>("alttitle")->GetText()); } - //======================================================================== + // class AddInstanceDialog - //======================================================================== + AddInstanceDialog::AddInstanceDialog(Window* pParent, bool _bEdit) : ModalDialog(pParent, "AddInstanceDialog" , "svx/ui/addinstancedialog.ui") @@ -3385,9 +3385,9 @@ namespace svxform return 0; } - //======================================================================== + // class LinkedInstanceWarningBox - //======================================================================== + LinkedInstanceWarningBox::LinkedInstanceWarningBox( Window* pParent ) : @@ -3400,9 +3400,9 @@ namespace svxform AddButton( BUTTON_CANCEL, RET_CANCEL, BUTTONDIALOG_CANCELBUTTON ); } -//............................................................................ + } // namespace svxform -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/dbcharsethelper.cxx b/svx/source/form/dbcharsethelper.cxx index 355d2ceac6e8..a3fea992940d 100644 --- a/svx/source/form/dbcharsethelper.cxx +++ b/svx/source/form/dbcharsethelper.cxx @@ -19,14 +19,14 @@ #include "svx/dbcharsethelper.hxx" -//........................................................................ + namespace svxform { -//........................................................................ - //==================================================================== + + //= ODataAccessCharsetHelper - //==================================================================== + ODataAccessCharsetHelper::ODataAccessCharsetHelper( ) { @@ -41,9 +41,9 @@ namespace svxform return m_xCharsetHelper.is(); } -//........................................................................ + } // namespace svxform -//........................................................................ + diff --git a/svx/source/form/dbtoolsclient.cxx b/svx/source/form/dbtoolsclient.cxx index ebdc7521205f..6f288a758d0d 100644 --- a/svx/source/form/dbtoolsclient.cxx +++ b/svx/source/form/dbtoolsclient.cxx @@ -26,10 +26,10 @@ #include <rtl/instance.hxx> #include <connectivity/formattedcolumnvalue.hxx> -//........................................................................ + namespace svxform { -//........................................................................ + using namespace ::connectivity::simple; using namespace ::com::sun::star::sdbc; @@ -40,9 +40,9 @@ namespace svxform using namespace ::com::sun::star::sdb; using namespace ::com::sun::star::container; - //==================================================================== + //= ODbtoolsClient - //==================================================================== + namespace { @@ -161,9 +161,9 @@ namespace svxform OSL_ENSURE(s_nClients >= 0,"Illegall call of revokeClient()"); } - //==================================================================== + //= OStaticDataAccessTools - //==================================================================== + OStaticDataAccessTools::OStaticDataAccessTools() { @@ -315,9 +315,9 @@ namespace svxform return bReturn; } - //==================================================================== + //= DBToolsObjectFactory - //==================================================================== + DBToolsObjectFactory::DBToolsObjectFactory() { @@ -340,9 +340,9 @@ namespace svxform } SAL_WNODEPRECATED_DECLARATIONS_POP -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/delayedevent.cxx b/svx/source/form/delayedevent.cxx index 2804c2b6ec3c..1ce234505027 100644 --- a/svx/source/form/delayedevent.cxx +++ b/svx/source/form/delayedevent.cxx @@ -23,14 +23,14 @@ #include <osl/diagnose.h> #include <vcl/svapp.hxx> -//........................................................................ + namespace svxform { -//........................................................................ - //==================================================================== + + //= DelayedEvent - //==================================================================== + void DelayedEvent::Call( void* _pArg ) { @@ -55,8 +55,8 @@ namespace svxform return m_aHandler.Call( _pArg ); } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx index c28932817f4d..d9c7b3c62908 100644 --- a/svx/source/form/filtnav.cxx +++ b/svx/source/form/filtnav.cxx @@ -71,10 +71,10 @@ using namespace ::connectivity::simple; using namespace ::connectivity; -//........................................................................ + namespace svxform { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::lang::XMultiServiceFactory; @@ -106,7 +106,7 @@ namespace svxform using ::com::sun::star::awt::XTextComponent; using ::com::sun::star::uno::Sequence; -//======================================================================== + OFilterItemExchange::OFilterItemExchange() { } @@ -135,14 +135,14 @@ OLocalExchange* OFilterExchangeHelper::createExchange() const return new OFilterItemExchange; } -//======================================================================== + TYPEINIT0(FmFilterData); Image FmFilterData::GetImage() const { return Image(); } -//======================================================================== + TYPEINIT1(FmParentData, FmFilterData); FmParentData::~FmParentData() @@ -152,7 +152,7 @@ FmParentData::~FmParentData() delete (*i); } -//======================================================================== + TYPEINIT1(FmFormItem, FmParentData); Image FmFormItem::GetImage() const @@ -167,7 +167,7 @@ Image FmFormItem::GetImage() const return aImage; } -//======================================================================== + TYPEINIT1(FmFilterItems, FmParentData); FmFilterItem* FmFilterItems::Find( const ::sal_Int32 _nFilterComponentIndex ) const @@ -198,7 +198,7 @@ Image FmFilterItems::GetImage() const return aImage; } -//======================================================================== + TYPEINIT1(FmFilterItem, FmFilterData); FmFilterItem::FmFilterItem( FmFilterItems* pParent, @@ -224,9 +224,9 @@ Image FmFilterItem::GetImage() const return aImage; } -//======================================================================== + // Hints for communicatition between model and view -//======================================================================== + class FmFilterHint : public SfxHint { FmFilterData* m_pData; @@ -238,7 +238,7 @@ public: }; TYPEINIT1( FmFilterHint, SfxHint ); -//======================================================================== + class FmFilterInsertedHint : public FmFilterHint { sal_uLong m_nPos; // Position relative to the parent of the data @@ -253,7 +253,7 @@ public: }; TYPEINIT1( FmFilterInsertedHint, FmFilterHint ); -//======================================================================== + class FmFilterRemovedHint : public FmFilterHint { public: @@ -264,7 +264,7 @@ public: }; TYPEINIT1( FmFilterRemovedHint, FmFilterHint ); -//======================================================================== + class FmFilterTextChangedHint : public FmFilterHint { public: @@ -275,7 +275,7 @@ public: }; TYPEINIT1( FmFilterTextChangedHint, FmFilterHint ); -//======================================================================== + class FilterClearingHint : public SfxHint { public: @@ -284,7 +284,7 @@ public: }; TYPEINIT1( FilterClearingHint, SfxHint ); -//======================================================================== + class FmFilterCurrentChangedHint : public SfxHint { public: @@ -293,9 +293,9 @@ public: }; TYPEINIT1( FmFilterCurrentChangedHint, SfxHint ); -//======================================================================== + // class FmFilterAdapter, Listener an den FilterControls -//======================================================================== + class FmFilterAdapter : public ::cppu::WeakImplHelper1< XFilterControllerListener > { FmFilterModel* m_pModel; @@ -532,9 +532,9 @@ void SAL_CALL FmFilterAdapter::disjunctiveTermAdded( const FilterEvent& _Event ) m_pModel->Insert( insertPos, pFilterItems ); } -//======================================================================== + // class FmFilterModel -//======================================================================== + TYPEINIT1(FmFilterModel, FmParentData); FmFilterModel::FmFilterModel() @@ -1019,9 +1019,9 @@ void FmFilterModel::EnsureEmptyFilterRows( FmParentData& _rItem ) } } -//======================================================================== + // class FmFilterItemsString -//======================================================================== + class FmFilterItemsString : public SvLBoxString { public: @@ -1078,9 +1078,9 @@ void FmFilterItemsString::InitViewData( SvTreeListBox* pView,SvTreeListEntry* pE pViewData->maSize = aSize; } -//======================================================================== + // class FmFilterString -//======================================================================== + class FmFilterString : public SvLBoxString { OUString m_aName; @@ -1134,9 +1134,9 @@ void FmFilterString::Paint( rDev.DrawText( aPos, GetText() ); } -//======================================================================== + // class FmFilterNavigator -//======================================================================== + FmFilterNavigator::FmFilterNavigator( Window* pParent ) :SvTreeListBox( pParent, WB_HASBUTTONS|WB_HASLINES|WB_BORDER|WB_HASBUTTONSATROOT ) ,m_pModel( NULL ) @@ -1701,7 +1701,7 @@ void FmFilterNavigator::Command( const CommandEvent& rEvt ) // every condition could be deleted except the first one if its the only one aContextMenu.EnableItem( SID_FM_DELETE, !aSelectList.empty() ); - // + sal_Bool bEdit = PTR_CAST(FmFilterItem, (FmFilterData*)pClicked->GetUserData()) != NULL && IsSelected(pClicked) && GetSelectionCount() == 1; @@ -1886,9 +1886,9 @@ void FmFilterNavigator::DeleteSelection() } -//======================================================================== + // class FmFilterNavigatorWin -//======================================================================== + FmFilterNavigatorWin::FmFilterNavigatorWin( SfxBindings* _pBindings, SfxChildWindow* _pMgr, Window* _pParent ) :SfxDockingWindow( _pBindings, _pMgr, _pParent, WinBits(WB_STDMODELESS|WB_SIZEABLE|WB_ROLLABLE|WB_3DLOOK|WB_DOCKABLE) ) @@ -2018,9 +2018,9 @@ void FmFilterNavigatorWin::GetFocus() -//======================================================================== + // class FmFilterNavigatorWinMgr -//======================================================================== + SFX_IMPL_DOCKINGWINDOW( FmFilterNavigatorWinMgr, SID_FM_FILTER_NAVIGATOR ) @@ -2033,8 +2033,8 @@ FmFilterNavigatorWinMgr::FmFilterNavigatorWinMgr( Window *_pParent, sal_uInt16 _ ((SfxDockingWindow*)pWindow)->Initialize( _pInfo ); } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmPropBrw.cxx b/svx/source/form/fmPropBrw.cxx index db0fc3a19738..e8bd3ab4bdc3 100644 --- a/svx/source/form/fmPropBrw.cxx +++ b/svx/source/form/fmPropBrw.cxx @@ -75,9 +75,9 @@ using namespace ::com::sun::star::form::inspection; using ::com::sun::star::awt::XWindow; /*************************************************************************/ -//======================================================================== + //= FmPropBrwMgr -//======================================================================== + SFX_IMPL_FLOATINGWINDOW(FmPropBrwMgr, SID_FM_SHOW_PROPERTIES) @@ -91,8 +91,8 @@ FmPropBrwMgr::FmPropBrwMgr( Window* _pParent, sal_uInt16 _nId, ((SfxFloatingWindow*)pWindow)->Initialize( _pInfo ); } -//======================================================================== -//======================================================================== + + const long STD_WIN_SIZE_X = 300; const long STD_WIN_SIZE_Y = 350; @@ -186,9 +186,9 @@ OUString GetUIHeadlineName(sal_Int16 nClassId, const Any& aUnoObj) return SVX_RESSTR(nClassNameResourceId); } -//======================================================================== + // class FmPropBrw -//======================================================================== + DBG_NAME(FmPropBrw); FmPropBrw::FmPropBrw( const Reference< XComponentContext >& _xORB, SfxBindings* _pBindings, diff --git a/svx/source/form/fmcontrolbordermanager.cxx b/svx/source/form/fmcontrolbordermanager.cxx index 45e0bc23f792..f2b907cc2b94 100644 --- a/svx/source/form/fmcontrolbordermanager.cxx +++ b/svx/source/form/fmcontrolbordermanager.cxx @@ -27,18 +27,18 @@ #include <com/sun/star/awt/XListBox.hpp> #include <tools/debug.hxx> -//........................................................................ + namespace svxform { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt; using namespace ::com::sun::star::form::validation; - //==================================================================== + //= helper - //==================================================================== + static void setUnderline( const Reference< XVclWindowPeer >& _rxPeer, const UnderlineDescriptor& _rUnderline ) { @@ -83,9 +83,9 @@ namespace svxform _rxPeer->setProperty( FM_PROP_BORDERCOLOR, makeAny( _rBoder.nBorderColor ) ); } - //==================================================================== + //= ControlBorderManager - //==================================================================== + ControlBorderManager::ControlBorderManager() :m_nFocusColor ( 0x000000FF ) @@ -423,8 +423,8 @@ namespace svxform } } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmcontrollayout.cxx b/svx/source/form/fmcontrollayout.cxx index 215ffa838aa3..2d61c9c91a44 100644 --- a/svx/source/form/fmcontrollayout.cxx +++ b/svx/source/form/fmcontrollayout.cxx @@ -40,10 +40,10 @@ #include <tools/diagnose_ex.h> #include <vcl/outdev.hxx> -//........................................................................ + namespace svxform { -//........................................................................ + using namespace ::utl; using ::com::sun::star::uno::Reference; @@ -73,7 +73,7 @@ namespace svxform namespace { - //.................................................................... + template< class INTERFACE_TYPE > Reference< INTERFACE_TYPE > getTypedModelNode( const Reference< XInterface >& _rxModelNode ) { @@ -90,7 +90,7 @@ namespace svxform } } - //.................................................................... + static bool lcl_getDocumentDefaultStyleAndFamily( const Reference< XInterface >& _rxDocument, OUString& _rFamilyName, OUString& _rStyleName ) SAL_THROW(( Exception )) { bool bSuccess = true; @@ -122,7 +122,7 @@ namespace svxform return bSuccess; } - //.................................................................... + static void lcl_initializeControlFont( const Reference< XPropertySet >& _rxModel ) { try @@ -190,9 +190,9 @@ namespace svxform } } - //==================================================================== + //= ControlLayouter - //==================================================================== + Reference< XPropertySet > ControlLayouter::getDefaultDocumentTextStyle( const Reference< XPropertySet >& _rxModel ) { @@ -311,8 +311,8 @@ namespace svxform return bUseRefDevice; } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmdocumentclassification.cxx b/svx/source/form/fmdocumentclassification.cxx index cbdcd6e0ad79..ece8a92fbbfd 100644 --- a/svx/source/form/fmdocumentclassification.cxx +++ b/svx/source/form/fmdocumentclassification.cxx @@ -29,10 +29,10 @@ #include <tools/diagnose_ex.h> -//........................................................................ + namespace svxform { -//........................................................................ + namespace { @@ -43,7 +43,7 @@ namespace svxform using ::com::sun::star::uno::UNO_QUERY; using ::com::sun::star::frame::XModule; - //.................................................................... + template< class TYPE > Reference< TYPE > getTypedModelNode( const Reference< XInterface >& _rxModelNode ) { @@ -60,7 +60,7 @@ namespace svxform } } - //.................................................................... + Reference< XModel > getDocument( const Reference< XInterface >& _rxModelNode ) { return getTypedModelNode< XModel >( _rxModelNode ); @@ -74,8 +74,8 @@ namespace svxform using namespace ::com::sun::star::container; using namespace ::com::sun::star::sdbc; - //==================================================================== - //==================================================================== + + namespace { @@ -105,9 +105,9 @@ namespace svxform } } - //==================================================================== + //= DocumentClassification - //==================================================================== + DocumentType DocumentClassification::classifyDocument( const Reference< XModel >& _rxDocumentModel ) SAL_THROW(()) { @@ -193,8 +193,8 @@ namespace svxform return OUString(); } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmexch.cxx b/svx/source/form/fmexch.cxx index ca1e27c06846..88756313ea72 100644 --- a/svx/source/form/fmexch.cxx +++ b/svx/source/form/fmexch.cxx @@ -28,17 +28,17 @@ #include <tools/diagnose_ex.h> -//........................................................................ + namespace svxform { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::datatransfer; - //==================================================================== + //= OLocalExchange - //==================================================================== + OLocalExchange::OLocalExchange( ) :m_bDragging( sal_False ) @@ -120,9 +120,9 @@ namespace svxform return sal_False; // do not have any formats by default } - //==================================================================== + //= OControlTransferData - //==================================================================== + OControlTransferData::OControlTransferData( ) :m_pFocusEntry( NULL ) @@ -281,9 +281,9 @@ namespace svxform } } - //==================================================================== + //= OControlExchange - //==================================================================== + OControlExchange::OControlExchange( ) { @@ -364,17 +364,17 @@ namespace svxform return s_nFormat; } - //==================================================================== + //= OControlExchangeHelper - //==================================================================== + OLocalExchange* OControlExchangeHelper::createExchange() const { return new OControlExchange; } - //==================================================================== + //= OLocalExchangeHelper - //==================================================================== + OLocalExchangeHelper::OLocalExchangeHelper(Window* _pDragSource) :m_pDragSource(_pDragSource) @@ -423,8 +423,8 @@ namespace svxform m_pTransferable->acquire(); } -//........................................................................ + } -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmexpl.cxx b/svx/source/form/fmexpl.cxx index 610060d0335f..1c4b4183fb9d 100644 --- a/svx/source/form/fmexpl.cxx +++ b/svx/source/form/fmexpl.cxx @@ -71,9 +71,9 @@ using namespace ::com::sun::star::beans; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::container; -//======================================================================== + // class FmNavInsertedHint -//======================================================================== + TYPEINIT1( FmNavInsertedHint, SfxHint ); DBG_NAME(FmNavInsertedHint); @@ -92,9 +92,9 @@ FmNavInsertedHint::~FmNavInsertedHint() } -//======================================================================== + // class FmNavInsertedHint -//======================================================================== + TYPEINIT1( FmNavModelReplacedHint, SfxHint ); DBG_NAME(FmNavModelReplacedHint); @@ -110,9 +110,9 @@ FmNavModelReplacedHint::~FmNavModelReplacedHint() DBG_DTOR(FmNavModelReplacedHint,NULL); } -//======================================================================== + // class FmNavRemovedHint -//======================================================================== + TYPEINIT1( FmNavRemovedHint, SfxHint ); DBG_NAME(FmNavRemovedHint); @@ -129,9 +129,9 @@ FmNavRemovedHint::~FmNavRemovedHint() } -//======================================================================== + // class FmNavNameChangedHint -//======================================================================== + TYPEINIT1( FmNavNameChangedHint, SfxHint ); DBG_NAME(FmNavNameChangedHint); @@ -148,9 +148,9 @@ FmNavNameChangedHint::~FmNavNameChangedHint() DBG_DTOR(FmNavNameChangedHint,NULL); } -//======================================================================== + // class FmNavClearedHint -//======================================================================== + TYPEINIT1( FmNavClearedHint, SfxHint ); DBG_NAME(FmNavClearedHint); @@ -165,19 +165,19 @@ FmNavClearedHint::~FmNavClearedHint() DBG_DTOR(FmNavClearedHint,NULL); } -//======================================================================== + // class FmNavRequestSelectHint -//======================================================================== + TYPEINIT1(FmNavRequestSelectHint, SfxHint); -//======================================================================== + // class FmNavViewMarksChanged -//======================================================================== + TYPEINIT1(FmNavViewMarksChanged, SfxHint); -//======================================================================== + // class FmEntryDataList -//======================================================================== + DBG_NAME(FmEntryDataList); FmEntryDataList::FmEntryDataList() @@ -229,9 +229,9 @@ void FmEntryDataList::clear() maEntryDataList.clear(); } -//======================================================================== + // class FmEntryData -//======================================================================== + TYPEINIT0( FmEntryData ); DBG_NAME(FmEntryData); @@ -317,9 +317,9 @@ sal_Bool FmEntryData::IsEqualWithoutChildren( FmEntryData* pEntryData ) } -//======================================================================== + // class FmFormData -//======================================================================== + TYPEINIT1( FmFormData, FmEntryData ); DBG_NAME(FmFormData); @@ -332,12 +332,12 @@ FmFormData::FmFormData( m_xForm( _rxForm ) { DBG_CTOR(FmEntryData,NULL); - ////////////////////////////////////////////////////////////////////// + // Images setzen m_aNormalImage = _rNormalImages.GetImage( RID_SVXIMG_FORM ); - ////////////////////////////////////////////////////////////////////// + // Titel setzen if (m_xForm.is()) { @@ -387,9 +387,9 @@ sal_Bool FmFormData::IsEqualWithoutChildren( FmEntryData* pEntryData ) } -//======================================================================== + // class FmControlData -//======================================================================== + TYPEINIT1( FmControlData, FmEntryData ); DBG_NAME(FmControlData); @@ -402,11 +402,11 @@ FmControlData::FmControlData( m_xFormComponent( _rxComponent ) { DBG_CTOR(FmControlData,NULL); - ////////////////////////////////////////////////////////////////////// + // Images setzen m_aNormalImage = GetImage( _rNormalImages ); - ////////////////////////////////////////////////////////////////////// + // Titel setzen Reference< XPropertySet > xSet(m_xFormComponent, UNO_QUERY); if( xSet.is() ) @@ -438,7 +438,7 @@ FmEntryData* FmControlData::Clone() Image FmControlData::GetImage(const ImageList& ilNavigatorImages) const { - ////////////////////////////////////////////////////////////////////// + // Default-Image Image aImage = ilNavigatorImages.GetImage( RID_SVXIMG_CONTROL ); @@ -446,7 +446,7 @@ Image FmControlData::GetImage(const ImageList& ilNavigatorImages) const if (!m_xFormComponent.is()) return aImage; - ////////////////////////////////////////////////////////////////////// + // Spezielle Control-Images sal_Int16 nObjectType = getControlTypeByObject(xInfo); switch (nObjectType) @@ -572,14 +572,14 @@ void FmControlData::ModelReplaced( m_aNormalImage = GetImage( _rNormalImages ); } -//............................................................................ + namespace svxform { -//............................................................................ - //======================================================================== + + // class NavigatorFrame - //======================================================================== + DBG_NAME(NavigatorFrame) NavigatorFrame::NavigatorFrame( SfxBindings* _pBindings, SfxChildWindow* _pMgr, @@ -681,9 +681,9 @@ namespace svxform } - //======================================================================== + // class NavigatorFrameManager - //======================================================================== + SFX_IMPL_DOCKINGWINDOW( NavigatorFrameManager, SID_FM_SHOW_FMEXPLORER ) @@ -698,8 +698,8 @@ namespace svxform ((SfxDockingWindow*)pWindow)->Initialize( _pInfo ); } -//............................................................................ + } // namespace svxform -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmitems.cxx b/svx/source/form/fmitems.cxx index c46e421b7bfd..ce88ba7381af 100644 --- a/svx/source/form/fmitems.cxx +++ b/svx/source/form/fmitems.cxx @@ -22,9 +22,9 @@ #include <svx/svxids.hrc> #include <tools/stream.hxx> -//======================================================================== + // class FmInterfaceItem -//======================================================================== + TYPEINIT1(FmInterfaceItem, SfxPoolItem); diff --git a/svx/source/form/fmobjfac.cxx b/svx/source/form/fmobjfac.cxx index 0022e9200988..8a6eca456092 100644 --- a/svx/source/form/fmobjfac.cxx +++ b/svx/source/form/fmobjfac.cxx @@ -63,7 +63,7 @@ FmFormObjFactory::FmFormObjFactory() { SdrObjFactory::InsertMakeObjectHdl(LINK(this, FmFormObjFactory, MakeObject)); - ////////////////////////////////////////////////////////////////////// + // Konfigurations-::com::sun::star::frame::Controller und NavigationBar registrieren SvxFmTbxCtlConfig::RegisterControl( SID_FM_CONFIG ); SvxFmTbxCtlAbsRec::RegisterControl( SID_FM_RECORD_ABSOLUTE ); @@ -81,7 +81,7 @@ FmFormObjFactory::FmFormObjFactory() DataNavigatorManager::RegisterChildWindow(); FmFilterNavigatorWinMgr::RegisterChildWindow(); - ////////////////////////////////////////////////////////////////////// + // Interface fuer die Formshell registrieren FmFormShell::RegisterInterface(0); diff --git a/svx/source/form/fmscriptingenv.cxx b/svx/source/form/fmscriptingenv.cxx index ef746cc93c12..08b658fa9c92 100644 --- a/svx/source/form/fmscriptingenv.cxx +++ b/svx/source/form/fmscriptingenv.cxx @@ -44,10 +44,10 @@ using std::pair; #include <set> -//........................................................................ + namespace svxform { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::script::XEventAttacherManager; @@ -70,9 +70,9 @@ namespace svxform class FormScriptingEnvironment; - //==================================================================== + //= FormScriptListener - //==================================================================== + typedef ::cppu::WeakImplHelper1 < XScriptListener > FormScriptListener_Base; @@ -137,9 +137,9 @@ namespace svxform DECL_LINK( OnAsyncScriptEvent, ScriptEvent* ); }; - //==================================================================== + //= FormScriptingEnvironment - //==================================================================== + class FormScriptingEnvironment : public IFormScriptingEnvironment { private: @@ -177,9 +177,9 @@ namespace svxform FormScriptingEnvironment& operator=( const FormScriptingEnvironment& ); // never implemented }; - //==================================================================== + //= FormScriptListener - //==================================================================== + FormScriptListener::FormScriptListener( FormScriptingEnvironment* pScriptExecutor ) :m_pScriptExecutor( pScriptExecutor ) @@ -803,9 +803,9 @@ namespace svxform return 0L; } - //==================================================================== + //= FormScriptingEnvironment - //==================================================================== + FormScriptingEnvironment::FormScriptingEnvironment( FmFormModel& _rModel ) :m_refCount( 0 ) @@ -884,9 +884,9 @@ namespace svxform namespace { - //................................................................ + //. NewStyleUNOScript - //................................................................ + class SAL_NO_VTABLE IScript { public: @@ -896,9 +896,9 @@ namespace svxform }; typedef ::boost::shared_ptr< IScript > PScript; - //................................................................ + //. NewStyleUNOScript - //................................................................ + class NewStyleUNOScript : public IScript { SfxObjectShell& m_rObjectShell; @@ -915,7 +915,7 @@ namespace svxform virtual void invoke( const Sequence< Any >& _rArguments, Any& _rSynchronousResult ); }; - //................................................................ + void NewStyleUNOScript::invoke( const Sequence< Any >& _rArguments, Any& _rSynchronousResult ) { Sequence< sal_Int16 > aOutArgsIndex; @@ -1036,8 +1036,8 @@ namespace svxform return new FormScriptingEnvironment( _rModel ); } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx index a53998860c79..a8fff4d7569c 100644 --- a/svx/source/form/fmshell.cxx +++ b/svx/source/form/fmshell.cxx @@ -145,9 +145,9 @@ using namespace ::com::sun::star::form::runtime; using namespace ::com::sun::star::frame; using namespace ::svxform; -//======================================================================== + // class FmDesignModeChangedHint -//======================================================================== + TYPEINIT1( FmDesignModeChangedHint, SfxHint ); @@ -161,7 +161,7 @@ FmDesignModeChangedHint::~FmDesignModeChangedHint() { } -//======================================================================== + const sal_uInt32 FM_UI_FEATURE_SHOW_DATABASEBAR = 0x00000001; const sal_uInt32 FM_UI_FEATURE_SHOW_FIELD = 0x00000002; const sal_uInt32 FM_UI_FEATURE_SHOW_PROPERTIES = 0x00000004; @@ -207,7 +207,7 @@ SFX_IMPL_INTERFACE(FmFormShell, SfxShell, SVX_RES(RID_STR_FORMSHELL)) FM_UI_FEATURE_TB_FORMDESIGN ); } -//======================================================================== + TYPEINIT1(FmFormShell,SfxShell) @@ -374,7 +374,7 @@ void FmFormShell::Execute(SfxRequest &rReq) { sal_uInt16 nSlot = rReq.GetSlot(); - ////////////////////////////////////////////////////////////////////// + // MasterSlot setzen switch( nSlot ) { @@ -404,7 +404,7 @@ void FmFormShell::Execute(SfxRequest &rReq) break; } - ////////////////////////////////////////////////////////////////////// + // Identifier und Inventor des Uno-Controls setzen sal_uInt16 nIdentifier = 0; switch( nSlot ) diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index 85e80bb37bde..3578ef3ca3c8 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -270,12 +270,12 @@ using namespace ::com::sun::star::script; using namespace ::svxform; using namespace ::svx; -//============================================================================== + //= helper -//============================================================================== + namespace { - //.......................................................................... + void collectInterfacesFromMarkList( const SdrMarkList& _rMarkList, InterfaceBag& /* [out] */ _rInterfaces ) { _rInterfaces.clear(); @@ -313,7 +313,7 @@ namespace } } - //.......................................................................... + sal_Int16 GridView2ModelPos(const Reference< XIndexAccess>& rColumns, sal_Int16 nViewPos) { try @@ -347,7 +347,7 @@ namespace return (sal_Int16)-1; } - //.......................................................................... + void TransferEventScripts(const Reference< XControlModel>& xModel, const Reference< XControl>& xControl, const Sequence< ScriptEventDescriptor>& rTransferIfAvailable) { @@ -613,9 +613,9 @@ Reference< XForm > GetForm(const Reference< XInterface>& _rxElement) return Reference< XForm >(); } -//======================================================================== + // class FmXFormShell_Base_Disambiguation -//======================================================================== + FmXFormShell_Base_Disambiguation::FmXFormShell_Base_Disambiguation( ::osl::Mutex& _rMutex ) :FmXFormShell_BD_BASE( _rMutex ) { @@ -632,9 +632,9 @@ void SAL_CALL FmXFormShell_Base_Disambiguation::disposing() // base classes. } -//======================================================================== + // class FmXFormShell -//======================================================================== + DBG_NAME(FmXFormShell); FmXFormShell::FmXFormShell( FmFormShell& _rShell, SfxViewFrame* _pViewFrame ) @@ -4023,8 +4023,8 @@ bool FmXFormShell::HasControlFocus() const return bHasControlFocus; } -//============================================================================== -//============================================================================== + + SearchableControlIterator::SearchableControlIterator(Reference< XInterface> xStartingPoint) :IndexAccessIterator(xStartingPoint) { @@ -4068,8 +4068,8 @@ bool SearchableControlIterator::ShouldStepInto(const Reference< XInterface>& /*x return true; } -//============================================================================== -//============================================================================== + + SFX_IMPL_MENU_CONTROL(ControlConversionMenuController, SfxBoolItem); @@ -4147,6 +4147,6 @@ void ControlConversionMenuController::StateChanged(sal_uInt16 nSID, SfxItemState } } -//============================================================================== + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx index 2a11166b00a1..fe8d704fd382 100644 --- a/svx/source/form/fmsrcimp.cxx +++ b/svx/source/form/fmsrcimp.cxx @@ -66,7 +66,7 @@ using namespace ::com::sun::star::beans; using namespace ::svxform; -//======================================================================== + // = FmSearchThread void FmSearchThread::run() @@ -82,7 +82,7 @@ void FmSearchThread::onTerminated() delete this; } -//======================================================================== + // = FmRecordCountListener // SMART_UNO_IMPLEMENTATION(FmRecordCountListener, UsrObject); @@ -158,7 +158,7 @@ void FmRecordCountListener::propertyChange(const ::com::sun::star::beans::Prope NotifyCurrentCount(); } -//======================================================================== + // FmSearchEngine - local classes SimpleTextWrapper::SimpleTextWrapper(const Reference< ::com::sun::star::awt::XTextComponent > & _xText) @@ -208,7 +208,7 @@ OUString CheckBoxWrapper::getCurrentText() const return OUString(); } -//======================================================================== + // = FmSearchEngine sal_Bool FmSearchEngine::MoveCursor() diff --git a/svx/source/form/fmtextcontroldialogs.cxx b/svx/source/form/fmtextcontroldialogs.cxx index d8c80f345b86..1bbf1ca01476 100644 --- a/svx/source/form/fmtextcontroldialogs.cxx +++ b/svx/source/form/fmtextcontroldialogs.cxx @@ -29,14 +29,14 @@ #include <com/sun/star/uno/Sequence.hxx> #include <svl/cjkoptions.hxx> -//........................................................................ + namespace svx { -//........................................................................ - //==================================================================== + + //= TextControlCharAttribDialog - //==================================================================== + TextControlCharAttribDialog::TextControlCharAttribDialog( Window* pParent, const SfxItemSet& _rCoreSet, const SvxFontListItem& _rFontList ) : SfxTabDialog( pParent, "TextControlCharacterPropertiesDialog", @@ -90,6 +90,6 @@ namespace svx } } // namespace svx -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmtextcontrolfeature.cxx b/svx/source/form/fmtextcontrolfeature.cxx index 029b0f9d8302..32eac10dd75a 100644 --- a/svx/source/form/fmtextcontrolfeature.cxx +++ b/svx/source/form/fmtextcontrolfeature.cxx @@ -19,10 +19,10 @@ #include "fmtextcontrolfeature.hxx" -//........................................................................ + namespace svx { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::frame; @@ -30,9 +30,9 @@ namespace svx using namespace ::com::sun::star::beans; using namespace ::com::sun::star::util; - //==================================================================== + //= FmTextControlFeature - //==================================================================== + FmTextControlFeature::FmTextControlFeature( const Reference< XDispatch >& _rxDispatcher, const URL& _rFeatureURL, SfxSlotId _nSlotId, ISlotInvalidator* _pInvalidator ) :m_xDispatcher ( _rxDispatcher ) @@ -112,8 +112,8 @@ namespace svx } } -//........................................................................ + } // namespace svx -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx index 36914c891158..c7df62ebb3c6 100644 --- a/svx/source/form/fmtextcontrolshell.cxx +++ b/svx/source/form/fmtextcontrolshell.cxx @@ -63,10 +63,10 @@ #include <vcl/outdev.hxx> #include <osl/mutex.hxx> -//........................................................................ + namespace svx { -//........................................................................ + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -79,10 +79,10 @@ namespace svx using namespace ::com::sun::star::beans; using namespace ::com::sun::star::container; - //==================================================================== + typedef sal_uInt16 WhichId; - //==================================================================== + static SfxSlotId pTextControlSlots[] = { SID_CLIPBOARD_FORMAT_ITEMS, @@ -158,9 +158,9 @@ namespace svx 0 }; - //==================================================================== + //= FmFocusListenerAdapter - //==================================================================== + typedef ::cppu::WeakImplHelper1 < XFocusListener > FmFocusListenerAdapter_Base; class FmFocusListenerAdapter : public FmFocusListenerAdapter_Base @@ -250,9 +250,9 @@ namespace svx m_xWindow.clear(); } - //==================================================================== + //= FmMouseListenerAdapter - //==================================================================== + typedef ::cppu::WeakImplHelper1 < XMouseListener > FmMouseListenerAdapter_Base; class FmMouseListenerAdapter : public FmMouseListenerAdapter_Base @@ -278,9 +278,9 @@ namespace svx virtual void SAL_CALL disposing( const EventObject& Source ) throw (RuntimeException); }; - //==================================================================== + //= FmMouseListenerAdapter - //==================================================================== + DBG_NAME( FmMouseListenerAdapter ) @@ -363,13 +363,13 @@ namespace svx m_xWindow.clear(); } - //==================================================================== + //= FmTextControlShell - //==================================================================== + namespace { - //.................................................................... + void lcl_translateUnoStateToItem( SfxSlotId _nSlot, const Any& _rUnoState, SfxItemSet& _rSet ) { WhichId nWhich = _rSet.GetPool()->GetWhich( _nSlot ); @@ -426,7 +426,7 @@ namespace svx } } - //.................................................................... + OUString lcl_getUnoSlotName( SfxApplication&, SfxSlotId _nSlotId ) { OUString sSlotUnoName; @@ -469,7 +469,7 @@ namespace svx return sSlotUnoName; } - //.................................................................... + bool lcl_determineReadOnly( const Reference< XControl >& _rxControl ) { bool bIsReadOnlyModel = true; @@ -498,7 +498,7 @@ namespace svx return bIsReadOnlyModel; } - //.................................................................... + static Window* lcl_getWindow( const Reference< XControl >& _rxControl ) { Window* pWindow = NULL; @@ -518,7 +518,7 @@ namespace svx return pWindow; } - //.................................................................... + bool lcl_isRichText( const Reference< XControl >& _rxControl ) { if ( !_rxControl.is() ) @@ -1266,7 +1266,7 @@ namespace svx // Another possibility would be to have dedicated shells for the slots which we might // or might not be able to serve. However, this could probably increase the number of // shells too much (In theory, nearly every slot could have an own shell then). - // + // #i51621# / 2005-08-19 / frank.schoenheit@sun.com // bool bHaveAnyServeableSlots = m_xActiveTextComponent.is() || !m_aControlFeatures.empty(); // LEM: not calling m_aControlActivatonHandler causes fdo#63695, so disable this hack for now. @@ -1379,8 +1379,8 @@ namespace svx m_rBindings.GetDispatcher()->ExecutePopup( SVX_RES( RID_FM_TEXTATTRIBUTE_MENU ) ); } -//........................................................................ + } // namespace svx -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/fmtools.cxx b/svx/source/form/fmtools.cxx index f80c41b66ba9..92ce40ff472a 100644 --- a/svx/source/form/fmtools.cxx +++ b/svx/source/form/fmtools.cxx @@ -98,7 +98,7 @@ using namespace ::com::sun::star::form; using namespace ::svxform; using namespace ::connectivity::simple; -// ------------------------------------------------------------------------------ + namespace { static bool lcl_shouldDisplayError( const Any& _rError ) @@ -121,7 +121,7 @@ namespace } } -// ------------------------------------------------------------------------------ + void displayException(const Any& _rExcept, Window* _pParent) { // check whether we need to display it @@ -143,25 +143,25 @@ void displayException(const Any& _rExcept, Window* _pParent) } } -// ------------------------------------------------------------------------------ + void displayException(const ::com::sun::star::sdbc::SQLException& _rExcept, Window* _pParent) { displayException(makeAny(_rExcept), _pParent); } -// ------------------------------------------------------------------------------ + void displayException(const ::com::sun::star::sdbc::SQLWarning& _rExcept, Window* _pParent) { displayException(makeAny(_rExcept), _pParent); } -// ------------------------------------------------------------------------------ + void displayException(const ::com::sun::star::sdb::SQLContext& _rExcept, Window* _pParent) { displayException(makeAny(_rExcept), _pParent); } -// ------------------------------------------------------------------------------ + void displayException(const ::com::sun::star::sdb::SQLErrorEvent& _rEvent, Window* _pParent) { displayException(_rEvent.Reason, _pParent); @@ -222,7 +222,7 @@ OUString getLabelName(const Reference< ::com::sun::star::beans::XPropertySet>& x return ::comphelper::getString(xControlModel->getPropertyValue(FM_PROP_CONTROLSOURCE)); } -//======================================================================== + // = CursorWrapper CursorWrapper::CursorWrapper(const Reference< ::com::sun::star::sdbc::XRowSet>& _rxCursor, sal_Bool bUseCloned) @@ -306,7 +306,7 @@ void FmXDisposeListener::setAdapter(FmXDisposeMultiplexer* pAdapter) } } -//============================================================================== + DBG_NAME(FmXDisposeMultiplexer); FmXDisposeMultiplexer::FmXDisposeMultiplexer(FmXDisposeListener* _pListener, const Reference< ::com::sun::star::lang::XComponent>& _rxObject, sal_Int16 _nId) @@ -357,7 +357,7 @@ void FmXDisposeMultiplexer::dispose() } } -//============================================================================== + sal_Int16 getControlTypeByObject(const Reference< ::com::sun::star::lang::XServiceInfo>& _rxObject) { diff --git a/svx/source/form/fmview.cxx b/svx/source/form/fmview.cxx index b0d3c0a3bd80..dcc9a8277282 100644 --- a/svx/source/form/fmview.cxx +++ b/svx/source/form/fmview.cxx @@ -78,7 +78,7 @@ using namespace ::com::sun::star::util; using namespace ::svxform; using namespace ::svx; -//======================================================================== + TYPEINIT1(FmFormView, E3dView); @@ -96,7 +96,7 @@ void FmFormView::Init() pImpl = new FmXFormView(this); pImpl->acquire(); - ////////////////////////////////////////////////////////////////////// + // Model setzen SdrModel* pModel = GetModel(); @@ -104,7 +104,7 @@ void FmFormView::Init() if( !pModel->ISA(FmFormModel) ) return; FmFormModel* pFormModel = (FmFormModel*)pModel; - ////////////////////////////////////////////////////////////////////// + // DesignMode vom Model holen sal_Bool bInitDesignMode = pFormModel->GetOpenInDesignMode(); if ( pFormModel->OpenInDesignModeIsDefaulted( ) ) diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx index c6c29adce7db..20e2ea8e3787 100644 --- a/svx/source/form/fmvwimp.cxx +++ b/svx/source/form/fmvwimp.cxx @@ -161,7 +161,7 @@ public: virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); }; -//======================================================================== + DBG_NAME(FormViewPageWindowAdapter) FormViewPageWindowAdapter::FormViewPageWindowAdapter( const css::uno::Reference<css::uno::XComponentContext>& _rContext, const SdrPageWindow& _rWindow, FmXFormView* _pViewImpl ) @@ -853,7 +853,7 @@ static Reference< XControl > lcl_firstFocussableControl( const Sequence< Referen namespace { - // ......................................................................... + void lcl_ensureControlsOfFormExist_nothrow( const SdrPage& _rPage, const SdrView& _rView, const Window& _rWindow, const Reference< XForm >& _rxForm ) { try @@ -1215,7 +1215,7 @@ SdrObject* FmXFormView::implCreateFieldControl( const ::svx::ODataAccessDescript OUString sLabelPostfix; - //////////////////////////////////////////////////////////////// + // nur fuer Textgroesse OutputDevice* pOutDev = NULL; if (m_pView->GetActualOutDev() && m_pView->GetActualOutDev()->GetOutDevType() == OUTDEV_WINDOW) @@ -1248,7 +1248,7 @@ SdrObject* FmXFormView::implCreateFieldControl( const ::svx::ODataAccessDescript if ((DataType::BINARY == nDataType) || (DataType::VARBINARY == nDataType)) return NULL; - ////////////////////////////////////////////////////////////////////// + // determine the control type by examining the data type of the bound column sal_uInt16 nOBJID = 0; sal_Bool bDateNTimeField = sal_False; @@ -1316,7 +1316,7 @@ SdrObject* FmXFormView::implCreateFieldControl( const ::svx::ODataAccessDescript return NULL; } - ////////////////////////////////////////////////////////////////////// + // group objects bool bCheckbox = ( OBJ_FM_CHECKBOX == nOBJID ); OSL_ENSURE( !bCheckbox || !pLabel, "FmXFormView::implCreateFieldControl: why was there a label created for a check box?" ); @@ -1368,7 +1368,7 @@ SdrObject* FmXFormView::implCreateXFormsControl( const ::svx::OXFormsDescriptor Reference< XNumberFormats > xNumberFormats; OUString sLabelPostfix = _rDesc.szName; - //////////////////////////////////////////////////////////////// + // nur fuer Textgroesse OutputDevice* pOutDev = NULL; if (m_pView->GetActualOutDev() && m_pView->GetActualOutDev()->GetOutDevType() == OUTDEV_WINDOW) @@ -1397,7 +1397,7 @@ SdrObject* FmXFormView::implCreateXFormsControl( const ::svx::OXFormsDescriptor if ( !pOutDev ) return NULL; - ////////////////////////////////////////////////////////////////////// + // The service name decides which control should be created sal_uInt16 nOBJID = OBJ_FM_EDIT; if(OUString(_rDesc.szServiceName).equals((OUString)FM_SUN_COMPONENT_NUMERICFIELD)) @@ -1422,7 +1422,7 @@ SdrObject* FmXFormView::implCreateXFormsControl( const ::svx::OXFormsDescriptor return NULL; } - ////////////////////////////////////////////////////////////////////// + // Now build the connection between the control and the data item. Reference< XValueBinding > xValueBinding(_rDesc.xPropSet,UNO_QUERY); Reference< XBindableValue > xBindableValue(pControl->GetUnoControlModel(),UNO_QUERY); @@ -1436,7 +1436,7 @@ SdrObject* FmXFormView::implCreateXFormsControl( const ::svx::OXFormsDescriptor if ( bCheckbox ) return pControl; - ////////////////////////////////////////////////////////////////////// + // group objects SdrObjGroup* pGroup = new SdrObjGroup(); SdrObjList* pObjList = pGroup->GetSubList(); diff --git a/svx/source/form/formcontrolfactory.cxx b/svx/source/form/formcontrolfactory.cxx index 508e88ab0bf7..9e9859f6dfbc 100644 --- a/svx/source/form/formcontrolfactory.cxx +++ b/svx/source/form/formcontrolfactory.cxx @@ -49,10 +49,10 @@ #include <set> -//........................................................................ + namespace svxform { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XInterface; @@ -94,9 +94,9 @@ namespace svxform namespace ColumnValue = ::com::sun::star::sdbc::ColumnValue; namespace WritingMode2 = ::com::sun::star::text::WritingMode2; - //==================================================================== + //= FormControlFactory_Data - //==================================================================== + struct FormControlFactory_Data { Reference<XComponentContext> m_xContext; @@ -107,9 +107,9 @@ namespace svxform } }; - //==================================================================== + //= FormControlFactory - //==================================================================== + FormControlFactory::FormControlFactory( const Reference<XComponentContext>& _rContext ) :m_pData( new FormControlFactory_Data( _rContext ) ) @@ -147,7 +147,7 @@ namespace svxform namespace { - //.................................................................... + static OUString lcl_getUniqueLabel_nothrow( const Reference< XPropertySet >& _rxControlModel, const OUString& _rBaseLabel ) { OUString sLabel( _rBaseLabel ); @@ -191,7 +191,7 @@ namespace svxform return sLabel; } - //.................................................................... + static Sequence< PropertyValue > lcl_getDataSourceIndirectProperties( const Reference< XPropertySet >& _rxControlModel, const Reference<XComponentContext>& _rContext ) { @@ -230,7 +230,7 @@ namespace svxform return aInfo; } - //.................................................................... + static const sal_Char* aCharacterAndParagraphProperties[] = { "CharFontName", @@ -361,7 +361,7 @@ namespace svxform NULL }; - //.................................................................... + static void lcl_initializeCharacterAttributes( const Reference< XPropertySet >& _rxModel ) { try @@ -566,7 +566,7 @@ namespace svxform try { - //////////////////////////////////////////////////////////////////////// + // if the field has a numeric format, and the model has a "Scale" property, sync it Reference< XPropertySetInfo > xFieldPSI( _rxDatabaseField->getPropertySetInfo(), UNO_SET_THROW ); Reference< XPropertySetInfo > xModelPSI( _rxControlModel->getPropertySetInfo(), UNO_SET_THROW ); @@ -591,7 +591,7 @@ namespace svxform _rxControlModel->setPropertyValue( FM_PROP_DECIMAL_ACCURACY, aScaleVal ); } - //////////////////////////////////////////////////////////////////////// + // minimum and maximum of the control according to the type of the database field sal_Int32 nDataType = DataType::OTHER; OSL_VERIFY( _rxDatabaseField->getPropertyValue( FM_PROP_FIELDTYPE ) >>= nDataType ); @@ -636,7 +636,7 @@ namespace svxform _rxControlModel->setPropertyValue( FM_PROP_VALUEMAX, aValue ); } - //////////////////////////////////////////////////////////////////////// + // a check box can be tristate if and only if the column it is bound to is nullable sal_Int16 nClassId = FormComponentType::CONTROL; OSL_VERIFY( _rxControlModel->getPropertyValue( FM_PROP_CLASSID ) >>= nClassId ); @@ -722,8 +722,8 @@ namespace svxform return sName; } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx index 325765178b81..40cfa4cdac23 100644 --- a/svx/source/form/formcontroller.cxx +++ b/svx/source/form/formcontroller.cxx @@ -208,9 +208,9 @@ namespace svxform namespace FormFeature = ::com::sun::star::form::runtime::FormFeature; namespace DataType = ::com::sun::star::sdbc::DataType; -//============================================================================== + // ColumnInfo -//============================================================================== + struct ColumnInfo { // information about the column itself @@ -246,9 +246,9 @@ struct ColumnInfo } }; -//============================================================================== + //= ColumnInfoCache -//============================================================================== + class ColumnInfoCache { public: @@ -426,9 +426,9 @@ const ColumnInfo& ColumnInfoCache::getColumnInfo( size_t _pos ) return m_aColumns[ _pos ]; } -//================================================================== + // OParameterContinuation -//================================================================== + class OParameterContinuation : public OInteraction< XInteractionSupplyParameters > { Sequence< PropertyValue > m_aValues; @@ -448,9 +448,9 @@ void SAL_CALL OParameterContinuation::setParameters( const Sequence< PropertyVal m_aValues = _rValues; } -//================================================================== + // FmXAutoControl -//================================================================== + struct FmFieldInfo { OUString aFieldName; @@ -463,9 +463,9 @@ struct FmFieldInfo {xField->getPropertyValue(FM_PROP_NAME) >>= aFieldName;} }; -//================================================================== + // FmXAutoControl -//================================================================== + class FmXAutoControl: public UnoControl { @@ -523,7 +523,7 @@ struct UpdateAllListeners : public ::std::unary_function< Reference< XDispatch > return true; } }; -//.............................................................................. + IMPL_LINK( FormController, OnInvalidateFeatures, void*, /*_pNotInterestedInThisParam*/ ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -1571,7 +1571,7 @@ void FormController::modified( const EventObject& _rEvent ) throw( RuntimeExcept // (this case may happen if somebody moves the scroll wheel of the mouse over a control // which does not have the focus) // 85511 - 29.05.2001 - frank.schoenheit@germany.sun.com - // + // also, it happens when an image control gets a new image by double-clicking it // #i88458# / 2009-01-12 / frank.schoenheit@sun.com Reference< XWindow > xControlWindow( _rEvent.Source, UNO_QUERY_THROW ); diff --git a/svx/source/form/formcontrolling.cxx b/svx/source/form/formcontrolling.cxx index 67bddcdd7f33..abfc90a582a2 100644 --- a/svx/source/form/formcontrolling.cxx +++ b/svx/source/form/formcontrolling.cxx @@ -39,10 +39,10 @@ #include <functional> #include <algorithm> -//........................................................................ + namespace svx { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XComponentContext; @@ -65,9 +65,9 @@ namespace svx namespace FormFeature = ::com::sun::star::form::runtime::FormFeature; - //==================================================================== + //= FeatureSlotTranslation - //==================================================================== + namespace { struct FeatureDescription @@ -78,7 +78,7 @@ namespace svx }; typedef ::std::vector< FeatureDescription > FeatureDescriptions; - //................................................................ + const FeatureDescriptions& getFeatureDescriptions() { static FeatureDescriptions s_aFeatureDescriptions; @@ -120,7 +120,7 @@ namespace svx namespace { - //................................................................ + struct MatchFeatureDescriptionByURL : public ::std::unary_function< FeatureDescription, bool > { const OUString& m_rURL; @@ -132,7 +132,7 @@ namespace svx } }; - //................................................................ + struct MatchFeatureDescriptionBySlotId : public ::std::unary_function< FeatureDescription, bool > { sal_Int32 m_nSlotId; @@ -144,7 +144,7 @@ namespace svx } }; - //................................................................ + struct MatchFeatureDescriptionByFormFeature : public ::std::unary_function< FeatureDescription, bool > { sal_Int32 m_nFormFeature; @@ -156,7 +156,7 @@ namespace svx } }; - //................................................................ + struct FormFeatureToSlotId : public ::std::unary_function< sal_Int16, sal_Int32 > { sal_Int32 operator()( sal_Int16 _FormFeature ) @@ -192,9 +192,9 @@ namespace svx return ( pos != rDescriptions.end() ) ? pos->nSlotId : -1; } - //==================================================================== + //= ControllerFeatures - //==================================================================== + ControllerFeatures::ControllerFeatures( IControllerFeatureInvalidation* _pInvalidationCallback ) :m_pInvalidationCallback( _pInvalidationCallback ) @@ -235,9 +235,9 @@ namespace svx } } - //==================================================================== + //= FormControllerHelper - //==================================================================== + FormControllerHelper::FormControllerHelper( const Reference< XFormController >& _rxController, IControllerFeatureInvalidation* _pInvalidationCallback ) :m_pInvalidationCallback( _pInvalidationCallback ) @@ -517,8 +517,8 @@ namespace svx return bCanDo; } -//........................................................................ + } // namespace svx -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/formdispatchinterceptor.cxx b/svx/source/form/formdispatchinterceptor.cxx index 79a2aa1c490f..4ad42eca158c 100644 --- a/svx/source/form/formdispatchinterceptor.cxx +++ b/svx/source/form/formdispatchinterceptor.cxx @@ -21,10 +21,10 @@ #include <tools/debug.hxx> -//........................................................................ + namespace svxform { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XInterface; @@ -46,9 +46,9 @@ namespace svxform using ::com::sun::star::frame::XDispatchProvider; using ::com::sun::star::lang::EventObject; - //======================================================================== + //= DispatchInterceptionMultiplexer - //======================================================================== + DBG_NAME(DispatchInterceptionMultiplexer) @@ -194,8 +194,8 @@ namespace svxform } } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/formfeaturedispatcher.cxx b/svx/source/form/formfeaturedispatcher.cxx index bb47ba7aa61e..2fcb9fbbbe2a 100644 --- a/svx/source/form/formfeaturedispatcher.cxx +++ b/svx/source/form/formfeaturedispatcher.cxx @@ -23,10 +23,10 @@ #include <comphelper/namedvaluecollection.hxx> #include <tools/diagnose_ex.h> -//........................................................................ + namespace svx { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -35,9 +35,9 @@ namespace svx using namespace ::com::sun::star::util; using namespace ::com::sun::star::form::runtime; - //==================================================================== + //= OSingleFeatureDispatcher - //==================================================================== + OSingleFeatureDispatcher::OSingleFeatureDispatcher( const URL& _rFeatureURL, const sal_Int16 _nFormFeature, const Reference< XFormOperations >& _rxFormOperations, ::osl::Mutex& _rMutex ) @@ -208,8 +208,8 @@ namespace svx throw DisposedException( OUString(), *const_cast< OSingleFeatureDispatcher* >( this ) ); } -//........................................................................ + } // namespace svx -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/formtoolbars.cxx b/svx/source/form/formtoolbars.cxx index 5e969a2799fc..c2bb99dbfa2f 100644 --- a/svx/source/form/formtoolbars.cxx +++ b/svx/source/form/formtoolbars.cxx @@ -23,18 +23,18 @@ #include <svx/svxids.hrc> -//........................................................................ + namespace svxform { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::frame; using namespace ::com::sun::star::beans; - //==================================================================== + //= FormToolboxes - //==================================================================== + FormToolboxes::FormToolboxes( const Reference< XFrame >& _rxFrame ) { @@ -96,8 +96,8 @@ namespace svxform return aToolBarResStr; } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/legacyformcontroller.cxx b/svx/source/form/legacyformcontroller.cxx index 9920907f5420..1497ccf06339 100644 --- a/svx/source/form/legacyformcontroller.cxx +++ b/svx/source/form/legacyformcontroller.cxx @@ -29,10 +29,10 @@ #include <cppuhelper/supportsservice.hxx> #include <comphelper/processfactory.hxx> -//........................................................................ + namespace svxform { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XInterface; @@ -55,9 +55,9 @@ namespace svxform using namespace ::com::sun::star; - //==================================================================== + //= LegacyFormController - //==================================================================== + typedef ::cppu::WeakImplHelper2 < form::XFormController , XServiceInfo > LegacyFormController_Base; diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx index 6433330d4ca7..ad410ed56ef2 100644 --- a/svx/source/form/navigatortree.cxx +++ b/svx/source/form/navigatortree.cxx @@ -52,10 +52,10 @@ #include <svx/svxdlg.hxx> #include <svx/dialogs.hrc> #include "svtools/treelistentry.hxx" -//............................................................................ + namespace svxform { -//............................................................................ + #define DROP_ACTION_TIMER_INITIAL_TICKS 10 // solange dauert es, bis das Scrollen anspringt @@ -78,9 +78,9 @@ namespace svxform using namespace ::com::sun::star::datatransfer::clipboard; using namespace ::com::sun::star::sdb; - //======================================================================== + // helper - //======================================================================== + typedef ::std::map< Reference< XInterface >, SdrObject*, ::comphelper::OInterfaceCompare< XInterface > > MapModelToShape; @@ -113,9 +113,9 @@ namespace svxform } } - //======================================================================== + // class NavigatorTree - //======================================================================== + NavigatorTree::NavigatorTree( Window* pParent ) @@ -427,7 +427,7 @@ namespace svxform // jetzt alles, was disabled wurde, wech aContextMenu.RemoveDisabledEntries(true, true); - ////////////////////////////////////////////////////////// + // OpenReadOnly setzen aContextMenu.CheckItem( SID_FM_OPEN_READONLY, pFormModel->GetOpenInDesignMode() ); @@ -592,7 +592,7 @@ namespace svxform { SvTreeListBox::Clear(); - ////////////////////////////////////////////////////////////////////// + // Default-Eintrag "Formulare" Image aRootImage( m_aNavigatorImages.GetImage( RID_SVXIMG_FORMS ) ); m_pRootEntry = InsertEntry( SVX_RESSTR(RID_STR_FORMS), aRootImage, aRootImage, @@ -615,7 +615,7 @@ namespace svxform SvTreeListEntry* NavigatorTree::Insert( FmEntryData* pEntryData, sal_uIntPtr nRelPos ) { - ////////////////////////////////////////////////////////////////////// + // Aktuellen Eintrag einfuegen SvTreeListEntry* pParentEntry = FindEntry( pEntryData->GetParent() ); SvTreeListEntry* pNewEntry; @@ -630,12 +630,12 @@ namespace svxform pEntryData->GetNormalImage(), pEntryData->GetNormalImage(), pParentEntry, sal_False, nRelPos, pEntryData ); - ////////////////////////////////////////////////////////////////////// + // Wenn Root-Eintrag Root expandieren if( !pParentEntry ) Expand( m_pRootEntry ); - ////////////////////////////////////////////////////////////////////// + // Children einfuegen FmEntryDataList* pChildList = pEntryData->GetChildList(); size_t nChildCount = pChildList->size(); @@ -1324,14 +1324,14 @@ namespace svxform void NavigatorTree::NewForm( SvTreeListEntry* pParentEntry ) { - ////////////////////////////////////////////////////////////////////// + // ParentFormData holen if( !IsFormEntry(pParentEntry) ) return; FmFormData* pParentFormData = (FmFormData*)pParentEntry->GetUserData(); - ////////////////////////////////////////////////////////////////////// + // Neue Form erzeugen Reference<XComponentContext> xContext = comphelper::getProcessComponentContext(); Reference< XForm > xNewForm(xContext->getServiceManager()->createInstanceWithContext(FM_SUN_COMPONENT_FORM, xContext), UNO_QUERY); @@ -1340,7 +1340,7 @@ namespace svxform FmFormData* pNewFormData = new FmFormData( xNewForm, m_aNavigatorImages, pParentFormData ); - ////////////////////////////////////////////////////////////////////// + // Namen setzen OUString aName = GenerateName(pNewFormData); pNewFormData->SetText(aName); @@ -1360,11 +1360,11 @@ namespace svxform } - ////////////////////////////////////////////////////////////////////// + // Form einfuegen GetNavModel()->Insert( pNewFormData, LIST_APPEND, sal_True ); - ////////////////////////////////////////////////////////////////////// + // Neue Form als aktive Form setzen FmFormShell* pFormShell = GetNavModel()->GetFormShell(); if( pFormShell ) @@ -1377,7 +1377,7 @@ namespace svxform } GetNavModel()->SetModified(); - ////////////////////////////////////////////////////////////////////// + // In EditMode schalten SvTreeListEntry* pNewEntry = FindEntry( pNewFormData ); EditEntry( pNewEntry ); @@ -1386,7 +1386,7 @@ namespace svxform FmControlData* NavigatorTree::NewControl( const OUString& rServiceName, SvTreeListEntry* pParentEntry, sal_Bool bEditName ) { - ////////////////////////////////////////////////////////////////////// + // ParentForm holen if (!GetNavModel()->GetFormShell()) return NULL; @@ -1396,7 +1396,7 @@ namespace svxform FmFormData* pParentFormData = (FmFormData*)pParentEntry->GetUserData();; Reference< XForm > xParentForm( pParentFormData->GetFormIface()); - ////////////////////////////////////////////////////////////////////// + // Neue Component erzeugen Reference<XComponentContext> xContext = comphelper::getProcessComponentContext(); Reference<XFormComponent> xNewComponent( xContext->getServiceManager()->createInstanceWithContext(rServiceName, xContext), UNO_QUERY); @@ -1405,7 +1405,7 @@ namespace svxform FmControlData* pNewFormControlData = new FmControlData( xNewComponent, m_aNavigatorImages, pParentFormData ); - ////////////////////////////////////////////////////////////////////// + // Namen setzen FmFormView* pFormView = GetNavModel()->GetFormShell()->GetFormView(); SdrPageView* pPageView = pFormView->GetSdrPageView(); @@ -1415,14 +1415,14 @@ namespace svxform pNewFormControlData->SetText( sName ); - ////////////////////////////////////////////////////////////////////// + // FormComponent einfuegen GetNavModel()->Insert( pNewFormControlData, LIST_APPEND, sal_True ); GetNavModel()->SetModified(); if (bEditName) { - ////////////////////////////////////////////////////////////////////// + // In EditMode schalten SvTreeListEntry* pNewEntry = FindEntry( pNewFormControlData ); Select( pNewEntry, sal_True ); @@ -1438,7 +1438,7 @@ namespace svxform const sal_uInt16 nMaxCount = 99; OUString aNewName; - ////////////////////////////////////////////////////////////////////// + // BasisNamen erzeugen OUString aBaseName; if( pEntryData->ISA(FmFormData) ) @@ -1446,7 +1446,7 @@ namespace svxform else if( pEntryData->ISA(FmControlData) ) aBaseName = SVX_RESSTR( RID_STR_CONTROL ); - ////////////////////////////////////////////////////////////////////// + // Neuen Namen erstellen FmFormData* pFormParentData = (FmFormData*)pEntryData->GetParent(); @@ -1992,7 +1992,7 @@ namespace svxform FmControlData* pControlData = (FmControlData*)pSelectionLoop->GetUserData(); if (pControlData) { - ///////////////////////////////////////////////////////////////// + // Beim HiddenControl kann kein Object selektiert werden Reference< XFormComponent > xFormComponent( pControlData->GetFormComponent()); if (!xFormComponent.is()) @@ -2076,7 +2076,7 @@ namespace svxform ::std::set< Reference< XFormComponent > > aObjects; CollectObjects(pFormData,bDeep,aObjects); - ////////////////////////////////////////////////////////////////////// + // In der Page das entsprechende SdrObj finden und selektieren FmFormView* pFormView = pFormShell->GetFormView(); SdrPageView* pPageView = pFormView->GetSdrPageView(); @@ -2140,7 +2140,7 @@ namespace svxform if( !pFormShell ) return; - ////////////////////////////////////////////////////////////////////// + // In der Page das entsprechende SdrObj finden und selektieren FmFormView* pFormView = pFormShell->GetFormView(); Reference< XFormComponent > xFormComponent( pControlData->GetFormComponent()); @@ -2187,9 +2187,9 @@ namespace svxform } } -//............................................................................ + } // namespace svxform -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/navigatortreemodel.cxx b/svx/source/form/navigatortreemodel.cxx index 1f0b60cc79e4..685d2248975c 100644 --- a/svx/source/form/navigatortreemodel.cxx +++ b/svx/source/form/navigatortreemodel.cxx @@ -39,10 +39,10 @@ #include <tools/diagnose_ex.h> #include <com/sun/star/container/XContainer.hpp> -//............................................................................ + namespace svxform { -//............................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -53,9 +53,9 @@ namespace svxform using namespace ::com::sun::star::script; using namespace ::com::sun::star::sdb; - //======================================================================== + // class OFormComponentObserver - //======================================================================== + OFormComponentObserver::OFormComponentObserver(NavigatorTreeModel* _pModel) :m_pNavModel(_pModel) @@ -174,7 +174,7 @@ namespace svxform m_bCanUndo = sal_False; - ////////////////////////////////////////////////////////// + // EntryData loeschen FmEntryData* pEntryData = m_pNavModel->FindData( _rxElement, m_pNavModel->GetRootList(), sal_True ); if (pEntryData) @@ -191,9 +191,9 @@ namespace svxform Remove( xElement ); } - //======================================================================== + // class NavigatorTreeModel - //======================================================================== + NavigatorTreeModel::NavigatorTreeModel( const ImageList& _rNormalImages ) @@ -210,7 +210,7 @@ namespace svxform NavigatorTreeModel::~NavigatorTreeModel() { - ////////////////////////////////////////////////////////////////////// + // Als Listener abmelden if( m_pFormShell) { @@ -245,11 +245,11 @@ namespace svxform if(xForms.is()) xForms->removeContainerListener((XContainerListener*)m_pPropChangeList); - ////////////////////////////////////////////////////////////////////// + // RootList loeschen GetRootList()->clear(); - ////////////////////////////////////////////////////////////////////// + // UI benachrichtigen FmNavClearedHint aClearedHint; Broadcast( aClearedHint ); @@ -333,13 +333,13 @@ namespace svxform m_pFormModel->EndUndo(); } - ////////////////////////////////////////////////////////////////////// + // Als PropertyChangeListener anmelden Reference< XPropertySet > xSet(xElement, UNO_QUERY); if( xSet.is() ) xSet->addPropertyChangeListener( FM_PROP_NAME, m_pPropChangeList ); - ////////////////////////////////////////////////////////////////////// + // Daten aus Model entfernen if (pEntry->ISA(FmFormData)) { @@ -353,7 +353,7 @@ namespace svxform else GetRootList()->insert( pEntry, nRelPos ); - ////////////////////////////////////////////////////////////////////// + // UI benachrichtigen FmNavInsertedHint aInsertedHint( pEntry, nRelPos ); Broadcast( aInsertedHint ); @@ -366,7 +366,7 @@ namespace svxform void NavigatorTreeModel::Remove(FmEntryData* pEntry, sal_Bool bAlterModel) { - ////////////////////////////////////////////////////////////////////// + // Form und Parent holen if (!pEntry || !m_pFormModel) return; @@ -435,13 +435,13 @@ namespace svxform else { GetRootList()->remove( pEntry ); - ////////////////////////////////////////////////////////////////////// + // Wenn keine Form mehr in der Root, an der Shell CurForm zuruecksetzen if ( !GetRootList()->size() ) m_pFormShell->GetImpl()->forgetCurrentForm(); } - ////////////////////////////////////////////////////////////////////// + // UI benachrichtigen FmNavRemovedHint aRemovedHint( pEntry ); Broadcast( aRemovedHint ); @@ -456,7 +456,7 @@ namespace svxform void NavigatorTreeModel::RemoveForm(FmFormData* pFormData) { - ////////////////////////////////////////////////////////////////////// + // Form und Parent holen if (!pFormData || !m_pFormModel) return; @@ -466,7 +466,7 @@ namespace svxform { FmEntryData* pEntryData = pChildList->at( --i ); - ////////////////////////////////////////////////////////////////////// + // Child ist Form -> rekursiver Aufruf if( pEntryData->ISA(FmFormData) ) RemoveForm( (FmFormData*)pEntryData); @@ -474,7 +474,7 @@ namespace svxform RemoveFormComponent((FmControlData*) pEntryData); } - ////////////////////////////////////////////////////////////////////// + // Als PropertyChangeListener abmelden Reference< XPropertySet > xSet( pFormData->GetPropertySet() ); if ( xSet.is() ) @@ -488,12 +488,12 @@ namespace svxform void NavigatorTreeModel::RemoveFormComponent(FmControlData* pControlData) { - ////////////////////////////////////////////////////////////////////// + // Control und Parent holen if (!pControlData) return; - ////////////////////////////////////////////////////////////////////// + // Als PropertyChangeListener abmelden Reference< XPropertySet > xSet( pControlData->GetPropertySet() ); if (xSet.is()) @@ -503,7 +503,7 @@ namespace svxform void NavigatorTreeModel::ClearBranch( FmFormData* pParentData ) { - ////////////////////////////////////////////////////////////////////// + // Alle Eintraege dieses Zweiges loeschen FmEntryDataList* pChildList = pParentData->GetChildList(); @@ -520,7 +520,7 @@ namespace svxform void NavigatorTreeModel::FillBranch( FmFormData* pFormData ) { - ////////////////////////////////////////////////////////////// + // Forms aus der Root einfuegen if( pFormData == NULL ) { @@ -539,13 +539,13 @@ namespace svxform pSubFormData = new FmFormData( xSubForm, m_aNormalImages, pFormData ); Insert( pSubFormData, LIST_APPEND ); - ////////////////////////////////////////////////////////////// + // Neuer Branch, wenn SubForm wiederum Subforms enthaelt FillBranch( pSubFormData ); } } - ////////////////////////////////////////////////////////////// + // Componenten einfuegen else { @@ -568,7 +568,7 @@ namespace svxform pSubFormData = new FmFormData(xSubForm, m_aNormalImages, pFormData); Insert(pSubFormData, LIST_APPEND); - ////////////////////////////////////////////////////////////// + // Neuer Branch, wenn SubForm wiederum Subforms enthaelt FillBranch(pSubFormData); } @@ -588,7 +588,7 @@ namespace svxform if (pFormData) return; - ////////////////////////////////////////////////////////// + // ParentData setzen Reference< XInterface > xIFace( xForm->getParent()); Reference< XForm > xParentForm(xIFace, UNO_QUERY); @@ -603,7 +603,7 @@ namespace svxform void NavigatorTreeModel::InsertFormComponent(const Reference< XFormComponent > & xComp, sal_uInt32 nRelPos) { - ////////////////////////////////////////////////////////// + // ParentData setzen Reference< XInterface > xIFace( xComp->getParent()); Reference< XForm > xForm(xIFace, UNO_QUERY); @@ -619,11 +619,11 @@ namespace svxform if (!FindData(xComp, pParentData->GetChildList(),sal_False)) { - ////////////////////////////////////////////////////////// + // Neue EntryData setzen FmEntryData* pNewEntryData = new FmControlData( xComp, m_aNormalImages, pParentData ); - ////////////////////////////////////////////////////////// + // Neue EntryData einfuegen Insert( pNewEntryData, nRelPos ); } @@ -841,7 +841,7 @@ namespace svxform void NavigatorTreeModel::UpdateContent( const Reference< css::form::XForms > & xForms ) { - ////////////////////////////////////////////////////////////////////// + // Model von der Root aufwaerts neu fuellen Clear(); if (xForms.is()) @@ -863,13 +863,13 @@ namespace svxform void NavigatorTreeModel::UpdateContent( FmFormShell* pShell ) { - ////////////////////////////////////////////////////////////////////// + // Wenn Shell sich nicht veraendert hat, nichts machen FmFormPage* pNewPage = pShell ? pShell->GetCurPage() : NULL; if ((pShell == m_pFormShell) && (m_pFormPage == pNewPage)) return; - ////////////////////////////////////////////////////////////////////// + // Als Listener abmelden if( m_pFormShell ) { @@ -880,7 +880,7 @@ namespace svxform Clear(); } - ////////////////////////////////////////////////////////////////////// + // Vollupdate m_pFormShell = pShell; if (m_pFormShell) @@ -890,7 +890,7 @@ namespace svxform } else m_pFormPage = NULL; - ////////////////////////////////////////////////////////////////////// + // Als Listener neu anmelden if( m_pFormShell ) { @@ -904,7 +904,7 @@ namespace svxform Reference< XIndexContainer > NavigatorTreeModel::GetFormComponents( FmFormData* pFormData ) { - ////////////////////////////////////////////////////////////////////// + // Von der Form Components holen if (pFormData) return Reference< XIndexContainer > (pFormData->GetFormIface(), UNO_QUERY); @@ -915,11 +915,11 @@ namespace svxform sal_Bool NavigatorTreeModel::Rename( FmEntryData* pEntryData, const OUString& rNewText ) { - ////////////////////////////////////////////////////////////////////// + // Wenn Name schon vorhanden, Fehlermeldung pEntryData->SetText( rNewText ); - ////////////////////////////////////////////////////////////////////// + // PropertySet besorgen Reference< XFormComponent > xFormComponent; @@ -940,7 +940,7 @@ namespace svxform Reference< XPropertySet > xSet(xFormComponent, UNO_QUERY); if( !xSet.is() ) return sal_False; - ////////////////////////////////////////////////////////////////////// + // Namen setzen xSet->setPropertyValue( FM_PROP_NAME, makeAny(rNewText) ); @@ -971,9 +971,9 @@ namespace svxform return NULL; } -//............................................................................ + } // namespace svxform -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/sdbdatacolumn.cxx b/svx/source/form/sdbdatacolumn.cxx index 6db70cd93e95..fdab67e51f78 100644 --- a/svx/source/form/sdbdatacolumn.cxx +++ b/svx/source/form/sdbdatacolumn.cxx @@ -19,10 +19,10 @@ #include "sdbdatacolumn.hxx" -//.............................................................................. + namespace svxform { -//.............................................................................. + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -32,9 +32,9 @@ namespace svxform using namespace ::com::sun::star::io; using namespace ::com::sun::star::container; - //========================================================================== + //= DataColumn - a class wrapping an object implementing a sdb::DataColumn service - //========================================================================== + DataColumn::DataColumn(const Reference< ::com::sun::star::beans::XPropertySet>& _rxIFace) { m_xPropertySet = _rxIFace; @@ -272,8 +272,8 @@ namespace svxform m_xColumnUpdate->updateNumericObject(x, scale); } - //.............................................................................. + } // namespace svxform -//.............................................................................. + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/sqlparserclient.cxx b/svx/source/form/sqlparserclient.cxx index 315d7a210766..34e2bd92027c 100644 --- a/svx/source/form/sqlparserclient.cxx +++ b/svx/source/form/sqlparserclient.cxx @@ -20,17 +20,17 @@ #include "sqlparserclient.hxx" #include "svx/ParseContext.hxx" -//........................................................................ + namespace svxform { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; - //==================================================================== + //= OSQLParserClient - //==================================================================== + OSQLParserClient::OSQLParserClient(const Reference< XComponentContext >& rxContext) { @@ -45,9 +45,9 @@ namespace svxform return m_xParser.is(); } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/stringlistresource.cxx b/svx/source/form/stringlistresource.cxx index 00b9118801e1..4fe922c5a7ad 100644 --- a/svx/source/form/stringlistresource.cxx +++ b/svx/source/form/stringlistresource.cxx @@ -21,12 +21,12 @@ #include <tools/rcid.h> -//........................................................................ + namespace svx { - //==================================================================== + //= StringListResource - //==================================================================== + StringListResource::StringListResource( const ResId& _rResId ) :Resource( _rResId ) @@ -46,8 +46,8 @@ namespace svx FreeResource(); } -//........................................................................ + } // namespace svx -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/tabwin.cxx b/svx/source/form/tabwin.cxx index 44124b542431..93cbfbde5f42 100644 --- a/svx/source/form/tabwin.cxx +++ b/svx/source/form/tabwin.cxx @@ -108,9 +108,9 @@ static void lcl_addToList( SvTreeListBox& _rListBox, const uno::Reference< conta _rListBox.InsertEntry( *pEntries,NULL,sal_False,LIST_APPEND,new ColumnInfo(*pEntries,sLabel) ); } } -//================================================================== + // class FmFieldWinListBox -//================================================================== + DBG_NAME(FmFieldWinListBox) FmFieldWinListBox::FmFieldWinListBox( FmFieldWin* pParent ) @@ -177,9 +177,9 @@ void FmFieldWinListBox::StartDrag( sal_Int8 /*_nAction*/, const Point& /*_rPosPi } } -//======================================================================== + // class FmFieldWinData -//======================================================================== + DBG_NAME(FmFieldWinData); FmFieldWinData::FmFieldWinData() @@ -193,9 +193,9 @@ FmFieldWinData::~FmFieldWinData() DBG_DTOR(FmFieldWinData,NULL); } -//======================================================================== + // class FmFieldWin -//======================================================================== + DBG_NAME(FmFieldWin); FmFieldWin::FmFieldWin(SfxBindings* _pBindings, SfxChildWindow* _pMgr, Window* _pParent) @@ -415,7 +415,7 @@ void FmFieldWin::Resize() Size aOutputSize( GetOutputSizePixel() ); - ////////////////////////////////////////////////////////////////////// + // Groesse der ::com::sun::star::form::ListBox anpassen Point aLBPos( LISTBOX_BORDER, LISTBOX_BORDER ); diff --git a/svx/source/form/tbxform.cxx b/svx/source/form/tbxform.cxx index b811af0dd194..9dbbada23014 100644 --- a/svx/source/form/tbxform.cxx +++ b/svx/source/form/tbxform.cxx @@ -48,9 +48,9 @@ using namespace ::com::sun::star::frame; using ::com::sun::star::beans::XPropertySet; -//======================================================================== + // class SvxFmAbsRecWin -//======================================================================== + SvxFmAbsRecWin::SvxFmAbsRecWin( Window* _pParent, SfxToolBoxControl* _pController ) @@ -112,9 +112,9 @@ void SvxFmAbsRecWin::KeyInput( const KeyEvent& rKeyEvent ) NumericField::KeyInput( rKeyEvent ); } -//======================================================================== + // class SvxFmTbxCtlConfig -//======================================================================== + struct MapSlotToCmd { @@ -223,7 +223,7 @@ SfxPopupWindow* SvxFmTbxCtlConfig::CreatePopupWindow() void SvxFmTbxCtlConfig::Select( sal_uInt16 /*nModifier*/ ) { - ////////////////////////////////////////////////////////////////////// + // Click auf den Button SID_FM_CONFIG in der ObjectBar if ( nLastSlot ) { @@ -245,9 +245,9 @@ void SvxFmTbxCtlConfig::Select( sal_uInt16 /*nModifier*/ ) } -//======================================================================== + // class SvxFmTbxCtlAbsRec -//======================================================================== + SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxCtlAbsRec, SfxInt32Item ); DBG_NAME(SvxFmTbxCtlAbsRec); @@ -284,7 +284,7 @@ void SvxFmTbxCtlAbsRec::StateChanged( sal_uInt16 nSID, SfxItemState eState, cons if (!bEnable) pWin->SetText(OUString()); - ////////////////////////////////////////////////////////////////////// + // Enablen/disablen des Fensters pToolBox->EnableItem(nId, bEnable); SfxToolBoxControl::StateChanged( nSID, eState,pState ); @@ -299,9 +299,9 @@ Window* SvxFmTbxCtlAbsRec::CreateItemWindow( Window* pParent ) } -//======================================================================== + // SvxFmTbxCtlRecText -//======================================================================== + SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxCtlRecText, SfxBoolItem ); DBG_NAME(SvxFmTbxCtlRecText); @@ -333,9 +333,9 @@ Window* SvxFmTbxCtlRecText::CreateItemWindow( Window* pParent ) } -//======================================================================== + // SvxFmTbxCtlRecFromText -//======================================================================== + SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxCtlRecFromText, SfxBoolItem ); DBG_NAME(SvxFmTbxCtlRecFromText); @@ -366,9 +366,9 @@ Window* SvxFmTbxCtlRecFromText::CreateItemWindow( Window* pParent ) } -//======================================================================== + // SvxFmTbxCtlRecTotal -//======================================================================== + DBG_NAME(SvxFmTbxCtlRecTotal); SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxCtlRecTotal, SfxStringItem ); @@ -402,7 +402,7 @@ Window* SvxFmTbxCtlRecTotal::CreateItemWindow( Window* pParent ) void SvxFmTbxCtlRecTotal::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) { - ////////////////////////////////////////////////////////////////////// + // Setzen des FixedTextes if (GetSlotId() != SID_FM_RECORD_TOTAL) return; @@ -420,9 +420,9 @@ void SvxFmTbxCtlRecTotal::StateChanged( sal_uInt16 nSID, SfxItemState eState, co SfxToolBoxControl::StateChanged( nSID, eState,pState ); } -//======================================================================== + // SvxFmTbxNextRec -//======================================================================== + SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxNextRec, SfxBoolItem ); @@ -438,9 +438,9 @@ SvxFmTbxNextRec::SvxFmTbxNextRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& r rTbx.SetSettings(aSettings, sal_True); } -//======================================================================== + // SvxFmTbxPrevRec -//======================================================================== + SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxPrevRec, SfxBoolItem ); diff --git a/svx/source/form/typeconversionclient.cxx b/svx/source/form/typeconversionclient.cxx index 0ab81ee54875..14cb2d6f0053 100644 --- a/svx/source/form/typeconversionclient.cxx +++ b/svx/source/form/typeconversionclient.cxx @@ -19,14 +19,14 @@ #include "typeconversionclient.hxx" -//........................................................................ + namespace svxform { -//........................................................................ - //==================================================================== + + //= OTypeConversionClient - //==================================================================== + OTypeConversionClient::OTypeConversionClient() { @@ -41,9 +41,9 @@ namespace svxform return m_xTypeConversion.is(); } -//........................................................................ + } // namespace svxform -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/xfm_addcondition.cxx b/svx/source/form/xfm_addcondition.cxx index 866fa7c9792b..4a8b2592f9c9 100644 --- a/svx/source/form/xfm_addcondition.cxx +++ b/svx/source/form/xfm_addcondition.cxx @@ -25,10 +25,10 @@ #include "datanavi.hxx" #include <vcl/msgbox.hxx> -//........................................................................ + namespace svxform { -//........................................................................ + #define PROPERTY_ID_BINDING 5724 #define PROPERTY_ID_FORM_MODEL 5725 @@ -40,9 +40,9 @@ namespace svxform using namespace ::com::sun::star::beans; using namespace ::com::sun::star::xforms; - //==================================================================== + //= OAddConditionDialog - //==================================================================== + Reference< XInterface > SAL_CALL OAddConditionDialog_Create( const Reference< XMultiServiceFactory > & _rxORB ) { @@ -63,9 +63,9 @@ namespace svxform return OUString("org.openoffice.comp.svx.OAddConditionDialog"); } - //==================================================================== + //= OAddConditionDialog - //==================================================================== + OAddConditionDialog::OAddConditionDialog( const Reference< XComponentContext >& _rxORB ) :OAddConditionDialogBase( _rxORB ) @@ -174,8 +174,8 @@ namespace svxform m_sConditionValue = static_cast< AddConditionDialog* >( m_pDialog )->GetCondition(); } -//........................................................................ + } // namespace svxformv -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |