diff options
Diffstat (limited to 'extensions/source/propctrlr')
109 files changed, 918 insertions, 918 deletions
diff --git a/extensions/source/propctrlr/MasterDetailLinkDialog.cxx b/extensions/source/propctrlr/MasterDetailLinkDialog.cxx index 88e36aea290c..28a4f0be52f2 100644 --- a/extensions/source/propctrlr/MasterDetailLinkDialog.cxx +++ b/extensions/source/propctrlr/MasterDetailLinkDialog.cxx @@ -25,18 +25,18 @@ ::pcr::OAutoRegistration< ::pcr::MasterDetailLinkDialog > aAutoRegistration; } -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::beans; - //==================================================================== + //= MasterDetailLinkDialog - //==================================================================== + MasterDetailLinkDialog::MasterDetailLinkDialog(const Reference< XComponentContext >& _rxContext ) :OGenericUnoDialog( _rxContext ) @@ -143,8 +143,8 @@ namespace pcr MasterDetailLinkDialog_DBase::implInitialize(_rValue); } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/MasterDetailLinkDialog.hxx b/extensions/source/propctrlr/MasterDetailLinkDialog.hxx index 9f9e7b7935f8..917f31853487 100644 --- a/extensions/source/propctrlr/MasterDetailLinkDialog.hxx +++ b/extensions/source/propctrlr/MasterDetailLinkDialog.hxx @@ -20,18 +20,18 @@ #define PROPCTRLR_MASTERDETAILLINKDIALOG_HXX #include <svtools/genericunodialog.hxx> #include "modulepcr.hxx" -//........................................................................ + namespace pcr { -//........................................................................ + class MasterDetailLinkDialog; typedef ::svt::OGenericUnoDialog MasterDetailLinkDialog_DBase; typedef ::comphelper::OPropertyArrayUsageHelper< MasterDetailLinkDialog > MasterDetailLinkDialog_PBase; - //======================================================================== + //= MasterDetailLinkDialog - //======================================================================== + class MasterDetailLinkDialog : public MasterDetailLinkDialog_DBase ,public MasterDetailLinkDialog_PBase ,public PcrClient @@ -70,9 +70,9 @@ namespace pcr OUString m_sMasterLabel; }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // PROPCTRLR_MASTERDETAILLINKDIALOG_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx index c9958d24f1ce..dacf0c54dc55 100644 --- a/extensions/source/propctrlr/browserline.cxx +++ b/extensions/source/propctrlr/browserline.cxx @@ -32,10 +32,10 @@ #include <vcl/svapp.hxx> #include <vcl/settings.hxx> -//............................................................................ + namespace pcr { -//............................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XComponentContext; @@ -51,9 +51,9 @@ namespace pcr namespace PropertyLineElement = ::com::sun::star::inspection::PropertyLineElement; - //================================================================== + //= OBrowserLine - //================================================================== + DBG_NAME(OBrowserLine) @@ -513,8 +513,8 @@ namespace pcr } return 0; } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/browserline.hxx b/extensions/source/propctrlr/browserline.hxx index 32c34627fe7a..1c8b6e4d265f 100644 --- a/extensions/source/propctrlr/browserline.hxx +++ b/extensions/source/propctrlr/browserline.hxx @@ -29,14 +29,14 @@ namespace com { namespace sun { namespace star { namespace inspection { namespac const sal_Int16 CompleteLine = 0x4000; } } } } } -//............................................................................ + namespace pcr { -//............................................................................ + class OBrowserLine; - //======================================================================== + class IButtonClickListener { public: @@ -46,7 +46,7 @@ namespace pcr ~IButtonClickListener() {} }; - //======================================================================== + class OBrowserLine { private: @@ -126,9 +126,9 @@ namespace pcr void impl_getImagesFromURL_nothrow( const OUString& _rImageURL, Image& _out_rImage ); }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_BROWSERLINE_HXX_ diff --git a/extensions/source/propctrlr/browserlistbox.cxx b/extensions/source/propctrlr/browserlistbox.cxx index b0a3c0181402..8a05357f69f0 100644 --- a/extensions/source/propctrlr/browserlistbox.cxx +++ b/extensions/source/propctrlr/browserlistbox.cxx @@ -34,10 +34,10 @@ #include <vcl/svapp.hxx> #include <osl/mutex.hxx> -//............................................................................ + namespace pcr { -//............................................................................ + #define FRAME_OFFSET 4 // TODO: find out what this is really for ... and check if it does make sense in the new @@ -57,9 +57,9 @@ namespace pcr namespace PropertyControlType = ::com::sun::star::inspection::PropertyControlType; - //================================================================== + //= ControlEvent - //================================================================== + enum ControlEventType { FOCUS_GAINED, @@ -79,9 +79,9 @@ namespace pcr } }; - //================================================================== + //= SharedNotifier - //================================================================== + class SharedNotifier { private: @@ -125,9 +125,9 @@ namespace pcr return s_pNotifier; } - //================================================================== + //= PropertyControlContext_Impl - //================================================================== + /** implementation for of <type scope="com::sun::star::inspection">XPropertyControlContext</type> which forwards all events to a non-UNO version of this interface */ @@ -343,9 +343,9 @@ namespace pcr } } - //================================================================== + //= OBrowserListBox - //================================================================== + DBG_NAME(OBrowserListBox) OBrowserListBox::OBrowserListBox( Window* pParent, WinBits nWinStyle) @@ -1036,7 +1036,7 @@ namespace pcr namespace { - //.............................................................. + void lcl_implDisposeControl_nothrow( const Reference< XPropertyControl >& _rxControl ) { if ( !_rxControl.is() ) @@ -1291,9 +1291,9 @@ namespace pcr return Control::Notify( _rNEvt ); } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/browserlistbox.hxx b/extensions/source/propctrlr/browserlistbox.hxx index 6b1da47ba8a9..120d4adf4fa7 100644 --- a/extensions/source/propctrlr/browserlistbox.hxx +++ b/extensions/source/propctrlr/browserlistbox.hxx @@ -37,10 +37,10 @@ #include <boost/unordered_map.hpp> #include <boost/shared_ptr.hpp> -//............................................................................ + namespace pcr { -//............................................................................ + class IPropertyLineListener; class IPropertyControlObserver; @@ -48,9 +48,9 @@ namespace pcr class InspectorHelpWindow; class PropertyControlContext_Impl; - //======================================================================== + //= administrative structures for OBrowserListBox - //======================================================================== + typedef ::boost::shared_ptr< OBrowserLine > BrowserLinePointer; struct ListBoxLine { @@ -68,9 +68,9 @@ namespace pcr }; typedef ::std::vector< ListBoxLine > ListBoxLines; - //======================================================================== + //= IControlContext - //======================================================================== + /** non-UNO version of XPropertyControlContext */ class SAL_NO_VTABLE IControlContext @@ -84,9 +84,9 @@ namespace pcr ~IControlContext() {} }; - //======================================================================== + //= OBrowserListBox - //======================================================================== + class OBrowserListBox :public Control ,public IButtonClickListener ,public IControlContext @@ -219,9 +219,9 @@ namespace pcr using Window::Activate; }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_BROWSERLISTBOX_HXX_ diff --git a/extensions/source/propctrlr/browserpage.cxx b/extensions/source/propctrlr/browserpage.cxx index f30b4af85b45..c7b93688046d 100644 --- a/extensions/source/propctrlr/browserpage.cxx +++ b/extensions/source/propctrlr/browserpage.cxx @@ -19,19 +19,19 @@ #include "browserpage.hxx" -//............................................................................ + namespace pcr { -//............................................................................ + #define LAYOUT_BORDER_LEFT 3 #define LAYOUT_BORDER_TOP 3 #define LAYOUT_BORDER_RIGHT 3 #define LAYOUT_BORDER_BOTTOM 3 - //================================================================== + // class OBrowserPage - //================================================================== + OBrowserPage::OBrowserPage(Window* pParent,WinBits nWinStyle) :TabPage(pParent,nWinStyle) @@ -88,9 +88,9 @@ namespace pcr return m_aListBox.GetMinimumHeight() + LAYOUT_BORDER_TOP + LAYOUT_BORDER_BOTTOM; } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/browserpage.hxx b/extensions/source/propctrlr/browserpage.hxx index 8c17e8eaafa0..d8001a229dd5 100644 --- a/extensions/source/propctrlr/browserpage.hxx +++ b/extensions/source/propctrlr/browserpage.hxx @@ -23,14 +23,14 @@ #include <vcl/tabpage.hxx> #include "browserlistbox.hxx" -//............................................................................ + namespace pcr { -//............................................................................ - //======================================================================== + + //= OBrowserPage - //======================================================================== + class OBrowserPage : public TabPage { private: @@ -51,9 +51,9 @@ namespace pcr const OBrowserListBox& getListBox() const; }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_BROWSERPAGE_HXX_ diff --git a/extensions/source/propctrlr/browserview.cxx b/extensions/source/propctrlr/browserview.cxx index 070092c478fb..3a8c732d13d9 100644 --- a/extensions/source/propctrlr/browserview.cxx +++ b/extensions/source/propctrlr/browserview.cxx @@ -23,18 +23,18 @@ #include <tools/debug.hxx> #include <boost/scoped_ptr.hpp> -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; - //======================================================================== + //= class OPropertyBrowserView - //======================================================================== + DBG_NAME(OPropertyBrowserView) OPropertyBrowserView::OPropertyBrowserView(Window* _pParent, WinBits nBits) @@ -125,8 +125,8 @@ namespace pcr return ::com::sun::star::awt::Size( aSize.Width(), aSize.Height() ); } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/browserview.hxx b/extensions/source/propctrlr/browserview.hxx index 4d5b482e2d1b..ba6ab521774f 100644 --- a/extensions/source/propctrlr/browserview.hxx +++ b/extensions/source/propctrlr/browserview.hxx @@ -25,16 +25,16 @@ #include <tools/resid.hxx> #include <com/sun/star/awt/Size.hpp> -//............................................................................ + namespace pcr { -//............................................................................ + class OPropertyEditor; - //======================================================================== + //= - //======================================================================== + class OPropertyBrowserView : public Window { OPropertyEditor* m_pPropBox; @@ -67,9 +67,9 @@ namespace pcr }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_BROWSERVIEW_HXX_ diff --git a/extensions/source/propctrlr/buttonnavigationhandler.cxx b/extensions/source/propctrlr/buttonnavigationhandler.cxx index 925a4442d8d1..15482afa8b33 100644 --- a/extensions/source/propctrlr/buttonnavigationhandler.cxx +++ b/extensions/source/propctrlr/buttonnavigationhandler.cxx @@ -31,10 +31,10 @@ extern "C" void SAL_CALL createRegistryInfo_ButtonNavigationHandler() ::pcr::ButtonNavigationHandler::registerImplementation(); } -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -43,9 +43,9 @@ namespace pcr using namespace ::com::sun::star::frame; using namespace ::com::sun::star::inspection; - //==================================================================== + //= ButtonNavigationHandler - //==================================================================== + DBG_NAME( ButtonNavigationHandler ) ButtonNavigationHandler::ButtonNavigationHandler( const Reference< XComponentContext >& _rxContext ) @@ -274,8 +274,8 @@ namespace pcr return aReturn; } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/buttonnavigationhandler.hxx b/extensions/source/propctrlr/buttonnavigationhandler.hxx index c96cc6359c75..7f10f78e6c95 100644 --- a/extensions/source/propctrlr/buttonnavigationhandler.hxx +++ b/extensions/source/propctrlr/buttonnavigationhandler.hxx @@ -22,14 +22,14 @@ #include "propertyhandler.hxx" -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= ButtonNavigationHandler - //==================================================================== + class ButtonNavigationHandler; typedef HandlerComponentBase< ButtonNavigationHandler > ButtonNavigationHandler_Base; /** a property handler for any virtual string properties @@ -71,9 +71,9 @@ namespace pcr SAL_CALL doDescribeSupportedProperties() const; }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_BUTTONNAVIGATIONHANDLER_HXX diff --git a/extensions/source/propctrlr/cellbindinghandler.cxx b/extensions/source/propctrlr/cellbindinghandler.cxx index bb73ccd5dc24..1eba11412570 100644 --- a/extensions/source/propctrlr/cellbindinghandler.cxx +++ b/extensions/source/propctrlr/cellbindinghandler.cxx @@ -33,10 +33,10 @@ extern "C" void SAL_CALL createRegistryInfo_CellBindingPropertyHandler() ::pcr::CellBindingPropertyHandler::registerImplementation(); } -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::table; @@ -48,9 +48,9 @@ namespace pcr using namespace ::com::sun::star::form::binding; using namespace ::comphelper; - //==================================================================== + //= CellBindingPropertyHandler - //==================================================================== + DBG_NAME( CellBindingPropertyHandler ) CellBindingPropertyHandler::CellBindingPropertyHandler( const Reference< XComponentContext >& _rxContext ) @@ -487,8 +487,8 @@ namespace pcr return Sequence< Property >( &(*aProperties.begin()), aProperties.size() ); } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/cellbindinghandler.hxx b/extensions/source/propctrlr/cellbindinghandler.hxx index 92285ba3e90d..6467250d62e9 100644 --- a/extensions/source/propctrlr/cellbindinghandler.hxx +++ b/extensions/source/propctrlr/cellbindinghandler.hxx @@ -27,16 +27,16 @@ #include <memory> -//........................................................................ + namespace pcr { -//........................................................................ + class CellBindingHelper; class IPropertyEnumRepresentation; - //==================================================================== + //= CellBindingPropertyHandler - //==================================================================== + class CellBindingPropertyHandler; typedef HandlerComponentBase< CellBindingPropertyHandler > CellBindingPropertyHandler_Base; class CellBindingPropertyHandler : public CellBindingPropertyHandler_Base @@ -91,9 +91,9 @@ namespace pcr void impl_updateDependentProperty_nothrow( PropertyId _nPropId, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorUI >& _rxInspectorUI ) const; }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_CELLBINDINGHANDLER_HXX diff --git a/extensions/source/propctrlr/cellbindinghelper.cxx b/extensions/source/propctrlr/cellbindinghelper.cxx index 07a0ccb9865a..5af2c6e2a6ed 100644 --- a/extensions/source/propctrlr/cellbindinghelper.cxx +++ b/extensions/source/propctrlr/cellbindinghelper.cxx @@ -40,10 +40,10 @@ #include <functional> #include <algorithm> -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; @@ -59,7 +59,7 @@ namespace pcr namespace { - //.................................................................... + struct StringCompare : public ::std::unary_function< OUString, bool > { private: @@ -75,9 +75,9 @@ namespace pcr }; } - //======================================================================== + //= CellBindingHelper - //======================================================================== + CellBindingHelper::CellBindingHelper( const Reference< XPropertySet >& _rxControlModel, const Reference< XModel >& _rxContextDocument ) :m_xControlModel( _rxControlModel ) @@ -549,8 +549,8 @@ namespace pcr xSink->setListEntrySource( _rxSource ); } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/cellbindinghelper.hxx b/extensions/source/propctrlr/cellbindinghelper.hxx index 69aff206c3bd..532438dc9844 100644 --- a/extensions/source/propctrlr/cellbindinghelper.hxx +++ b/extensions/source/propctrlr/cellbindinghelper.hxx @@ -30,14 +30,14 @@ #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/sheet/XSpreadsheet.hpp> -//............................................................................ + namespace pcr { -//............................................................................ - //======================================================================== + + //= CellBindingHelper - //======================================================================== + /** encapsulates functionality related to binding a form control to a spreadsheet cell */ class CellBindingHelper @@ -273,9 +273,9 @@ namespace pcr ) const SAL_THROW(()); }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // EXTENSIONS_PROPCTRLR_CELLBINDINGHELPER_HXX diff --git a/extensions/source/propctrlr/commoncontrol.cxx b/extensions/source/propctrlr/commoncontrol.cxx index 218348fb8862..b0134e05139e 100644 --- a/extensions/source/propctrlr/commoncontrol.cxx +++ b/extensions/source/propctrlr/commoncontrol.cxx @@ -24,10 +24,10 @@ #include <vcl/combobox.hxx> #include <toolkit/helper/vclunohelper.hxx> -//............................................................................ + namespace pcr { -//............................................................................ + using ::com::sun::star::uno::RuntimeException; using ::com::sun::star::uno::Reference; @@ -36,9 +36,9 @@ namespace pcr using ::com::sun::star::uno::Exception; using ::com::sun::star::inspection::XPropertyControl; - //================================================================== + //= ControlHelper - //================================================================== + ControlHelper::ControlHelper( Window* _pControlWindow, sal_Int16 _nControlType, XPropertyControl& _rAntiImpl, IModifyListener* _pModifyListener ) :m_pControlWindow( _pControlWindow ) @@ -188,8 +188,8 @@ namespace pcr return 0; } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/commoncontrol.hxx b/extensions/source/propctrlr/commoncontrol.hxx index fe1405a604ec..1196d1d7bfb5 100644 --- a/extensions/source/propctrlr/commoncontrol.hxx +++ b/extensions/source/propctrlr/commoncontrol.hxx @@ -28,15 +28,15 @@ #include <vcl/window.hxx> class NotifyEvent; -//............................................................................ + namespace pcr { -//............................................................................ + class ControlHelper; - //======================================================================== + //= ControlWindow - //======================================================================== + template< class WINDOW > class ControlWindow : public WINDOW { @@ -61,9 +61,9 @@ namespace pcr inline virtual bool PreNotify( NotifyEvent& rNEvt ); }; - //======================================================================== + //= IModifyListener - //======================================================================== + class SAL_NO_VTABLE IModifyListener { public: @@ -73,9 +73,9 @@ namespace pcr ~IModifyListener() {} }; - //======================================================================== + //= ControlHelper - //======================================================================== + /** A helper class for implementing the <type scope="com::sun::star::inspection">XPropertyControl</type> or one of its derived interfaces. @@ -163,9 +163,9 @@ namespace pcr void impl_activateNextControl_nothrow() const; }; - //======================================================================== + //= CommonBehaviourControl - //======================================================================== + /** implements a base class for <type scope="com::sun::star::inspection">XPropertyControl</type> implementations, which delegates the generic functionality of this interface to a <type>ControlHelper</type> member. @@ -219,17 +219,17 @@ namespace pcr inline void impl_checkDisposed_throw(); }; - //======================================================================== + //= ControlWindow - implementation - //======================================================================== - //------------------------------------------------------------------------ + + template< class WINDOW > inline void ControlWindow< WINDOW >::setControlHelper( ControlHelper& _rControlHelper ) { m_pHelper = &_rControlHelper; } - //------------------------------------------------------------------------ + template< class WINDOW > inline bool ControlWindow< WINDOW >::PreNotify( NotifyEvent& rNEvt ) { @@ -238,10 +238,10 @@ namespace pcr return WindowType::PreNotify( rNEvt ); } - //======================================================================== + //= CommonBehaviourControl - implementation - //======================================================================== - //------------------------------------------------------------------------ + + template< class CONTROL_INTERFACE, class CONTROL_WINDOW > inline CommonBehaviourControl< CONTROL_INTERFACE, CONTROL_WINDOW >::CommonBehaviourControl ( sal_Int16 _nControlType, Window* _pParentWindow, WinBits _nWindowStyle, bool _bDoSetHandlers ) :ComponentBaseClass( m_aMutex ) @@ -258,63 +258,63 @@ namespace pcr m_aImplControl.autoSizeWindow(); } - //-------------------------------------------------------------------- + template< class CONTROL_INTERFACE, class CONTROL_WINDOW > inline ::sal_Int16 SAL_CALL CommonBehaviourControl< CONTROL_INTERFACE, CONTROL_WINDOW >::getControlType() throw (::com::sun::star::uno::RuntimeException) { return m_aImplControl.getControlType(); } - //-------------------------------------------------------------------- + template< class CONTROL_INTERFACE, class CONTROL_WINDOW > inline ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlContext > SAL_CALL CommonBehaviourControl< CONTROL_INTERFACE, CONTROL_WINDOW >::getControlContext() throw (::com::sun::star::uno::RuntimeException) { return m_aImplControl.getControlContext(); } - //-------------------------------------------------------------------- + template< class CONTROL_INTERFACE, class CONTROL_WINDOW > inline void SAL_CALL CommonBehaviourControl< CONTROL_INTERFACE, CONTROL_WINDOW >::setControlContext( const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlContext >& _controlcontext ) throw (::com::sun::star::uno::RuntimeException) { m_aImplControl.setControlContext( _controlcontext ); } - //-------------------------------------------------------------------- + template< class CONTROL_INTERFACE, class CONTROL_WINDOW > inline ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL CommonBehaviourControl< CONTROL_INTERFACE, CONTROL_WINDOW >::getControlWindow() throw (::com::sun::star::uno::RuntimeException) { return m_aImplControl.getControlWindow(); } - //-------------------------------------------------------------------- + template< class CONTROL_INTERFACE, class CONTROL_WINDOW > inline ::sal_Bool SAL_CALL CommonBehaviourControl< CONTROL_INTERFACE, CONTROL_WINDOW >::isModified( ) throw (::com::sun::star::uno::RuntimeException) { return m_aImplControl.isModified(); } - //-------------------------------------------------------------------- + template< class CONTROL_INTERFACE, class CONTROL_WINDOW > inline void SAL_CALL CommonBehaviourControl< CONTROL_INTERFACE, CONTROL_WINDOW >::notifyModifiedValue( ) throw (::com::sun::star::uno::RuntimeException) { m_aImplControl.notifyModifiedValue(); } - //-------------------------------------------------------------------- + template< class CONTROL_INTERFACE, class CONTROL_WINDOW > inline void SAL_CALL CommonBehaviourControl< CONTROL_INTERFACE, CONTROL_WINDOW >::disposing() { m_aImplControl.dispose(); } - //-------------------------------------------------------------------- + template< class CONTROL_INTERFACE, class CONTROL_WINDOW > inline void CommonBehaviourControl< CONTROL_INTERFACE, CONTROL_WINDOW >::modified() { m_aImplControl.setModified(); } - //-------------------------------------------------------------------- + template< class CONTROL_INTERFACE, class CONTROL_WINDOW > inline void CommonBehaviourControl< CONTROL_INTERFACE, CONTROL_WINDOW >::impl_checkDisposed_throw() { @@ -322,9 +322,9 @@ namespace pcr throw ::com::sun::star::lang::DisposedException( OUString(), *this ); } -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_COMMONCONTROL_HXX_ diff --git a/extensions/source/propctrlr/composeduiupdate.cxx b/extensions/source/propctrlr/composeduiupdate.cxx index 8b5d88624fdb..4c610e8407c3 100644 --- a/extensions/source/propctrlr/composeduiupdate.cxx +++ b/extensions/source/propctrlr/composeduiupdate.cxx @@ -27,10 +27,10 @@ #include <algorithm> -//........................................................................ + namespace pcr { -//........................................................................ + using ::com::sun::star::uno::Exception; using ::com::sun::star::lang::DisposedException; @@ -45,9 +45,9 @@ namespace pcr namespace PropertyLineElement = ::com::sun::star::inspection::PropertyLineElement; - //==================================================================== + //= helper - //==================================================================== + namespace { struct HandlerLess : public ::std::binary_function < Reference< XPropertyHandler > @@ -61,19 +61,19 @@ namespace pcr } }; - //================================================================ + typedef ::std::set< OUString > StringBag; typedef ::std::map< sal_Int16, StringBag > MapIntToStringBag; } - //==================================================================== + //= callbacks for CachedInspectorUI - //==================================================================== + typedef void (ComposedPropertyUIUpdate::*FNotifySingleUIChange)(); - //==================================================================== + //= CachedInspectorUI - //==================================================================== + typedef ::cppu::WeakImplHelper1 < ::com::sun::star::inspection::XObjectInspectorUI > CachedInspectorUI_Base; struct CachedInspectorUI : public CachedInspectorUI_Base @@ -380,9 +380,9 @@ namespace pcr m_rMaster.getDelegatorUI()->setHelpSectionText( _HelpText ); } - //==================================================================== + //= HandlerMap - //==================================================================== + typedef ::std::map < Reference< XPropertyHandler > , ::rtl::Reference< CachedInspectorUI > , HandlerLess @@ -392,9 +392,9 @@ namespace pcr ImplMapHandlerToUI aHandlers; }; - //==================================================================== + //= ComposedPropertyUIUpdate - //==================================================================== + ComposedPropertyUIUpdate::ComposedPropertyUIUpdate( const Reference< XObjectInspectorUI >& _rxDelegatorUI, IPropertyExistenceCheck* _pPropertyCheck ) @@ -426,9 +426,9 @@ namespace pcr namespace { - //============================================================ + //= StringBagCollector - //============================================================ + /** an STL-compatible structure which collects strings from a CachedInspectorUI instances */ struct StringBagCollector : public ::std::unary_function< ImplMapHandlerToUI::value_type, void > @@ -452,9 +452,9 @@ namespace pcr } }; - //============================================================ + //= StringBagClearer - //============================================================ + /** an STL-compatible structure which cleans a certain string bag in a CachedInspectorUI instances */ struct StringBagClearer : public ::std::unary_function< ImplMapHandlerToUI::value_type, void > @@ -476,16 +476,16 @@ namespace pcr } }; - //============================================================ + //= FPropertyUISetter - //============================================================ + /** a typedef for a ->XObjectInspectorUI member function taking a string */ typedef void ( SAL_CALL XObjectInspectorUI::*FPropertyUISetter )( const OUString& ); - //============================================================ + //= PropertyUIOperator - //============================================================ + /** an STL-compatible struct which calls a certain member method (taking a string) at a given ->XObjectInspectorUI instance */ @@ -513,9 +513,9 @@ namespace pcr } }; - //============================================================ + //= IStringKeyBooleanUIUpdate - //============================================================ + /** an interface which encapsulates access to a single aspect of the ->XObjectInspectorUI, where this aspect is given by a string key, and has a boolean value. */ @@ -527,9 +527,9 @@ namespace pcr virtual ~IStringKeyBooleanUIUpdate() { } }; - //============================================================ + //= FPropertyUIFlagSetter - //============================================================ + /** an implementation of the ->IStringKeyBooleanUIUpdate interface which, for a fixed ->XObjectInspectorUI instance and a fixed UI element (->PropertyLineElement), updates this element for a given property with a given boolean flag @@ -551,22 +551,22 @@ namespace pcr virtual void updateUIForKey( const OUString& _rKey, sal_Bool _bFlag ) const; }; - //............................................................ + void EnablePropertyUIElement::updateUIForKey( const OUString& _rKey, sal_Bool _bFlag ) const { m_xUIUpdate->enablePropertyUIElements( _rKey, m_nElement, _bFlag ); } - //============================================================ + //= FPropertyUIFlagSetter - //============================================================ + /** a ->XObjectInspectorUI method taking a string and a boolean */ typedef void ( SAL_CALL XObjectInspectorUI::*FPropertyUIFlagSetter )( const OUString&, sal_Bool ); - //============================================================ + //= DefaultStringKeyBooleanUIUpdate - //============================================================ + /** an implementaiton of the ->IStringKeyBooleanUIUpdate interface which calls am arbitrary ->XObjectInspectorUI method taking a string and a boolean flag */ @@ -582,22 +582,22 @@ namespace pcr virtual void updateUIForKey( const OUString& _rKey, sal_Bool _bFlag ) const; }; - //............................................................ + DefaultStringKeyBooleanUIUpdate::DefaultStringKeyBooleanUIUpdate( const Reference< XObjectInspectorUI >& _rxUIUpdate, FPropertyUIFlagSetter _pSetter ) :m_xUIUpdate( _rxUIUpdate ) ,m_pSetter( _pSetter ) { } - //............................................................ + void DefaultStringKeyBooleanUIUpdate::updateUIForKey( const OUString& _rKey, sal_Bool _bFlag ) const { ((m_xUIUpdate.get())->*m_pSetter)( _rKey, _bFlag ); } - //============================================================ + //= BooleanUIAspectUpdate - //============================================================ + /** an STL-compatible structure which applies a ->IStringKeyBooleanUIUpdate::updateUIForKey operation with a fixed boolean value, for a given string value */ @@ -625,9 +625,9 @@ namespace pcr } }; - //============================================================ + //= BooleanUIAspectUpdate - //============================================================ + /** an STL-compatible structure subtracting a given string from a fixed ->StringBag */ struct StringBagComplement : public ::std::unary_function< OUString, void > @@ -649,9 +649,9 @@ namespace pcr } }; - //============================================================ + //= BooleanUIAspectUpdate - //============================================================ + void lcl_fireUIStateFlag( const IStringKeyBooleanUIUpdate& _rUIUpdate, const ImplMapHandlerToUI& _rHandlerUIs, @@ -839,8 +839,8 @@ namespace pcr return false; } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/composeduiupdate.hxx b/extensions/source/propctrlr/composeduiupdate.hxx index 04899f15598b..5b19013b0829 100644 --- a/extensions/source/propctrlr/composeduiupdate.hxx +++ b/extensions/source/propctrlr/composeduiupdate.hxx @@ -28,14 +28,14 @@ #include <set> #include <memory> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= some helper types - //==================================================================== + struct MapHandlerToUI; @@ -50,9 +50,9 @@ namespace pcr ~IPropertyExistenceCheck() {} }; - //==================================================================== + //= ComposedPropertyUIUpdate - //==================================================================== + /** helper class composing requests to a ->XObjectInspectorUI interface, coming from multiple sources @@ -197,9 +197,9 @@ namespace pcr ComposedPropertyUIUpdate& operator=( const ComposedPropertyUIUpdate& ); // never implemented }; - //==================================================================== + //= ComposedUIAutoFireGuard - //==================================================================== + class ComposedUIAutoFireGuard { private: @@ -216,9 +216,9 @@ namespace pcr } }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_COMPOSEDUIUPDATE_HXX diff --git a/extensions/source/propctrlr/controlfontdialog.cxx b/extensions/source/propctrlr/controlfontdialog.cxx index cddf465f5713..210ef9c807f9 100644 --- a/extensions/source/propctrlr/controlfontdialog.cxx +++ b/extensions/source/propctrlr/controlfontdialog.cxx @@ -29,18 +29,18 @@ extern "C" void SAL_CALL createRegistryInfo_OControlFontDialog() ::pcr::OAutoRegistration< ::pcr::OControlFontDialog > aAutoRegistration; } -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::beans; - //==================================================================== + //= OControlFontDialog - //==================================================================== + OControlFontDialog::OControlFontDialog(const Reference< XComponentContext >& _rxContext ) :OGenericUnoDialog( _rxContext ) @@ -175,8 +175,8 @@ namespace pcr } } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/controlfontdialog.hxx b/extensions/source/propctrlr/controlfontdialog.hxx index 241c6c037bdf..66b2ed7df847 100644 --- a/extensions/source/propctrlr/controlfontdialog.hxx +++ b/extensions/source/propctrlr/controlfontdialog.hxx @@ -26,14 +26,14 @@ class SfxItemSet; class SfxItemPool; class SfxPoolItem; -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= OControlFontDialog - //==================================================================== + class OControlFontDialog; typedef ::svt::OGenericUnoDialog OControlFontDialog_DBase; typedef ::comphelper::OPropertyArrayUsageHelper< OControlFontDialog > OControlFontDialog_PBase; @@ -87,9 +87,9 @@ namespace pcr virtual void executedDialog(sal_Int16 _nExecutionResult); }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // _EXTENSIONS_PROPCTRLR_CONTROLFONTDIALOG_HXX_ diff --git a/extensions/source/propctrlr/controltype.hxx b/extensions/source/propctrlr/controltype.hxx index d7c40ced32c4..fc6cf3a59a37 100644 --- a/extensions/source/propctrlr/controltype.hxx +++ b/extensions/source/propctrlr/controltype.hxx @@ -21,14 +21,14 @@ #include <sal/types.h> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= control types, analogous to FormComponentType - //==================================================================== + namespace ControlType { static const sal_Int16 FIXEDLINE = (sal_Int16)100; @@ -38,9 +38,9 @@ namespace pcr // need only those which are not already covered as FormComponentType } -//........................................................................ + } // namespacepcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_CONTROLTYPE_HXX diff --git a/extensions/source/propctrlr/defaultforminspection.cxx b/extensions/source/propctrlr/defaultforminspection.cxx index 97879ce55591..728a14e6ac80 100644 --- a/extensions/source/propctrlr/defaultforminspection.cxx +++ b/extensions/source/propctrlr/defaultforminspection.cxx @@ -37,10 +37,10 @@ extern "C" void SAL_CALL createRegistryInfo_DefaultFormComponentInspectorModel() ::pcr::OAutoRegistration< ::pcr::DefaultFormComponentInspectorModel > aAutoRegistration; } -//........................................................................ + namespace pcr { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Sequence; @@ -55,9 +55,9 @@ namespace pcr using ::com::sun::star::ucb::AlreadyInitializedException; using ::com::sun::star::lang::IllegalArgumentException; - //==================================================================== + //= DefaultFormComponentInspectorModel - //==================================================================== + DefaultFormComponentInspectorModel::DefaultFormComponentInspectorModel( bool _bUseFormFormComponentHandlers ) :ImplInspectorModel() @@ -245,8 +245,8 @@ namespace pcr m_bConstructed = true; } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/defaultforminspection.hxx b/extensions/source/propctrlr/defaultforminspection.hxx index 10b3e47cb61e..e567aa5fd088 100644 --- a/extensions/source/propctrlr/defaultforminspection.hxx +++ b/extensions/source/propctrlr/defaultforminspection.hxx @@ -23,15 +23,15 @@ #include <memory> -//........................................................................ + namespace pcr { -//........................................................................ + class OPropertyInfoService; - //==================================================================== + //= DefaultFormComponentInspectorModel - //==================================================================== + class DefaultFormComponentInspectorModel : public ImplInspectorModel { private: @@ -74,9 +74,9 @@ namespace pcr void createWithHelpSection( sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines ); }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX diff --git a/extensions/source/propctrlr/defaulthelpprovider.cxx b/extensions/source/propctrlr/defaulthelpprovider.cxx index 2c5356fb7c24..de0f7a07ebc2 100644 --- a/extensions/source/propctrlr/defaulthelpprovider.cxx +++ b/extensions/source/propctrlr/defaulthelpprovider.cxx @@ -36,10 +36,10 @@ extern "C" void SAL_CALL createRegistryInfo_DefaultHelpProvider() ::pcr::OAutoRegistration< ::pcr::DefaultHelpProvider > aAutoRegistration; } -//........................................................................ + namespace pcr { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XComponentContext; @@ -57,9 +57,9 @@ namespace pcr using ::com::sun::star::awt::XWindow; using ::com::sun::star::awt::XVclWindowPeer; - //==================================================================== + //= DefaultHelpProvider - //==================================================================== + DefaultHelpProvider::DefaultHelpProvider() :m_bConstructed( false ) @@ -186,8 +186,8 @@ namespace pcr sHelpText = pControlWindow->GetHelpText(); return sHelpText; } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/defaulthelpprovider.hxx b/extensions/source/propctrlr/defaulthelpprovider.hxx index 644b830cc7d4..5f8980471082 100644 --- a/extensions/source/propctrlr/defaulthelpprovider.hxx +++ b/extensions/source/propctrlr/defaulthelpprovider.hxx @@ -29,14 +29,14 @@ class Window; -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= DefaultHelpProvider - //==================================================================== + typedef ::cppu::WeakImplHelper2 < ::com::sun::star::inspection::XPropertyControlObserver , ::com::sun::star::lang::XInitialization > DefaultHelpProvider_Base; @@ -75,9 +75,9 @@ namespace pcr OUString impl_getHelpText_nothrow( const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControl >& _rxControl ); }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_DEFAULTHELPPROVIDER_HXX diff --git a/extensions/source/propctrlr/editpropertyhandler.cxx b/extensions/source/propctrlr/editpropertyhandler.cxx index f5f83d73cfec..c976063322dd 100644 --- a/extensions/source/propctrlr/editpropertyhandler.cxx +++ b/extensions/source/propctrlr/editpropertyhandler.cxx @@ -34,10 +34,10 @@ extern "C" void SAL_CALL createRegistryInfo_EditPropertyHandler() ::pcr::EditPropertyHandler::registerImplementation(); } -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -46,9 +46,9 @@ namespace pcr using namespace ::com::sun::star::frame; using namespace ::com::sun::star::inspection; - //==================================================================== + //= EditPropertyHandler - //==================================================================== + DBG_NAME( EditPropertyHandler ) EditPropertyHandler::EditPropertyHandler( const Reference< XComponentContext >& _rxContext ) @@ -305,8 +305,8 @@ namespace pcr } } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/editpropertyhandler.hxx b/extensions/source/propctrlr/editpropertyhandler.hxx index e1aa0046c9f1..1c1a13019c83 100644 --- a/extensions/source/propctrlr/editpropertyhandler.hxx +++ b/extensions/source/propctrlr/editpropertyhandler.hxx @@ -22,14 +22,14 @@ #include "propertyhandler.hxx" -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= EditPropertyHandler - //==================================================================== + class EditPropertyHandler; typedef HandlerComponentBase< EditPropertyHandler > EditPropertyHandler_Base; /** a property handler for any virtual string properties @@ -63,9 +63,9 @@ namespace pcr bool implHaveTextTypeProperty() const; }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_EDITPROPERTYHANDLER_HXX diff --git a/extensions/source/propctrlr/eformshelper.cxx b/extensions/source/propctrlr/eformshelper.cxx index aaef4080ccb1..17d3cfdcb729 100644 --- a/extensions/source/propctrlr/eformshelper.cxx +++ b/extensions/source/propctrlr/eformshelper.cxx @@ -36,10 +36,10 @@ #include <algorithm> #include <o3tl/compat_functional.hxx> -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -50,9 +50,9 @@ namespace pcr using namespace ::com::sun::star::lang; using namespace ::com::sun::star::form; - //==================================================================== + //= file-local helpers - //==================================================================== + namespace { @@ -67,9 +67,9 @@ namespace pcr } } - //==================================================================== + //= EFormsHelper - //==================================================================== + EFormsHelper::EFormsHelper( ::osl::Mutex& _rMutex, const Reference< XPropertySet >& _rxControlModel, const Reference< frame::XModel >& _rxContextDocument ) :m_xControlModel( _rxControlModel ) @@ -576,7 +576,7 @@ namespace pcr namespace { - //................................................................ + struct PropertyBagInserter : public ::std::unary_function< Property, void > { private: @@ -591,7 +591,7 @@ namespace pcr } }; - //................................................................ + Reference< XPropertySetInfo > collectPropertiesGetInfo( const Reference< XPropertySet >& _rxProps, PropertyBag& _rBag ) { Reference< XPropertySetInfo > xInfo; @@ -773,8 +773,8 @@ namespace pcr } } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/eformshelper.hxx b/extensions/source/propctrlr/eformshelper.hxx index f77be57da1d0..22f787e8caff 100644 --- a/extensions/source/propctrlr/eformshelper.hxx +++ b/extensions/source/propctrlr/eformshelper.hxx @@ -36,17 +36,17 @@ #include <set> #include <map> -//........................................................................ + namespace pcr { -//........................................................................ + typedef ::std::map< OUString, ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >, ::std::less< OUString > > MapStringToPropertySet; - //==================================================================== + //= EFormsHelper - //==================================================================== + class EFormsHelper { protected: @@ -251,9 +251,9 @@ namespace pcr EFormsHelper& operator=( const EFormsHelper& ); // never implemented }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_EFORMSHELPER_HXX diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx index 4d797629c040..e663657c09d8 100644 --- a/extensions/source/propctrlr/eformspropertyhandler.cxx +++ b/extensions/source/propctrlr/eformspropertyhandler.cxx @@ -38,10 +38,10 @@ extern "C" void SAL_CALL createRegistryInfo_EFormsPropertyHandler() ::pcr::EFormsPropertyHandler::registerImplementation(); } -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -53,9 +53,9 @@ namespace pcr using namespace ::com::sun::star::form::binding; using namespace ::com::sun::star::inspection; - //==================================================================== + //= EFormsPropertyHandler - //==================================================================== + DBG_NAME( EFormsPropertyHandler ) EFormsPropertyHandler::EFormsPropertyHandler( const Reference< XComponentContext >& _rxContext ) @@ -214,7 +214,7 @@ namespace pcr // This is because we "simulate" the Model property by remembering the // value ourself. Other instances might, however, not know this value, // but prefer to retrieve it somewhere else - e.g. from the EFormsHelper - // + // The really correct solution would be if *all* property handlers // obtain a "current property value" for *all* properties from a central // instance. Then, handler A could ask it for the value of property @@ -598,8 +598,8 @@ namespace pcr } } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/eformspropertyhandler.hxx b/extensions/source/propctrlr/eformspropertyhandler.hxx index ba76e7d29e3b..4f994e87e01b 100644 --- a/extensions/source/propctrlr/eformspropertyhandler.hxx +++ b/extensions/source/propctrlr/eformspropertyhandler.hxx @@ -24,15 +24,15 @@ #include <memory> -//........................................................................ + namespace pcr { -//........................................................................ + class EFormsHelper; - //==================================================================== + //= EFormsPropertyHandler - //==================================================================== + class EFormsPropertyHandler; typedef HandlerComponentBase< EFormsPropertyHandler > EFormsPropertyHandler_Base; class EFormsPropertyHandler : public EFormsPropertyHandler_Base @@ -89,9 +89,9 @@ namespace pcr OUString getModelNamePropertyValue() const; }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_EFORMSPROPERTYHANDLER_HXX diff --git a/extensions/source/propctrlr/enumrepresentation.hxx b/extensions/source/propctrlr/enumrepresentation.hxx index 2d8d373af540..7cf5635a0660 100644 --- a/extensions/source/propctrlr/enumrepresentation.hxx +++ b/extensions/source/propctrlr/enumrepresentation.hxx @@ -26,14 +26,14 @@ #include <vector> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= IPropertyEnumRepresentation - //==================================================================== + class SAL_NO_VTABLE IPropertyEnumRepresentation : public ::rtl::IReference { public: @@ -58,9 +58,9 @@ namespace pcr virtual ~IPropertyEnumRepresentation() { }; }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_ENUMREPRESENTATION_HXX diff --git a/extensions/source/propctrlr/eventhandler.hxx b/extensions/source/propctrlr/eventhandler.hxx index 81a57c889ba9..a4396bcae57f 100644 --- a/extensions/source/propctrlr/eventhandler.hxx +++ b/extensions/source/propctrlr/eventhandler.hxx @@ -32,14 +32,14 @@ #include <cppuhelper/compbase2.hxx> #include <comphelper/listenernotification.hxx> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= EventDescription - //==================================================================== + typedef sal_Int32 EventId; struct EventDescription { @@ -68,9 +68,9 @@ namespace pcr typedef ::boost::unordered_map< OUString, EventDescription, OUStringHash > EventMap; - //==================================================================== + //= EventHandler - //==================================================================== + typedef ::cppu::WeakComponentImplHelper2 < ::com::sun::star::inspection::XPropertyHandler , ::com::sun::star::lang::XServiceInfo > EventHandler_Base; @@ -247,9 +247,9 @@ namespace pcr EventHandler& operator=( const EventHandler& ); // never implemented }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_EVENTHANDLER_HXX diff --git a/extensions/source/propctrlr/fontdialog.cxx b/extensions/source/propctrlr/fontdialog.cxx index 014510fc7fcd..5d7750d6ea9c 100644 --- a/extensions/source/propctrlr/fontdialog.cxx +++ b/extensions/source/propctrlr/fontdialog.cxx @@ -57,17 +57,17 @@ #include <svx/flagsdef.hxx> #include <vcl/settings.hxx> -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; - //======================================================================== + //= OFontPropertyExtractor - //======================================================================== + class OFontPropertyExtractor { protected: @@ -167,9 +167,9 @@ namespace pcr _rSet.InvalidateItem(_nItemId); } - //======================================================================== + //= ControlCharacterDialog - //======================================================================== + ControlCharacterDialog::ControlCharacterDialog(Window* _pParent, const SfxItemSet& _rCoreSet) : SfxTabDialog(_pParent, "ControlFontDialog", @@ -305,7 +305,7 @@ namespace pcr try { - // -------------------------- + // font name SfxItemState eState = _rSet.GetItemState(CFID_FONT); @@ -320,7 +320,7 @@ namespace pcr lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_CHARSET , makeAny((sal_Int16)rFontItem.GetCharSet())); } - // -------------------------- + // font height eState = _rSet.GetItemState(CFID_HEIGHT); @@ -334,7 +334,7 @@ namespace pcr } - // -------------------------- + // font weight eState = _rSet.GetItemState(CFID_WEIGHT); @@ -347,7 +347,7 @@ namespace pcr lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_WEIGHT,makeAny(nWeight)); } - // -------------------------- + // font slant eState = _rSet.GetItemState(CFID_POSTURE); @@ -360,7 +360,7 @@ namespace pcr lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_SLANT, makeAny((sal_Int16)eSlant)); } - // -------------------------- + // font underline eState = _rSet.GetItemState(CFID_UNDERLINE); @@ -382,7 +382,7 @@ namespace pcr lcl_pushBackPropertyValue( _out_properties, PROPERTY_TEXTLINECOLOR, aUnoColor ); } - // -------------------------- + // font strikeout eState = _rSet.GetItemState(CFID_STRIKEOUT); @@ -396,7 +396,7 @@ namespace pcr } - // -------------------------- + // font wordline mode eState = _rSet.GetItemState(CFID_WORDLINEMODE); @@ -409,7 +409,7 @@ namespace pcr } - // -------------------------- + // text color eState = _rSet.GetItemState(CFID_CHARCOLOR); @@ -427,7 +427,7 @@ namespace pcr lcl_pushBackPropertyValue( _out_properties, PROPERTY_TEXTCOLOR, aUnoColor ); } - // -------------------------- + // font relief eState = _rSet.GetItemState(CFID_RELIEF); @@ -439,7 +439,7 @@ namespace pcr lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_RELIEF, makeAny((sal_Int16)rReliefItem.GetValue()) ); } - // -------------------------- + // font emphasis mark eState = _rSet.GetItemState(CFID_EMPHASIS); @@ -590,8 +590,8 @@ namespace pcr } } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/fontdialog.hxx b/extensions/source/propctrlr/fontdialog.hxx index 485c573192ed..7017e02c3bf3 100644 --- a/extensions/source/propctrlr/fontdialog.hxx +++ b/extensions/source/propctrlr/fontdialog.hxx @@ -24,14 +24,14 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/NamedValue.hpp> -//............................................................................ + namespace pcr { -//............................................................................ - //======================================================================== + + //= ControlCharacterDialog - //======================================================================== + class ControlCharacterDialog : public SfxTabDialog { public: @@ -66,9 +66,9 @@ namespace pcr private: sal_uInt16 m_nCharsId; }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_FONTDIALOG_HXX_ diff --git a/extensions/source/propctrlr/fontitemids.hxx b/extensions/source/propctrlr/fontitemids.hxx index 668ec891d479..0aff871f19f2 100644 --- a/extensions/source/propctrlr/fontitemids.hxx +++ b/extensions/source/propctrlr/fontitemids.hxx @@ -46,13 +46,13 @@ #define CFID_FIRST_ITEM_ID CFID_FONT #define CFID_LAST_ITEM_ID CFID_FONTLIST -//........................................................................ + namespace pcr { -//........................................................................ -//........................................................................ + + } // namespace pcr -//........................................................................ + #endif // _EXTENSIONS_PROPCTRLR_FONTITEMIDS_HXX_ diff --git a/extensions/source/propctrlr/formbrowsertools.cxx b/extensions/source/propctrlr/formbrowsertools.cxx index d03a7946af90..12a5d4afec70 100644 --- a/extensions/source/propctrlr/formbrowsertools.cxx +++ b/extensions/source/propctrlr/formbrowsertools.cxx @@ -25,10 +25,10 @@ #include "modulepcr.hxx" #include "formstrings.hxx" -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::form; @@ -127,8 +127,8 @@ namespace pcr return nControlType; } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/formbrowsertools.hxx b/extensions/source/propctrlr/formbrowsertools.hxx index 2df90d5ab6bd..7378c4273c09 100644 --- a/extensions/source/propctrlr/formbrowsertools.hxx +++ b/extensions/source/propctrlr/formbrowsertools.hxx @@ -27,15 +27,15 @@ #include <functional> #include <set> -//............................................................................ + namespace pcr { -//............................................................................ + OUString GetUIHeadlineName(sal_Int16 _nClassId, const ::com::sun::star::uno::Any& _rUnoObject); sal_Int16 classifyComponent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxComponent ); - //======================================================================== + struct FindPropertyByHandle : public ::std::unary_function< ::com::sun::star::beans::Property, bool > { private: @@ -49,7 +49,7 @@ namespace pcr } }; - //======================================================================== + struct FindPropertyByName : public ::std::unary_function< ::com::sun::star::beans::Property, bool > { private: @@ -63,7 +63,7 @@ namespace pcr } }; - //======================================================================== + struct PropertyLessByName :public ::std::binary_function < ::com::sun::star::beans::Property, ::com::sun::star::beans::Property, @@ -76,7 +76,7 @@ namespace pcr } }; - //======================================================================== + struct TypeLessByName :public ::std::binary_function < ::com::sun::star::uno::Type, ::com::sun::star::uno::Type, @@ -89,12 +89,12 @@ namespace pcr } }; - //======================================================================== + typedef ::std::set< ::com::sun::star::beans::Property, PropertyLessByName > PropertyBag; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_FORMSCTRLR_FORMBROWSERTOOLS_HXX_ diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 1e8bd1127bdb..66c145181d14 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -108,10 +108,10 @@ extern "C" void SAL_CALL createRegistryInfo_FormComponentPropertyHandler() ::pcr::FormComponentPropertyHandler::registerImplementation(); } -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star; using namespace uno; @@ -132,9 +132,9 @@ namespace pcr namespace WritingMode2 = ::com::sun::star::text::WritingMode2; - //==================================================================== + //= FormComponentPropertyHandler - //==================================================================== + DBG_NAME( FormComponentPropertyHandler ) #define PROPERTY_ID_ROWSET 1 @@ -173,7 +173,7 @@ namespace pcr return aSupported; } - //============================================ + // TODO: -> export from toolkit struct LanguageDependentProp { @@ -647,7 +647,7 @@ namespace pcr switch ( nPropId ) { - ////////////////////////////////////////////////////////////// + case PROPERTY_ID_SHOW_POSITION: case PROPERTY_ID_SHOW_NAVIGATION: case PROPERTY_ID_SHOW_RECORDACTIONS: @@ -667,7 +667,7 @@ namespace pcr } break; - ////////////////////////////////////////////////////////////// + case PROPERTY_ID_DATASOURCE: { OSL_ENSURE( _rControlValueType.getTypeClass() == TypeClass_STRING, @@ -684,7 +684,7 @@ namespace pcr } break; - ////////////////////////////////////////////////////////////// + case PROPERTY_ID_CONTROLLABEL: { OUString sControlValue; @@ -709,7 +709,7 @@ namespace pcr } break; - ////////////////////////////////////////////////////////////// + case PROPERTY_ID_DATEMIN: case PROPERTY_ID_DATEMAX: case PROPERTY_ID_DEFAULT_DATE: @@ -973,7 +973,7 @@ namespace pcr PropertyId nPropId( impl_getPropertyId_throw( _rPropertyName ) ); Property aProperty( impl_getPropertyFromId_throw( nPropId ) ); - ////////////////////////////////////////////////////////////////////// + // for the MultiLine property, we have different UI translations depending on the control // type if ( nPropId == PROPERTY_ID_MULTILINE ) @@ -993,7 +993,7 @@ namespace pcr throw UnknownPropertyException(); } - ////////////////////////////////////////////////////////////////////// + LineDescriptor aDescriptor; aDescriptor.HelpURL = HelpIdUrl::getHelpURL( m_pInfoService->getPropertyHelpId( nPropId ) ); @@ -1004,7 +1004,7 @@ namespace pcr sal_Bool bReadOnly = sal_False; aDescriptor.Control.clear(); - ////////////////////////////////////////////////////////////////////// + bool bNeedDefaultStringIfVoidAllowed = false; @@ -1239,11 +1239,11 @@ namespace pcr break; } - ////////////////////////////////////////////////////////////////////// + if ( eType == TypeClass_SEQUENCE ) nControlType = PropertyControlType::StringListField; - ////////////////////////////////////////////////////////////////////// + // boolean values if ( eType == TypeClass_BOOLEAN ) { @@ -1261,7 +1261,7 @@ namespace pcr bNeedDefaultStringIfVoidAllowed = true; } - ////////////////////////////////////////////////////////////////////// + // enum properties sal_uInt32 nPropertyUIFlags = m_pInfoService->getPropertyUIFlags( nPropId ); bool bIsEnumProperty = ( nPropertyUIFlags & PROP_FLAG_ENUM ) != 0; @@ -1307,7 +1307,7 @@ namespace pcr } } - ////////////////////////////////////////////////////////////////////// + switch( nPropId ) { case PROPERTY_ID_REPEAT_DELAY: @@ -1353,7 +1353,7 @@ namespace pcr } break; - ////////////////////////////////////////////////////////////////////// + // DataSource case PROPERTY_ID_DATASOURCE: { @@ -2029,7 +2029,7 @@ namespace pcr { try { - ////////////////////////////////////////////////////////////////// + // component class m_eComponentClass = eUnknown; @@ -2048,7 +2048,7 @@ namespace pcr m_eComponentClass = eFormControl; } - ////////////////////////////////////////////////////////////////// + // (database) sub form? Reference< XForm > xAsForm( m_xComponent, UNO_QUERY ); if ( xAsForm.is() ) @@ -2057,13 +2057,13 @@ namespace pcr m_bComponentIsSubForm = xFormsParent.is(); } - ////////////////////////////////////////////////////////////////// + // ClassId Reference< XChild > xCompAsChild( m_xComponent, UNO_QUERY ); if ( xCompAsChild.is() ) m_xObjectParent = xCompAsChild->getParent(); - ////////////////////////////////////////////////////////////////// + // ClassId impl_classifyControlModel_throw(); } @@ -2448,14 +2448,14 @@ namespace pcr { WaitCursor aWaitCursor( impl_getDefaultDialogParent_nothrow() ); - //////////////////////////////////////////////////////////// + // Setzen der UI-Daten _out_rProperty.DisplayName = m_pInfoService->getPropertyTranslation( PROPERTY_ID_COMMAND ); _out_rProperty.HelpURL = HelpIdUrl::getHelpURL( m_pInfoService->getPropertyHelpId( PROPERTY_ID_COMMAND ) ); _out_rProperty.PrimaryButtonId = OUString::createFromAscii(UID_PROP_DLG_SQLCOMMAND); - //////////////////////////////////////////////////////////// + sal_Int32 nCommandType = CommandType::COMMAND; impl_getPropertyValue_throw( PROPERTY_COMMANDTYPE ) >>= nCommandType; @@ -2558,7 +2558,7 @@ namespace pcr { OSL_PRECOND( m_xComponent.is(), "FormComponentPropertyHandler::impl_describeListSourceUI_throw: no component!" ); - //////////////////////////////////////////////////////////// + // Auslesen des ListSourceTypes Any aListSourceType( m_xComponent->getPropertyValue( PROPERTY_LISTSOURCETYPE ) ); @@ -2568,7 +2568,7 @@ namespace pcr _out_rDescriptor.DisplayName = m_pInfoService->getPropertyTranslation( PROPERTY_ID_LISTSOURCE ); _out_rDescriptor.HelpURL = HelpIdUrl::getHelpURL( m_pInfoService->getPropertyHelpId( PROPERTY_ID_LISTSOURCE ) ); - //////////////////////////////////////////////////////////// + // Enums setzen switch( nListSourceType ) { @@ -3017,13 +3017,13 @@ namespace pcr //- FormSQLCommandUI - implementation - //.................................................................... + FormSQLCommandUI::FormSQLCommandUI( const Reference< XPropertySet >& _rxForm ) :SQLCommandPropertyUI( _rxForm ) { } - //.................................................................... + OUString FormSQLCommandUI::getSQLCommand() const { OUString sCommand; @@ -3031,7 +3031,7 @@ namespace pcr return sCommand; } - //.................................................................... + sal_Bool FormSQLCommandUI::getEscapeProcessing() const { sal_Bool bEscapeProcessing( sal_False ); @@ -3039,19 +3039,19 @@ namespace pcr return bEscapeProcessing; } - //.................................................................... + void FormSQLCommandUI::setSQLCommand( const OUString& _rCommand ) const { m_xObject->setPropertyValue( PROPERTY_COMMAND, makeAny( _rCommand ) ); } - //.................................................................... + void FormSQLCommandUI::setEscapeProcessing( const sal_Bool _bEscapeProcessing ) const { m_xObject->setPropertyValue( PROPERTY_ESCAPE_PROCESSING, makeAny( _bEscapeProcessing ) ); } - //.................................................................... + OUString* FormSQLCommandUI::getPropertiesToDisable() { static OUString s_aCommandProps[] = { @@ -3086,14 +3086,14 @@ namespace pcr //- ValueListCommandUI - implementation - //.................................................................... + ValueListCommandUI::ValueListCommandUI( const Reference< XPropertySet >& _rxListOrCombo ) :SQLCommandPropertyUI( _rxListOrCombo ) ,m_bPropertyValueIsList( false ) { } - //.................................................................... + OUString ValueListCommandUI::getSQLCommand() const { OUString sValue; @@ -3117,7 +3117,7 @@ namespace pcr return sValue; } - //.................................................................... + sal_Bool ValueListCommandUI::getEscapeProcessing() const { enum ListSourceType eType( ListSourceType_SQL ); @@ -3127,7 +3127,7 @@ namespace pcr return ( eType == ListSourceType_SQL ); } - //.................................................................... + void ValueListCommandUI::setSQLCommand( const OUString& _rCommand ) const { Any aValue; @@ -3138,14 +3138,14 @@ namespace pcr m_xObject->setPropertyValue( PROPERTY_LISTSOURCE, aValue ); } - //.................................................................... + void ValueListCommandUI::setEscapeProcessing( const sal_Bool _bEscapeProcessing ) const { m_xObject->setPropertyValue( PROPERTY_LISTSOURCETYPE, makeAny( _bEscapeProcessing ? ListSourceType_SQL : ListSourceType_SQLPASSTHROUGH ) ); } - //.................................................................... + OUString* ValueListCommandUI::getPropertiesToDisable() { static OUString s_aListSourceProps[] = { @@ -3310,8 +3310,8 @@ namespace pcr return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper()); } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/formcomponenthandler.hxx b/extensions/source/propctrlr/formcomponenthandler.hxx index 359bf68ee5d1..abadfcccf15a 100644 --- a/extensions/source/propctrlr/formcomponenthandler.hxx +++ b/extensions/source/propctrlr/formcomponenthandler.hxx @@ -37,14 +37,14 @@ #include <set> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= ComponentClassification - //==================================================================== + enum ComponentClassification { eFormControl, @@ -52,9 +52,9 @@ namespace pcr eUnknown }; - //==================================================================== + //= FormComponentPropertyHandler - //==================================================================== + class FormComponentPropertyHandler; typedef HandlerComponentBase< FormComponentPropertyHandler > FormComponentPropertyHandler_Base; typedef ::comphelper::OPropertyArrayUsageHelper<FormComponentPropertyHandler> FormComponentPropertyHandler_PROP; @@ -443,9 +443,9 @@ namespace pcr using ::comphelper::OPropertyContainer::removePropertyChangeListener; }; - //==================================================================== + //= WaitCursor - //==================================================================== + /** wrapper around a ->WaitObject which can cope with a NULL window */ class WaitCursor @@ -461,9 +461,9 @@ namespace pcr } }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_FORMCOMPONENTHANDLER_HXX diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx index 8862f1ce1d09..d83de3d7f20b 100644 --- a/extensions/source/propctrlr/formcontroller.cxx +++ b/extensions/source/propctrlr/formcontroller.cxx @@ -37,10 +37,10 @@ extern "C" void SAL_CALL createRegistryInfo_FormController() ::pcr::OAutoRegistration< ::pcr::DialogController > aDialogControllerRegistration; } -//........................................................................ + namespace pcr { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::TypeClass_INTERFACE; @@ -69,9 +69,9 @@ namespace pcr namespace PropertyAttribute = ::com::sun::star::beans::PropertyAttribute; - //==================================================================== + //= FormController - //==================================================================== + FormController::FormController( const Reference< XComponentContext >& _rxContext, ServiceDescriptor _aServiceDescriptor, bool _bUseFormFormComponentHandlers ) @@ -252,9 +252,9 @@ namespace pcr } } - //==================================================================== + //= DialogController - //==================================================================== + OUString DialogController::getImplementationName_static( ) throw(RuntimeException) { @@ -278,8 +278,8 @@ namespace pcr return *(new FormController( _rxContext, aService, false ) ); } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/formcontroller.hxx b/extensions/source/propctrlr/formcontroller.hxx index 3ab296bbd030..e9194744038a 100644 --- a/extensions/source/propctrlr/formcontroller.hxx +++ b/extensions/source/propctrlr/formcontroller.hxx @@ -25,14 +25,14 @@ #include <comphelper/proparrhlp.hxx> #include <comphelper/uno3.hxx> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= ServiceDescriptor - //==================================================================== + struct ServiceDescriptor { OUString @@ -41,9 +41,9 @@ namespace pcr ( *GetSupportedServiceNames )( void ); }; - //==================================================================== + //= FormController - //==================================================================== + class FormController; typedef ::cppu::OPropertySetHelper FormController_PropertyBase1; typedef ::comphelper::OPropertyArrayUsageHelper< FormController > FormController_PropertyBase2; @@ -102,9 +102,9 @@ namespace pcr using FormController_PropertyBase1::getFastPropertyValue; }; - //==================================================================== + //= DialogController - //==================================================================== + /** Legacy implementation of com.sun.star.awt.PropertyBrowserController */ class DialogController @@ -121,9 +121,9 @@ namespace pcr DialogController( const DialogController& ); // never implemented DialogController& operator=( const DialogController& ); // never implemented }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_FORMCONTROLLER_HXX diff --git a/extensions/source/propctrlr/formgeometryhandler.cxx b/extensions/source/propctrlr/formgeometryhandler.cxx index a92452ca6df4..1cac106932bd 100644 --- a/extensions/source/propctrlr/formgeometryhandler.cxx +++ b/extensions/source/propctrlr/formgeometryhandler.cxx @@ -43,10 +43,10 @@ #include <tools/debug.hxx> #include <tools/diagnose_ex.h> -//........................................................................ + namespace pcr { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XInterface; @@ -98,9 +98,9 @@ namespace pcr #define ANCHOR_TO_SHEET 0 #define ANCHOR_TO_CELL 1 - //==================================================================== + //= BroadcastHelperBase - //==================================================================== + class BroadcastHelperBase { protected: @@ -116,9 +116,9 @@ namespace pcr ::cppu::OBroadcastHelper maBHelper; }; - //==================================================================== + //= ShapeGeometryChangeNotifier - declaration - //==================================================================== + /** helper class to work around the ...unfortunate implementation of property change broadcasts in the XShape implementation, which broadcasts way too generous and unspecified */ @@ -200,9 +200,9 @@ namespace pcr Reference< XShape > m_xShape; }; - //==================================================================== + //= FormGeometryHandler - declaration - //==================================================================== + class FormGeometryHandler; typedef HandlerComponentBase< FormGeometryHandler > FormGeometryHandler_Base; /** a property handler for any virtual string properties @@ -250,9 +250,9 @@ namespace pcr ::rtl::Reference< ShapeGeometryChangeNotifier > m_xChangeNotifier; }; - //==================================================================== + //= FormGeometryHandler - implementation - //==================================================================== + DBG_NAME( FormGeometryHandler ) FormGeometryHandler::FormGeometryHandler( const Reference< XComponentContext >& _rxContext ) @@ -704,9 +704,9 @@ namespace pcr } } - //==================================================================== + //= ShapeGeometryChangeNotifier - implementation - //==================================================================== + namespace { struct EventTranslation @@ -805,9 +805,9 @@ namespace pcr getBroadcastHelper().bDisposed = true; } -//........................................................................ + } // namespace pcr -//........................................................................ + extern "C" void SAL_CALL createRegistryInfo_FormGeometryHandler() { diff --git a/extensions/source/propctrlr/formlinkdialog.cxx b/extensions/source/propctrlr/formlinkdialog.cxx index 9fd09141ae72..470847a14afd 100644 --- a/extensions/source/propctrlr/formlinkdialog.cxx +++ b/extensions/source/propctrlr/formlinkdialog.cxx @@ -43,10 +43,10 @@ #include <com/sun/star/sdb/SQLContext.hpp> -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -57,9 +57,9 @@ namespace pcr using namespace ::com::sun::star::beans; using namespace ::com::sun::star::container; - //======================================================================== + //= FieldLinkRow - //======================================================================== + class FieldLinkRow : public Window { private: @@ -143,9 +143,9 @@ namespace pcr return 0L; } - //======================================================================== + //= FormLinkDialog - //======================================================================== + FormLinkDialog::FormLinkDialog( Window* _pParent, const Reference< XPropertySet >& _rxDetailForm, const Reference< XPropertySet >& _rxMasterForm, const Reference< XComponentContext >& _rxContext, @@ -654,8 +654,8 @@ namespace pcr initializeSuggest(); return 0L; } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/formlinkdialog.hxx b/extensions/source/propctrlr/formlinkdialog.hxx index abf7b86bb93b..08c461f776c4 100644 --- a/extensions/source/propctrlr/formlinkdialog.hxx +++ b/extensions/source/propctrlr/formlinkdialog.hxx @@ -32,15 +32,15 @@ #include <memory> -//............................................................................ + namespace pcr { -//............................................................................ + class FieldLinkRow; - //======================================================================== + //= FormLinkDialog - //======================================================================== + class FormLinkDialog : public ModalDialog { private: @@ -134,9 +134,9 @@ namespace pcr ) const; }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_FORMLINKDIALOG_HXX diff --git a/extensions/source/propctrlr/formmetadata.cxx b/extensions/source/propctrlr/formmetadata.cxx index e161bf6fbbea..10e9774d4f55 100644 --- a/extensions/source/propctrlr/formmetadata.cxx +++ b/extensions/source/propctrlr/formmetadata.cxx @@ -28,16 +28,16 @@ #include <algorithm> #include <functional> -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::uno; - //======================================================================== + //= OPropertyInfoImpl - //======================================================================== + struct OPropertyInfoImpl { OUString sName; @@ -78,9 +78,9 @@ namespace pcr } }; - //======================================================================== + //= OPropertyInfoService - //======================================================================== + #define DEF_INFO( ident, uinameres, pos, helpid, flags ) \ OPropertyInfoImpl( PROPERTY_##ident, PROPERTY_ID_##ident, \ PcrRes( RID_STR_##uinameres ).toString(), pos, HID_PROP_##helpid, flags ) @@ -575,9 +575,9 @@ namespace pcr return NULL; } - //==================================================================== + //= DefaultEnumRepresentation - //==================================================================== + DBG_NAME( DefaultEnumRepresentation ) DefaultEnumRepresentation::DefaultEnumRepresentation( const IPropertyInfoService& _rInfo, const Type& _rType, sal_Int32 _nPropertyId ) @@ -685,8 +685,8 @@ namespace pcr return m_refCount; } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/formmetadata.hxx b/extensions/source/propctrlr/formmetadata.hxx index d290a8c93250..95e55117d90e 100644 --- a/extensions/source/propctrlr/formmetadata.hxx +++ b/extensions/source/propctrlr/formmetadata.hxx @@ -24,16 +24,16 @@ #include "modulepcr.hxx" #include "enumrepresentation.hxx" -//............................................................................ + namespace pcr { -//............................................................................ + struct OPropertyInfoImpl; - //======================================================================== + //= OPropertyInfoService - //======================================================================== + class OPropertyInfoService :public IPropertyInfoService ,public PcrClient @@ -62,9 +62,9 @@ namespace pcr static const OPropertyInfoImpl* getPropertyInfo(sal_Int32 _nId); }; - //======================================================================== + //= DefaultEnumRepresentation - //======================================================================== + /** an implementation of the IPropertyEnumRepresentation To be used with properties which, in formmetadata.cxx, are declared as ENUM. @@ -106,9 +106,9 @@ namespace pcr DefaultEnumRepresentation& operator=( const DefaultEnumRepresentation& ); // never implemented }; - //======================================================================== + //= UI flags (for all browseable properties) - //======================================================================== + #define PROP_FLAG_NONE 0x00000000 // no special flag #define PROP_FLAG_FORM_VISIBLE 0x00000001 // the property is visible when inspecting a form object @@ -124,9 +124,9 @@ namespace pcr // UI, unless experimental properties are enabled by a configuraiton // option - //======================================================================== + //= property ids (for all browseable properties) - //======================================================================== + #define PROPERTY_ID_NAME 1 #define PROPERTY_ID_LABEL 2 @@ -334,9 +334,9 @@ namespace pcr #define PROPERTY_ID_SCROLL_TOP 205 #define PROPERTY_ID_SCROLL_LEFT 206 -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_FORMMETADATA_HXX_ diff --git a/extensions/source/propctrlr/formresid.hrc b/extensions/source/propctrlr/formresid.hrc index 1ab74b7cadac..e5260bf9746e 100644 --- a/extensions/source/propctrlr/formresid.hrc +++ b/extensions/source/propctrlr/formresid.hrc @@ -22,7 +22,7 @@ #include "propresid.hrc" -// ----------------------------------------------------------------------- + // - Strings #define RID_STR_FORMS ( RID_FORMBROWSER_START + 1 ) @@ -269,12 +269,12 @@ #define RID_STR_SCROLL_LEFT ( RID_FORMBROWSER_START + 259 ) -// ----------------------------------------------------------------------- + // - message strings #define RID_STR_CONFIRM_DELETE_DATA_TYPE ( RID_FORMBROWSER_START + 500 ) -// ----------------------------------------------------------------------- + // - dialogs #define RID_DLG_SELECTLABELCONTROL ( RID_PROPCONTROLLER_START + 0 ) @@ -283,12 +283,12 @@ #define RID_DLG_SELECTION ( RID_PROPCONTROLLER_START + 3 ) #define RID_DLG_NEW_DATA_TYPE ( RID_PROPCONTROLLER_START + 4 ) -// ----------------------------------------------------------------------- + // - ImageLists #define RID_IL_FORMEXPLORER ( RID_PROPCONTROLLER_START + 0 ) -// ----------------------------------------------------------------------- + // - untyped resources #define RID_RSC_ENUM_SCROLLBARS ( RID_PROPCONTROLLER_START + 0 ) @@ -325,9 +325,9 @@ #define RID_RSC_ENUM_TEXT_ANCHOR_TYPE ( RID_PROPCONTROLLER_START + 31 ) #define RID_RSC_ENUM_SHEET_ANCHOR_TYPE ( RID_PROPCONTROLLER_START + 32 ) -// ----------------------------------------------------------------------- + // - ImageList - local ids -// ----------------------------------------------------------------------- + // HACK HACK HACK // as long as we have no real property browser, but this outsourcing only, // we do not duplicate images. Instead we do some hard coding for the image ids diff --git a/extensions/source/propctrlr/formstrings.hxx b/extensions/source/propctrlr/formstrings.hxx index d0b85ebf58fc..cdac126ef2df 100644 --- a/extensions/source/propctrlr/formstrings.hxx +++ b/extensions/source/propctrlr/formstrings.hxx @@ -20,10 +20,10 @@ #ifndef _EXTENSIONS_FORMSCTRLR_FORMSTRINGS_HXX_ #define _EXTENSIONS_FORMSCTRLR_FORMSTRINGS_HXX_ -//............................................................................ + namespace pcr { -//............................................................................ + #define PROPERTY_DEFAULTCONTROL "DefaultControl" #define PROPERTY_INTROSPECTEDOBJECT "IntrospectedObject" @@ -291,9 +291,9 @@ namespace pcr #define SERVICE_ADDRESS_CONVERSION "com.sun.star.table.CellAddressConversion" #define SERVICE_RANGEADDRESS_CONVERSION "com.sun.star.table.CellRangeAddressConversion" -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_FORMSCTRLR_FORMSTRINGS_HXX_ diff --git a/extensions/source/propctrlr/genericpropertyhandler.hxx b/extensions/source/propctrlr/genericpropertyhandler.hxx index 9bfebc103214..0f54786f84bb 100644 --- a/extensions/source/propctrlr/genericpropertyhandler.hxx +++ b/extensions/source/propctrlr/genericpropertyhandler.hxx @@ -33,10 +33,10 @@ #include <map> -//........................................................................ + namespace pcr { -//........................................................................ + struct TypeLess : ::std::binary_function< ::com::sun::star::uno::Type, ::com::sun::star::uno::Type, bool > { @@ -47,9 +47,9 @@ namespace pcr }; class IPropertyEnumRepresentation; - //==================================================================== + //= GenericPropertyHandler - //==================================================================== + typedef ::cppu::WeakComponentImplHelper2 < ::com::sun::star::inspection::XPropertyHandler , ::com::sun::star::lang::XServiceInfo > GenericPropertyHandler_Base; @@ -141,9 +141,9 @@ namespace pcr GenericPropertyHandler& operator=( const GenericPropertyHandler& ); // never implemented }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_GENERICPROPERTYHANDLER_HXX diff --git a/extensions/source/propctrlr/handlerhelper.cxx b/extensions/source/propctrlr/handlerhelper.cxx index 6362a6227567..c154d0195a94 100644 --- a/extensions/source/propctrlr/handlerhelper.cxx +++ b/extensions/source/propctrlr/handlerhelper.cxx @@ -41,10 +41,10 @@ #include <algorithm> -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -54,9 +54,9 @@ namespace pcr using namespace ::com::sun::star::script; using namespace ::com::sun::star::inspection; - //==================================================================== + //= PropertyHandlerHelper - //==================================================================== + void PropertyHandlerHelper::describePropertyLine( const Property& _rProperty, LineDescriptor& /* [out] */ _out_rDescriptor, const Reference< XPropertyControlFactory >& _rxControlFactory ) @@ -291,8 +291,8 @@ namespace pcr return pInspectorWindow; } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/handlerhelper.hxx b/extensions/source/propctrlr/handlerhelper.hxx index 30182fa1ea9e..473470864422 100644 --- a/extensions/source/propctrlr/handlerhelper.hxx +++ b/extensions/source/propctrlr/handlerhelper.hxx @@ -36,14 +36,14 @@ namespace com { namespace sun { namespace star { struct LineDescriptor; } } } } -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= PropertyHandlerHelper - //==================================================================== + class PropertyHandlerHelper { public: @@ -201,9 +201,9 @@ namespace pcr PropertyHandlerHelper& operator=( const PropertyHandlerHelper& ); // never implemented }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_HANDLERHELPER_HXX diff --git a/extensions/source/propctrlr/inspectorhelpwindow.cxx b/extensions/source/propctrlr/inspectorhelpwindow.cxx index 4e7f6a7cfb5f..1ea7bbf26c87 100644 --- a/extensions/source/propctrlr/inspectorhelpwindow.cxx +++ b/extensions/source/propctrlr/inspectorhelpwindow.cxx @@ -20,12 +20,12 @@ #include "modulepcr.hxx" #include "propresid.hrc" -//........................................................................ + namespace pcr { - //==================================================================== + //= InspectorHelpWindow - //==================================================================== + InspectorHelpWindow::InspectorHelpWindow( Window* _pParent ) :Window( _pParent, WB_DIALOGCONTROL ) @@ -127,8 +127,8 @@ namespace pcr m_aHelpText.SetPosSizePixel( aTextArea.TopLeft(), aTextArea.GetSize() ); } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/inspectorhelpwindow.hxx b/extensions/source/propctrlr/inspectorhelpwindow.hxx index 0bb2eaee3152..22a1151da544 100644 --- a/extensions/source/propctrlr/inspectorhelpwindow.hxx +++ b/extensions/source/propctrlr/inspectorhelpwindow.hxx @@ -22,14 +22,14 @@ #include <vcl/fixed.hxx> #include <svtools/svmedit.hxx> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= InspectorHelpWindow - //==================================================================== + class InspectorHelpWindow : public Window { private: @@ -59,9 +59,9 @@ namespace pcr long impl_getSpaceAboveTextWindow(); }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // HELPWINDOW_HXX diff --git a/extensions/source/propctrlr/inspectormodelbase.cxx b/extensions/source/propctrlr/inspectormodelbase.cxx index e768d7d2da4f..4fd00b207435 100644 --- a/extensions/source/propctrlr/inspectormodelbase.cxx +++ b/extensions/source/propctrlr/inspectormodelbase.cxx @@ -25,10 +25,10 @@ #include <comphelper/propertycontainerhelper.hxx> #include <cppuhelper/supportsservice.hxx> -//........................................................................ + namespace pcr { -//........................................................................ + #define MODEL_PROPERTY_ID_HAS_HELP_SECTION 2000 #define MODEL_PROPERTY_ID_MIN_HELP_TEXT_LINES 2001 @@ -49,9 +49,9 @@ namespace pcr namespace PropertyAttribute = ::com::sun::star::beans::PropertyAttribute; - //==================================================================== + //= InspectorModelProperties - //==================================================================== + /** helper class for implementing the property set related functionality of an ImplInspectorModel */ @@ -87,9 +87,9 @@ namespace pcr void constructWithHelpSection( sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines ); }; - //==================================================================== + //= InspectorModelProperties - //==================================================================== + InspectorModelProperties::InspectorModelProperties( ::osl::Mutex& _rMutex ) :m_rMutex( _rMutex ) @@ -154,9 +154,9 @@ namespace pcr return ::cppu::OPropertySetHelper::createPropertySetInfo( getInfoHelper() ); } - //==================================================================== + //= ImplInspectorModel - //==================================================================== + ImplInspectorModel::ImplInspectorModel() :ImplInspectorModel_PBase( GetBroadcastHelper() ) ,m_pProperties( new InspectorModelProperties( m_aMutex ) ) @@ -245,8 +245,8 @@ namespace pcr m_pProperties->constructWithHelpSection( _nMinHelpTextLines, _nMaxHelpTextLines ); } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/inspectormodelbase.hxx b/extensions/source/propctrlr/inspectormodelbase.hxx index d49b50808bfb..36aceb18a6cc 100644 --- a/extensions/source/propctrlr/inspectormodelbase.hxx +++ b/extensions/source/propctrlr/inspectormodelbase.hxx @@ -33,15 +33,15 @@ #include <memory> -//........................................................................ + namespace pcr { -//........................................................................ + class InspectorModelProperties; - //==================================================================== + //= ImplInspectorModel - //==================================================================== + typedef ::cppu::WeakImplHelper3 < ::com::sun::star::inspection::XObjectInspectorModel , ::com::sun::star::lang::XInitialization , ::com::sun::star::lang::XServiceInfo @@ -89,9 +89,9 @@ namespace pcr using ImplInspectorModel_PBase::getFastPropertyValue; }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // INSPECTORMODELBASE_HXX diff --git a/extensions/source/propctrlr/linedescriptor.hxx b/extensions/source/propctrlr/linedescriptor.hxx index 074ce565f444..f71255741248 100644 --- a/extensions/source/propctrlr/linedescriptor.hxx +++ b/extensions/source/propctrlr/linedescriptor.hxx @@ -22,14 +22,14 @@ #include <vcl/image.hxx> #include <com/sun/star/inspection/LineDescriptor.hpp> -//............................................................................ + namespace pcr { -//............................................................................ - //======================================================================== + + //= OLineDescriptor - //======================================================================== + struct OLineDescriptor : public ::com::sun::star::inspection::LineDescriptor { OUString sName; // the name of the property @@ -52,9 +52,9 @@ namespace pcr } }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_LINEDESCRIPTOR_HXX_ diff --git a/extensions/source/propctrlr/listselectiondlg.cxx b/extensions/source/propctrlr/listselectiondlg.cxx index 1087354427dd..cbc73ed04e63 100644 --- a/extensions/source/propctrlr/listselectiondlg.cxx +++ b/extensions/source/propctrlr/listselectiondlg.cxx @@ -25,17 +25,17 @@ #include "formstrings.hxx" #include <vcl/msgbox.hxx> -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; - //==================================================================== + //= ListSelectionDialog - //==================================================================== + ListSelectionDialog::ListSelectionDialog( Window* _pParent, const Reference< XPropertySet >& _rxListBox, const OUString& _rPropertyName, const OUString& _rPropertyUIName ) @@ -149,8 +149,8 @@ namespace pcr m_aEntries.SelectEntryPos( *pSelection ); } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/listselectiondlg.hxx b/extensions/source/propctrlr/listselectiondlg.hxx index c62473b7ec61..4479e11403e2 100644 --- a/extensions/source/propctrlr/listselectiondlg.hxx +++ b/extensions/source/propctrlr/listselectiondlg.hxx @@ -27,14 +27,14 @@ #include <com/sun/star/beans/XPropertySet.hpp> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= ListSelectionDialog - //==================================================================== + class ListSelectionDialog : public ModalDialog { private: @@ -69,9 +69,9 @@ namespace pcr void collectSelection( ::com::sun::star::uno::Sequence< sal_Int16 >& /* [out] */ _rSelection ); }; -//........................................................................ + } // namespacepcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX diff --git a/extensions/source/propctrlr/modulepcr.cxx b/extensions/source/propctrlr/modulepcr.cxx index d1e5e4a10603..515d8460e2e8 100644 --- a/extensions/source/propctrlr/modulepcr.cxx +++ b/extensions/source/propctrlr/modulepcr.cxx @@ -22,15 +22,15 @@ #include <rtl/instance.hxx> #include <osl/getglobalmutex.hxx> -//........................................................................ + namespace pcr { -//........................................................................ + IMPLEMENT_MODULE( PcrModule, "pcr" ) -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/modulepcr.hxx b/extensions/source/propctrlr/modulepcr.hxx index 0cb1be2c76d8..128df7794139 100644 --- a/extensions/source/propctrlr/modulepcr.hxx +++ b/extensions/source/propctrlr/modulepcr.hxx @@ -22,16 +22,16 @@ #include <unotools/componentresmodule.hxx> -//........................................................................ + namespace pcr { -//........................................................................ + DEFINE_MODULE( PcrModule, PcrClient, PcrRes ) -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // _EXTENSIONS_PROPCTRLR_MODULEPRC_HXX_ diff --git a/extensions/source/propctrlr/newdatatype.cxx b/extensions/source/propctrlr/newdatatype.cxx index cd267d5e9f8b..28c95cbb4036 100644 --- a/extensions/source/propctrlr/newdatatype.cxx +++ b/extensions/source/propctrlr/newdatatype.cxx @@ -23,14 +23,14 @@ #include "modulepcr.hxx" #include "formresid.hrc" -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= NewDataTypeDialog - //==================================================================== + NewDataTypeDialog::NewDataTypeDialog( Window* _pParent, const OUString& _rNameBase, const ::std::vector< OUString >& _rProhibitedNames ) :ModalDialog( _pParent, PcrRes( RID_DLG_NEW_DATA_TYPE ) ) @@ -84,8 +84,8 @@ namespace pcr return 0L; } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/newdatatype.hxx b/extensions/source/propctrlr/newdatatype.hxx index 511110810563..3d895ca9edef 100644 --- a/extensions/source/propctrlr/newdatatype.hxx +++ b/extensions/source/propctrlr/newdatatype.hxx @@ -28,14 +28,14 @@ #include <set> #include <vector> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= NewDataTypeDialog - //==================================================================== + class NewDataTypeDialog : public ModalDialog { private: @@ -56,9 +56,9 @@ namespace pcr DECL_LINK( OnNameModified, void* ); }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_NEWDATATYPE_HXX diff --git a/extensions/source/propctrlr/objectinspectormodel.cxx b/extensions/source/propctrlr/objectinspectormodel.cxx index 9d979d818b33..55f3a2f697a4 100644 --- a/extensions/source/propctrlr/objectinspectormodel.cxx +++ b/extensions/source/propctrlr/objectinspectormodel.cxx @@ -29,10 +29,10 @@ #include <comphelper/broadcasthelper.hxx> #include <comphelper/uno3.hxx> -//........................................................................ + namespace pcr { -//........................................................................ + using ::com::sun::star::inspection::XObjectInspectorModel; using ::com::sun::star::lang::XInitialization; @@ -50,9 +50,9 @@ namespace pcr using ::com::sun::star::beans::XPropertySetInfo; using ::com::sun::star::uno::makeAny; - //==================================================================== + //= ObjectInspectorModel - //==================================================================== + class ObjectInspectorModel : public ImplInspectorModel { private: @@ -90,9 +90,9 @@ namespace pcr void impl_verifyArgument_throw( bool _bCondition, sal_Int16 _nArgumentPosition ); }; - //==================================================================== + //= ObjectInspectorModel - //==================================================================== + ObjectInspectorModel::ObjectInspectorModel() :ImplInspectorModel() { @@ -217,9 +217,9 @@ namespace pcr throw IllegalArgumentException( OUString(), *this, _nArgumentPosition ); } -//........................................................................ + } // namespace pcr -//........................................................................ + extern "C" void SAL_CALL createRegistryInfo_ObjectInspectorModel() diff --git a/extensions/source/propctrlr/pcrcommon.cxx b/extensions/source/propctrlr/pcrcommon.cxx index e1c427b257d5..9292a029a4e8 100644 --- a/extensions/source/propctrlr/pcrcommon.cxx +++ b/extensions/source/propctrlr/pcrcommon.cxx @@ -25,16 +25,16 @@ #include <rtl/ustrbuf.hxx> #include <tools/urlobj.hxx> -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::util; - //======================================================================== + //= HelpIdUrl - //======================================================================== + OString HelpIdUrl::getHelpId( const OUString& _rHelpURL ) { @@ -56,8 +56,8 @@ namespace pcr aBuffer.append( aTmp.getStr() ); return aBuffer.makeStringAndClear(); } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/pcrcommon.hxx b/extensions/source/propctrlr/pcrcommon.hxx index cee7cfec43ee..1d3f6d78806f 100644 --- a/extensions/source/propctrlr/pcrcommon.hxx +++ b/extensions/source/propctrlr/pcrcommon.hxx @@ -30,26 +30,26 @@ #include <toolkit/helper/vclunohelper.hxx> #include <comphelper/listenernotification.hxx> -//............................................................................ + namespace pcr { -//............................................................................ + #define OWN_PROPERTY_ID_INTROSPECTEDOBJECT 0x0010 #define OWN_PROPERTY_ID_CURRENTPAGE 0x0011 #define OWN_PROPERTY_ID_CONTROLCONTEXT 0x0012 #define OWN_PROPERTY_ID_TABBINGMODEL 0x0013 - //======================================================================== + //= types - //======================================================================== + typedef ::comphelper::OSimpleListenerContainer < ::com::sun::star::beans::XPropertyChangeListener , ::com::sun::star::beans::PropertyChangeEvent > PropertyChangeListeners; - //======================================================================== + //= helper - //======================================================================== + // small helper to make the "swap" call on an STL container a single-line call, which // in it's canonic form "aFoo.swap( Container() )" doesn't compile with GCC template< class CONTAINER > @@ -59,9 +59,9 @@ namespace pcr _rContainer.swap( aEmpty ); } - //======================================================================== + //= HelpIdUrl - //======================================================================== + /// small helper to translate help ids into help urls class HelpIdUrl { @@ -70,9 +70,9 @@ namespace pcr static OUString getHelpURL( const OString& ); }; - //==================================================================== + //= StlSyntaxSequence - //==================================================================== + template< class ELEMENT > class StlSyntaxSequence : public ::com::sun::star::uno::Sequence< ELEMENT > { @@ -111,9 +111,9 @@ namespace pcr } }; - //======================================================================== + //= UNO helpers - //======================================================================== + #define DECLARE_XCOMPONENT() \ virtual void SAL_CALL dispose( ) throw (::com::sun::star::uno::RuntimeException, std::exception); \ virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception); \ @@ -133,9 +133,9 @@ namespace pcr baseclass::WeakComponentImplHelperBase::removeEventListener( _Listener ); \ } \ -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_PCRCOMMON_HXX_ diff --git a/extensions/source/propctrlr/pcrcommontypes.hxx b/extensions/source/propctrlr/pcrcommontypes.hxx index cb2a560de9b8..e8ed62bb45eb 100644 --- a/extensions/source/propctrlr/pcrcommontypes.hxx +++ b/extensions/source/propctrlr/pcrcommontypes.hxx @@ -25,17 +25,17 @@ #include <boost/unordered_map.hpp> -//........................................................................ + namespace pcr { -//........................................................................ + typedef ::boost::unordered_map< OUString, ::com::sun::star::beans::Property, OUStringHash > PropertyMap; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_PCRCOMMONTYPES_HXX diff --git a/extensions/source/propctrlr/pcrstrings.hxx b/extensions/source/propctrlr/pcrstrings.hxx index 1bb9728d1dcd..8ca438207818 100644 --- a/extensions/source/propctrlr/pcrstrings.hxx +++ b/extensions/source/propctrlr/pcrstrings.hxx @@ -20,17 +20,17 @@ #ifndef _EXTENSIONS_FORMSCTRLR_PCRSTRINGS_HXX_ #define _EXTENSIONS_FORMSCTRLR_PCRSTRINGS_HXX_ -//............................................................................ + namespace pcr { -//............................................................................ + // properties #define PROPERTY_TABBINGMODEL "TabbingModel" -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_FORMSCTRLR_PCRSTRINGS_HXX_ diff --git a/extensions/source/propctrlr/pcrunodialogs.cxx b/extensions/source/propctrlr/pcrunodialogs.cxx index 8f9a0c1133ea..2e3d4d234b0e 100644 --- a/extensions/source/propctrlr/pcrunodialogs.cxx +++ b/extensions/source/propctrlr/pcrunodialogs.cxx @@ -32,18 +32,18 @@ extern "C" void SAL_CALL createRegistryInfo_OTabOrderDialog() ::pcr::OAutoRegistration< ::pcr::OTabOrderDialog > aAutoRegistration; } -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::beans; - //==================================================================== + //= OTabOrderDialog - //==================================================================== + OTabOrderDialog::OTabOrderDialog( const Reference< XComponentContext >& _rxContext ) :OGenericUnoDialog( _rxContext ) @@ -163,8 +163,8 @@ namespace pcr -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/pcrunodialogs.hxx b/extensions/source/propctrlr/pcrunodialogs.hxx index b294ee8f85d7..ac3c12442d07 100644 --- a/extensions/source/propctrlr/pcrunodialogs.hxx +++ b/extensions/source/propctrlr/pcrunodialogs.hxx @@ -24,14 +24,14 @@ #include <com/sun/star/awt/XTabControllerModel.hpp> #include <com/sun/star/awt/XControlContainer.hpp> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= OTabOrderDialog - //==================================================================== + class OTabOrderDialog; typedef ::svt::OGenericUnoDialog OTabOrderDialog_DBase; typedef ::comphelper::OPropertyArrayUsageHelper< OTabOrderDialog > OTabOrderDialog_PBase; @@ -81,9 +81,9 @@ namespace pcr virtual Dialog* createDialog(Window* _pParent); }; -//........................................................................ + } // namespacepcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_PCRUNODIALOGS_HXX diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx index 87c8ec59067c..d7525c75eede 100644 --- a/extensions/source/propctrlr/propcontroller.cxx +++ b/extensions/source/propctrlr/propcontroller.cxx @@ -59,10 +59,10 @@ extern "C" void SAL_CALL createRegistryInfo_OPropertyBrowserController() ::pcr::OAutoRegistration< ::pcr::OPropertyBrowserController > aAutoRegistration; } -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -78,9 +78,9 @@ namespace pcr using namespace ::com::sun::star::ucb; using namespace ::comphelper; - //======================================================================== + //= OPropertyBrowserController - //======================================================================== + DBG_NAME(OPropertyBrowserController) OPropertyBrowserController::OPropertyBrowserController( const Reference< XComponentContext >& _rxContext ) @@ -979,7 +979,7 @@ namespace pcr { try { - ////////////////////////////////////////////////////////////////////// + // obtain the properties of the object ::std::vector< Property > aProperties; @@ -1142,7 +1142,7 @@ namespace pcr _rDescriptor.assignFrom( handler->second->describePropertyLine( _rProperty.Name, this ) ); - ////////////////////////////////////////////////////////////////////// + _rDescriptor.xPropertyHandler = handler->second; _rDescriptor.sName = _rProperty.Name; @@ -1394,12 +1394,12 @@ namespace pcr // do we have a dedicated handler for this property, which we can delegate some tasks to? PropertyHandlerRef handler = impl_getHandlerForProperty_throw( rName ); - ////////////////////////////////////////////////////////////////////// + // set the value ( only if it's not a placeholder ) if ( !bIsPlaceHolderValue ) handler->setPropertyValue( rName, _rValue ); - ////////////////////////////////////////////////////////////////////// + // re-retrieve the value Any aNormalizedValue = handler->getPropertyValue( rName ); @@ -1745,9 +1745,9 @@ namespace pcr } } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/propcontroller.hxx b/extensions/source/propctrlr/propcontroller.hxx index 4a06d5e59fff..d097aebb36d4 100644 --- a/extensions/source/propctrlr/propcontroller.hxx +++ b/extensions/source/propctrlr/propcontroller.hxx @@ -62,10 +62,10 @@ class Window; -//............................................................................ + namespace pcr { -//............................................................................ + class OPropertyEditor; struct OLineDescriptor; @@ -76,9 +76,9 @@ namespace pcr #endif DBG_NAMEEX( OPropertyBrowserController ) - //======================================================================== + //= OPropertyBrowserController - //======================================================================== + // #95343#------------------------------------------------------------------------------------ typedef ::cppu::WeakImplHelper7 < ::com::sun::star::lang::XServiceInfo , ::com::sun::star::awt::XFocusListener @@ -405,9 +405,9 @@ namespace pcr void createWithModel( const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorModel >& _rxModel ); }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_PROPCONTROLLER_HXX_ diff --git a/extensions/source/propctrlr/propcontrolobserver.hxx b/extensions/source/propctrlr/propcontrolobserver.hxx index 59fca585ab62..eedca3da8020 100644 --- a/extensions/source/propctrlr/propcontrolobserver.hxx +++ b/extensions/source/propctrlr/propcontrolobserver.hxx @@ -21,14 +21,14 @@ #include <com/sun/star/inspection/XPropertyControl.hpp> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= IPropertyControlObserver - //==================================================================== + /** non-UNO version of the XPropertyControlObserver */ class IPropertyControlObserver @@ -41,9 +41,9 @@ namespace pcr ~IPropertyControlObserver() {} }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // PROPCONTROLOBSERVER_HXX diff --git a/extensions/source/propctrlr/propertycomposer.cxx b/extensions/source/propctrlr/propertycomposer.cxx index 2d194e36b1d0..898057875304 100644 --- a/extensions/source/propctrlr/propertycomposer.cxx +++ b/extensions/source/propctrlr/propertycomposer.cxx @@ -28,19 +28,19 @@ #include <algorithm> #include <map> -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::inspection; - //==================================================================== + //= helper - //==================================================================== + namespace { @@ -72,9 +72,9 @@ namespace pcr } } - //==================================================================== + //= PropertyComposer - //==================================================================== + // TODO: there are various places where we determine the first handler in our array which // supports a given property id. This is, at the moment, done with searching all handlers, @@ -498,8 +498,8 @@ namespace pcr return impl_isSupportedProperty_nothrow( _rName ); } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/propertycomposer.hxx b/extensions/source/propctrlr/propertycomposer.hxx index 3565d8104cdc..31c3a5e43ac6 100644 --- a/extensions/source/propctrlr/propertycomposer.hxx +++ b/extensions/source/propctrlr/propertycomposer.hxx @@ -36,14 +36,14 @@ #include <vector> #include <set> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= PropertyComposer - //==================================================================== + typedef ::cppu::WeakComponentImplHelper2 < ::com::sun::star::inspection::XPropertyHandler , ::com::sun::star::beans::XPropertyChangeListener > PropertyComposer_Base; @@ -142,9 +142,9 @@ namespace pcr }; }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_PROPERTYCOMPOSER_HXX diff --git a/extensions/source/propctrlr/propertycontrolextender.cxx b/extensions/source/propctrlr/propertycontrolextender.cxx index d14ae8adf171..6f90086f9695 100644 --- a/extensions/source/propctrlr/propertycontrolextender.cxx +++ b/extensions/source/propctrlr/propertycontrolextender.cxx @@ -24,10 +24,10 @@ #include <tools/diagnose_ex.h> -//........................................................................ + namespace pcr { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XInterface; @@ -48,18 +48,18 @@ namespace pcr namespace KeyFunction = ::com::sun::star::awt::KeyFunction; - //==================================================================== + //= PropertyControlExtender_Data - //==================================================================== + struct PropertyControlExtender_Data { Reference< XPropertyControl > xControl; Reference< XWindow > xControlWindow; }; - //==================================================================== + //= PropertyControlExtender - //==================================================================== + PropertyControlExtender::PropertyControlExtender( const Reference< XPropertyControl >& _rxObservedControl ) :m_pData( new PropertyControlExtender_Data ) @@ -126,8 +126,8 @@ namespace pcr } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/propertycontrolextender.hxx b/extensions/source/propctrlr/propertycontrolextender.hxx index f55c8b89353c..b9db12ddd778 100644 --- a/extensions/source/propctrlr/propertycontrolextender.hxx +++ b/extensions/source/propctrlr/propertycontrolextender.hxx @@ -27,14 +27,14 @@ #include <memory> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= PropertyControlExtender - //==================================================================== + struct PropertyControlExtender_Data; typedef ::cppu::WeakImplHelper1 < ::com::sun::star::awt::XKeyListener > PropertyControlExtender_Base; @@ -58,9 +58,9 @@ namespace pcr ::std::auto_ptr< PropertyControlExtender_Data > m_pData; }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_PROPERTYCONTROLEXTENDER_HXX diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx index 850a5db29398..43ad1b702dcd 100644 --- a/extensions/source/propctrlr/propertyeditor.cxx +++ b/extensions/source/propctrlr/propertyeditor.cxx @@ -23,10 +23,10 @@ #include <tools/debug.hxx> -//............................................................................ + namespace pcr { -//............................................................................ + #define LAYOUT_BORDER_LEFT 3 #define LAYOUT_BORDER_TOP 3 @@ -37,9 +37,9 @@ namespace pcr using ::com::sun::star::inspection::XPropertyControl; using ::com::sun::star::uno::Reference; - //================================================================== + // class OPropertyEditor - //================================================================== + DBG_NAME(OPropertyEditor) OPropertyEditor::OPropertyEditor( Window* pParent, WinBits nWinStyle) @@ -521,9 +521,9 @@ namespace pcr return 1L; } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/propertyeditor.hxx b/extensions/source/propctrlr/propertyeditor.hxx index 79f0e67a240e..c7d99a20ff41 100644 --- a/extensions/source/propctrlr/propertyeditor.hxx +++ b/extensions/source/propctrlr/propertyeditor.hxx @@ -27,10 +27,10 @@ #include <boost/mem_fn.hpp> #include <map> -//............................................................................ + namespace pcr { -//............................................................................ + class IPropertyLineListener; class IPropertyControlObserver; @@ -38,9 +38,9 @@ namespace pcr struct OLineDescriptor; class OBrowserListBox; - //======================================================================== + //= OPropertyEditor - //======================================================================== + class OPropertyEditor : public Control { private: @@ -143,9 +143,9 @@ namespace pcr DECL_LINK(OnPageActivate, void *); }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_PROPERTYEDITOR_HXX_ diff --git a/extensions/source/propctrlr/propertyhandler.hxx b/extensions/source/propctrlr/propertyhandler.hxx index 32d34e5d2e98..221d8c4428b7 100644 --- a/extensions/source/propctrlr/propertyhandler.hxx +++ b/extensions/source/propctrlr/propertyhandler.hxx @@ -53,16 +53,16 @@ namespace com { namespace sun { namespace star { } } } class Window; -//........................................................................ + namespace pcr { -//........................................................................ + typedef sal_Int32 PropertyId; - //==================================================================== + //= PropertyHandler - //==================================================================== + class OPropertyInfoService; typedef ::cppu::WeakComponentImplHelper1 < ::com::sun::star::inspection::XPropertyHandler > PropertyHandler_Base; @@ -146,7 +146,7 @@ namespace pcr */ PropertyId impl_getPropertyId_throw( const OUString& _rPropertyName ) const; - //------------------------------------------------------------------------------- + // helper for implementing doDescribeSupportedProperties /** adds a description for the given string property to the given property vector Most probably to be called from within getSupportedProperties @@ -213,7 +213,7 @@ namespace pcr sal_Int16 _nAttribs = 0 ) const; - //------------------------------------------------------------------------------- + // helper for accessing and maintaining meta data about our supported properties /** retrieves a property given by handle @@ -292,7 +292,7 @@ namespace pcr PropertyHandler& operator=( const PropertyHandler& ); // never implemented }; - //-------------------------------------------------------------------- + inline void PropertyHandler::addStringPropertyDescription( ::std::vector< ::com::sun::star::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const { implAddPropertyDescription( _rProperties, _rPropertyName, ::getCppuType( static_cast< OUString* >( NULL ) ), _nAttribs ); @@ -334,9 +334,9 @@ namespace pcr return pProp ? pProp->Name : OUString(); } - //==================================================================== + //= PropertyHandlerComponent - //==================================================================== + typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XServiceInfo > PropertyHandlerComponent_Base; /** PropertyHandler implementation which additionally supports XServiceInfo @@ -358,9 +358,9 @@ namespace pcr virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) = 0; }; - //==================================================================== + //= HandlerComponentBase - //==================================================================== + /** a PropertyHandlerComponent implementation which routes XServiceInfo::getImplementationName and XServiceInfo::getSupportedServiceNames to static versions of those methods, which are part of the derived class. @@ -404,21 +404,21 @@ namespace pcr static void registerImplementation(); }; - //-------------------------------------------------------------------- + template < class HANDLER > OUString SAL_CALL HandlerComponentBase< HANDLER >::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) { return HANDLER::getImplementationName_static(); } - //-------------------------------------------------------------------- + template < class HANDLER > ::com::sun::star::uno::Sequence< OUString > SAL_CALL HandlerComponentBase< HANDLER >::getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) { return HANDLER::getSupportedServiceNames_static(); } - //-------------------------------------------------------------------- + template < class HANDLER > void HandlerComponentBase< HANDLER >::registerImplementation() { @@ -429,16 +429,16 @@ namespace pcr ); } - //-------------------------------------------------------------------- + template < class HANDLER > ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL HandlerComponentBase< HANDLER >::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext ) { return *( new HANDLER( _rxContext ) ); } -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_PROPERTYHANDLER_HXX diff --git a/extensions/source/propctrlr/propertyinfo.hxx b/extensions/source/propctrlr/propertyinfo.hxx index 2bbf5b76ff3b..601a7a767a09 100644 --- a/extensions/source/propctrlr/propertyinfo.hxx +++ b/extensions/source/propctrlr/propertyinfo.hxx @@ -25,14 +25,14 @@ #include <rtl/string.hxx> #include <vector> -//............................................................................ + namespace pcr { -//............................................................................ - //======================================================================== + + //= IPropertyInfoService - //======================================================================== + class SAL_NO_VTABLE IPropertyInfoService { public: @@ -49,9 +49,9 @@ namespace pcr virtual ~IPropertyInfoService() { } }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_PROPERTYINFO_HXX_ diff --git a/extensions/source/propctrlr/propeventtranslation.cxx b/extensions/source/propctrlr/propeventtranslation.cxx index e40690f9c40b..28dba6314688 100644 --- a/extensions/source/propctrlr/propeventtranslation.cxx +++ b/extensions/source/propctrlr/propeventtranslation.cxx @@ -22,10 +22,10 @@ #include <com/sun/star/lang/DisposedException.hpp> #include <com/sun/star/lang/NullPointerException.hpp> -//........................................................................ + namespace pcr { -//........................................................................ + using ::com::sun::star::beans::PropertyChangeEvent; using ::com::sun::star::uno::RuntimeException; @@ -36,9 +36,9 @@ namespace pcr using ::com::sun::star::lang::DisposedException; using ::com::sun::star::lang::NullPointerException; - //==================================================================== + //= PropertyEventTranslation - //==================================================================== + PropertyEventTranslation::PropertyEventTranslation( const Reference< XPropertyChangeListener >& _rxDelegator, const Reference< XInterface >& _rxTranslatedEventSource ) @@ -84,8 +84,8 @@ namespace pcr m_xTranslatedEventSource.clear(); } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/propeventtranslation.hxx b/extensions/source/propctrlr/propeventtranslation.hxx index b2dbad8ae896..e7b86c29ab84 100644 --- a/extensions/source/propctrlr/propeventtranslation.hxx +++ b/extensions/source/propctrlr/propeventtranslation.hxx @@ -23,14 +23,14 @@ #include <com/sun/star/beans/XPropertyChangeListener.hpp> #include <cppuhelper/implbase1.hxx> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= PropertyEventTranslation - //==================================================================== + typedef ::cppu::WeakImplHelper1 < ::com::sun::star::beans::XPropertyChangeListener > PropertyEventTranslation_Base; @@ -66,9 +66,9 @@ namespace pcr PropertyEventTranslation& operator=( const PropertyEventTranslation& ); // never implemented }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_PROPEVENTTRANSLATION_HXX diff --git a/extensions/source/propctrlr/proplinelistener.hxx b/extensions/source/propctrlr/proplinelistener.hxx index 1315548da4ab..592c9408cec9 100644 --- a/extensions/source/propctrlr/proplinelistener.hxx +++ b/extensions/source/propctrlr/proplinelistener.hxx @@ -22,12 +22,12 @@ #include <rtl/ustring.hxx> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + class IPropertyLineListener { public: @@ -38,9 +38,9 @@ namespace pcr ~IPropertyLineListener() {} }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_PROPLINELISTENER_HXX_ diff --git a/extensions/source/propctrlr/propresid.hrc b/extensions/source/propctrlr/propresid.hrc index 6df40f18ad41..fd378c763774 100644 --- a/extensions/source/propctrlr/propresid.hrc +++ b/extensions/source/propctrlr/propresid.hrc @@ -26,9 +26,9 @@ // arbitrary at the moment #define RID_FORMBROWSER_START RID_PROPCONTROLLER_START + 2000 -// ----------------------------------------------------------------------- + // - Strings -// ----------------------------------------------------------------------- + #define RID_STR_STANDARD ( RID_PROPCONTROLLER_START + 0 ) #define RID_STR_PROPPAGE_DEFAULT ( RID_PROPCONTROLLER_START + 1 ) diff --git a/extensions/source/propctrlr/pushbuttonnavigation.cxx b/extensions/source/propctrlr/pushbuttonnavigation.cxx index 0278b036481c..c0fb41346510 100644 --- a/extensions/source/propctrlr/pushbuttonnavigation.cxx +++ b/extensions/source/propctrlr/pushbuttonnavigation.cxx @@ -26,10 +26,10 @@ #include <osl/diagnose.h> #include <tools/diagnose_ex.h> -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; @@ -76,9 +76,9 @@ namespace pcr } } - //======================================================================== + //= PushButtonNavigation - //======================================================================== + PushButtonNavigation::PushButtonNavigation( const Reference< XPropertySet >& _rxControlModel ) :m_xControlModel( _rxControlModel ) @@ -291,8 +291,8 @@ namespace pcr return !sTargetURL.isEmpty(); } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/pushbuttonnavigation.hxx b/extensions/source/propctrlr/pushbuttonnavigation.hxx index 17dd60cb931a..c1a1dacff5fe 100644 --- a/extensions/source/propctrlr/pushbuttonnavigation.hxx +++ b/extensions/source/propctrlr/pushbuttonnavigation.hxx @@ -23,14 +23,14 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/PropertyState.hpp> -//............................................................................ + namespace pcr { -//............................................................................ - //======================================================================== + + //= PushButtonNavigation - //======================================================================== + class PushButtonNavigation { protected: @@ -93,9 +93,9 @@ namespace pcr sal_Int32 implGetCurrentButtonType() const SAL_THROW(( ::com::sun::star::uno::Exception )); }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // EXTENSIONS_PROPCTRLR_PUSHBUTTONNAVIGATION_HXX diff --git a/extensions/source/propctrlr/selectlabeldialog.cxx b/extensions/source/propctrlr/selectlabeldialog.cxx index d85e626a99fd..bf6950794cf3 100644 --- a/extensions/source/propctrlr/selectlabeldialog.cxx +++ b/extensions/source/propctrlr/selectlabeldialog.cxx @@ -31,10 +31,10 @@ #include <comphelper/types.hxx> #include "svtools/treelistentry.hxx" -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::container; @@ -43,9 +43,9 @@ namespace pcr using namespace ::com::sun::star::sdbc; using namespace ::com::sun::star::lang; - //======================================================================== + // OSelectLabelDialog - //======================================================================== + DBG_NAME(OSelectLabelDialog) OSelectLabelDialog::OSelectLabelDialog( Window* pParent, Reference< XPropertySet > _xControlModel ) @@ -298,8 +298,8 @@ namespace pcr return 0L; } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/selectlabeldialog.hxx b/extensions/source/propctrlr/selectlabeldialog.hxx index 83053a94adb4..ccf52286b1d5 100644 --- a/extensions/source/propctrlr/selectlabeldialog.hxx +++ b/extensions/source/propctrlr/selectlabeldialog.hxx @@ -28,14 +28,14 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include "modulepcr.hxx" -//............................................................................ + namespace pcr { -//............................................................................ - //======================================================================== + + // OSelectLabelDialog - //======================================================================== + class OSelectLabelDialog :public ModalDialog ,public PcrClient @@ -71,9 +71,9 @@ namespace pcr DECL_LINK(OnNoAssignmentClicked, Button*); }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_SELECTLABELDIALOG_HXX_ diff --git a/extensions/source/propctrlr/sqlcommanddesign.cxx b/extensions/source/propctrlr/sqlcommanddesign.cxx index 787e60c4a8c2..963c43775eda 100644 --- a/extensions/source/propctrlr/sqlcommanddesign.cxx +++ b/extensions/source/propctrlr/sqlcommanddesign.cxx @@ -44,10 +44,10 @@ #include <tools/diagnose_ex.h> #include <osl/diagnose.h> -//........................................................................ + namespace pcr { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::lang::XMultiComponentFactory; @@ -86,17 +86,17 @@ namespace pcr namespace FrameSearchFlag = ::com::sun::star::frame::FrameSearchFlag; namespace CommandType = ::com::sun::star::sdb::CommandType; - //==================================================================== + //= ISQLCommandAdapter - //==================================================================== + ISQLCommandAdapter::~ISQLCommandAdapter() { } - //==================================================================== + //= SQLCommandDesigner - //==================================================================== + SQLCommandDesigner::SQLCommandDesigner( const Reference< XComponentContext >& _rxContext, const ::rtl::Reference< ISQLCommandAdapter >& _rxPropertyAdapter, @@ -371,8 +371,8 @@ namespace pcr return bAllow; } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/sqlcommanddesign.hxx b/extensions/source/propctrlr/sqlcommanddesign.hxx index 3d48761a6c80..97cc770c7afe 100644 --- a/extensions/source/propctrlr/sqlcommanddesign.hxx +++ b/extensions/source/propctrlr/sqlcommanddesign.hxx @@ -32,15 +32,15 @@ #include <cppuhelper/implbase1.hxx> #include <rtl/ref.hxx> -//........................................................................ + namespace pcr { -//........................................................................ + class ISQLCommandAdapter; - //==================================================================== + //= SQLCommandDesigner - //==================================================================== + typedef ::cppu::WeakImplHelper1 < ::com::sun::star::beans::XPropertyChangeListener > SQLCommandDesigner_Base; /** encapsulates the code for calling and managing a query design frame, used @@ -184,9 +184,9 @@ namespace pcr SQLCommandDesigner& operator=( const SQLCommandDesigner& ); // never implemented }; - //==================================================================== + //= ISQLCommandAdapter - //==================================================================== + /** an adapter to forward changed SQL command property values to a component */ class ISQLCommandAdapter : public ::rtl::IReference @@ -205,9 +205,9 @@ namespace pcr virtual ~ISQLCommandAdapter(); }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_SQLCOMMANDDESIGN_HXX diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx index 5a33afdfb6a7..7d7d38a2d97e 100644 --- a/extensions/source/propctrlr/standardcontrol.cxx +++ b/extensions/source/propctrlr/standardcontrol.cxx @@ -30,12 +30,12 @@ #include <rtl/math.hxx> #include <sfx2/objsh.hxx> -//================================================================== + // ugly dependencies for the OColorControl #include <svx/svxids.hrc> #include <svx/drawitem.hxx> #include <svx/xtable.hxx> -//================================================================== + #include <vcl/floatwin.hxx> #include <svtools/svmedit.hxx> #include <svtools/colorcfg.hxx> @@ -45,16 +45,16 @@ #include <vcl/button.hxx> #include <vcl/svapp.hxx> #include <vcl/settings.hxx> -//================================================================== + #include <limits> #include <boost/bind.hpp> #include <boost/scoped_ptr.hpp> -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -64,9 +64,9 @@ namespace pcr using namespace ::com::sun::star::beans; using namespace ::com::sun::star::inspection; - //================================================================== + //= OTimeControl - //================================================================== + OTimeControl::OTimeControl( Window* pParent, WinBits nWinStyle ) :OTimeControl_Base( PropertyControlType::TimeField, pParent, nWinStyle ) @@ -109,9 +109,9 @@ namespace pcr return ::getCppuType( static_cast< util::Time* >( NULL ) ); } - //================================================================== + //= ODateControl - //================================================================== + ODateControl::ODateControl( Window* pParent, WinBits nWinStyle ) :ODateControl_Base( PropertyControlType::DateField, pParent, nWinStyle | WB_DROPDOWN ) @@ -163,9 +163,9 @@ namespace pcr return ::getCppuType( static_cast< util::Date* >( NULL ) ); } - //================================================================== + //= OEditControl - //================================================================== + OEditControl::OEditControl(Window* _pParent, sal_Bool _bPW, WinBits _nWinStyle) :OEditControl_Base( _bPW ? PropertyControlType::CharacterField : PropertyControlType::TextField, _pParent, _nWinStyle ) @@ -249,9 +249,9 @@ namespace pcr return n; } - //================================================================== + // class ODateTimeControl - //================================================================== + ODateTimeControl::ODateTimeControl( Window* _pParent, WinBits _nWinStyle) :ODateTimeControl_Base( PropertyControlType::DateTimeField, _pParent, _nWinStyle ) @@ -322,9 +322,9 @@ namespace pcr return ::getCppuType( static_cast< util::DateTime* >( NULL ) ); } - //======================================================================== + //= HyperlinkInput - //======================================================================== + HyperlinkInput::HyperlinkInput( Window* _pParent, WinBits _nWinStyle ) :Edit( _pParent, _nWinStyle ) @@ -407,9 +407,9 @@ namespace pcr impl_checkEndClick( rTEvt.GetMouseEvent() ); } - //======================================================================== + //= OHyperlinkControl - //======================================================================== + OHyperlinkControl::OHyperlinkControl( Window* _pParent, WinBits _nWinStyle ) :OHyperlinkControl_Base( PropertyControlType::HyperlinkField, _pParent, _nWinStyle ) @@ -473,9 +473,9 @@ namespace pcr return 0; } - //================================================================== + //= ONumericControl - //================================================================== + ONumericControl::ONumericControl( Window* _pParent, WinBits _nWinStyle ) :ONumericControl_Base( PropertyControlType::NumericField, _pParent, _nWinStyle ) @@ -643,9 +643,9 @@ namespace pcr return ::getCppuType( static_cast< double* >( NULL ) ); } - //================================================================== + //= OColorControl - //================================================================== + #define LB_DEFAULT_COUNT 20 OUString MakeHexStr(sal_uInt32 nVal, sal_Int32 nLength) @@ -794,9 +794,9 @@ namespace pcr m_aImplControl.notifyModifiedValue(); } - //================================================================== + //= OListboxControl - //================================================================== + OListboxControl::OListboxControl( Window* pParent, WinBits nWinStyle) :OListboxControl_Base( PropertyControlType::ListBox, pParent, nWinStyle ) @@ -886,9 +886,9 @@ namespace pcr m_aImplControl.notifyModifiedValue(); } - //================================================================== + //= OComboboxControl - //================================================================== + OComboboxControl::OComboboxControl( Window* pParent, WinBits nWinStyle) :OComboboxControl_Base( PropertyControlType::ComboBox, pParent, nWinStyle ) @@ -955,9 +955,9 @@ namespace pcr return 0L; } - //================================================================== + //= OMultilineFloatingEdit - //================================================================== + class OMultilineFloatingEdit : public FloatingWindow { private: @@ -1018,9 +1018,9 @@ namespace pcr return nResult; } - //================================================================== + //= DropDownEditControl_Base - //================================================================== + DropDownEditControl::DropDownEditControl( Window* _pParent, WinBits _nStyle ) :DropDownEditControl_Base( _pParent, _nStyle ) @@ -1155,7 +1155,7 @@ namespace pcr namespace { - //.............................................................. + StlSyntaxSequence< OUString > lcl_convertMultiLineToList( const OUString& _rCompsedTextWithLineBreaks ) { sal_Int32 nLines = comphelper::string::getTokenCount(_rCompsedTextWithLineBreaks, '\n'); @@ -1180,7 +1180,7 @@ namespace pcr return sMultiLineText; } - //.............................................................. + OUString lcl_convertListToDisplayText( const StlSyntaxSequence< OUString >& _rStrings ) { OUStringBuffer aComposed; @@ -1351,9 +1351,9 @@ namespace pcr return GetText(); } - //================================================================== + //= OMultilineEditControl - //================================================================== + OMultilineEditControl::OMultilineEditControl( Window* pParent, MultiLineOperationMode _eMode, WinBits nWinStyle ) :OMultilineEditControl_Base( _eMode == eMultiLineText ? PropertyControlType::MultiLineTextField : PropertyControlType::StringListField @@ -1416,8 +1416,8 @@ namespace pcr return ::getCppuType( static_cast< Sequence< OUString >* >( NULL ) ); } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/standardcontrol.hxx b/extensions/source/propctrlr/standardcontrol.hxx index 4a11ee56b599..1f0862f93703 100644 --- a/extensions/source/propctrlr/standardcontrol.hxx +++ b/extensions/source/propctrlr/standardcontrol.hxx @@ -39,14 +39,14 @@ class PushButton; class MultiLineEdit; -//............................................................................ + namespace pcr { -//............................................................................ - //======================================================================== + + //= ListLikeControlWithModifyHandler - //======================================================================== + /** Very small helper class which adds a SetModifyHdl to a ListBox-derived class, thus giving this class the same API (as far as the CommonBehaviourControl is concerned) as all other windows. @@ -69,7 +69,7 @@ namespace pcr bool PreNotify( NotifyEvent& _rNEvt ); }; - //------------------------------------------------------------------------ + template< class LISTBOX_WINDOW > bool ListLikeControlWithModifyHandler< LISTBOX_WINDOW >::PreNotify( NotifyEvent& _rNEvt ) { @@ -93,9 +93,9 @@ namespace pcr return ListBoxType::PreNotify( _rNEvt ); } - //======================================================================== + //= OTimeControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XPropertyControl, ControlWindow< TimeField > > OTimeControl_Base; class OTimeControl : public OTimeControl_Base { @@ -108,9 +108,9 @@ namespace pcr virtual ::com::sun::star::uno::Type SAL_CALL getValueType() throw (::com::sun::star::uno::RuntimeException, std::exception); }; - //======================================================================== + //= ODateControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XPropertyControl, ControlWindow< CalendarField > > ODateControl_Base; class ODateControl : public ODateControl_Base { @@ -123,9 +123,9 @@ namespace pcr virtual ::com::sun::star::uno::Type SAL_CALL getValueType() throw (::com::sun::star::uno::RuntimeException, std::exception); }; - //======================================================================== + //= OEditControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XPropertyControl, ControlWindow< Edit > > OEditControl_Base; class OEditControl : public OEditControl_Base { @@ -144,9 +144,9 @@ namespace pcr virtual void modified(); }; - //======================================================================== + //= ODateTimeControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XPropertyControl, ControlWindow< FormattedField > > ODateTimeControl_Base; class ODateTimeControl : public ODateTimeControl_Base { @@ -159,9 +159,9 @@ namespace pcr virtual ::com::sun::star::uno::Type SAL_CALL getValueType() throw (::com::sun::star::uno::RuntimeException, std::exception); }; - //======================================================================== + //= HyperlinkInput - //======================================================================== + class HyperlinkInput : public Edit { private: @@ -188,9 +188,9 @@ namespace pcr bool impl_textHitTest( const Point& _rWindowPos ); }; - //======================================================================== + //= OHyperlinkControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XHyperlinkControl, ControlWindow< HyperlinkInput > > OHyperlinkControl_Base; class OHyperlinkControl : public OHyperlinkControl_Base { @@ -217,9 +217,9 @@ namespace pcr DECL_LINK( OnHyperlinkClicked, void* ); }; - //======================================================================== + //= CustomConvertibleNumericField - //======================================================================== + class CustomConvertibleNumericField : public ControlWindow< MetricField > { typedef ControlWindow< MetricField > BaseClass; @@ -233,9 +233,9 @@ namespace pcr sal_Int64 GetLastValue() const { return mnLastValue; } }; - //======================================================================== + //= ONumericControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XNumericControl, CustomConvertibleNumericField > ONumericControl_Base; class ONumericControl : public ONumericControl_Base { @@ -277,9 +277,9 @@ namespace pcr double impl_fieldValueToApiValue_nothrow( sal_Int64 _nFieldValue ) const; }; - //======================================================================== + //= OColorControl - //======================================================================== + typedef CommonBehaviourControl < ::com::sun::star::inspection::XStringListControl , ListLikeControlWithModifyHandler< ColorListBox > > OColorControl_Base; @@ -306,9 +306,9 @@ namespace pcr virtual void modified(); }; - //======================================================================== + //= OListboxControl - //======================================================================== + typedef CommonBehaviourControl < ::com::sun::star::inspection::XStringListControl , ListLikeControlWithModifyHandler< ListBox > > OListboxControl_Base; @@ -332,9 +332,9 @@ namespace pcr virtual void modified(); }; - //======================================================================== + //= OComboboxControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XStringListControl, ControlWindow< ComboBox > > OComboboxControl_Base; class OComboboxControl : public OComboboxControl_Base { @@ -356,17 +356,17 @@ namespace pcr DECL_LINK( OnEntrySelected, void* ); }; - //======================================================================== + //= DropDownEditControl - //======================================================================== + enum MultiLineOperationMode { eStringList, eMultiLineText }; - //======================================================================== + //= DropDownEditControl - //======================================================================== + class OMultilineFloatingEdit; typedef ControlWindow< Edit > DropDownEditControl_Base; /** an Edit field which can be used as ControlWindow, and has a drop-down button @@ -412,9 +412,9 @@ namespace pcr sal_Bool ShowDropDown( sal_Bool bShow ); }; - //======================================================================== + //= OMultilineEditControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XPropertyControl, DropDownEditControl > OMultilineEditControl_Base; class OMultilineEditControl : public OMultilineEditControl_Base { @@ -427,9 +427,9 @@ namespace pcr virtual ::com::sun::star::uno::Type SAL_CALL getValueType() throw (::com::sun::star::uno::RuntimeException, std::exception); }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_STANDARDCONTROL_HXX_ diff --git a/extensions/source/propctrlr/submissionhandler.cxx b/extensions/source/propctrlr/submissionhandler.cxx index 75d21d9a954e..c41d2893b081 100644 --- a/extensions/source/propctrlr/submissionhandler.cxx +++ b/extensions/source/propctrlr/submissionhandler.cxx @@ -36,10 +36,10 @@ extern "C" void SAL_CALL createRegistryInfo_SubmissionPropertyHandler() ::pcr::SubmissionPropertyHandler::registerImplementation(); } -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::comphelper; using namespace ::com::sun::star; @@ -52,9 +52,9 @@ namespace pcr using namespace ::com::sun::star::container; using namespace ::com::sun::star::inspection; - //==================================================================== + //= SubmissionHelper - //==================================================================== + SubmissionHelper::SubmissionHelper( ::osl::Mutex& _rMutex, const Reference< XPropertySet >& _rxIntrospectee, const Reference< frame::XModel >& _rxContextDocument ) :EFormsHelper( _rMutex, _rxIntrospectee, _rxContextDocument ) @@ -83,9 +83,9 @@ namespace pcr return false; } - //==================================================================== + //= SubmissionPropertyHandler - //==================================================================== + DBG_NAME( SubmissionPropertyHandler ) SubmissionPropertyHandler::SubmissionPropertyHandler( const Reference< XComponentContext >& _rxContext ) @@ -430,8 +430,8 @@ namespace pcr firePropertyChange( PROPERTY_XFORMS_BUTTONTYPE, PROPERTY_ID_XFORMS_BUTTONTYPE, _rEvent.OldValue, _rEvent.NewValue ); } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/submissionhandler.hxx b/extensions/source/propctrlr/submissionhandler.hxx index a20766466534..e3ae2d67e441 100644 --- a/extensions/source/propctrlr/submissionhandler.hxx +++ b/extensions/source/propctrlr/submissionhandler.hxx @@ -31,14 +31,14 @@ namespace comphelper class OPropertyChangeMultiplexer; } -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= SubmissionHelper - //==================================================================== + class SubmissionHelper : public EFormsHelper { public: @@ -59,9 +59,9 @@ namespace pcr ) SAL_THROW(()); }; - //==================================================================== + //= SubmissionPropertyHandler - //==================================================================== + class SubmissionPropertyHandler; typedef HandlerComponentBase< SubmissionPropertyHandler > EditPropertyHandler_Base; /** a property handler for any virtual string properties @@ -107,9 +107,9 @@ namespace pcr virtual void _propertyChanged(const ::com::sun::star::beans::PropertyChangeEvent& _rEvent) throw( ::com::sun::star::uno::RuntimeException); }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_SUBMISSIONHANDLER_HXX diff --git a/extensions/source/propctrlr/taborder.cxx b/extensions/source/propctrlr/taborder.cxx index 4df386c5432c..9e3d08e12cc1 100644 --- a/extensions/source/propctrlr/taborder.cxx +++ b/extensions/source/propctrlr/taborder.cxx @@ -31,10 +31,10 @@ #include <svtools/treelistentry.hxx> #include <vcl/builder.hxx> -//............................................................................ + namespace pcr { -//............................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt; @@ -43,9 +43,9 @@ namespace pcr using namespace ::com::sun::star::beans; using namespace ::com::sun::star::datatransfer; - //======================================================================== + //= OSimpleTabModel - //======================================================================== + class OSimpleTabModel : public ::cppu::WeakImplHelper1< XTabControllerModel> { Sequence< Reference< XControlModel > > m_aModels; @@ -67,9 +67,9 @@ namespace pcr virtual void SAL_CALL setGroupControl(sal_Bool /*GroupControl*/) throw( RuntimeException, std::exception ){}; }; - //======================================================================== + //= TabOrderDialog - //======================================================================== + DBG_NAME(TabOrderDialog) TabOrderDialog::TabOrderDialog( Window* _pParent, const Reference< XTabControllerModel >& _rxTabModel, @@ -288,9 +288,9 @@ namespace pcr return 0; } - //======================================================================== + //= TabOrderListBox - //======================================================================== + DBG_NAME(TabOrderListBox); TabOrderListBox::TabOrderListBox( Window* pParent, WinBits nBits ) @@ -336,7 +336,7 @@ namespace pcr { ((TabOrderDialog*)GetParentDialog())->SetModified(); - ////////////////////////////////////////////////////////////////////// + // move entries if( nRelPos < 0 ) { @@ -402,8 +402,8 @@ namespace pcr } } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/taborder.hxx b/extensions/source/propctrlr/taborder.hxx index 75f2d392eb37..2a75e8eb7972 100644 --- a/extensions/source/propctrlr/taborder.hxx +++ b/extensions/source/propctrlr/taborder.hxx @@ -35,14 +35,14 @@ #include <comphelper/uno3.hxx> -//............................................................................ + namespace pcr { -//............................................................................ - //======================================================================== + + //= TabOrderListBox - //======================================================================== + class TabOrderListBox : public SvTreeListBox { public: @@ -59,9 +59,9 @@ namespace pcr }; - //======================================================================== + //= TabOrderDialog - //======================================================================== + class TabOrderDialog : public ModalDialog { ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel > @@ -106,9 +106,9 @@ namespace pcr void SetModified(); }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_TABORDER_HXX diff --git a/extensions/source/propctrlr/unourl.cxx b/extensions/source/propctrlr/unourl.cxx index 2c66b83e52b3..5b9d3169a586 100644 --- a/extensions/source/propctrlr/unourl.cxx +++ b/extensions/source/propctrlr/unourl.cxx @@ -22,18 +22,18 @@ #include <com/sun/star/util/XURLTransformer.hpp> #include <comphelper/processfactory.hxx> -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::util; - //==================================================================== + //= UnoURL - //==================================================================== + UnoURL::UnoURL( const OUString& _rCompleteURL, const Reference< XMultiServiceFactory >& _rxORB ) { m_aURL.Complete = _rCompleteURL; @@ -56,8 +56,8 @@ namespace pcr } } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/unourl.hxx b/extensions/source/propctrlr/unourl.hxx index 474924776963..fa85362b2685 100644 --- a/extensions/source/propctrlr/unourl.hxx +++ b/extensions/source/propctrlr/unourl.hxx @@ -23,14 +23,14 @@ #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/util/URL.hpp> -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= UnoURL - //==================================================================== + class UnoURL { private: @@ -49,9 +49,9 @@ namespace pcr UnoURL(); // never implemented }; -//........................................................................ + } // namespacepcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_UNOURL_HXX diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx index fdbd98a97cca..ffcd96d28aa7 100644 --- a/extensions/source/propctrlr/usercontrol.cxx +++ b/extensions/source/propctrlr/usercontrol.cxx @@ -29,10 +29,10 @@ #include "modulepcr.hxx" #include "propresid.hrc" -//............................................................................ + namespace pcr { -//............................................................................ + using ::com::sun::star::uno::Any; using ::com::sun::star::uno::Type; @@ -41,9 +41,9 @@ namespace pcr namespace PropertyControlType = ::com::sun::star::inspection::PropertyControlType; - //================================================================== + // NumberFormatSampleField - //================================================================== + bool NumberFormatSampleField::PreNotify( NotifyEvent& rNEvt ) { @@ -83,9 +83,9 @@ namespace pcr } } - //================================================================== + // OFormatSampleControl - //================================================================== + OFormatSampleControl::OFormatSampleControl( Window* pParent, WinBits nWinStyle ) :OFormatSampleControl_Base( PropertyControlType::Unknown, pParent, nWinStyle ) @@ -165,9 +165,9 @@ namespace pcr return ::getCppuType( static_cast< sal_Int32* >( NULL ) ); } - //================================================================== + // class OFormattedNumericControl - //================================================================== + DBG_NAME(OFormattedNumericControl); OFormattedNumericControl::OFormattedNumericControl( Window* pParent, WinBits nWinStyle ) @@ -261,9 +261,9 @@ namespace pcr } } - //======================================================================== + //= OFileUrlControl - //======================================================================== + OFileUrlControl::OFileUrlControl( Window* pParent, WinBits nWinStyle ) :OFileUrlControl_Base( PropertyControlType::Unknown, pParent, nWinStyle | WB_DROPDOWN ) @@ -307,9 +307,9 @@ namespace pcr return ::getCppuType( static_cast< OUString* >( NULL ) ); } - //======================================================================== + //= OTimeDurationControl - //======================================================================== + OTimeDurationControl::OTimeDurationControl( ::Window* pParent, WinBits nWinStyle ) :ONumericControl( pParent, nWinStyle ) @@ -350,8 +350,8 @@ namespace pcr return 0L; } -//............................................................................ + } // namespace pcr -//............................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/usercontrol.hxx b/extensions/source/propctrlr/usercontrol.hxx index 8701c7d134d3..da2503640add 100644 --- a/extensions/source/propctrlr/usercontrol.hxx +++ b/extensions/source/propctrlr/usercontrol.hxx @@ -27,14 +27,14 @@ class SvNumberFormatsSupplierObj; -//............................................................................ + namespace pcr { -//............................................................................ - //======================================================================== + + //= NumberFormatSampleField - //======================================================================== + class NumberFormatSampleField : public ControlWindow< FormattedField > { private: @@ -52,9 +52,9 @@ namespace pcr virtual bool PreNotify( NotifyEvent& rNEvt ); }; - //======================================================================== + //= OFormatSampleControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XPropertyControl, NumberFormatSampleField > OFormatSampleControl_Base; class OFormatSampleControl : public OFormatSampleControl_Base { @@ -83,18 +83,18 @@ namespace pcr static double getPreviewValue( const SvNumberformat& i_rEntry ); }; - //======================================================================== + //= FormatDescription - //======================================================================== + struct FormatDescription { SvNumberFormatsSupplierObj* pSupplier; sal_Int32 nKey; }; - //======================================================================== + //= OFormattedNumericControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XPropertyControl, ControlWindow< FormattedField > > OFormattedNumericControl_Base; class OFormattedNumericControl : public OFormattedNumericControl_Base { @@ -121,9 +121,9 @@ namespace pcr ~OFormattedNumericControl(); }; - //======================================================================== + //= OFileUrlControl - //======================================================================== + typedef CommonBehaviourControl< ::com::sun::star::inspection::XPropertyControl, ControlWindow< ::svt::FileURLBox > > OFileUrlControl_Base; class OFileUrlControl : public OFileUrlControl_Base { @@ -139,9 +139,9 @@ namespace pcr ~OFileUrlControl(); }; - //======================================================================== + //= OTimeDurationControl - //======================================================================== + class OTimeDurationControl : public ONumericControl { public: @@ -155,9 +155,9 @@ namespace pcr DECL_LINK( OnCustomConvert, MetricField* ); }; -//............................................................................ + } // namespace pcr -//............................................................................ + #endif // _EXTENSIONS_PROPCTRLR_USERCONTROL_HXX_ diff --git a/extensions/source/propctrlr/xsddatatypes.cxx b/extensions/source/propctrlr/xsddatatypes.cxx index 30073ac652c2..b6274c32894d 100644 --- a/extensions/source/propctrlr/xsddatatypes.cxx +++ b/extensions/source/propctrlr/xsddatatypes.cxx @@ -25,18 +25,18 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <tools/debug.hxx> -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::xsd; using namespace ::com::sun::star::beans; - //==================================================================== + //= helper - //==================================================================== + template< typename INTERFACE, typename ARGUMENT > void setSave( INTERFACE* pObject, void ( SAL_CALL INTERFACE::*pSetter )( ARGUMENT ), ARGUMENT _rArg ) @@ -82,9 +82,9 @@ namespace pcr return aReturn; } - //==================================================================== + //= XSDDataType - //==================================================================== + XSDDataType::XSDDataType( const Reference< XDataType >& _rxDataType ) :m_xDataType( _rxDataType ) @@ -232,8 +232,8 @@ namespace pcr } } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/xsddatatypes.hxx b/extensions/source/propctrlr/xsddatatypes.hxx index dfa5cebb52f8..425ccf564724 100644 --- a/extensions/source/propctrlr/xsddatatypes.hxx +++ b/extensions/source/propctrlr/xsddatatypes.hxx @@ -32,14 +32,14 @@ namespace com { namespace sun { namespace star { } } } } -//........................................................................ + namespace pcr { -//........................................................................ - //==================================================================== + + //= XSDDataType - //==================================================================== + class XSDDataType : public ::rtl::IReference { private: @@ -95,9 +95,9 @@ namespace pcr XSDDataType& operator=( const XSDDataType& ); // never implemented }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_XSDDATATYPES_HXX diff --git a/extensions/source/propctrlr/xsdvalidationhelper.cxx b/extensions/source/propctrlr/xsdvalidationhelper.cxx index ceffc2127fb3..b5ffd5707a5c 100644 --- a/extensions/source/propctrlr/xsdvalidationhelper.cxx +++ b/extensions/source/propctrlr/xsdvalidationhelper.cxx @@ -30,10 +30,10 @@ #include <unotools/syslocale.hxx> #include <tools/diagnose_ex.h> -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -45,9 +45,9 @@ namespace pcr namespace NumberFormat = ::com::sun::star::util::NumberFormat; - //==================================================================== + //= XSDValidationHelper - //==================================================================== + XSDValidationHelper::XSDValidationHelper( ::osl::Mutex& _rMutex, const Reference< XPropertySet >& _rxIntrospectee, const Reference< frame::XModel >& _rxContextDocument ) :EFormsHelper( _rMutex, _rxIntrospectee, _rxContextDocument ) @@ -394,8 +394,8 @@ namespace pcr return sReturn; } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/xsdvalidationhelper.hxx b/extensions/source/propctrlr/xsdvalidationhelper.hxx index c4d96868357b..4bbf1ae4e746 100644 --- a/extensions/source/propctrlr/xsdvalidationhelper.hxx +++ b/extensions/source/propctrlr/xsdvalidationhelper.hxx @@ -27,15 +27,15 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <rtl/ref.hxx> -//........................................................................ + namespace pcr { -//........................................................................ + class XSDDataType; - //==================================================================== + //= XSDValidationHelper - //==================================================================== + class XSDValidationHelper : public EFormsHelper { private: @@ -132,9 +132,9 @@ namespace pcr ) const SAL_THROW(()); }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_XSDVALIDATIONHELPER_HXX diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx index f54356c088d1..1aba285dcab8 100644 --- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx +++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx @@ -52,10 +52,10 @@ extern "C" void SAL_CALL createRegistryInfo_XSDValidationPropertyHandler() ::pcr::XSDValidationPropertyHandler::registerImplementation(); } -//........................................................................ + namespace pcr { -//........................................................................ + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -68,9 +68,9 @@ namespace pcr using ::com::sun::star::beans::PropertyAttribute::MAYBEVOID; - //==================================================================== + //= XSDValidationPropertyHandler - //==================================================================== + DBG_NAME( XSDValidationPropertyHandler ) XSDValidationPropertyHandler::XSDValidationPropertyHandler( const Reference< XComponentContext >& _rxContext ) @@ -675,8 +675,8 @@ namespace pcr } } -//........................................................................ + } // namespace pcr -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.hxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.hxx index 7c34512b486b..9c0926370d4e 100644 --- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.hxx +++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.hxx @@ -24,15 +24,15 @@ #include <memory> -//........................................................................ + namespace pcr { -//........................................................................ + class XSDValidationHelper; - //==================================================================== + //= XSDValidationPropertyHandler - //==================================================================== + class XSDValidationPropertyHandler; typedef HandlerComponentBase< XSDValidationPropertyHandler > XSDValidationPropertyHandler_Base; class XSDValidationPropertyHandler : public XSDValidationPropertyHandler_Base @@ -84,9 +84,9 @@ namespace pcr void implGetAvailableDataTypeNames( ::std::vector< OUString >& /* [out] */ _rNames ) const SAL_THROW(()); }; -//........................................................................ + } // namespace pcr -//........................................................................ + #endif // EXTENSIONS_SOURCE_PROPCTRLR_XSDVALIDATIONPROPERTYHANDLER_HXX |